/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.main-header {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.7);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo {
  height: 50px;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.3px;
}
/* Wordmark image substitution */
.brand-name { display:flex; align-items:center; }
.brand-name .brand-wordmark { height:30px; width:auto; display:block; object-fit:contain; }
.footer-wordmark { height:34px; width:auto; display:block; object-fit:contain; filter:brightness(0); }

.main-nav {
  display: flex;
  gap: 28px; /* increased spacing between links */
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0 2px; /* subtle breathing room */
}

.nav-link:hover {
  color: #000;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-selector {
  font-weight: 500;
  color: #333;
  font-size: 1.0rem;
}

.search-btn, .cart-btn, .user-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
  position: relative;
  font-size: 2.8rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn svg,
.cart-btn i,
.cart-btn::before,
.user-btn svg {
  width: 32px !important;
  height: 32px !important;
  font-size: 2.8rem !important;
}

.search-btn {
  display: none;
}

.search-btn:hover, .cart-btn:hover, .user-btn:hover {
  background: #f5f5f5;
}

.user-btn.logged-in {
  background: #000;
  color: white;
}

.user-btn.logged-in:hover {
  background: #333;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./assets/home-page.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none; /* Hide the img element since we're using background-image */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.50) 55%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-shadow: none;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 32px;
  text-shadow: none;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 17px 52px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  border: 2px solid #000;
}

.hero-cta:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.hero-description {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Categories Section */
.categories-section {
  padding: 100px 0;
  background: #fafafa;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 56px;
  color: #000;
  letter-spacing: 1.5px;
  text-shadow: none;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
}

.category-card {
  position: relative;
  aspect-ratio: 1; /* Makes boxes square */
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s ease;
  background: #333; /* Dark background fallback */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
}

.category-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.10) 60%, transparent 100%);
  padding: 28px 16px 16px;
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-shadow: none;
  color: white;
  text-align: center;
  background: none; /* Remove any white background */
  margin: 0;
  text-transform: uppercase;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 40px 32px;
  position: relative;
}

.feature-item + .feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e8e8e8;
}

.feature-icon-svg {
  color: #000;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
  letter-spacing: 0.5px;
}

.feature-item p {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.main-footer {
  background: #000;
  color: #fff;
  padding: 80px 0 48px;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   MOBILE HAMBURGER MENU
   ============================================= */

/* Hamburger button - hidden on desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile navigation panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  padding: 80px 20px 20px;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .nav-link {
  display: block;
  padding: 15px 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.mobile-nav .nav-link:hover {
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .hamburger-btn {
    display: block;
  }
  
  .mobile-menu-overlay,
  .mobile-nav {
    display: block;
  }
  
  .main-nav {
    display: none !important;
  }
  
  /* Smaller header on mobile */
  .header-container {
    height: 60px;
    padding: 0 15px;
  }
  
  /* Smaller header buttons on mobile */
  .search-btn, .cart-btn, .user-btn {
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    padding: 4px;
  }
  
  .cart-btn svg,
  .cart-btn i,
  .user-btn svg {
    width: 22px !important;
    height: 22px !important;
  }
  
  .header-actions {
    gap: 2px;
  }
  
  .logo {
    height: 36px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .categories-section {
    padding: 72px 0;
  }
  
  .features-section {
    padding: 64px 0;
  }
  
  .categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 15px !important;
  }
  
  .category-card {
    width: 100% !important;
    min-width: unset !important;
    aspect-ratio: 1;
    border-radius: 8px;
  }
  
  .category-name {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  
  .feature-item + .feature-item::before {
    display: none;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
  }
  
  .category-card {
    width: 100%;
    min-width: unset;
    border-radius: 8px;
  }
  
  .category-name {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
  
  .category-overlay {
    padding: 20px 10px 12px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .feature-item + .feature-item {
    border-top: 1px solid #f0f0f0;
  }
  
  .feature-item + .feature-item::before {
    display: none;
  }
  
  .header-container {
    height: 60px;
  }
  
  .brand-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .category-name {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

.hero-image-container {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-bike-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.hero-bike-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.explore-btn {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.explore-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section (legacy duplicate — kept in sync) */
.features-section {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  margin-top: 60px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Trust Section */
.trust-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
}

.trust-section .section-title {
  color: white;
  margin-bottom: 60px;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.trust-stat {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #fbbf24;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Categories Section (legacy duplicate — kept in sync) */
.categories-section {
  padding: 100px 0;
  background: #fafafa;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  color: #000;
  margin: 0 0 56px 0;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-shadow: none;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card styling (legacy duplicate — kept in sync) */
.category-card {
  background: #333;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 260px;
  min-width: 260px;
  aspect-ratio: 1; /* Make square */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-images {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.category-images .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

/* Card title (legacy duplicate — kept in sync) */
.category-name {
  background: transparent;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 0 0 8px 8px;
  color: white;
  text-shadow: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Footer styling */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 16px 0;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 40px;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
    line-height: 0.9;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-bike-image {
    width: 90%;
    max-width: 400px;
    transform: rotate(0deg);
  }
  
  .explore-btn {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
  
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .category-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .features-section,
  .categories-section,
  .trust-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 0.95;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-content {
    flex-direction: column;
    padding: 0 20px;
    gap: 40px;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .explore-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .trust-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-list {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .features-section,
  .categories-section,
  .trust-section {
    padding: 40px 0;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Cart Page Styles */
/* =============================================
   CART PAGE — REDESIGNED
   ============================================= */

.cart-section {
  padding: 56px 0 80px;
  min-height: 70vh;
}

.cart-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #000;
  letter-spacing: -0.3px;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
  overflow-x: hidden;
}

/* Left column: no grey wrapper */
.cart-items {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.empty-cart {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.45;
}

.empty-cart h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.empty-cart p {
  color: #777;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.continue-shopping-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.3px;
  transition: background 0.18s ease;
}

.continue-shopping-btn:hover {
  background: #222;
}

/* Order Summary card */
.cart-summary {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.cart-summary h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
  letter-spacing: 0.2px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 400;
  color: #444;
}

.summary-row span:last-child {
  font-weight: 500;
  color: #111;
}

.summary-row .free-shipping {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
}

.summary-row.total span:last-child {
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
}

.checkout-btn {
  width: 100%;
  background: #000;
  color: #fff;
  height: 50px;
  min-height: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.18s ease, transform 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  background: #c8c8c8;
  cursor: not-allowed;
  transform: none;
}

.checkout-btn-lock {
  opacity: 0.75;
  flex-shrink: 0;
}

/* Payment Methods Section */
.payment-methods {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px;
  height: fit-content;
  margin-top: 20px;
}

.payment-methods h4 {
  margin: 0 0 20px 0;
  color: #1e293b;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.payment-btn:hover {
  border-color: #1e40af;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.payment-btn:active {
  transform: translateY(0);
}

.payment-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.payment-info {
  display: flex;
  flex-direction: column;
}

.payment-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.payment-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 2px;
}

.back-btn {
  width: 100%;
  background: #6b7280;
  color: white;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #4b5563;
}

/* Responsive payment methods */
@media (min-width: 640px) {
  .payment-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .payment-options {
    grid-template-columns: 1fr;
  }
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

/* Image thumbnail */
.item-image {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Name + price */
.item-details {
  flex: 1;
  min-width: 0;
}

.item-details h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-details .item-price {
  font-size: 0.875rem;
  color: #777;
  margin: 0;
  font-weight: 400;
}

/* Unified quantity control */
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
  flex-shrink: 0;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  transition: background 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: #f2f2f2;
}

.qty-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
  background: transparent;
}

/* Stock limit message */
.stock-limit-msg {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  animation: stockMsgFade 2.5s ease forwards;
  pointer-events: none;
}

@keyframes stockMsgFade {
  0% { opacity: 0; transform: translateY(-4px); }
  10% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.quantity {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: #111;
  padding: 0 4px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Item total price */
.item-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
  flex-shrink: 0;
}

/* Remove link */
.item-remove {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.remove-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 4px;
  transition: color 0.15s ease;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.remove-btn:hover {
  color: #dc2626;
}

/* Tablet: stack grid earlier so items column isn't too narrow */
@media (max-width: 900px) {
  .cart-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cart-section {
    padding: 36px 0 48px;
  }

  .cart-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .cart-item {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .item-details {
    flex: 1;
    min-width: 120px;
  }

  .item-details h3 {
    white-space: normal;
    word-break: break-word;
  }

  .item-total,
  .item-remove {
    margin-left: auto;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .cart-section {
    padding: 24px 0 36px;
  }

  .cart-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .cart-content {
    gap: 16px;
  }

  .cart-item {
    padding: 14px 12px;
    gap: 10px;
  }

  .item-image {
    width: 56px;
    height: 56px;
  }

  .item-details h3 {
    font-size: 0.85rem;
  }

  .item-details .item-price {
    font-size: 0.8rem;
  }

  .qty-control {
    height: 32px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .item-total {
    font-size: 0.85rem;
    min-width: 44px;
  }

  .remove-btn {
    font-size: 0.75rem;
  }

  .cart-summary {
    padding: 18px;
  }

  .checkout-btn {
    height: 46px;
    min-height: 46px;
    font-size: 0.9rem;
  }

  .payment-methods {
    padding: 20px;
  }
}
