/* =========================================================
   CUSTOMER STOREFRONT
   Global Styles
   ========================================================= */

:root {
  --customer-primary: #09075e;
  --customer-secondary: #d71920;
  --customer-text: #1a1a1a;
  --customer-muted: #6b7280;
  --customer-border: #e5e7eb;
  --customer-background: #ffffff;
  --customer-light-background: #f8f8f8;
  --customer-container: 1280px;
  --customer-radius: 8px;
  --customer-transition: 0.2s ease;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--customer-background);
  color: var(--customer-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font-size: 16px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   SHARED CONTAINER
   ========================================================= */

.storefront-container {
  width: min(calc(100% - 40px), var(--customer-container));

  margin-inline: auto;
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */

.storefront-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  background: var(--customer-background);
  border-bottom: 1px solid var(--customer-border);
}

.storefront-page {
  padding-top: 76px;
}

.storefront-header-inner {
  width: min(calc(100% - 40px), var(--customer-container));

  min-height: 76px;
  margin-inline: auto;

  display: flex;
  align-items: center;
  gap: 30px;
}

/* =========================================================
   LOGO
   ========================================================= */

.storefront-logo {
  flex: 0 0 auto;

  width: 150px;
  height: 56px;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  overflow: hidden;

  color: var(--customer-primary);

  text-decoration: none;
}

.storefront-logo img {
  display: block;

  width: auto;
  max-width: 150px;

  height: auto;
  max-height: 50px;

  object-fit: contain;
  object-position: left center;
}

/* =========================================================
   DESKTOP SEARCH
   ========================================================= */

.desktop-search {
  flex: 1;
  max-width: 700px;
  margin-inline: auto;
}

.storefront-search input,
.mobile-search-inner input {
  width: 100%;
  height: 44px;

  padding: 0 16px;

  border: 1px solid var(--customer-border);
  border-radius: var(--customer-radius);

  outline: none;

  background: var(--customer-light-background);
  color: var(--customer-text);

  transition:
    border-color var(--customer-transition),
    background var(--customer-transition);
}

.storefront-search input::placeholder,
.mobile-search-inner input::placeholder {
  color: var(--customer-muted);
}

.storefront-search input:focus,
.mobile-search-inner input:focus {
  border-color: var(--customer-primary);
  background: var(--customer-background);
}

/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.storefront-header-actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============================================================
   CURRENCY SELECTOR
   ============================================================ */

.currency {
  position: relative;
  display: flex;
  align-items: center;
}

/* ------------------------------------------------------------
   CURRENCY BUTTON
   ------------------------------------------------------------ */

.currency-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  height: 40px;
  padding: 0 8px;

  border: 0;
  background: transparent;

  color: inherit;
  font: inherit;

  cursor: pointer;
  white-space: nowrap;
}

/* Nigeria flag */

.currency-button img {
  width: 22px;
  height: 15px;

  object-fit: cover;
  display: block;

  border-radius: 2px;
}

/* NGN */

.currency-button span {
  display: inline-flex;
  align-items: center;
}

/* Arrow */

.currency-button .arrow {
  font-size: 10px;
  line-height: 1;

  transition: transform 0.2s ease;
}

/* Rotate arrow when dropdown is open */

.currency-button[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------
   CURRENCY DROPDOWN
   ------------------------------------------------------------ */

.currency-dropdown {
  position: absolute;

  top: calc(100% + 8px);
  right: 0;

  min-width: 170px;

  padding: 6px;

  background: #ffffff;

  border: 1px solid #e5e5e5;
  border-radius: 8px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

  z-index: 1000;
}

/* ------------------------------------------------------------
   CURRENCY OPTION
   ------------------------------------------------------------ */

.currency-option {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 9px 10px;

  border: 0;
  border-radius: 5px;

  background: transparent;

  color: inherit;
  font: inherit;

  text-align: left;

  cursor: pointer;
}

/* Option flag */

.currency-option img {
  width: 22px;
  height: 15px;

  object-fit: cover;
  display: block;

  border-radius: 2px;
}

/* Option hover */

.currency-option:hover {
  background: #f5f5f5;
}

/* Keyboard focus */

.currency-button:focus-visible,
.currency-option:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 767px) {
  .currency-button {
    height: 38px;
    gap: 6px;
    padding: 0 5px;
  }

  .storefront-page {
    padding-top: 76px;
  }

  .currency-button img {
    width: 20px;
    height: 14px;
  }

  .currency-dropdown {
    right: 0;
    min-width: 160px;
  }
}

/* =========================================================
   CART
   ========================================================= */

.cart-indicator {
  position: relative;

  min-width: 38px;
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--customer-text);

  transition: color var(--customer-transition);
}

.cart-indicator:hover {
  color: var(--customer-primary);
}

.cart-icon {
  font-size: 21px;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -3px;

  min-width: 18px;
  height: 18px;

  padding: 0 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: var(--customer-secondary);
  color: #ffffff;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* =========================================================
   MOBILE SEARCH BUTTON
   ========================================================= */

.mobile-search-button {
  display: none;

  width: 40px;
  height: 40px;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  background: transparent;

  color: var(--customer-text);
}

.mobile-search-button:hover {
  color: var(--customer-primary);
}

.mobile-search-button span {
  font-size: 27px;
  line-height: 1;
}

/* =========================================================
   MOBILE SEARCH PANEL
   ========================================================= */

.mobile-search-panel {
  display: none;

  width: 100%;

  background: var(--customer-background);
  border-top: 1px solid var(--customer-border);
}

.mobile-search-panel[hidden] {
  display: none;
}

.mobile-search-inner {
  width: min(calc(100% - 40px), var(--customer-container));

  min-height: 64px;

  margin-inline: auto;

  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-search-close {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 0;
  background: transparent;

  color: var(--customer-text);

  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-close span {
  font-size: 24px;
}

.mobile-search-inner input {
  height: 42px;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumbs {
  padding-top: 24px;
}

.breadcrumbs .storefront-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  font-size: 14px;
}

.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--customer-muted);

  transition: color var(--customer-transition);
}

.breadcrumb-home:hover {
  color: var(--customer-primary);
}

.breadcrumb-home span:first-child {
  font-size: 16px;
  line-height: 1;
}

.breadcrumb-separator {
  color: var(--customer-muted);
}

.breadcrumb-current {
  color: var(--customer-text);
  font-weight: 500;
}

/* =========================================================
   SHOP HERO
   ========================================================= */

.shop-hero {
  padding: 30px 0 40px;
}

#shop-title {
  text-align: center;
}

.shop-hero h1 {
  margin: 0;

  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;

  color: var(--customer-text);
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */

.shop-products-section {
  padding-bottom: 70px;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.products-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 30px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: var(--customer-background);

  border: 1px solid var(--customer-border);
  border-radius: var(--customer-radius);

  overflow: hidden;

  transition:
    transform var(--customer-transition),
    box-shadow var(--customer-transition);
}

.product-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-card-image {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: var(--customer-light-background);
}

.product-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.product-card-content {
  padding: 18px;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  margin: 0 0 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;

  color: var(--customer-text);
}

.product-card-price {
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-price-current {
  font-size: 17px;
  font-weight: 700;
  color: var(--customer-primary);
}

.product-price-original {
  font-size: 14px;
  color: var(--customer-muted);

  text-decoration: line-through;
}

/* ============================================================
   PRODUCT STOCK BADGE
   ============================================================ */

.product-card-image {
  position: relative;
}

.product-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 4px 8px;

  border-radius: 4px;

  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;

  white-space: nowrap;
}

/* IN STOCK */

.product-stock-in {
  background: #e8f7ed;
  color: #18733a;
}

/* OUT OF STOCK */

.product-stock-out {
  background: #fceaea;
  color: #b42318;
}

/* =========================================================
   PRODUCT CARD CTA
   ========================================================= */

.product-card-button {
  width: 100%;
  min-height: 44px;

  margin-top: auto;
  padding: 10px 16px;

  border: 1px solid var(--customer-primary);
  border-radius: var(--customer-radius);

  background: var(--customer-primary);
  color: #ffffff;

  font-weight: 600;

  transition:
    background var(--customer-transition),
    color var(--customer-transition),
    border-color var(--customer-transition);
}

.product-card-button:hover {
  background: transparent;
  color: var(--customer-primary);
}

.product-card-button:disabled,
.product-card-button.out-of-stock {
  background: var(--customer-light-background);
  border-color: var(--customer-border);
  color: var(--customer-muted);
  cursor: not-allowed;
  opacity: 1;
}

.product-card-button:disabled:hover,
.product-card-button.out-of-stock:hover {
  background: var(--customer-light-background);
  border-color: var(--customer-border);
  color: var(--customer-muted);
}

/* =========================================================
   PRODUCT STATES
   ========================================================= */

.products-state {
  min-height: 30px;

  padding: 20px 0;

  text-align: center;

  color: var(--customer-muted);
}

.products-state:empty {
  display: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
  margin-top: 45px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-button {
  min-width: 40px;
  height: 40px;

  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--customer-border);
  border-radius: 6px;

  background: var(--customer-background);
  color: var(--customer-text);

  transition:
    background var(--customer-transition),
    color var(--customer-transition),
    border-color var(--customer-transition);
}

.pagination-button:hover {
  border-color: var(--customer-primary);
  color: var(--customer-primary);
}

.pagination-button.active {
  border-color: var(--customer-primary);
  background: var(--customer-primary);
  color: #ffffff;
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-button:disabled:hover {
  border-color: var(--customer-border);
  background: var(--customer-background);
  color: var(--customer-text);
}

/* =========================================================
   FOOTER
   ========================================================= */

.storefront-footer {
  margin-top: auto;

  background: #111111;
  color: #ffffff;
}

.footer-main {
  padding: 60px 0 45px;

  display: grid;

  grid-template-columns:
    1.5fr
    1fr
    1fr
    1.2fr;

  gap: 40px;
}

.storefront-footer .storefront-logo {
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-description {
  max-width: 320px;

  margin: 0;

  color: #b8b8b8;

  font-size: 14px;
}

.footer-links-group,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links-group h2,
.footer-contact h2 {
  margin: 0 0 18px;

  font-size: 16px;
  font-weight: 600;

  color: #ffffff;
}

.footer-links-group a {
  margin-bottom: 10px;

  color: #b8b8b8;

  font-size: 14px;

  transition: color var(--customer-transition);
}

.footer-links-group a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin: 0 0 10px;

  color: #b8b8b8;

  font-size: 14px;
}

.footer-bottom {
  min-height: 70px;

  padding: 20px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;

  color: #999999;

  font-size: 13px;
}

.footer-bottom a {
  color: #ffffff;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
  .storefront-header-inner {
    gap: 20px;
  }

  .storefront-logo {
    min-width: 120px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
  .storefront-container,
  .storefront-header-inner,
  .mobile-search-inner {
    width: min(calc(100% - 30px), var(--customer-container));
  }

  /* ------------------------------
     Header
     ------------------------------ */

  .storefront-header-inner {
    min-height: 64px;

    gap: 8px;
  }

    .storefront-logo {
    width: 120px;
    height: 52px;
  }

  .storefront-logo img {
    max-width: 120px;
    max-height: 44px;
  }

  .desktop-search {
    display: none;
  }

  .storefront-header-actions {
    gap: 4px;
  }

  .mobile-search-button {
    display: inline-flex;
  }

  .currency-button {
    min-height: 40px;
    padding: 0 4px;

    font-size: 14px;
  }

  .currency-dropdown {
    right: -10px;
  }

  .cart-indicator {
    min-width: 38px;
  }

  /* ------------------------------
     Mobile Search
     ------------------------------ */

  .mobile-search-panel {
    display: block;
  }

  /* ------------------------------
     Breadcrumbs
     ------------------------------ */

  .breadcrumbs {
    padding-top: 18px;
  }

  .breadcrumbs .storefront-container {
    font-size: 13px;
  }

  /* ------------------------------
     Shop Hero
     ------------------------------ */

  .shop-hero {
    padding: 24px 0 30px;
  }

  .shop-hero h1 {
    font-size: 32px;
  }

  /* ------------------------------
     Products
     ------------------------------ */

  .shop-products-section {
    padding-bottom: 50px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
  }

  .product-card-content {
    padding: 13px;
  }

  .product-card-name {
    margin-bottom: 7px;

    font-size: 12px;
  }

  .product-card-price {
    margin-bottom: 14px;

    gap: 5px;
  }

  .product-price-current {
    font-size: 15px;
  }

  .product-price-original {
    font-size: 12px;
  }

  .product-card-button {
    min-height: 40px;

    padding: 8px 10px;

    font-size: 13px;
  }

  /* ------------------------------
     Pagination
     ------------------------------ */

  .pagination {
    margin-top: 35px;

    gap: 5px;
  }

  .pagination-button {
    min-width: 36px;
    height: 36px;

    padding: 0 8px;

    font-size: 14px;
  }

  /* ------------------------------
     Footer
     ------------------------------ */

  .footer-main {
    padding: 45px 0 35px;

    grid-template-columns: 1fr;

    gap: 30px;
  }

  .footer-bottom {
    padding: 20px 0;

    flex-direction: column;
    align-items: flex-start;

    gap: 8px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
  .storefront-container,
  .storefront-header-inner,
  .mobile-search-inner {
    width: calc(100% - 24px);
  }

  .storefront-header-inner {
    gap: 4px;
  }

  .storefront-header-actions {
    gap: 0;
  }

  .currency-button {
    font-size: 13px;
  }

  .products-grid {
    gap: 10px;
  }

  .product-card-content {
    padding: 11px;
  }

  .product-card-button {
    font-size: 12px;
  }

  .pagination-button {
    min-width: 34px;
    height: 34px;
  }
}

/* =========================================================
   PRODUCT DETAILS
   Product page content only
   Shared storefront styles remain unchanged.
   ========================================================= */

/* ---------------------------------------------------------
   PRODUCT DETAILS LAYOUT
   --------------------------------------------------------- */

.product-details-section {
  padding: 40px 0 64px;
}

.product-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 56px;
  align-items: start;
}

/* ---------------------------------------------------------
   PRODUCT GALLERY
   --------------------------------------------------------- */

.product-gallery {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.product-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-thumbnail {
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.product-thumbnail:hover {
  border-color: #999999;
}

.product-thumbnail.active {
  border-color: #111111;
}

.product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main-image {
  position: relative;
  min-width: 0;
}

.product-main-image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.product-gallery-button:hover {
  background: #ffffff;
  border-color: #999999;
}

.product-gallery-previous {
  left: 16px;
}

.product-gallery-next {
  right: 16px;
}

.product-gallery-button[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   PRODUCT INFORMATION
   --------------------------------------------------------- */

.product-information {
  min-width: 0;
  padding-top: 8px;
}

.product-details-name {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: #111111;
}

.product-details-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #111111;
}

.product-details-price .current-price {
  color: #111111;
}

.product-details-price .original-price {
  color: #888888;
  font-size: 17px;
  font-weight: 400;
  text-decoration: line-through;
}

.product-details-stock {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 22px;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.product-details-stock.in-stock {
  background: #eef7ee;
  color: #2f6b35;
}

.product-details-stock.out-of-stock {
  background: #f8eeee;
  color: #9b3030;
}

.product-details-description {
  margin-bottom: 28px;
  color: #555555;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   PRODUCT OPTIONS
   --------------------------------------------------------- */

.product-options {
  margin-bottom: 28px;
}

.product-option-group {
  margin-bottom: 20px;
}

.product-option-label {
  display: block;
  margin-bottom: 10px;
  color: #111111;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.product-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-option-value {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.product-option-value:hover {
  border-color: #999999;
}

.product-option-value.selected {
  border-color: #111111;
  background: #09075e;
  color: #ffffff;
}

.product-option-value:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   QUANTITY
   --------------------------------------------------------- */

.product-quantity-section {
  margin-bottom: 20px;
}

.product-control-label {
  display: block;
  margin-bottom: 10px;
  color: #111111;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.product-quantity-control {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  overflow: hidden;
}

.product-quantity-control button {
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #111111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-quantity-control button:hover {
  background: #f5f5f5;
}

.product-quantity-control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-quantity-control span {
  min-width: 48px;
  padding: 0 10px;
  text-align: center;
  color: #111111;
  font-size: 15px;
  font-weight: 500;
}

/* ---------------------------------------------------------
   ADD TO CART
   --------------------------------------------------------- */

.product-add-to-cart {
  width: 100%;
  min-height: 52px;
  margin-bottom: 28px;
  padding: 14px 20px;
  border: 1px solid #111111;
  border-radius: 3px;
  background: #09075e;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.product-add-to-cart:hover {
  background: #333333;
  border-color: #333333;
}

.product-add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ---------------------------------------------------------
   SHARE PRODUCT
   --------------------------------------------------------- */

.product-share-section {
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.product-share-title {
  margin: 0 0 14px;
  color: #111111;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.product-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  gap: 7px;
  white-space: nowrap;
}

.product-share-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.product-share-link:hover {
  border-color: #09075e;
  background: #09075e;
  color: #ffffff;
}

.product-share-link:focus-visible {
  outline: 2px solid #09075e;
  outline-offset: 3px;
}

.product-share-link.share-whatsapp {
  border-color: #25a244;
  color: #167d32;
}

.product-share-link.share-whatsapp:hover {
  background: #25a244;
  color: #ffffff;
}

.product-share-link.share-facebook {
  border-color: #1877f2;
  color: #145fc0;
}

.product-share-link.share-facebook:hover {
  background: #1877f2;
  color: #ffffff;
}

.product-share-link.share-x {
  border-color: #333333;
  color: #222222;
}

.product-share-link.share-x:hover {
  background: #222222;
  color: #ffffff;
}

.product-share-link.share-copy,
.product-share-link.share-native {
  border-color: #09075e;
  color: #09075e;
}

.product-share-link.share-copy:hover,
.product-share-link.share-native:hover {
  background: #09075e;
  color: #ffffff;
}

.product-share-link[hidden] {
  display: none;
}

.product-share-message {
  margin: 12px 0 0;
  color: #167d32;
  font-size: 13px;
  line-height: 1.5;
}

.product-share-message[hidden] {
  display: none;
}

/* SHARE PRODUCT — DARK MODE */

body.dark-mode .product-share-section {
  border-color: #444444;
}

body.dark-mode .product-share-title {
  color: #f5f5f5;
}

body.dark-mode .product-share-link {
  border-color: #555555;
  background: #242424;
  color: #f5f5f5;
}

body.dark-mode .product-share-link:hover {
  border-color: #777777;
  background: #09075e;
  color: #ffffff;
}

body.dark-mode .product-share-link.share-whatsapp {
  border-color: #25a244;
  color: #6ee795;
}

body.dark-mode .product-share-link.share-whatsapp:hover {
  background: #25a244;
  color: #ffffff;
}

body.dark-mode .product-share-link.share-facebook {
  border-color: #1877f2;
  color: #8abaff;
}

body.dark-mode .product-share-link.share-facebook:hover {
  background: #1877f2;
  color: #ffffff;
}

body.dark-mode .product-share-link.share-x {
  border-color: #777777;
  color: #ffffff;
}

body.dark-mode .product-share-link.share-x:hover {
  background: #111111;
  color: #ffffff;
}

body.dark-mode .product-share-link.share-copy,
body.dark-mode .product-share-link.share-native {
  border-color: #777777;
  color: #ffffff;
}

body.dark-mode .product-share-link.share-copy:hover,
body.dark-mode .product-share-link.share-native:hover {
  background: #09075e;
  color: #ffffff;
}

body.dark-mode .product-share-message {
  color: #6ee795;
}

@media (max-width: 480px) {
  .product-share-actions {
    gap: 8px;
  }

  .product-share-link {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* ---------------------------------------------------------
   PRODUCT META
   --------------------------------------------------------- */

.product-meta {
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.product-meta-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
}

.product-meta-item > span:first-child {
  min-width: 68px;
  color: #111111;
  font-weight: 600;
}

.product-meta-item a {
  color: #555555;
  text-decoration: none;
}

.product-meta-item a:hover {
  color: #111111;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   LOADING / ERROR STATES
   --------------------------------------------------------- */

.product-loading-state,
.product-error-state {
  padding: 40px 0;
  color: #666666;
  font-size: 15px;
  line-height: 1.6;
}

.product-error-state {
  color: #9b3030;
}

/* ---------------------------------------------------------
   PRODUCT DESCRIPTION
   --------------------------------------------------------- */

.product-description-section {
  padding: 0 0 64px;
}

.product-description-section h2 {
  margin: 0 0 20px;
  color: #111111;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.product-description-content {
  max-width: 850px;
  color: #555555;
  font-size: 15px;
  line-height: 1.8;
}

.product-description-content p {
  margin: 0 0 16px;
}

.product-description-content p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   RELATED PRODUCTS
   --------------------------------------------------------- */

.related-products-section {
  padding: 0 0 72px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: #111111;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

.related-products-grid {
  margin-top: 0;
}

/* ---------------------------------------------------------
   RESPONSIVE — TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .product-details-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-information {
    padding-top: 0;
  }

  .product-details-name {
    font-size: 28px;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
  .product-details-section {
    padding: 24px 0 48px;
  }

  .product-details-layout {
    gap: 32px;
  }

  .product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .product-main-image {
    order: 1;
  }

  .product-thumbnails {
    order: 2;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-thumbnail {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
  }

  .product-main-image-frame {
    aspect-ratio: 1 / 1;
  }

  .product-gallery-button {
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .product-gallery-previous {
    left: 10px;
  }

  .product-gallery-next {
    right: 10px;
  }

  .product-details-name {
    margin-bottom: 14px;
    font-size: 25px;
  }

  .product-details-price {
    margin-bottom: 16px;
    font-size: 21px;
  }

  .product-details-price .original-price {
    font-size: 15px;
  }

  .product-details-description {
    margin-bottom: 24px;
  }

  .product-description-section {
    padding-bottom: 48px;
  }

  .product-description-section h2 {
    font-size: 20px;
  }

  .related-products-section {
    padding-bottom: 56px;
  }

  .section-heading h2 {
    font-size: 21px;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE — SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 380px) {
  .product-thumbnail {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .product-details-name {
    font-size: 23px;
  }

  .product-gallery-button {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}

/* =========================================================
   PRODUCT DESCRIPTION
   ========================================================= */

.product-description-section {
  padding: 0;
}

.product-description-section h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

.product-description {
  max-width: 900px;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

.product-description p {
  margin: 0 0 18px;
}

.product-description p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   PRODUCT DESCRIPTION - MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .product-description-section {
    padding: 0;
  }

  .product-description-section h2 {
    margin-bottom: 18px;
    font-size: 1.3rem;
  }

  .product-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .product-description p {
    margin-bottom: 16px;
  }
}

/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.related-products-section {
  padding: 64px 0 0;
}

.related-products-section .section-heading {
  margin-bottom: 28px;
}

.related-products-section .section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

.related-products-grid {
  margin-top: 0;
}

/* =========================================================
   RELATED PRODUCTS - MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .related-products-section {
    padding: 48px 0 0;
  }

  .related-products-section .section-heading {
    margin-bottom: 20px;
  }

  .related-products-section .section-heading h2 {
    font-size: 1.3rem;
  }
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

.category-hero {
  padding: 32px 0 24px;
}

#category-title {
  text-align: center;
}

.category-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.category-description {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.category-products-section {
  padding: 8px 0 56px;
}

/* ============================================================
   CATEGORY PAGE — MOBILE
   ============================================================ */

@media (max-width: 767px) {
  .category-hero {
    padding: 24px 0 18px;
  }

  .category-hero h1 {
    font-size: 26px;
  }

  .category-description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
  }

  .category-products-section {
    padding-bottom: 40px;
  }
}

/* ======================================================
   SEARCH PAGE
====================================================== */

#search-title {
  text-align: center;
}

.search-page .search-hero {
  padding: 32px 0 24px;
}

.search-page .search-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.search-query {
  text-align: center;
}

.search-page .search-query {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.search-page .search-results-section {
  padding: 0 0 64px;
}

/* ======================================================
   SEARCH PAGE — MOBILE
====================================================== */

@media (max-width: 767px) {
  .search-page .search-hero {
    padding: 24px 0 20px;
  }

  .search-page .search-hero h1 {
    font-size: 26px;
  }

  .search-page .search-query {
    margin-top: 8px;
    font-size: 14px;
  }

  .search-page .search-results-section {
    padding-bottom: 48px;
  }
}

/* ============================================================
   CART PAGE
   ============================================================ */

.cart-page .cart-hero {
  padding: 32px 0 24px;
}

#cart-title {
  text-align: center;
}

.cart-page .cart-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

/* ============================================================
   CART SECTION
   ============================================================ */

.cart-page .cart-section {
  padding: 0 0 72px;
}

.cart-page .cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

/* ============================================================
   CART ITEMS
   ============================================================ */

.cart-page .cart-items-section {
  min-width: 0;
}

.cart-page .cart-items-header {
  margin-bottom: 20px;
}

.cart-page .cart-items-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.cart-page .cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   CART ITEM
   ============================================================ */

.cart-page .cart-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
}

.cart-page .cart-item-image {
  width: 150px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.cart-page .cart-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page .cart-item-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  color: #777777;
}

/* ============================================================
   CART ITEM DETAILS
   ============================================================ */

.cart-page .cart-item-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cart-page .cart-item-name {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.cart-page .cart-item-name a {
  color: inherit;
  text-decoration: none;
}

.cart-page .cart-item-name a:hover {
  text-decoration: underline;
}

.cart-page .cart-item-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.cart-page .cart-item-options p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cart-page .cart-item-sku {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #777777;
}

.cart-page .cart-item-price {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   QUANTITY
   ============================================================ */

.cart-page .cart-item-quantity {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.cart-page .cart-item-quantity-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.cart-page .quantity-controls {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.cart-page .quantity-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #222222;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cart-page .quantity-button:hover:not(:disabled) {
  background: #f5f5f5;
}

.cart-page .quantity-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-page .quantity-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 8px;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  font-size: 15px;
  font-weight: 600;
}

/* ============================================================
   LINE TOTAL
   ============================================================ */

.cart-page .cart-item-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.cart-page .cart-item-total-label {
  font-size: 13px;
  color: #777777;
}

.cart-page .cart-item-total-value {
  font-size: 18px;
  line-height: 1.4;
}

/* ============================================================
   REMOVE
   ============================================================ */

.cart-page .cart-item-remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: #777777;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}

.cart-page .cart-item-remove:hover {
  color: #222222;
}

/* ============================================================
   CART SUMMARY
   ============================================================ */

.cart-page .cart-summary {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
}

.cart-page .cart-summary h2 {
  margin: 0 0 24px;
  font-size: 21px;
  line-height: 1.3;
}

.cart-page .cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.cart-page .cart-summary-row strong {
  font-size: 16px;
}

.cart-page .cart-summary-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0 18px;
  background: #e5e5e5;
}

.cart-page .cart-summary-total {
  margin-bottom: 24px;
}

.cart-page .cart-summary-total span,
.cart-page .cart-summary-total strong {
  font-size: 18px;
  font-weight: 700;
}

/* ============================================================
   CHECKOUT BUTTON
   ============================================================ */

.cart-page .cart-checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #09075e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.cart-page .cart-checkout-button:hover {
  opacity: 0.9;
}

.cart-page .cart-checkout-button:active {
  transform: translateY(1px);
}

/* ============================================================
   CONTINUE SHOPPING
   ============================================================ */

.cart-page .cart-continue-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: #222222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
}

.cart-page .cart-summary .cart-continue-shopping {
  width: 100%;
}

/* ============================================================
   EMPTY CART
   ============================================================ */

.cart-page .cart-empty-state {
  padding: 56px 20px;
  text-align: center;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
}

.cart-page .cart-empty-state h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.cart-page .cart-empty-state p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {
  .cart-page .cart-content {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .cart-page .cart-item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
  }

  .cart-page .cart-item-image {
    width: 120px;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {
  .cart-page .cart-hero {
    padding: 24px 0 20px;
  }

  .cart-page .cart-hero h1 {
    font-size: 26px;
  }

  .cart-page .cart-section {
    padding-bottom: 48px;
  }

  .cart-page .cart-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .cart-page .cart-items-header {
    margin-bottom: 16px;
  }

  .cart-page .cart-items-header h2 {
    font-size: 20px;
  }

  .cart-page .cart-items {
    gap: 12px;
  }

  .cart-page .cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
  }

  .cart-page .cart-item-image {
    width: 96px;
    border-radius: 6px;
  }

  .cart-page .cart-item-name {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .cart-page .cart-item-options {
    margin-bottom: 5px;
  }

  .cart-page .cart-item-options p {
    font-size: 13px;
  }

  .cart-page .cart-item-sku {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .cart-page .cart-item-price {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .cart-page .cart-item-quantity {
    margin-bottom: 12px;
  }

  .cart-page .quantity-button {
    width: 34px;
    height: 34px;
  }

  .cart-page .quantity-value {
    min-width: 38px;
    height: 34px;
  }

  .cart-page .cart-item-total {
    margin-bottom: 10px;
  }

  .cart-page .cart-item-total-value {
    font-size: 16px;
  }

  .cart-page .cart-summary {
    position: static;
    padding: 20px;
  }

  .cart-page .cart-summary h2 {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .cart-page .cart-summary-total span,
  .cart-page .cart-summary-total strong {
    font-size: 17px;
  }

  .cart-page .cart-empty-state {
    padding: 44px 16px;
  }

  .cart-page .cart-empty-state h2 {
    font-size: 21px;
  }
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {
  .cart-page .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .cart-page .cart-item-image {
    width: 82px;
  }

  .cart-page .cart-item-name {
    font-size: 15px;
  }

  .cart-page .cart-item-price {
    font-size: 14px;
  }
}

/* =========================================================
   SUCCESS PAGE
   ========================================================= */

/* =========================================================
   SUCCESS SECTION
   ========================================================= */

.success-section {
  padding: 48px 0 80px;
}

.success-card {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: var(--customer-background);
  border: 1px solid var(--customer-border);
  border-radius: var(--customer-radius);
  box-shadow: var(--customer-shadow);
  overflow: hidden;
}


/* =========================================================
   SUCCESS STATES
   ========================================================= */

.success-state {
  padding: 56px 48px;
  text-align: center;
}

.success-state-content {
  max-width: 620px;
  margin: 0 auto;
}

.success-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--customer-primary);
}

.success-state h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--customer-text);
}

.success-description {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--customer-muted);
}


/* =========================================================
   PAYMENT VERIFICATION STATE
   ========================================================= */

.success-verification-state {
  padding-top: 64px;
  padding-bottom: 64px;
}

.success-loading-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border: 3px solid var(--customer-border);
  border-top-color: var(--customer-primary);
  border-radius: 50%;
  animation: success-loading-spin 0.9s linear infinite;
}

.success-loading-icon span {
  position: absolute;
  inset: 9px;
  border: 2px solid transparent;
  border-top-color: var(--customer-primary);
  border-radius: 50%;
  opacity: 0.45;
}

@keyframes success-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   SUCCESS DETAIL VALUE + COPY ACTION
   ========================================================= */

.success-detail-value-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.success-detail-value-row .success-detail-value {
  min-width: 0;
}

.success-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--customer-border);
  border-radius: 6px;
  background: var(--customer-background);
  color: var(--customer-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--customer-transition),
    border-color var(--customer-transition),
    color var(--customer-transition);
}

.success-copy-button:hover {
  border-color: var(--customer-primary);
  color: var(--customer-primary);
}

.success-copy-button:focus-visible {
  outline: 2px solid var(--customer-primary);
  outline-offset: 2px;
}

.success-copy-button.is-copied {
  border-color: var(--customer-primary);
  background: var(--customer-primary);
  color: #ffffff;
}

.success-copy-icon {
  font-size: 14px;
  line-height: 1;
}

.success-copy-feedback {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--customer-primary);
}


/* =========================================================
   SUCCESS ACTIONS — THREE BUTTONS
   ========================================================= */

.success-actions {
  gap: 10px;
}

.success-actions .success-button {
  min-width: 150px;
}


/* =========================================================
   MOBILE COPY ACTIONS
   ========================================================= */

@media (max-width: 480px) {
  .success-detail-value-row {
    flex-wrap: wrap;
    gap: 7px;
  }

  .success-copy-button {
    min-height: 29px;
    padding: 5px 8px;
  }

  .success-copy-text {
    font-size: 10px;
  }

  .success-actions {
    gap: 10px;
  }

  .success-actions .success-button {
    width: 100%;
  }
}


/* =========================================================
   SUCCESS ICON
   ========================================================= */

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 28px;
  border: 2px solid var(--customer-primary);
  border-radius: 50%;
  background: var(--customer-background);
  color: var(--customer-primary);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.success-confirmed-state {
  padding-top: 64px;
}


/* =========================================================
   SUCCESS DETAILS
   ========================================================= */

.success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 0;
  border: 1px solid var(--customer-border);
  border-radius: var(--customer-radius);
  overflow: hidden;
  background: var(--customer-surface);
}

.success-detail {
  min-width: 0;
  padding: 22px 18px;
  text-align: center;
}

.success-detail + .success-detail {
  border-left: 1px solid var(--customer-border);
}

.success-detail-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--customer-muted);
}

.success-detail-value {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--customer-text);
}

.success-detail-reference {
  font-size: 13px;
}


/* =========================================================
   SUCCESS ACTIONS
   ========================================================= */

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.success-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--customer-radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--customer-transition),
    border-color var(--customer-transition),
    color var(--customer-transition),
    box-shadow var(--customer-transition),
    transform var(--customer-transition);
}

.success-button:hover {
  transform: translateY(-1px);
}

.success-button:focus-visible {
  outline: 2px solid var(--customer-primary);
  outline-offset: 3px;
}

.success-button-primary {
  background: var(--customer-primary);
  border-color: var(--customer-primary);
  color: #ffffff;
}

.success-button-primary:hover {
  background: var(--customer-primary-dark, var(--customer-primary));
  border-color: var(--customer-primary-dark, var(--customer-primary));
}

.success-button-secondary {
  background: var(--customer-background);
  border-color: var(--customer-border);
  color: var(--customer-text);
}

.success-button-secondary:hover {
  background: var(--customer-surface);
  border-color: var(--customer-primary);
  color: var(--customer-primary);
}


/* =========================================================
   ERROR STATE
   ========================================================= */

.success-error-state {
  padding-top: 64px;
  padding-bottom: 64px;
}

.success-error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 28px;
  border: 2px solid var(--customer-error, #d71920);
  border-radius: 50%;
  background: var(--customer-background);
  color: var(--customer-error, #d71920);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.success-error-details {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.success-error-details .success-detail + .success-detail {
  border-left: 0;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.success-button:focus:not(:focus-visible) {
  outline: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {
  .success-section {
    padding: 36px 0 60px;
  }

  .success-state {
    padding: 48px 28px;
  }

  .success-verification-state,
  .success-confirmed-state,
  .success-error-state {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .success-details {
    grid-template-columns: 1fr;
  }

  .success-detail + .success-detail {
    border-top: 1px solid var(--customer-border);
    border-left: 0;
  }

  .success-detail {
    padding: 18px 20px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .success-section {
    padding: 24px 0 48px;
  }

  .success-card {
    border-radius: var(--customer-radius);
  }

  .success-state {
    padding: 40px 20px;
  }

  .success-verification-state,
  .success-confirmed-state,
  .success-error-state {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .success-loading-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
  }

  .success-icon,
  .success-error-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
  }

  .success-icon {
    font-size: 34px;
  }

  .success-error-icon {
    font-size: 30px;
  }

  .success-eyebrow {
    font-size: 11px;
  }

  .success-state h1 {
    font-size: 27px;
  }

  .success-description {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .success-details {
    margin-top: 30px;
  }

  .success-detail {
    padding: 17px 16px;
  }

  .success-detail-value {
    font-size: 14px;
  }

  .success-detail-reference {
    font-size: 12px;
  }

  .success-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 28px;
  }

  .success-button {
    width: 100%;
    min-height: 46px;
  }
}

/* =========================================================
   TRACK ORDER PAGE
   ========================================================= */

/* =========================================================
   PAGE SECTION
   ========================================================= */

.track-order-section {
  padding: 48px 0 72px;
}

.track-order-card {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* =========================================================
   PAGE INTRO
   ========================================================= */

.track-order-header {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.track-order-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--customer-primary, #09075e);
}

.track-order-header h1,
.track-order-result-header h2 {
  margin: 0;
  color: var(--customer-heading, #111827);
  line-height: 1.2;
}

.track-order-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.track-order-description {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--customer-text-muted, #6b7280);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* =========================================================
   TRACKING FORM
   ========================================================= */

.track-order-form {
  width: 100%;
  padding: 28px;
  background: var(--customer-background, #ffffff);
  border: 1px solid var(--customer-border, #e5e7eb);
  border-radius: var(--customer-radius, 12px);
  box-shadow: var(
    --customer-shadow,
    0 8px 30px rgba(0, 0, 0, 0.06)
  );
}

.track-order-field {
  margin-bottom: 20px;
}

.track-order-field:last-of-type {
  margin-bottom: 22px;
}

.track-order-label {
  display: block;
  margin-bottom: 8px;
  color: var(--customer-heading, #111827);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.track-order-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--customer-text, #1f2937);
  background: #ffffff;
  border: 1px solid var(--customer-border, #d1d5db);
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition:
    border-color var(--customer-transition, 0.2s ease),
    box-shadow var(--customer-transition, 0.2s ease);
}

.track-order-input::placeholder {
  color: #9ca3af;
}

.track-order-input:hover {
  border-color: #b8bdc7;
}

.track-order-input:focus {
  border-color: var(--customer-primary, #09075e);
  box-shadow: 0 0 0 3px rgba(9, 7, 94, 0.1);
}

/* =========================================================
   FIELD ERROR
   ========================================================= */

.track-order-field-error {
  margin: 7px 0 0;
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.45;
}

.track-order-input[aria-invalid="true"] {
  border-color: #d92d20;
}

.track-order-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

/* =========================================================
   FORM MESSAGE
   ========================================================= */

.track-order-message {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.track-order-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.track-order-submit {
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--customer-primary, #09075e);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color var(--customer-transition, 0.2s ease),
    transform var(--customer-transition, 0.2s ease),
    box-shadow var(--customer-transition, 0.2s ease);
}

.track-order-submit:hover {
  background: #07064d;
  box-shadow: 0 6px 18px rgba(9, 7, 94, 0.16);
}

.track-order-submit:active {
  transform: translateY(1px);
}

.track-order-submit:focus-visible {
  outline: 3px solid rgba(9, 7, 94, 0.2);
  outline-offset: 2px;
}

.track-order-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   TRACKING RESULT
   ========================================================= */

.track-order-result {
  width: 100%;
  margin-top: 36px;
  padding: 28px;
  background: var(--customer-background, #ffffff);
  border: 1px solid var(--customer-border, #e5e7eb);
  border-radius: var(--customer-radius, 12px);
  box-shadow: var(
    --customer-shadow,
    0 8px 30px rgba(0, 0, 0, 0.06)
  );
}

.track-order-result-header {
  margin-bottom: 24px;
}

.track-order-result-header h2 {
  margin-top: 4px;
  font-size: 1.45rem;
}

/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.track-order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--customer-border, #e5e7eb);
  border: 1px solid var(--customer-border, #e5e7eb);
  border-radius: 10px;
}

.track-order-summary-item {
  min-width: 0;
  padding: 18px;
  background: var(--customer-background, #ffffff);
}

.track-order-summary-label {
  display: block;
  margin-bottom: 7px;
  color: var(--customer-text-muted, #6b7280);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-order-summary-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--customer-heading, #111827);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* =========================================================
   ORDER STATUS
   ========================================================= */

.track-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   TIMELINE
   ========================================================= */

.track-order-timeline {
  padding-top: 4px;
}

.track-order-timeline h3 {
  margin: 0 0 22px;
  color: var(--customer-heading, #111827);
  font-size: 1.08rem;
  line-height: 1.4;
}

.track-order-timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   TIMELINE ITEM
   ========================================================= */

.track-order-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  min-height: 76px;
}

.track-order-timeline-item:last-child {
  min-height: auto;
}

/* Vertical connector */

.track-order-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 13px;
  width: 1px;
  height: calc(100% - 4px);
  background: var(--customer-border, #d1d5db);
}

/* Timeline marker */

.track-order-timeline-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--customer-primary, #09075e);
  border-radius: 50%;
  color: #ffffff;
  background: var(--customer-primary, #09075e);
  font-size: 0.7rem;
  line-height: 1;
}

/* Timeline content */

.track-order-timeline-content {
  min-width: 0;
  padding-bottom: 24px;
}

.track-order-timeline-item:last-child
  .track-order-timeline-content {
  padding-bottom: 0;
}

.track-order-timeline-status {
  margin: 0;
  color: var(--customer-heading, #111827);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.track-order-timeline-note {
  margin: 4px 0 0;
  color: var(--customer-text-muted, #6b7280);
  font-size: 0.86rem;
  line-height: 1.5;
}

.track-order-timeline-date {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* =========================================================
   EMPTY / NOT FOUND
   ========================================================= */

.track-order-empty {
  width: 100%;
  margin-top: 36px;
  padding: 36px 28px;
  text-align: center;
  background: var(--customer-background, #ffffff);
  border: 1px solid var(--customer-border, #e5e7eb);
  border-radius: var(--customer-radius, 12px);
}

.track-order-empty h2 {
  margin: 0;
  color: var(--customer-heading, #111827);
  font-size: 1.3rem;
  line-height: 1.35;
}

.track-order-empty p {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--customer-text-muted, #6b7280);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =========================================================
   LOADING STATE
   ========================================================= */

.track-order-submit.is-loading {
  position: relative;
  cursor: wait;
}

.track-order-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 9px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: track-order-spin 0.7s linear infinite;
}

@keyframes track-order-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 767px) {
  .track-order-section {
    padding: 36px 0 56px;
  }

  .track-order-header {
    margin-bottom: 28px;
  }

  .track-order-description {
    font-size: 0.92rem;
  }

  .track-order-form,
  .track-order-result {
    padding: 22px;
  }

  .track-order-summary-item {
    padding: 15px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {
  .track-order-section {
    padding: 28px 0 44px;
  }

  .track-order-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .track-order-header h1 {
    font-size: 1.8rem;
  }

  .track-order-description {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .track-order-form,
  .track-order-result {
    padding: 18px;
    border-radius: 10px;
  }

  .track-order-field {
    margin-bottom: 18px;
  }

  .track-order-input {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .track-order-submit {
    min-height: 48px;
  }

  .track-order-result {
    margin-top: 24px;
  }

  .track-order-result-header {
    margin-bottom: 20px;
  }

  .track-order-result-header h2 {
    font-size: 1.3rem;
  }

  .track-order-summary {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .track-order-summary-item {
    padding: 14px;
  }

  .track-order-timeline h3 {
    margin-bottom: 18px;
  }

  .track-order-timeline-item {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 72px;
  }

  .track-order-timeline-marker {
    width: 26px;
    height: 26px;
  }

  .track-order-timeline-item:not(:last-child)::before {
    left: 12px;
    top: 25px;
  }

  .track-order-timeline-content {
    padding-bottom: 22px;
  }

  .track-order-timeline-status {
    font-size: 0.9rem;
  }

  .track-order-timeline-note {
    font-size: 0.82rem;
  }

  .track-order-timeline-date {
    font-size: 0.75rem;
  }

  .track-order-empty {
    margin-top: 24px;
    padding: 30px 20px;
  }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {
  .track-order-form,
  .track-order-result {
    padding: 16px;
  }

  .track-order-header h1 {
    font-size: 1.65rem;
  }

  .track-order-summary-value {
    font-size: 0.86rem;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .track-order-input,
  .track-order-submit {
    transition: none;
  }

  .track-order-submit.is-loading::after {
    animation: none;
  }
}

/* ============================================================
   FOOTER CONTACT
   ============================================================ */

.footer-contact {
  min-width: 0;
}

.footer-contact h2 {
  margin-bottom: 18px;
}

.footer-contact-item {
  margin: 0 0 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-contact-item strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.footer-contact-item span {
  display: block;
  color: inherit;
  overflow-wrap: anywhere;
}

/* ======================================================
   STOREFRONT THEME
   Light / Dark Mode
   ====================================================== */

/* Smooth theme transition */
body,
.storefront-header,
.storefront-footer,
.product-card,
.category-card,
.shop-card,
.cart-item,
.checkout-card,
.order-summary,
.search-hero,
.category-hero,
.product-details,
.modal,
input,
select,
textarea,
button {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* ======================================================
   FLOATING THEME TOGGLE
   ====================================================== */

#themeToggle {
  position: fixed;

  right: 20px;
  top: 80vh;

  width: 44px;
  height: 44px;

  padding: 0;
  margin: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d1d5db;
  border-radius: 50%;

  background: #ffffff;
  color: #111827;

  font-size: 1.15rem;
  line-height: 1;

  cursor: pointer;

  z-index: 9999;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

#themeToggle:hover {
  transform: translateY(-2px);
}

/* Dark mode */
body.dark-mode #themeToggle {
  background: #1f2937;
  color: #ffffff;
  border-color: #4b5563;
}

/* Mobile */
@media (max-width: 768px) {
  #themeToggle {
    right: 14px;
    top: 80vh;

    width: 42px;
    height: 42px;

    font-size: 1.05rem;
  }
}

/* ======================================================
   DARK MODE
   ====================================================== */

body.dark-mode {
  background-color: #111827;
  color: #f3f4f6;
}

/* Header */
body.dark-mode .storefront-header {
  background-color: #111827;
  color: #f3f4f6;
  border-bottom-color: #374151;
}

body.dark-mode .storefront-header a {
  color: #f3f4f6;
}

/* Main content */
body.dark-mode main {
  background-color: #111827;
}

/* Cards */
body.dark-mode .product-card,
body.dark-mode .category-card,
body.dark-mode .shop-card,
body.dark-mode .cart-item,
body.dark-mode .checkout-card,
body.dark-mode .order-summary,
body.dark-mode .product-details {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

/* Card text */
body.dark-mode .product-card h2,
body.dark-mode .product-card h3,
body.dark-mode .product-card h4,
body.dark-mode .category-card h2,
body.dark-mode .category-card h3,
body.dark-mode .shop-card h2,
body.dark-mode .shop-card h3,
body.dark-mode .cart-item h2,
body.dark-mode .cart-item h3,
body.dark-mode .checkout-card h2,
body.dark-mode .checkout-card h3,
body.dark-mode .order-summary h2,
body.dark-mode .order-summary h3 {
  color: #f9fafb;
}

/* Secondary text */
body.dark-mode .product-card p,
body.dark-mode .category-card p,
body.dark-mode .shop-card p,
body.dark-mode .cart-item p,
body.dark-mode .product-details p {
  color: #d1d5db;
}

/* Product current price - dark mode */
.dark-mode .product-price-current {
    color: #FFD166;
}

/* Forms */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #111827;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #9ca3af;
}

/* Labels */
body.dark-mode label {
  color: #e5e7eb;
}

/* Buttons */
body.dark-mode button {
  color: inherit;
}

/* Footer */
body.dark-mode .storefront-footer {
  background-color: #0b1120;
  color: #d1d5db;
  border-top-color: #374151;
}

body.dark-mode .storefront-footer a {
  color: #e5e7eb;
}

/* Hero sections */
body.dark-mode .search-hero,
body.dark-mode .category-hero {
  color: #ffffff;
}

/* Links */
body.dark-mode a {
  color: #93c5fd;
}

body.dark-mode a:hover {
  color: #bfdbfe;
}

/* Dividers */
body.dark-mode hr {
  border-color: #374151;
}

/* Tables */
body.dark-mode table {
  color: #f3f4f6;
}

body.dark-mode th,
body.dark-mode td {
  border-color: #374151;
}

/* ======================================================
   DARK MODE — STOREFRONT PAGE BACKGROUNDS
   ====================================================== */

body.dark-mode {
  background-color: #111827;
  color: #f3f4f6;
}

/* Main page background */
body.dark-mode main {
  background-color: #111827;
}

/* Homepage sections */
body.dark-mode .home-categories-section,
body.dark-mode .home-products-section {
  background-color: #111827;
  color: #f3f4f6;
}

/* Section headings */
body.dark-mode .home-section-header h2 {
  color: #f9fafb;
}

/* Section links */
body.dark-mode .home-section-link {
  color: #93c5fd;
}

body.dark-mode .home-section-link:hover {
  color: #bfdbfe;
}

/* Category area */
body.dark-mode .home-categories-scroll {
  background-color: transparent;
}

body.dark-mode .home-categories-list {
  background-color: transparent;
}

/* Mobile category dropdown */
body.dark-mode .home-categories-mobile select,
body.dark-mode #homeCategorySelect {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .home-category-item {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}

body.dark-mode .home-category-item:hover {
  background-color: #09075e;
  color: #ffffff;
  border-color: #9d73eb;
}

body.dark-mode .about-us,
body.dark-mode .location-overlay {
  background-color: #1f2937;
}

body.dark-mode .about-text h2,
body.dark-mode .why-choose-us .section-title,
body.dark-mode .location-overlay h2 {
  color: #f9fafb;
}

body.dark-mode .about-text h2 + h2,
body.dark-mode .choose-card h3 {
  color: #c4b5fd;
}

body.dark-mode .about-text p,
body.dark-mode .choose-card p {
  color: #d1d5db;
}

body.dark-mode .why-choose-us {
  background-color: #111827;
}

body.dark-mode .choose-card {
  background-color: #1f2937;
  border-color: #374151;
}

body.dark-mode .choose-card:hover {
  border-color: #9d73eb;
}

body.dark-mode .map-container {
  background-color: #111827;
}

/* Product grids */
body.dark-mode .home-products-grid {
  background-color: transparent;
}

/* Product loading / empty / error states */
body.dark-mode .products-state {
  color: #d1d5db;
}

/* All Products section */
body.dark-mode .home-all-products-section {
  background-color: #111827;
}

/* Featured Products section */
body.dark-mode .home-featured-products-section {
  background-color: #111827;
}

/* Footer */
body.dark-mode .storefront-footer {
  background-color: #0b1120;
  color: #d1d5db;
}

/* ======================================================
   DARK MODE — SEARCH INPUTS
   ====================================================== */

body.dark-mode .storefront-search input,
body.dark-mode #desktopSearchInput,
body.dark-mode #mobileSearchInput {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .storefront-search input::placeholder,
body.dark-mode #desktopSearchInput::placeholder,
body.dark-mode #mobileSearchInput::placeholder {
  color: #9ca3af;
}

/* ======================================================
   DARK MODE — MOBILE SEARCH PANEL
   ====================================================== */

body.dark-mode .mobile-search-panel {
  background-color: #111827;
  color: #f9fafb;
}

body.dark-mode .mobile-search-inner {
  background-color: #111827;
}

body.dark-mode .mobile-search-close {
  color: #f9fafb;
  background-color: transparent;
}

body.dark-mode .mobile-search-close:hover {
  color: #93c5fd;
}

/* ======================================================
   DARK MODE — PRODUCT DETAILS PAGE
   ====================================================== */

body.dark-mode .product-details-section {
  background-color: #111827;
  color: #f3f4f6;
}

body.dark-mode .product-information {
  color: #f3f4f6;
}

/* Product name */
body.dark-mode .product-details-name {
  color: #f9fafb;
}

/* Price */
body.dark-mode .product-details-price {
  color: #f9fafb;
}

/* Stock */
body.dark-mode .product-details-stock {
  color: #d1d5db;
}

/* Short description */
body.dark-mode .product-details-description {
  color: #d1d5db;
}

/* Quantity label */
body.dark-mode .product-control-label {
  color: #f3f4f6;
}

/* Quantity control */
body.dark-mode .product-quantity-control {
  background-color: #1f2937;
  border-color: #4b5563;
}

body.dark-mode .product-quantity-control button {
  background-color: #1f2937;
  color: #f9fafb;
}

body.dark-mode .product-quantity-control button:hover {
  background-color: #374151;
}

body.dark-mode #quantityValue {
  color: #f9fafb;
}

/* Product meta */
body.dark-mode .product-meta {
  color: #d1d5db;
}

body.dark-mode .product-meta-item {
  border-color: #374151;
}

body.dark-mode .product-meta-item span:first-child {
  color: #9ca3af;
}

body.dark-mode .product-meta-item span:last-child {
  color: #f3f4f6;
}

body.dark-mode .product-meta-item a {
  color: #93c5fd;
}

body.dark-mode .product-meta-item a:hover {
  color: #bfdbfe;
}

/* Loading and error states */
body.dark-mode .product-loading-state,
body.dark-mode .product-error-state {
  color: #d1d5db;
}

/* Gallery */
body.dark-mode .product-thumbnails {
  background-color: transparent;
}

body.dark-mode .product-main-image {
  background-color: transparent;
}

body.dark-mode .product-main-image-frame {
  background-color: #1f2937;
  border-color: #374151;
}

/* Gallery navigation buttons */
body.dark-mode .product-gallery-button {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .product-gallery-button:hover {
  background-color: #374151;
}

/* Product options */
body.dark-mode .product-options {
  color: #f3f4f6;
}

body.dark-mode .product-options label {
  color: #f3f4f6;
}

body.dark-mode .product-options select,
body.dark-mode .product-options input {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

/* ======================================================
   DARK MODE — PRODUCT DESCRIPTION
   ====================================================== */

body.dark-mode .product-description-section {
  background-color: #111827;
  color: #f3f4f6;
}

body.dark-mode .product-description-section h2 {
  color: #f9fafb;
}

body.dark-mode .product-description {
  color: #d1d5db;
}

/* ======================================================
   DARK MODE — RELATED PRODUCTS
   ====================================================== */

body.dark-mode .related-products-section {
  background-color: #111827;
  color: #f3f4f6;
}

body.dark-mode .related-products-section .section-heading h2 {
  color: #f9fafb;
}

/* ======================================================
   DARK MODE — PRODUCT PRICE
   ====================================================== */

body.dark-mode .product-details-price {
  color: #f9fafb;
}

body.dark-mode .product-details-price .current-price {
  color: #f9fafb;
}

body.dark-mode .product-details-price .original-price {
  color: #9ca3af;
}


/* ======================================================
   DARK MODE — PRODUCT STOCK BADGE
   ====================================================== */

body.dark-mode .product-details-stock {
  color: #f9fafb;
}

body.dark-mode .product-details-stock.in-stock {
  background-color: #14532d;
  color: #bbf7d0;
  border-color: #166534;
}

body.dark-mode .product-details-stock.out-of-stock {
  background-color: #7f1d1d;
  color: #fecaca;
  border-color: #991b1b;
}


/* ======================================================
   DARK MODE — VARIABLE PRODUCT OPTIONS
   ====================================================== */

body.dark-mode .product-options {
  background-color: #111827;
  color: #f3f4f6;
}

body.dark-mode .product-option-group {
  color: #f3f4f6;
}

body.dark-mode .product-option-label {
  color: #f9fafb;
}

body.dark-mode .product-option-values {
  background-color: transparent;
}

body.dark-mode .product-option-value {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}

body.dark-mode .product-option-value:hover {
  background-color: #374151;
  color: #ffffff;
  border-color: #6b7280;
}

body.dark-mode .product-option-value.selected {
  background-color: #09075e;
  color: #ffffff;
  border-color: #09075e;
}


/* ======================================================
   DARK MODE — VARIABLE PRODUCT PRICE
   ====================================================== */

body.dark-mode .product-options + .product-quantity-section {
  color: #f3f4f6;
}

/* ======================================================
   DARK MODE — CART SUMMARY
   ====================================================== */

body.dark-mode .cart-summary {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

body.dark-mode .cart-summary h2 {
  color: #f9fafb;
}

body.dark-mode .cart-summary-row {
  color: #d1d5db;
}

body.dark-mode .cart-summary-row span {
  color: #d1d5db;
}

body.dark-mode .cart-summary-row strong {
  color: #f9fafb;
}

body.dark-mode .cart-summary-total {
  color: #f9fafb;
}

body.dark-mode .cart-summary-total span {
  color: #f9fafb;
}

body.dark-mode .cart-summary-total strong {
  color: #ffffff;
}

body.dark-mode .cart-summary-divider {
  background-color: #374151;
}

/* ======================================================
   DARK MODE — CART CONTINUE SHOPPING
   ====================================================== */

body.dark-mode .cart-continue-shopping {
  color: #93c5fd;
}

body.dark-mode .cart-continue-shopping:hover {
  color: #bfdbfe;
}

/* ======================================================
   DARK MODE — CHECKOUT PAGE
   ====================================================== */

/* Checkout page / main background */
body.dark-mode.checkout-page,
body.dark-mode.checkout-page main {
  background-color: #111827;
  color: #f3f4f6;
}

/* Checkout cards */
body.dark-mode .checkout-card {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

/* Checkout card headings and descriptions */
body.dark-mode .checkout-card-header h2 {
  color: #f9fafb;
}

body.dark-mode .checkout-card-header p {
  color: #d1d5db;
}

/* Shipping selector button */
body.dark-mode .checkout-shipping-selector-button {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .checkout-shipping-selector-button:hover {
  background-color: #374151;
}

/* Shipping dropdown */
body.dark-mode .checkout-shipping-dropdown {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}

body.dark-mode .checkout-shipping-option {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

body.dark-mode .checkout-shipping-option:hover {
  background-color: #374151;
}

body.dark-mode .checkout-shipping-option[aria-selected="true"] {
  background-color: #09075e;
  color: #ffffff;
  border-color: #09075e;
}

body.dark-mode .checkout-shipping-option-top strong {
  color: #f9fafb;
}

body.dark-mode .checkout-shipping-price {
  color: #f9fafb;
}

body.dark-mode .checkout-shipping-description,
body.dark-mode .checkout-shipping-area,
body.dark-mode .checkout-shipping-note {
  color: #d1d5db;
}

/* ======================================================
   DARK MODE — YOUR ORDER / EDIT CART
   ====================================================== */

body.dark-mode .checkout-summary {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

body.dark-mode .checkout-summary-header h2 {
  color: #f9fafb;
}

body.dark-mode .checkout-summary-header p {
  color: #d1d5db;
}

body.dark-mode .checkout-summary-header a {
  color: #93c5fd;
}

body.dark-mode .checkout-summary-header a:hover {
  color: #bfdbfe;
}

/* Order items */
body.dark-mode .checkout-order-items {
  background-color: transparent;
}

body.dark-mode .checkout-order-item {
  border-color: #374151;
}

body.dark-mode .checkout-order-item-content h3 {
  color: #f9fafb;
}

body.dark-mode .checkout-order-item-variant,
body.dark-mode .checkout-order-item-quantity {
  color: #d1d5db;
}

body.dark-mode .checkout-order-item-content strong {
  color: #f9fafb;
}

/* Totals */
body.dark-mode .checkout-summary-totals {
  color: #f3f4f6;
}

body.dark-mode .checkout-summary-row {
  color: #d1d5db;
}

body.dark-mode .checkout-summary-row span {
  color: #d1d5db;
}

body.dark-mode .checkout-summary-row strong {
  color: #f9fafb;
}

body.dark-mode .checkout-summary-divider {
  background-color: #374151;
}

body.dark-mode .checkout-summary-total,
body.dark-mode .checkout-summary-total span {
  color: #f9fafb;
}

body.dark-mode .checkout-summary-total strong {
  color: #ffffff;
}

/* Secure payment note */
body.dark-mode .checkout-secure-note {
  color: #9ca3af;
}

/* Empty cart section */
body.dark-mode .checkout-empty-cart {
  background-color: #1f2937;
  color: #f3f4f6;
}

body.dark-mode .checkout-empty-cart h3 {
  color: #f9fafb;
}

body.dark-mode .checkout-empty-cart p {
  color: #d1d5db;
}

/* ======================================================
   DARK MODE — CHECKOUT SECTION
   ====================================================== */

body.dark-mode .checkout-section {
  background-color: #111827;
  color: #f3f4f6;
}

/* ======================================================
   DARK MODE — PAYMENT METHOD
   ====================================================== */

body.dark-mode .checkout-payment-method {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

body.dark-mode .checkout-payment-method h3 {
  color: #f9fafb;
}

body.dark-mode .checkout-payment-method p {
  color: #d1d5db;
}

body.dark-mode .checkout-payment-icon {
  background-color: #09075e;
  color: #ffffff;
}

/* ======================================================
   DARK MODE — TRACK ORDER HEADER
   ====================================================== */

body.dark-mode .track-order-header {
  color: #f3f4f6;
}

body.dark-mode .track-order-header .track-order-eyebrow {
  color: #93c5fd;
}

body.dark-mode .track-order-header h1 {
  color: #f9fafb;
}

body.dark-mode .track-order-header .track-order-description {
  color: #d1d5db;
}

/* ======================================================
   DARK MODE — TRACK ORDER FORM
   ====================================================== */

body.dark-mode .track-order-form {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

body.dark-mode .track-order-label {
  color: #f9fafb;
}

body.dark-mode .track-order-input {
  background-color: #111827;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .track-order-input::placeholder {
  color: #9ca3af;
}

body.dark-mode .track-order-input:focus {
  border-color: #93c5fd;
  outline-color: #93c5fd;
}

body.dark-mode .track-order-field-error {
  color: #fca5a5;
}

/* ======================================================
   DARK MODE — TRACK ORDER BREADCRUMB
   ====================================================== */

body.dark-mode .breadcrumb-current {
  color: #d1d5db;
}

/* ======================================================
   CART — QUANTITY CONTROLS
   ====================================================== */

.quantity-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.quantity-button {
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #ffffff;
  color: #111827;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.quantity-button:hover:not(:disabled) {
  background: #f3f4f6;
}

.quantity-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.quantity-value {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  line-height: 1;
}

/* Dark mode */
body.dark-mode .quantity-controls {
  background: #1f2937;
  border-color: #4b5563;
}

body.dark-mode .quantity-button {
  background: #1f2937;
  color: #f9fafb;
}

body.dark-mode .quantity-button:hover:not(:disabled) {
  background: #374151;
}

body.dark-mode .quantity-value {
  background: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

/* ======================================================
   DARK MODE — SHOP TITLE
   ====================================================== */

body.dark-mode #shop-title {
  color: #f9fafb;
}

/* ======================================================
   DARK MODE — SUCCESS PAGE
   ====================================================== */

body.dark-mode .success-section {
  background-color: #111827;
  color: #f3f4f6;
}

body.dark-mode .success-card {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

/* ======================================================
   DARK MODE — PAYMENT VERIFICATION
   ====================================================== */

body.dark-mode .success-verification-state {
  background-color: transparent;
  color: #f3f4f6;
}

body.dark-mode .success-verification-state .success-eyebrow {
  color: #93c5fd;
}

body.dark-mode .success-verification-state h1 {
  color: #f9fafb;
}

body.dark-mode .success-verification-state .success-description {
  color: #d1d5db;
}

body.dark-mode .success-loading-icon {
  border-color: #374151;
}

/* ======================================================
   DARK MODE — PAYMENT SUCCESS
   ====================================================== */

body.dark-mode .success-confirmed-state {
  background-color: transparent;
  color: #f3f4f6;
}

body.dark-mode .success-confirmed-state .success-eyebrow {
  color: #93c5fd;
}

body.dark-mode .success-confirmed-state h1 {
  color: #f9fafb;
}

body.dark-mode .success-confirmed-state .success-description {
  color: #d1d5db;
}

body.dark-mode .success-icon {
  color: #bbf7d0;
  background-color: #14532d;
  border-color: #166534;
}

/* ======================================================
   DARK MODE — PAYMENT DETAILS
   ====================================================== */

body.dark-mode .success-details {
  background-color: #111827;
  border-color: #374151;
}

body.dark-mode .success-detail {
  border-color: #374151;
}

body.dark-mode .success-detail-label {
  color: #9ca3af;
}

body.dark-mode .success-detail-value {
  color: #f9fafb;
}

body.dark-mode .success-detail-reference {
  color: #f9fafb;
}

body.dark-mode .success-copy-button {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .success-copy-button:hover {
  background-color: #374151;
}

body.dark-mode .success-copy-button.is-copied {
  background-color: #14532d;
  color: #bbf7d0;
  border-color: #166534;
}

body.dark-mode .success-copy-feedback {
  color: #86efac;
}

/* ======================================================
   DARK MODE — PAYMENT ERROR
   ====================================================== */

body.dark-mode .success-error-state {
  background-color: transparent;
  color: #f3f4f6;
}

body.dark-mode .success-error-state .success-eyebrow {
  color: #93c5fd;
}

body.dark-mode .success-error-state h1 {
  color: #f9fafb;
}

body.dark-mode .success-error-state .success-description {
  color: #d1d5db;
}

body.dark-mode .success-error-icon {
  color: #fecaca;
  background-color: #7f1d1d;
  border-color: #991b1b;
}

body.dark-mode .success-error-details {
  background-color: #111827;
  border-color: #374151;
}

/* ======================================================
   DARK MODE — SUCCESS ACTIONS
   ====================================================== */

body.dark-mode .success-button-secondary {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .success-button-secondary:hover {
  background-color: #374151;
  color: #ffffff;
}
