/* DM Sans is loaded via a non-blocking <link rel="preload"> in each page's
   <head> (see tools/inject_static_seo.py) instead of @import here — a CSS
   @import forces the browser to fetch, parse, and wait on this stylesheet
   before it can even discover the font request, adding a full extra
   round-trip to the render-blocking chain. */

/* Visually hides content while keeping it in the accessibility tree
   (screen readers, AI crawlers reading DOM text) — standard sr-only pattern. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   CSS DESIGN TOKENS — Clean Minimal Palette
   ============================================================= */
:root {
  --black: #000000;
  --off-black: #000000;
  --dark: #374151;
  --white: #ffffff;
  --off-white: #ffffff;

  /* Neutral grays */
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-400: #9ca3af;
  --grey-600: #6b7280;

  /* Accent aliases (neutral dark replaces pink) */
  --pink: #000000;
  --pink-light: #374151;
  --pink-pale: #f3f4f6;
  --pink-mid: #e5e7eb;

  /* Structural */
  --border: 1px solid #e5e7eb;
  --border-thin: 1px solid #e5e7eb;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-pink: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.2s ease;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  font-family: "DM Sans", sans-serif;
  background: var(--white);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

ul, ol {
  list-style: none;
}

body {
  font-family: "DM Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--white);
}

/* =============================================================
   BANNER
   ============================================================= */
.banner {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 1rem;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.banner strong {
  font-weight: 600;
}

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: var(--border-thin);
  gap: 2rem;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-icon-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.nav-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}

.nav-icons a,
.nav-icons span {
  transition: var(--transition);
}

.nav-icons a:hover {
  color: var(--pink);
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  height: 40px;
  width: auto;
}

/* =============================================================
   SEARCH BAR
   ============================================================= */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 600px;
  gap: 10px;
}

.search-bar button {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  
}

.search-bar button i {
  color: var(--grey-400);
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border-radius: 999px;
  border: var(--border-thin);
  font-size: 0.9rem;
  background: var(--grey-100);
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.search-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
}

/* =============================================================
   CART ICON BADGE
   ============================================================= */
.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-item-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--black);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  transform: scale(1);
  opacity: 1;
}

.cart-item-count.hidden {
  transform: scale(0);
  opacity: 0;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* =============================================================
   CATEGORIES NAV
   ============================================================= */
.section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.categories {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 13px;
  padding: 2rem 3rem;
  flex-wrap: wrap;
}

.category {
  border: var(--border-thin);
  border-radius: 999px;
  padding: 5px 16px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: var(--transition);
  background: var(--white);
  font-size: 13px;
}

.category:hover {
  background: var(--grey-100);
  border-color: var(--grey-400);
}

.category.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
  background-color: var(--off-white);
  padding: 60px 0;
  position: relative;
  margin-top: 0;
  border-bottom: var(--border-thin);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 75vh;
  min-height: 600px;
}

.hero-left {
  background-color: #f7f7e9;
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.hero-text-content h1 {
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 25px;
  color: var(--black);
}

.hero-text-content .arrow {
  font-weight: 400;
}

.hero-text-content p {
  font-size: 16px;
  max-width: 400px;
  line-height: 1.6;
  /* Slightly darker than --grey-600 (#6b7280) — that token fails WCAG AA
     (4.47:1) against this section's #f7f7e9 background; #64707d passes
     (4.68:1) while staying visually indistinguishable from the rest of
     the site's muted-text colour. */
  color: #64707d;
}

.hero-small-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  border: var(--border-thin);
  overflow: hidden;
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
}

.card a {
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  z-index: 1;
}

.card-ripstop {
  background: url('../images/cap01.png') no-repeat center center/cover;
}

.card-insulated {
  background: url('../images/cap02.png') no-repeat center center/cover;
}

.hero-right {
  background: url('../images/models.png') no-repeat center / cover;
  border: var(--border-thin);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-right-footer {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}

.footer-link {
  background-color: var(--white);
  border: var(--border-thin);
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.footer-link:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.circle-arrow, .circle-icon {
  width: 30px;
  height: 30px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: var(--border-thin);
  font-size: 18px;
}

.circle-icon svg {
  stroke: var(--off-black);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  padding: 1.5rem;
  margin-top: 2rem;
}

.footer-container {
  background-color: var(--black);
  color: var(--white);
  padding: 1.5rem 2.5rem;
  border: none;
  border-radius: var(--radius);
  align-items: center;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-size: 12px;
  color: var(--grey-400);
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--pink);
}

ul.social-icons {
  display: flex;
  gap: 1rem;
  list-style: none;
}

ul.social-icons .icons {
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

ul.social-icons .icons:hover {
  color: var(--pink);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--grey-400);
}

/* =============================================================
   PRODUCT GRID — Unblast-style: 4 columns, clean cards
   ============================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  padding: 2rem;
  padding-top: 1rem;
}

h2 {
  text-align: center;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 2rem;
}

.product-card {
  text-align: left;
  margin-bottom: 0;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-image {
  position: relative;
  background: var(--grey-100);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 5;
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.all-products {
  padding: 0.8rem 2.5rem;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  margin: 2rem auto;
  display: block;
  text-align: center;
  width: fit-content;
  min-width: 200px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.all-products:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: 10px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge.new {
  left: 10px;
  background-color: var(--black);
  color: var(--white);
}

.badge.discount {
  right: 10px;
  background-color: var(--black);
  color: var(--white);
}

.product-name {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

p.product-name {
  font-weight: 500;
}

.product-category-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-top: 0.2rem;
  font-weight: 400;
  text-transform: lowercase;
}

.product-price {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--off-black);
}

.old-price {
  text-decoration: line-through;
  color: var(--grey-400);
  margin-right: 0.4rem;
  font-weight: 400;
}

.new-price {
  color: var(--black);
  font-weight: 700;
}

/* =============================================================
   HANDPICKED SECTION
   ============================================================= */
.handpicked {
  padding: 1rem 2rem;
}

.handpicked-items {
  display: flex;
  gap: 2rem;
  width: 70%;
}

.handpicked-container {
  background-color: var(--off-white);
  border: var(--border-thin);
  border-radius: var(--radius);
  display: flex;
  padding: 4rem;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 3rem auto 0;
}

.handpicked-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 30%;
}

.handpicked-info h3 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 700;
}

.handpicked-info p {
  width: 100%;
  color: var(--grey-600);
}

/* =============================================================
   OUR ATTRIBUTES / STATEMENT SECTION
   ============================================================= */
.ourattributes-container {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem;
}

.ourattributes-container p {
  width: 60%;
}

.statement {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.ourattributes {
  display: flex;
  align-content: center;
  justify-content: center;
  margin: 0 auto;
}

.fa-solid, .fa-shirt {
  color: var(--pink);
}

/* =============================================================
   BESTSELLER SECTION
   ============================================================= */
.bestseller-section {
  max-width: 1300px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.bestseller-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.03em;
}

.bestseller-header p {
  color: var(--grey-600);
  margin-bottom: 3rem;
}

.bestseller-slider-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
}

.bestseller-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.slider-arrow {
  background: var(--white);
  border: var(--border-thin);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  line-height: 1;
  box-shadow: var(--shadow);
}

.slider-arrow:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.bestseller-slider .product-card {
  background-color: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: left;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.bestseller-slider .product-card:hover {
  box-shadow: var(--shadow-pink);
  transform: translateY(-4px);
}

.bestseller-slider .product-card .product-image {
  background-color: var(--grey-100);
  border: none;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  height: auto;
  aspect-ratio: 4 / 5;
}

.bestseller-slider .product-card .product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.bestseller-slider .product-card .product-price {
  color: var(--off-black);
  font-weight: 700;
  margin-top: 0;
}

.wishlist-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2rem;
  color: var(--black);
  cursor: pointer;
  z-index: 2;
}

.all-products-bestseller {
  padding: 0.8rem 2.5rem;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  margin: 3rem auto 0;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.all-products-bestseller:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonials-section {
  padding: 4rem;
  text-align: center;
}

.testimonial-header-em {
  font-style: italic;
  font-weight: 400;
}

.testimonial-header {
  color: var(--grey-400);
  letter-spacing: -0.04rem;
  font-size: 2.5rem;
  font-weight: 700;
  padding-bottom: 3rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--grey-600);
  font-weight: 500;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.testimonial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: left;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-pink);
  transform: translateY(-4px);
}

.quote-icon {
  font-size: 3rem;
  color: var(--grey-300);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 700;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid var(--grey-200);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1rem;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 2px;
}

.author-handle {
  font-size: 0.85rem;
  color: var(--grey-400);
}

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: var(--grey-200);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--black);
  width: 24px;
  border-radius: 4px;
}

/* =============================================================
   SEARCH / CATEGORY PAGE
   ============================================================= */
.search-results-count {
  color: var(--grey-600);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

.search-page-section {
  padding: 2rem 0;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-page-section {
  padding: 2rem 0;
}

.category-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-description {
  color: var(--grey-600);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* =============================================================
   PRODUCT DETAIL PAGE
   ============================================================= */
.product-detail-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--grey-600);
}

.breadcrumbs a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.product-detail-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-images-container {
  width: 100%;
}

.main-product-image {
  background: var(--grey-100);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.main-product-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumbnail-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.thumbnail-image:hover,
.thumbnail-image.active {
  border-color: var(--pink);
}

.product-info-container {
  width: 100%;
}

.product-info-container h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.product-code {
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-bottom: 0.75rem;
}

.product-price-detail {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.product-price-detail .old-price {
  font-size: 1.2rem;
}

.product-short-description {
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--grey-600);
}

/* Product Bulk Entry */
.product-bulk-entry {
  margin-bottom: 1rem;
  padding: 1.5rem;
  background-color: var(--off-white);
  border: var(--border-thin);
}

.product-options-group .size-options {
  margin-top: 1rem;
}

.combination-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

#add-combination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.combinations-list-container {
  margin-top: 1.5rem;
}

.combinations-table {
  width: 100%;
  border-collapse: collapse;
}

.combinations-table thead {
  background-color: var(--grey-100);
}

.combinations-table th,
.combinations-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
}

.combinations-table th {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.combinations-table td {
  font-size: 0.95rem;
}

.table-color-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: inline-block;
}

.quantity-in-table {
  width: 50px;
  text-align: center;
  border: var(--border-thin);
  padding: 0.3rem;
  background: var(--white);
}

.remove-row-btn {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  padding: 0 0.5rem;
  transition: var(--transition);
}

.remove-row-btn:hover {
  color: var(--off-black);
}

/* Product Options */
.product-options-group {
  margin-bottom: 1.5rem;
}

.option-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-swatches, .size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--grey-200);
  transition: var(--transition);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: var(--black);
}

.color-swatch.active {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black);
}

.size-option {
  padding: 0.5rem 1rem;
  border: var(--border-thin);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--white);
}

.size-option:hover {
  background: var(--grey-100);
}

.size-option.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.size-option.disabled {
  background-color: var(--grey-100);
  color: var(--grey-400);
  cursor: not-allowed;
  text-decoration: line-through;
}

.custom-additions .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.custom-additions .custom-request-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.custom-additions textarea {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-thin);
  resize: vertical;
  background: var(--off-white);
}

.custom-additions textarea:focus {
  outline: none;
  border-color: var(--pink);
}

/* Product Actions */
.product-actions {
  display: flex;
  margin-bottom: 1.5rem;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn.btn-primary {
  background-color: var(--black);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: 2px solid var(--black);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  width: 100%;
  position: relative;
  letter-spacing: 0.01em;
  text-align: center;
  display: inline-block;
}

.btn.btn-primary:hover {
  background-color: var(--off-black);
  border-color: var(--off-black);
  box-shadow: var(--shadow);
}

.btn.btn-secondary {
  background-color: var(--white);
  color: var(--black);
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.btn.btn-secondary:hover {
  background-color: var(--grey-100);
  border-color: var(--grey-400);
}

/* Loading State */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* =============================================================
   PRODUCT DETAIL — DELIVERY, SHARE, ACCORDION
   ============================================================= */
.delivery-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--pink-pale);
  border: var(--border-thin);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.delivery-info .fa-truck {
  color: var(--pink);
}

.product-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: var(--border-thin);
}

.share-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: var(--border-thin);
  background-color: var(--white);
  color: var(--black);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--black);
  color: var(--white);
}

.share-btn-facebook:hover { background-color: #1877F2; border-color: #1877F2; }
.share-btn-twitter:hover { background-color: var(--black); }
.share-btn-pinterest:hover { background-color: #E60023; border-color: #E60023; }
.share-btn-copy:hover { background-color: var(--dark); }
.share-btn-copy.copied { background-color: #28a745; color: #fff; border-color: #28a745; }

/* Accordion */
.product-accordion .accordion-item {
  border-top: var(--border-thin);
}

.product-accordion .accordion-item:last-child {
  border-bottom: var(--border-thin);
}

.accordion-header {
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  font-weight: 600;
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 10px;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--pink);
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0;
  font-size: 0.95rem;
  color: var(--grey-600);
}

.accordion-item.active .accordion-content {
  padding-bottom: 1rem;
}

.accordion-content ul {
  list-style: disc;
  padding-left: 20px;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* =============================================================
   RELATED PRODUCTS
   ============================================================= */
.related-products h2 {
  text-align: center;
  margin: 4rem 0 2rem;
}

/* =============================================================
   ADD TO CART MODAL
   ============================================================= */
.modal-overlay#add-to-cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.modal-overlay#add-to-cart-modal.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay#add-to-cart-modal .modal-content {
  background-color: var(--white);
  padding: 2rem;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pink);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay#add-to-cart-modal.visible .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--grey-400);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--pink);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pink);
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  color: var(--black);
  letter-spacing: 0;
}

.modal-header .fa-check-circle {
  font-size: 1.5rem;
}

.modal-product-details {
  display: block;
  margin-bottom: 1.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-actions .btn.btn-primary {
  flex-grow: 0;
  width: auto;
}

.modal-divider {
  border: none;
  border-top: var(--border-thin);
  margin: 2rem 0;
}

#modal-related-products-placeholder .product-grid {
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
}

#modal-related-products-placeholder h2 {
  font-size: 1.5rem;
}

/* =============================================================
   SHIPPING INFO MESSAGE
   ============================================================= */
.shipping-info-message {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--pink-pale);
  border: var(--border-thin);
  border-color: var(--pink-mid);
  padding: 1rem 1.5rem;
  margin-top: -2rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.shipping-info-message i {
  margin-top: 0.2rem;
  font-size: 1.1rem;
  color: var(--pink);
}

.shipping-info-message p {
  margin: 0;
  line-height: 1.5;
}

/* =============================================================
   HIDDEN UTILITY
   ============================================================= */
.hidden {
  display: none !important;
}

/* =============================================================
   BANK TRANSFER INFO
   ============================================================= */
.bank-transfer-info {
  background-color: var(--off-white);
  border: 1px dashed var(--black);
  padding: 1rem;
  margin-top: 1rem;
}

.bank-transfer-info p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--grey-600);
}

.bank-details p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.bank-details strong {
  display: inline-block;
  width: 140px;
  color: var(--black);
}

/* =============================================================
   ORDER CONFIRMATION PAGE
   ============================================================= */
.confirmation-page-section {
  background-color: var(--off-white);
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-container,
.confirmation-fallback {
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.confirmation-icon {
  font-size: 4rem;
  color: var(--pink);
  margin-bottom: 1rem;
}

.confirmation-container h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.confirmation-subtext {
  font-size: 1.1rem;
  color: var(--grey-600);
  margin-bottom: 1.5rem;
}

.order-number-text {
  background-color: var(--pink-pale);
  border: 1px dashed var(--pink);
  padding: 0.75rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.confirmation-summary {
  border-top: var(--border-thin);
  margin-top: 2rem;
  padding-top: 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.confirmation-summary h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

#confirmation-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.confirmation-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.confirmation-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: var(--border-thin);
}

.confirmation-item .info {
  flex-grow: 1;
}

.confirmation-item h4 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.confirmation-item p {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin: 0;
}

.confirmation-item .price {
  font-weight: 700;
}

.confirmation-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 800;
  border-top: var(--border);
  padding-top: 1.5rem;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   MINI CART SLIDE-OUT
   ============================================================= */
.modal-overlay#mini-cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay#mini-cart-modal.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.mini-cart-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: var(--white);
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay#mini-cart-modal.visible .mini-cart-content {
  transform: translateX(0);
}

.mini-cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.mini-cart-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-cart-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.mini-cart-empty-message {
  text-align: center;
  color: var(--grey-600);
  padding-top: 2rem;
}

.mini-cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mini-cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: var(--border-thin);
}

.mini-cart-item-info {
  flex-grow: 1;
}

.mini-cart-item-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.mini-cart-item-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--grey-600);
}

.mini-cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.mini-cart-footer {
  padding: 1.5rem;
  border-top: var(--border);
  background-color: var(--off-white);
  flex-shrink: 0;
}

.mini-cart-footer .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-cart-footer .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
}

.mini-cart-footer .btn-primary.disabled {
  background-color: var(--grey-200);
  border-color: var(--grey-200);
  cursor: not-allowed;
}

.modal-content {
  transform: none;
}

/* =============================================================
   WISHLIST TOGGLE
   ============================================================= */
.wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1rem;
  color: var(--black);
  cursor: pointer;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.product-image:hover .wishlist-toggle,
.wishlist-toggle.active {
  opacity: 1;
}

.wishlist-toggle:hover {
  background: var(--white);
  transform: scale(1.08);
}

.wishlist-toggle .fa-solid.fa-heart {
  display: none;
}

.wishlist-toggle.active .fa-regular.fa-heart {
  display: none;
}

.wishlist-toggle.active .fa-solid.fa-heart {
  display: inline-block;
  color: var(--pink);
}

/* Wishlist Page */
.wishlist-page-section {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.wishlist-page-section h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  text-align: center;
}

#wishlist-empty-message i {
  font-size: 3rem;
  color: var(--grey-200);
  margin-bottom: 1.5rem;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-grid .product-card:nth-child(2) { transition-delay: 0.1s; }
.product-grid .product-card:nth-child(3) { transition-delay: 0.2s; }
.product-grid .product-card:nth-child(4) { transition-delay: 0.3s; }
.product-grid .product-card:nth-child(5) { transition-delay: 0.4s; }
.ourattributes-container .statement:nth-child(2) { transition-delay: 0.1s; }
.ourattributes-container .statement:nth-child(3) { transition-delay: 0.2s; }

/* =============================================================
   PRODUCT CUSTOMIZATION SECTION
   ============================================================= */
.product-customization-section {
  margin: 2rem 0;
  padding: 1.5rem;
  border: var(--border);
  background-color: var(--off-white);
}

.product-customization-section .control-group {
  margin-bottom: 1.5rem;
}

.product-customization-section .control-group:last-child {
  margin-bottom: 0;
}

.product-customization-section .control-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-customization-section .control-help-text {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-top: 0.75rem;
}

#design-upload-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-thin);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

#file-upload-status {
  font-weight: 600;
  color: var(--black);
}

/* =============================================================
   CART PAGE
   ============================================================= */
.cart-page-section {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.cart-layout.hidden,
.cart-empty-message.hidden {
  display: none;
}

.cart-items-panel h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.cart-items-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--border);
  font-weight: 700;
  color: var(--grey-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-quantity, .header-total {
  text-align: center;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-200);
}

.cart-item-product {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cart-item-product img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: var(--border-thin);
  background-color: var(--grey-100);
}

.cart-item-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.cart-item-info p {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin: 0 0 0.5rem;
}

.cart-item-info .remove-btn {
  font-size: 0.8rem;
  color: var(--pink);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0;
  font-weight: 600;
  transition: var(--transition);
}

.cart-item-info .remove-btn:hover {
  text-decoration: underline;
}

.cart-item-price-mobile {
  display: none;
}

.cart-item-quantity {
  display: flex;
  justify-content: center;
}

.quantity-selector-alt {
  display: flex;
  border: var(--border);
  align-items: center;
  background-color: var(--white);
  overflow: hidden;
}

.quantity-selector-alt button {
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--grey-100);
  font-weight: 700;
  transition: var(--transition);
}

.quantity-selector-alt button:hover {
  background-color: var(--black);
  color: var(--white);
}

.quantity-selector-alt .quantity-input {
  width: 38px;
  text-align: center;
  border: none;
  border-left: var(--border-thin);
  border-right: var(--border-thin);
  padding: 0.3rem 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-selector-alt .quantity-input::-webkit-outer-spin-button,
.quantity-selector-alt .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-total {
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
}

.cart-summary-panel {
  position: sticky;
  top: 2rem;
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.cart-summary-panel h2 {
  text-align: left;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--grey-600);
}

.total-row {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
}

.cart-summary-panel hr {
  border: none;
  border-top: var(--border-thin);
  margin: 0.5rem 0;
}

.promo-code-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-200);
}

.promo-code-section label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-input-wrapper {
  display: flex;
}

.promo-input-wrapper input {
  width: 100%;
  border: var(--border-thin);
  border-right: none;
  padding: 0.6rem;
  background: var(--white);
}

.promo-input-wrapper input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.promo-input-wrapper .btn-apply-promo {
  padding: 0 1rem;
  background-color: var(--black);
  color: var(--white);
  border: var(--border-thin);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.promo-input-wrapper .btn-apply-promo:hover {
  background-color: var(--off-black);
  border-color: var(--off-black);
}

#promo-message {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  padding: 0.5rem;
  text-align: center;
}

#promo-message.success {
  color: #155724;
  background-color: #d4edda;
  border-left: 3px solid #155724;
}

#promo-message.error {
  color: #b91c1c;
  background-color: #fef2f2;
  border-left: 3px solid #b91c1c;
}

.checkout-btn {
  margin-top: 1.5rem;
}

.payment-methods-accepted {
  text-align: center;
  margin-top: 1.5rem;
}

.payment-methods-accepted p {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.75rem;
  color: var(--grey-400);
}

.cart-empty-message {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--off-white);
  border: var(--border);
  border-radius: var(--radius);
}

.cart-empty-message i {
  font-size: 3rem;
  color: var(--grey-200);
  margin-bottom: 1.5rem;
}

.cart-empty-message h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cart-empty-message p {
  color: var(--grey-600);
  margin-bottom: 2rem;
}

.cart-empty-message .btn-primary {
  padding: 0.8rem 2.5rem;
  width: auto;
}

/* =============================================================
   CHECKOUT PAGE
   ============================================================= */
.checkout-page-section {
  background-color: var(--off-white);
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.checkout-layout-alt {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 0 1rem;
}

.checkout-layout-alt.hidden {
  display: none;
}

.checkout-form-panel .checkout-main-title {
  text-align: left;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.checkout-step {
  background-color: var(--white);
  border: var(--border);
  margin-bottom: 2rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: var(--border);
  background-color: var(--off-white);
}

.step-number {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-header h2 {
  font-size: 1.1rem;
  margin: 0;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkout-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-600);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-thin);
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.payment-options-alt {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-options-alt .payment-option {
  flex: 1;
}

.payment-options-alt input[type="radio"] {
  display: none;
}

.payment-options-alt label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: var(--border-thin);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-options-alt input[type="radio"]:checked + label {
  border-color: var(--black);
  background-color: var(--grey-100);
  color: var(--black);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15);
}

/* ── City "other" input and delivery estimate ─── */
.city-other-input {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-thin);
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition);
  box-sizing: border-box;
}
.city-other-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.checkout-summary-panel {
  position: sticky;
  top: 2rem;
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.checkout-summary-panel h2 {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#summary-item-list {
  max-height: 300px;
  overflow-y: auto;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: var(--border-thin);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-preview-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: var(--border-thin);
  flex-shrink: 0;
}

.summary-preview-item .info span {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

.summary-preview-item .info p {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin: 0;
}

.secure-checkout-text {
  font-size: 0.8rem;
  text-align: center;
  color: var(--grey-600);
  margin-top: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.secure-checkout-text i {
  margin-right: 0.5rem;
  color: var(--pink);
}

/* Payment trust message */
.payment-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-top: 0.75rem;
}
.payment-trust > i { color: #16a34a; font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.payment-trust strong { display: block; font-size: 0.88rem; color: #15803d; margin-bottom: 0.2rem; }
.payment-trust p { font-size: 0.8rem; color: #166534; margin: 0; }

/* Payment gateway badges */
.payment-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-paystack    { background: #011b33; color: #fff; }
.badge-flutterwave { background: #f5a623; color: #1a1a1a; }

/* Flutterwave currency selector row */
.payment-currency-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.payment-currency-row label { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.payment-currency-row select { flex: 1; }

/* Bank transfer details */
.bank-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.9;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 992px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-info-container {
    width: 100%;
  }

  .search-bar {
    width: 100%;
    order: 3;
    margin-top: 0.75rem;
  }

  .logo {
    flex-grow: 1;
  }

  .nav-icons {
    order: 2;
    gap: 12px;
    font-size: 13px;
  }

  .categories {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: initial;
  }

  .hero-right {
    min-height: 400px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }

  #modal-related-products-placeholder .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .handpicked-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  .handpicked-info, .handpicked-items {
    width: 100%;
  }

  .handpicked-items {
    justify-content: center;
    flex-wrap: wrap;
  }

  .ourattributes-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .ourattributes-container p {
    width: 80%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-header {
    font-size: 2.5rem;
    padding: 2rem 1rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
  }

  .bestseller-slider {
    grid-template-columns: repeat(3, 1fr);
  }

  .bestseller-slider-container {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel {
    position: static;
    top: auto;
    margin-top: 2rem;
  }

  .checkout-layout-alt {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 0.75rem;
  }

  .checkout-summary-panel {
    grid-row: 1;
    position: static;
    margin-bottom: 0;
    padding: 1.25rem;
  }

  .checkout-page-section {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }

  .checkout-form-panel .checkout-main-title {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
  }

  .payment-options-alt {
    flex-wrap: wrap;
  }

  .payment-options-alt .payment-option {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .nav-icons > span:nth-of-type(2) {
    display: none;
  }

  .categories {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1.25rem 1rem;
    scrollbar-width: none;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .hero-section {
    padding: 20px 0;
    margin-top: 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-left, .hero-right {
    padding: 20px;
  }

  .hero-text-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-small-cards {
    grid-template-columns: 1fr;
  }

  .hero-right-footer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ourattributes-container {
    padding: 2rem 1rem;
  }

  .statement {
    flex-direction: column;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .product-info-container h1 {
    font-size: 2rem;
  }

  .handpicked-info h3 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .testimonials-section {
    padding: 2rem 1rem;
  }

  .testimonial-header {
    font-size: 2rem;
  }

  .testimonial-card {
    padding: 24px;
  }

  .all-products {
    padding: 0.8rem 2rem;
    margin: 1rem auto;
  }

  .bestseller-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .bestseller-slider .product-card .product-image {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  #modal-related-products-placeholder .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cart-items-header {
    display: none;
  }

  .cart-item-card {
    grid-template-columns: 1fr;
    position: relative;
  }

  .cart-item-product {
    margin-bottom: 1rem;
  }

  .cart-item-quantity {
    justify-content: flex-start;
    grid-row: 2;
  }

  .cart-item-total {
    position: absolute;
    top: 1.5rem;
    right: 0;
    text-align: right;
  }

  .cart-item-price-mobile {
    display: block;
    font-size: 0.85rem;
    color: var(--grey-600);
    margin-bottom: 0.5rem;
  }

  .cart-item-info .remove-btn {
    display: none;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Checkout mobile */
  .checkout-layout-alt {
    padding: 0 0.5rem;
  }

  .checkout-form-panel .checkout-main-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }

  .checkout-step {
    margin-bottom: 1rem;
  }

  .step-header {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .checkout-form {
    padding: 1rem;
  }

  .payment-options-alt {
    gap: 0.6rem;
  }

  .payment-options-alt label {
    font-size: 0.82rem;
    padding: 0.65rem 0.5rem;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .payment-badge {
    margin-left: 0;
  }

  .payment-currency-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .payment-currency-row select {
    width: 100%;
  }

  .checkout-summary-panel {
    padding: 1rem;
  }

  #summary-item-list {
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: row;
    align-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .handpicked-items {
    gap: 1rem;
  }

  .handpicked-items .product-card {
    width: 100%;
  }

  .product-card {
    width: 100%;
  }

  .testimonial-header {
    font-size: 1.8rem;
  }

  .logo img {
    width: 100px;
    height: auto;
  }

  #modal-related-products-placeholder .product-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Checkout smallest screens */
  .checkout-layout-alt {
    padding: 0 0.4rem;
    gap: 0.75rem;
  }

  .checkout-form-panel .checkout-main-title {
    font-size: 1.2rem;
  }

  .checkout-form {
    padding: 0.85rem;
  }

  .step-header {
    padding: 0.65rem 0.85rem;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .step-header h2 {
    font-size: 0.95rem;
  }

  /* Stack all 3 payment options vertically */
  .payment-options-alt {
    flex-direction: column;
    gap: 0.5rem;
  }

  .payment-options-alt .payment-option {
    flex: none;
    width: 100%;
  }

  .payment-options-alt label {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }

  .payment-badge {
    margin-left: auto;
  }

  .payment-trust {
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.75rem;
  }

  .checkout-summary-panel {
    padding: 0.85rem;
  }

  .checkout-summary-panel h2 {
    font-size: 0.9rem;
  }

  #place-order-btn {
    font-size: 0.95rem;
    padding: 0.85rem;
  }
}


/* =============================================================
   ILLUSTRATED CATEGORY MARQUEE — Gumroad style
   ============================================================= */
.cat-marquee {
  overflow: hidden;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.cm-row {
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.cm-row:last-child {
  border-bottom: none;
}

/* Soft edge fade */
.cm-row::before,
.cm-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.cm-row::before {
  left: 0;
  background: linear-gradient(to right, #f9fafb 20%, transparent);
}
.cm-row::after {
  right: 0;
  background: linear-gradient(to left, #f9fafb 20%, transparent);
}

/* Track — the scrolling strip */
.cm-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  white-space: nowrap;
  padding: 0 14px;
}

/* Row directions & speeds */
.cm-row--left .cm-track {
  animation: cm-left 32s linear infinite;
}
.cm-row--right .cm-track {
  animation: cm-right 44s linear infinite;
}
.cm-row--med .cm-track {
  animation: cm-left 38s linear infinite;
}

.cm-row:hover .cm-track {
  animation-play-state: paused;
}

@keyframes cm-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes cm-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Category pills */
.cm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 7px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  font-family: "DM Sans", sans-serif;
}

.cm-pill:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: scale(1.04);
}

/* Subtle tinted pill */
.cm-pill--pink {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}
.cm-pill--pink:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Accent teal pill */
.cm-pill--accent {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* SVG illustration circles between pills */
.cm-illo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.cm-illo:hover {
  transform: rotate(12deg) scale(1.1);
}

.cm-illo svg {
  display: block;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cm-row--left .cm-track,
  .cm-row--right .cm-track,
  .cm-row--med .cm-track {
    animation: none;
  }
}
/* =============================================================
   MOBILE HAMBURGER NAV
   ============================================================= */

/* Hamburger button — hidden on desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 200;
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Animated X state */
.hamburger-btn.is-open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger-btn.is-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
}

/* Mobile drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--white);
  border-right: var(--border);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Safe area for notch */
  padding-top: max(0px, env(safe-area-inset-top));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: var(--border-thin);
  flex-shrink: 0;
}

.drawer-header img {
  height: 30px;
  width: auto;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--black);
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.drawer-close-btn:hover {
  background: var(--pink-pale);
  color: var(--pink);
}

/* Drawer nav links */
.drawer-nav {
  flex: 1;
  padding: 0.75rem 0;
}

.drawer-nav a,
.drawer-nav button.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid var(--grey-100);
}

.drawer-nav a:last-child,
.drawer-nav button.drawer-nav-item:last-child {
  border-bottom: none;
}

.drawer-nav a:hover,
.drawer-nav button.drawer-nav-item:hover {
  background: var(--pink-pale);
  color: var(--pink);
}

.drawer-nav a i,
.drawer-nav button.drawer-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--pink);
  flex-shrink: 0;
}

/* Section divider label inside drawer */
.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  padding: 1rem 1.5rem 0.35rem;
}

/* Drawer footer: contact info */
.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: var(--border-thin);
  background: var(--off-white);
  flex-shrink: 0;
}

.drawer-footer p {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin-bottom: 0.35rem;
}

.drawer-footer a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.drawer-footer a i {
  color: var(--pink);
  font-size: 0.9rem;
}

.drawer-footer a:hover {
  color: var(--pink);
}

/* =============================================================
   NAVBAR ROW WRAPPER — transparent on desktop, flex on mobile
   ============================================================= */
.navbar-row {
  display: contents; /* children participate directly in navbar flex */
}

/* Desktop: fix visual order so search sits between logo and icons */
.search-bar { order: 1; }
.nav-icons   { order: 2; }

/* =============================================================
   MOBILE NAVBAR LAYOUT OVERRIDE (≤ 767px)
   ============================================================= */
@media (max-width: 767px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  /* navbar-row becomes its own flex row: [☰] [logo] [icons] */
  .navbar-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  .hamburger-btn {
    display: flex;
    flex-shrink: 0;
    margin-right: 6px;
  }

  .logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    height: 34px;
    width: auto;
  }

  .nav-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    margin-left: 6px;
    order: 0; /* reset desktop order inside navbar-row context */
  }

  /* Hide phone number text */
  .nav-icons .nav-icon-item span:not(.material-symbols-outlined) {
    display: none;
  }

  /* Hide mail icon */
  .nav-icon-mail {
    display: none;
  }

  /* Search bar — below the row, full width */
  .search-bar {
    order: 0; /* reset desktop order; column layout places it naturally below */
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .search-bar input {
    font-size: 16px;
  }
}

/* Extra small (iPhone SE & below) */
@media (max-width: 375px) {
  .navbar {
    padding: 0.6rem 0.75rem;
  }

  .logo img {
    height: 30px;
  }

  .nav-icons {
    gap: 2px;
  }
}

/* Show overlay and drawer only on mobile */
@media (min-width: 768px) {
  .mobile-nav-overlay,
  .mobile-nav-drawer,
  .hamburger-btn {
    display: none !important;
  }
}

/* =====================================================
   FORM MESSAGES & TOAST
===================================================== */
.form-message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
  font-weight: 600;
  border-left: 3px solid;
  border-radius: 2px;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #155724;
}

.form-message.error {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #b91c1c;
}

/* =====================================================
   MOBILE SEARCH BAR FIX
===================================================== */
@media (max-width: 767px) {
  .search-bar {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* =====================================================
   WHATSAPP CHAT WIDGET
===================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 8900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-widget-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s;
  flex-shrink: 0;
  position: relative;
}

.whatsapp-widget-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.5);
  animation: wa-ring 3s ease-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.whatsapp-widget-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-widget-label {
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.whatsapp-widget:hover .whatsapp-widget-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wa-ring {
  0%        { transform: scale(1);   opacity: 0.55; }
  70%, 100% { transform: scale(1.7); opacity: 0;    }
}

/* WhatsApp pop-up bubble */
.wa-bubble {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 1.1rem 1.1rem 0.9rem;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  border: 1px solid #e5e7eb;
}

.wa-bubble--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-bubble-close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.25rem;
}
.wa-bubble-close:hover { color: #111; }

.wa-bubble-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.3rem;
  padding-right: 1rem;
}

.wa-bubble-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.wa-bubble-cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #25D366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.15s;
}
.wa-bubble-cta:hover { background: #1ebe5a; color: #fff; }

@media (max-width: 480px) {
  .whatsapp-widget { bottom: 1rem; right: 1rem; }
  .whatsapp-widget-btn { width: 50px; height: 50px; font-size: 1.4rem; }
  .whatsapp-widget-label { display: none; }
  .wa-bubble { width: 220px; }
}

@media print { .whatsapp-widget { display: none !important; } }

/* =====================================================
   QUOTE PAGE
===================================================== */
.quote-page-section {
  background: var(--off-white);
  padding: 3rem 1rem 5rem;
  min-height: 70vh;
}

.quote-container {
  max-width: 760px;
  margin: 0 auto;
}

.quote-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.quote-page-header h1 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 0.5rem;
}

.quote-page-header p {
  color: #6b7280;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 2rem 2rem 2.5rem;
}

.quote-section-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  display: block;
}

.quote-section-label:first-child { margin-top: 0; }

.quote-file-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 1.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #f9fafb;
  text-align: center;
}

.quote-file-zone:hover { border-color: #111827; background: #f3f4f6; }
.quote-file-zone i { font-size: 1.6rem; color: #9ca3af; }
.quote-file-zone .fz-hint { font-size: 0.85rem; color: #6b7280; font-weight: 500; }
.quote-file-zone small { font-size: 0.73rem; color: #9ca3af; }
.quote-file-zone.has-file { border-color: #059669; background: #f0fdf4; }
.quote-file-zone.has-file i { color: #059669; }
.quote-file-zone.has-file .fz-hint { color: #065f46; font-weight: 600; }

#quote-logo-input { display: none; }

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.budget-header label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.budget-value {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

input[type="range"].budget-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  accent-color: #111827;
  cursor: pointer;
  border: none;
  padding: 0;
}

.budget-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

.quote-submit-row {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.quote-submit-note {
  font-size: 0.78rem;
  color: #6b7280;
}

.quote-success {
  text-align: center;
  padding: 3.5rem 2rem;
  display: none;
}

.quote-success .success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
}

.quote-success h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.quote-success p  { color: #6b7280; margin-bottom: 1.5rem; }

@media (max-width: 600px) {
  .quote-card { padding: 1.25rem 1rem 1.75rem; }
  .quote-page-header h1 { font-size: 1.6rem; }
  .quote-page-section { padding: 1.5rem 0.75rem 4rem; }
}

/* =====================================================
   TRACKING PAGE
===================================================== */
.tracking-page-section {
  background: var(--off-white);
  padding: 3rem 1rem 5rem;
  min-height: 70vh;
}

.tracking-container {
  max-width: 680px;
  margin: 0 auto;
}

.tracking-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tracking-page-header h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 0.4rem;
}

.tracking-page-header p { color: #6b7280; font-size: 0.95rem; }

.tracking-lookup-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.tracking-lookup-card h2 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #374151;
  margin-bottom: 1.25rem;
}

.tracking-form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.tracking-form-row .form-group { flex: 1; margin-bottom: 0; }
#track-btn { flex-shrink: 0; white-space: nowrap; }

.tracking-error {
  font-size: 0.85rem;
  color: #b91c1c;
  margin-top: 0.75rem;
  display: none;
}

.order-status-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.order-status-card.hidden { display: none; }

.status-card-header {
  background: #111827;
  color: #fff;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  display: block;
  margin-bottom: 0.2rem;
}

.header-value { font-size: 1rem; font-weight: 700; color: #fff; }
.header-value-sm { font-size: 0.88rem; color: #d1d5db; }

.status-card-header-right { text-align: right; }

.status-stepper {
  padding: 1.5rem 1.75rem 0.75rem;
}

.status-step {
  display: flex;
  gap: 1rem;
  position: relative;
}

.status-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  height: calc(100% - 10px);
  width: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.status-step.step-done:not(:last-child)::before    { background: #059669; }
.status-step.step-current:not(:last-child)::before { background: linear-gradient(to bottom, #111827 0%, #e5e7eb 100%); }

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.status-step.step-done    .step-icon { background: #059669; border-color: #059669; color: #fff; }
.status-step.step-current .step-icon { background: #111827; border-color: #111827; color: #fff; }

.step-body {
  flex: 1;
  padding: 4px 0 1.75rem;
}

.step-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d1d5db;
  margin: 0 0 0.15rem;
}

.status-step.step-done    .step-name { color: #059669; }
.status-step.step-current .step-name { color: #111827; }

.step-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
}

.status-step.step-done    .step-meta { color: #6b7280; }
.status-step.step-current .step-meta { color: #374151; font-weight: 600; }

.status-card-footer {
  border-top: 1px solid #f3f4f6;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #f9fafb;
}

.status-card-footer p { font-size: 0.8rem; color: #6b7280; margin: 0; }

@media (max-width: 600px) {
  .tracking-lookup-card { padding: 1.25rem; }
  .tracking-form-row { flex-direction: column; }
  #track-btn { width: 100%; }
  .status-card-header { padding: 1rem 1.25rem; }
  .status-stepper { padding: 1.25rem 1.25rem 0.5rem; }
  .status-card-footer { padding: 0.9rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .tracking-page-section { padding: 1.5rem 0.75rem 4rem; }
  .tracking-page-header h1 { font-size: 1.6rem; }
}

/* =====================================================
   DESIGN UPLOAD CARD (order-confirmation.html)
===================================================== */
.design-upload-card {
  max-width: 640px;
  margin: 2rem auto 0;
  background: #fff;
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.design-upload-icon {
  font-size: 2.2rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.design-upload-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #111827;
}

.design-upload-card > p {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.design-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}
.design-upload-label:hover { background: #e5e7eb; }

.design-file-list {
  margin: 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.design-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
}
.design-file-item i { color: #6b7280; }

.design-upload-status {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}
.design-upload-status.success { color: #16a34a; }
.design-upload-status.error   { color: #dc2626; }

.design-upload-alt {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #9ca3af;
}
.design-upload-alt a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.3rem;
}
.design-upload-alt a:hover { text-decoration: underline; }

@media print { .design-upload-card { display: none !important; } }