:root {
  --navy: #003366;
  --navy-dark: #002347;
  --text: #262b2c;
  --accent: #f6aa28;
  --border: #eaeaea;
  --bg-alt: #fafafa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--navy);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a.active {
  color: var(--accent);
}

.category-hero {
  padding: 60px 0;
}
.category-hero h1 {
  font-size: 2rem;
}
.main-nav a:hover { color: var(--accent); }

.main-nav li.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: -20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  padding: 10px 0;
  z-index: 50;
  width: 540px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
}
.main-nav li.has-dropdown:hover .dropdown-menu { display: grid; }
.dropdown-menu li { padding: 0; }
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--accent); }

@media (max-width: 700px) {
  .dropdown-menu { position: static; display: block; box-shadow: none; border: none; width: auto; padding-left: 14px; }
  .main-nav li.has-dropdown:hover .dropdown-menu { display: block; }
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icons button,
.header-icons a {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
}
.header-icons svg { width: 22px; height: 22px; fill: var(--navy); }

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }

.hero.photo-banner {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero.photo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(0,35,71,0.75) 100%);
}
.hero.photo-banner .hero-inner { position: relative; z-index: 1; }

/* Hero showcase */
.hero-showcase { background: #faf7f2; padding: 110px 0; overflow: hidden; position: relative; }
.hero-showcase-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 18px;
  background: #fff;
}
.hero-tag:first-child { color: var(--accent); border-color: rgba(246,170,40,0.35); }
.hero-tag-sep { opacity: 0.4; }
.hero-giant {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: var(--text);
}
.hero-giant .accent-word { color: var(--accent); }
.hero-showcase-text p { font-size: 1.05rem; opacity: 0.7; max-width: 480px; margin-bottom: 36px; }
.hero-showcase-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-showcase-cta .btn { padding: 17px 32px; }
.hero-stats { display: flex; gap: 44px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.hero-stats span { font-size: 0.72rem; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.5px; }

.hero-showcase-media { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-circle {
  position: relative;
  width: clamp(240px, 26vw, 420px);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0,51,102,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.hero-circle::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,170,40,0.16) 0%, rgba(246,170,40,0) 70%);
  z-index: -1;
}
.hero-circle::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px dashed rgba(0,51,102,0.18);
}
.hero-circle-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); top: -4px; left: 50%; }
.hero-circle img { width: 78%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15)); position: relative; z-index: 1; }
.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 9px 15px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0,51,102,0.18);
  z-index: 2;
}
.hero-badge .dot { color: var(--accent); }
.hero-badge.b1 { top: 8%; left: 0; }
.hero-badge.b2 { bottom: 6%; left: 2%; }
.hero-badge.b3 { top: 40%; right: 0; }
.hero-badge.b4 { bottom: 22%; right: 2%; }

@media (max-width: 1080px) {
  .hero-showcase-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-showcase-text p { margin-left: auto; margin-right: auto; }
  .hero-showcase-cta, .hero-stats { justify-content: center; }
  .hero-circle { margin-top: 40px; width: clamp(260px, 60vw, 380px); }
}
@media (max-width: 560px) {
  .hero-giant { font-size: 2.3rem; }
  .hero-badge { display: none; }
}

.page-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 70px 0;
  text-align: center;
  color: #fff;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,51,102,0.82) 0%, rgba(0,35,71,0.72) 100%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 2rem; font-weight: 600; margin-bottom: 10px; }
.page-banner p { opacity: 0.9; }
.page-banner .crumb { font-size: 0.8rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

/* Category tiles (zapatos.html index) */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  text-align: center;
  border-radius: 4px;
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.category-tile:hover img { transform: scale(1.08); }
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,35,71,0.85) 0%, rgba(0,35,71,0.1) 60%);
}
.category-tile-label {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}
.category-tile-label span {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .category-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
}
.hero .btn-primary { border-color: var(--accent); background: var(--accent); }
.hero .btn-primary:hover { background: #e0961d; border-color: #e0961d; }

/* Sections */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.section-cta { text-align: center; margin-top: 36px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  position: relative;
  text-align: center;
  border: 1px solid var(--border);
  padding: 20px;
  transition: box-shadow 0.2s ease;
  cursor: pointer;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.product-img { margin-bottom: 16px; overflow: hidden; }
.product-img img { transition: transform 0.3s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }

.product-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 2;
}
.badge.new-badge { background: var(--navy); }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.price .old {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.price .new {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.price .old::after,
.price .new::after {
  content: " MXN";
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.blog-card-img { display: block; overflow: hidden; background: var(--bg-alt); aspect-ratio: 4/3; }
.blog-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 22px; }
.blog-card-meta { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-body h3 { font-size: 1.1rem; font-weight: 600; margin: 10px 0; line-height: 1.35; }
.blog-card-body h3 a { color: inherit; }
.blog-card-body p { font-size: 0.9rem; opacity: 0.7; line-height: 1.5; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post-back { display: inline-block; margin-bottom: 24px; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.blog-post-meta { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.blog-post h1 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; line-height: 1.25; }
.blog-post-hero { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--bg-alt); margin-bottom: 32px; }
.blog-post-body p { font-size: 1rem; line-height: 1.75; opacity: 0.85; margin-bottom: 20px; }
.blog-post-body h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 16px; }
.blog-post-body ul { margin: 0 0 20px 20px; }
.blog-post-body li { font-size: 1rem; line-height: 1.75; opacity: 0.85; margin-bottom: 8px; }
.blog-post-body a { color: var(--accent); text-decoration: underline; font-weight: 600; opacity: 1; }
.blog-post-links { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid var(--border); font-weight: 600; }
.blog-post-links a { color: var(--accent); text-decoration: underline; }

.promo-banner { position: relative; width: 100%; overflow: hidden; }
.promo-banner img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.promo-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 0 8%;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
}
.promo-banner-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}
.promo-banner-overlay h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  max-width: 480px;
  line-height: 1.2;
}

.gender-banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gender-banner { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.gender-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gender-banner:hover img { transform: scale(1.05); }
.gender-banner-label {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}
.gender-banner-label span { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.gender-banner-label h3 { color: #fff; font-size: 1.5rem; font-weight: 700; }

@media (max-width: 768px) {
  .promo-banner img { max-height: 280px; }
  .promo-banner-overlay { padding: 0 6%; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%); }
  .promo-banner-overlay h2 { font-size: 1.4rem; max-width: 100%; }
  .gender-banners-grid { grid-template-columns: 1fr; }
}

.size-table-wrap { overflow-x: auto; margin-bottom: 28px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.size-table caption { text-align: left; font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.size-table th, .size-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: center; }
.size-table th { background: var(--bg-alt); font-weight: 600; }
.size-table td:first-child, .size-table th:first-child { text-align: left; }

/* Testimonials */
.testimonials { text-align: center; }
.rating-summary {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.rating-summary strong { color: var(--text); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial-card p { margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-card .author { font-weight: 600; font-size: 0.9rem; }

.home-article { background: var(--bg-alt); }
.brand-article { max-width: 780px; }
.brand-article-meta {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.brand-article-body p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
}
.brand-article-body p:last-child { margin-bottom: 0; }
.brand-article-body a { color: var(--accent); text-decoration: underline; font-weight: 600; opacity: 1; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 50px;
}
.footer-logo { color: #fff; margin-bottom: 14px; display: inline-block; }
.footer-col p { opacity: 0.7; font-size: 0.9rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { opacity: 0.7; font-size: 0.9rem; }
.footer-col ul a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 20px 24px; gap: 18px; }
  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 60px 0; }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Product detail page */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}
.pdp-gallery {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.pdp-info h1 { font-size: 1.6rem; font-weight: 600; margin-bottom: 14px; }
.pdp-price { justify-content: flex-start; margin-bottom: 24px; }
.pdp-price .old { font-size: 1rem; }
.pdp-price .new { font-size: 1.4rem; }
.pdp-pct { background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; margin-left: 10px; border-radius: 3px; }

.pdp-row { margin-bottom: 22px; }
.pdp-label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; color: #666; }
.pdp-fixed-value { font-size: 0.95rem; font-weight: 500; }

.pdp-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pdp-label-row .pdp-label { margin-bottom: 0; }
.size-guide-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: underline; }

.color-swatch-row { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; }
.color-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); display: inline-block; }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--navy); }
.pill.selected { background: var(--navy); color: #fff; border-color: var(--navy); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.qty-stepper button { background: none; border: none; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 46px; height: 38px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 0.95rem; }

.pdp-add-btn { width: 100%; margin-top: 6px; }
.pdp-msg { margin-top: 10px; font-size: 0.85rem; color: #c0392b; display: none; }

.pdp-features { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 20px; }
.pdp-features li { font-size: 0.85rem; opacity: 0.75; margin-bottom: 8px; padding-left: 18px; position: relative; }
.pdp-features li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

@media (max-width: 900px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 30px; }
}

/* Cart page */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 70px;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 14px;
}
.cart-item img { width: 90px; height: 90px; object-fit: cover; }
.cart-item-info h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 6px; }
.cart-item-info p { font-size: 0.8rem; opacity: 0.7; margin-bottom: 10px; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 4px 10px; }
.cart-item-qty button { background: none; border: none; cursor: pointer; font-size: 1rem; }
.cart-item-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-item-remove { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #999; }
.cart-item-remove:hover { color: #c0392b; }

.cart-summary { border: 1px solid var(--border); padding: 24px; }
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.cart-summary-note { font-size: 0.8rem; opacity: 0.6; margin-bottom: 18px; }

.cart-empty, .checkout-confirm { text-align: center; padding: 60px 0; }
.cart-empty p, .checkout-confirm p { opacity: 0.7; margin-top: 8px; }
.checkout-confirm h2 { margin-bottom: 4px; }
.checkout-confirm .order-number { font-weight: 600; color: var(--navy); margin-top: 10px; }
.checkout-confirm-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.checkout-confirm-icon svg { width: 56px; height: 56px; fill: #2d7a3d; }

.order-recap { max-width: 480px; margin: 30px auto 0; padding: 20px 24px; border: 1px solid var(--border); background: var(--bg-alt); text-align: left; }
.order-recap h3 { font-size: 1rem; margin-bottom: 14px; text-align: center; }
.order-recap-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.order-recap-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; }
.order-recap-item-info { flex: 1; }
.order-recap-item-price { font-weight: 600; white-space: nowrap; }
.order-recap-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.9rem; }
.order-recap-row:not(.order-recap-meta) { font-weight: 700; border-top: 1px solid var(--border); margin-top: 4px; }
.order-recap-meta { font-size: 0.8rem; opacity: 0.7; padding: 4px 0; }

.ship-different-fields { border-left: 3px solid var(--navy); padding-left: 16px; margin: 0 0 20px; }

.checkout-form-group { margin-bottom: 16px; }
.checkout-form-group label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; opacity: 0.75; }
.checkout-form-group label .req { color: #c0392b; }
.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus { outline: none; border-color: var(--navy); }
.checkout-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-form-error { color: #c0392b; font-size: 0.8rem; margin-bottom: 16px; display: none; }
.checkout-back { display: inline-block; margin-bottom: 24px; font-size: 0.85rem; color: var(--navy); text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; }
.checkout-checkbox-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; margin: 4px 0 20px; cursor: pointer; }
.checkout-checkbox-row input { width: auto; }

.account-box { border: 1px solid var(--border); background: var(--bg-alt); padding: 16px 20px; margin: 20px 0 30px; }
.account-box-option { display: flex; align-items: flex-start; gap: 12px; }
.account-box-option svg { width: 24px; height: 24px; fill: var(--navy); flex-shrink: 0; margin-top: 2px; }
.account-box-option strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.account-box-option p { font-size: 0.85rem; opacity: 0.7; margin: 0; }
.account-box-link { display: inline-block; margin-top: 12px; background: none; border: none; padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: underline; cursor: pointer; }
.account-login-fields { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.account-login-note { font-size: 0.85rem; opacity: 0.75; margin: 0; }

.checkout-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; padding-bottom: 70px; }
.billing-details h2, .order-summary-box h2 { font-size: 1.3rem; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-step-num-sm { width: 20px; height: 20px; font-size: 0.7rem; }

.order-summary-box { border: 1px solid var(--border); padding: 24px; }
.order-summary-header { display: flex; justify-content: space-between; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.checkout-item-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.checkout-item-thumb { width: 52px; height: 52px; object-fit: contain; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; }
.checkout-item-details { flex: 1; }
.checkout-item-row .checkout-item-meta { opacity: 0.65; margin-top: 4px; font-size: 0.8rem; }
.checkout-item-row .checkout-item-price { white-space: nowrap; font-weight: 600; }
.order-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.order-summary-total { font-weight: 700; font-size: 1.05rem; border-bottom: none; padding-top: 14px; }
.order-payment-notice { font-size: 0.8rem; opacity: 0.7; background: var(--bg-alt); padding: 14px; margin: 18px 0; border: 1px solid var(--border); }

.coupon-box { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; margin-bottom: 4px; }
.coupon-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; font-size: 0.85rem; font-weight: 600; color: var(--navy); cursor: pointer; padding: 4px 0; }
.coupon-toggle span { font-size: 1.1rem; line-height: 1; }
.coupon-fields { display: flex; gap: 8px; margin-top: 10px; }
.coupon-fields input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); font-size: 0.85rem; }
.coupon-fields .btn { padding: 10px 16px; font-size: 0.8rem; white-space: nowrap; }
.coupon-msg { font-size: 0.8rem; margin-top: 8px; color: #c0392b; }

.trust-badges { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; padding: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.trust-badge { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; }
.trust-badge svg { width: 18px; height: 18px; fill: var(--navy); flex-shrink: 0; }

.terms-row { align-items: flex-start; font-weight: 400; font-size: 0.8rem; line-height: 1.5; }
.terms-row input { margin-top: 3px; }
.terms-row a { color: var(--accent); text-decoration: underline; }

.payment-methods { margin-top: 22px; }
.payment-methods h3 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.payment-method-option { display: block; border: 1px solid var(--border); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.payment-method-option:has(input:checked) { border-color: var(--navy); background: var(--bg-alt); }
.payment-method-option input { margin-right: 8px; }
.payment-method-label { font-weight: 600; font-size: 0.9rem; }
.payment-method-desc { display: block; margin: 6px 0 0 22px; font-size: 0.8rem; opacity: 0.7; line-height: 1.4; }

@media (max-width: 900px) {
  .checkout-page { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-price, .cart-item-remove { grid-column: 2; justify-self: start; }
}
