/* ==========================================================================
   روح ستور (Rouh Store) — Full Amazon-Style Navy Theme Layer
   File: assets/css/ag-amazon.css (loads LAST on every page, no markup edits)
   Direction: RTL Arabic | English/tabular digits | Mobile-first (390px+)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS & THEME VARIABLE OVERRIDES
   Overrides main.css, rouh.css (--rs-*), rs-fix.css, ag-home.css (--ag-*),
   ag-cart.css (--ag-cart-*), ag-checkout.css (--co-*), and ag-footer.css.
   ========================================================================== */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  /* Amazon Navy & Retail Palette */
  --amz-navy: #131921;
  --amz-navy-2: #232F3E;
  --amz-navy-top: #37475A;
  --amz-navy-top-hover: #485769;
  --amz-navy-bottom: #131A22;
  --amz-bg: #EAEDED;
  --amz-card: #FFFFFF;
  --amz-surface-2: #F7F8F8;
  --amz-surface-3: #F0F2F2;
  --amz-border: #D5D9D9;
  --amz-border-strong: #BBBFBF;
  --amz-input-border: #888C8C;
  --amz-ink: #0F1111;
  --amz-ink-2: #333333;
  --amz-muted: #565959;
  --amz-link: #007185;
  --amz-link-hover: #C7511F;
  --amz-price: #B12704;
  --amz-deal-badge: #CC0C39;
  --amz-orange: #FFA41C;
  --amz-orange-border: #FF8F00;
  --amz-orange-hover: #FA8900;
  --amz-yellow: #FFD814;
  --amz-yellow-border: #FCD200;
  --amz-yellow-hover: #F7CA00;
  --amz-success: #007600;
  --amz-success-bg: #E7F5E7;
  --amz-success-border: #A5D6A7;
  --amz-select-tint: #FCF5EE;
  --amz-select-border: #E77600;
  --amz-focus-ring: #007185;
  --amz-focus-halo: rgba(0, 113, 133, 0.2);
  --amz-footer-link: #DDDDDD;

  /* Typography */
  --amz-font-title: "Cairo", "Readex Pro", Tahoma, Arial, sans-serif;
  --amz-font-body: "Readex Pro", "Cairo", Tahoma, Arial, sans-serif;

  /* Base main.css tokens */
  --bg: #EAEDED;
  --paper: #FFFFFF;
  --paper-2: #F0F2F2;
  --ink: #0F1111;
  --muted: #565959;
  --faint: #565959;
  --line: #D5D9D9;
  --brand: #007185;
  --brand-2: #C7511F;
  --rose: #B12704;
  --rose-soft: #FFF5F5;
  --mint: #007600;
  --mint-soft: #E7F5E7;
  --gold: #FFA41C;
  --gold-soft: #FFF8E7;
  --accent: #232F3E;
  --radius-sm: 8px;
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-2xl: 8px;
  --radius-full: 999px;
  --shadow: 0 2px 6px rgba(15, 17, 17, 0.1);
  --shadow-soft: 0 1px 3px rgba(15, 17, 17, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 17, 17, 0.06);
  --shadow-md: 0 2px 8px rgba(15, 17, 17, 0.1);
  --shadow-lg: 0 6px 16px rgba(15, 17, 17, 0.12);
  --shadow-card: 0 1px 3px rgba(15, 17, 17, 0.06);
  --container: 1320px;
  --font-title: var(--amz-font-title);
  --font-body: var(--amz-font-body);
  --font-display: var(--amz-font-title);
  --color-bg: #EAEDED;
  --color-surface: #FFFFFF;
  --color-surface-2: #F7F8F8;
  --color-surface-offset: #F0F2F2;
  --color-border: #D5D9D9;
  --color-divider: #EAEDED;
  --color-text: #0F1111;
  --color-text-muted: #565959;
  --color-text-faint: #565959;
  --color-primary: #FFD814;
  --color-primary-hover: #F7CA00;
  --color-gold: #FFA41C;
  --color-gold-bg: #FFF8E7;
  --color-sale: #B12704;
  --color-sale-bg: #FFF5F5;
  --color-new: #007600;
  --color-new-bg: #E7F5E7;

  /* Rouh (--rs-*) tokens */
  --rs-ink: #0F1111;
  --rs-ink-2: #333333;
  --rs-muted: #565959;
  --rs-paper: #EAEDED;
  --rs-paper-2: #E3E6E6;
  --rs-surface: #FFFFFF;
  --rs-surface-2: #F7F8F8;
  --rs-line: #D5D9D9;
  --rs-line-strong: #BBBFBF;
  --rs-accent: #007185;
  --rs-accent-2: #C7511F;
  --rs-accent-deep: #B12704;
  --rs-accent-soft: #EBF5F7;
  --rs-sage: #007600;
  --rs-sage-soft: #E7F5E7;
  --rs-wa: #007600;
  --rs-wa-soft: #E7F5E7;
  --rs-danger: #B12704;
  --rs-title: var(--amz-font-title);
  --rs-body: var(--amz-font-body);
  --rs-r-xs: 4px;
  --rs-r-sm: 8px;
  --rs-r-md: 8px;
  --rs-r-lg: 8px;
  --rs-shadow: 0 2px 6px rgba(15, 17, 17, 0.08);
  --rs-shadow-soft: 0 1px 3px rgba(15, 17, 17, 0.06);
  --rs-wrap: 1320px;
}

.ag.ag,
html[data-theme="dark"] .ag.ag {
  --bg: #EAEDED;
  --bg-soft: #F0F2F2;
  --surface: #FFFFFF;
  --surface-2: #F7F8F8;
  --text: #0F1111;
  --text-muted: #565959;
  --border: #D5D9D9;
  --border-strong: #BBBFBF;
  --accent: #007185;
  --accent-strong: #C7511F;
  --accent-soft: #EBF5F7;
  --wa: #007600;
  --wa-strong: #005C00;
  --wa-soft: #E7F5E7;
  --danger: #B12704;
  --shadow-sm: 0 1px 2px rgba(15, 17, 17, 0.06);
  --shadow-md: 0 2px 8px rgba(15, 17, 17, 0.1);
  --shadow-lg: 0 6px 16px rgba(15, 17, 17, 0.14);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --container: 1320px;
  --font: var(--amz-font-body);
}

.ag-cart.ag-cart,
html[data-theme="dark"] .ag-cart.ag-cart {
  --ag-cart-bg: #EAEDED;
  --ag-cart-paper: #F7F8F8;
  --ag-cart-surface: #FFFFFF;
  --ag-cart-media-bg: #FFFFFF;
  --ag-cart-border: #D5D9D9;
  --ag-cart-border-strong: #BBBFBF;
  --ag-cart-ink: #0F1111;
  --ag-cart-ink-soft: #333333;
  --ag-cart-muted: #565959;
  --ag-cart-accent: #007185;
  --ag-cart-accent-hover: #C7511F;
  --ag-cart-accent-soft: #EBF5F7;
  --ag-cart-accent-border: #007185;
  --ag-cart-ok-bg: #E7F5E7;
  --ag-cart-ok-border: #A5D6A7;
  --ag-cart-ok-ink: #007600;
  --ag-cart-danger-bg: #FFF5F5;
  --ag-cart-danger-ink: #B12704;
  --ag-cart-radius-sm: 8px;
  --ag-cart-radius-md: 8px;
  --ag-cart-radius-lg: 8px;
}

.ag-co.ag-co,
html[data-theme="dark"] .ag-co.ag-co {
  --co-bg: #EAEDED;
  --co-surface: #FFFFFF;
  --co-surface-2: #F7F8F8;
  --co-media-bg: #FFFFFF;
  --co-border: #D5D9D9;
  --co-border-strong: #BBBFBF;
  --co-ink: #0F1111;
  --co-ink-2: #333333;
  --co-muted: #565959;
  --co-accent: #007185;
  --co-accent-hover: #C7511F;
  --co-accent-soft: #EBF5F7;
  --co-accent-tint: #FCF5EE;
  --co-accent-border: #E77600;
  --co-wa: #007600;
  --co-wa-soft: #E7F5E7;
  --co-wa-border: #A5D6A7;
  --co-danger: #B12704;
  --co-danger-bg: #FFF5F5;
  --co-danger-border: #CC0C39;
  --co-r-sm: 8px;
  --co-r-md: 8px;
  --co-r-lg: 8px;
}

.ag-footer.ag-footer,
html[data-theme="dark"] .ag-footer.ag-footer {
  --ag-bg: #232F3E;
  --ag-surface: #232F3E;
  --ag-surface-alt: #131A22;
  --ag-border: #3A4553;
  --ag-border-strong: #3A4553;
  --ag-ink: #FFFFFF;
  --ag-ink-soft: #DDDDDD;
  --ag-muted: #CCCCCC;
  --ag-accent: #FFA41C;
  --ag-accent-hover: #F7CA00;
  --ag-accent-soft: rgba(255, 255, 255, 0.08);
  --ag-accent-border: #FFA41C;
  --ag-wa-bg: #FFD814;
  --ag-wa-hover: #F7CA00;
  --ag-wa-border: #FCD200;
  --ag-wa-ink: #0F1111;
  --ag-radius-sm: 8px;
  --ag-radius-md: 8px;
  --ag-radius-pill: 999px;
}

/* ==========================================================================
   2. GLOBAL PAGE BASE, TYPOGRAPHY & BREADCRUMBS
   ========================================================================== */
html {
  color-scheme: light !important;
  overflow-x: clip !important;
}

html body,
html[data-theme="dark"] body,
html body #home,
html body #primary {
  background: #EAEDED !important;
  background-color: #EAEDED !important;
  background-image: none !important;
  color: #0F1111 !important;
  font-family: var(--amz-font-body) !important;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-x: clip !important;
}

body::before,
body::after {
  display: none !important;
}

h1, h2, h3, h4,
.hero-heading,
.section-head h2,
.gst-single-title,
.ag-section-title,
.ag-hero__title,
.ag-cart-title,
.ag-co-title,
.checkout-page-title {
  font-family: var(--amz-font-title) !important;
  color: #0F1111;
}

.wrap {
  width: min(1320px, calc(100% - 32px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

/* Content links use Amazon teal -> rust hover without touching header/footer/buttons.
   Wrapped in :where() so specific component link rules keep full priority. */
:where(main a:not(.btn):not(.ag-btn):not(.gst-btn):not(.tab):not(.page-numbers):not(.rs-cat):not(.ag-cart-checkout-btn):not(.ag-cart-empty-btn):not(.btn-amazon-checkout):not(.gst-done__wa):not(.gateway-card)) {
  color: #007185;
}

:where(main a:not(.btn):not(.ag-btn):not(.gst-btn):not(.tab):not(.page-numbers):not(.rs-cat):not(.ag-cart-checkout-btn):not(.ag-cart-empty-btn):not(.btn-amazon-checkout):not(.gst-done__wa):not(.gateway-card)):hover {
  color: #C7511F;
  text-decoration: underline;
}

:where(a, button, input, select, textarea, summary, [tabindex], .btn, .ag-btn, .gst-btn, .tab, .gst-gallery-thumb, .amazon-checkbox-link):focus-visible {
  outline: 2px solid #007185 !important;
  outline-offset: 2px !important;
}

/* Breadcrumbs */
.gst-breadcrumbs,
.rs-breadcrumb {
  margin: 0 0 14px !important;
  font-size: 13px !important;
  color: #565959 !important;
}

.gst-breadcrumbs ol {
  gap: 6px;
}

.gst-breadcrumbs li + li::before {
  content: "›";
  color: #565959;
  font-weight: 700;
}

.gst-breadcrumbs a,
.rs-breadcrumb a {
  color: #007185 !important;
  font-weight: 500;
  min-height: 36px;
}

.gst-breadcrumbs a:hover,
.rs-breadcrumb a:hover {
  color: #C7511F !important;
  text-decoration: underline;
}

.gst-breadcrumbs [aria-current="page"] span,
.rs-breadcrumb strong {
  color: #0F1111 !important;
  font-weight: 700;
}

/* Shared button primitives */
.btn,
button.btn {
  border-radius: 999px !important;
  font-family: var(--amz-font-body) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.btn:hover,
button.btn:hover {
  transform: none !important;
}

.btn-primary {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
}

.btn-primary:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.btn-soft {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  color: #0F1111 !important;
}

.btn-soft:hover {
  background: #F7F8F8 !important;
  border-color: #BBBFBF !important;
  color: #0F1111 !important;
}

.btn-wa,
.btn-wa-empty {
  background: #FFFFFF !important;
  border: 1px solid #007600 !important;
  color: #007600 !important;
}

.btn-wa:hover,
.btn-wa-empty:hover {
  background: #E7F5E7 !important;
  border-color: #005C00 !important;
  color: #005C00 !important;
}

/* ==========================================================================
   3. HEADER, SEARCH BAR, NAV SUB-BAR & MOBILE CHROME
   ========================================================================== */
#navbar.topbar,
#navbar.marketplace-header,
.topbar.marketplace-header,
html[data-theme="dark"] #navbar.topbar,
html[data-theme="dark"] .topbar.marketplace-header {
  position: sticky !important;
  top: 0;
  z-index: 90 !important;
  background: #131921 !important;
  background-color: #131921 !important;
  color: #FFFFFF !important;
  border-bottom: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: none !important;
}

#navbar .header-main-row {
  min-height: 62px !important;
  padding: 6px 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(240px, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Brand lockup ("روح ستور"): preserve store logo, crisp contrast on #131921 */
#navbar .brand,
.marketplace-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  min-height: 44px;
}

#navbar .brand:hover,
.marketplace-header .brand:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* SVG wordmark/mark filter: dark house interior blends into #131921 while the
   Arabic wordmark and house outline turn crisp bright white */
#navbar .brand img.brand-lockup,
.brand img.brand-lockup {
  height: 38px !important;
  width: auto !important;
  max-width: 165px !important;
  filter: grayscale(1) invert(1) contrast(1.55) brightness(1.15);
}

#navbar .brand img.brand-logo {
  height: 40px !important;
  width: auto !important;
  border-radius: 4px !important;
  background: #FFFFFF;
  padding: 2px 4px;
}

#navbar .brand .brand-word strong,
#navbar .brand strong,
.marketplace-header .brand .brand-word strong {
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

#navbar .brand .brand-tagline,
#navbar .brand span,
.marketplace-header .brand .brand-tagline {
  color: #CCCCCC !important;
  font-size: 10.5px !important;
}

#navbar .brand span.brand-word {
  color: #FFFFFF !important;
}

/* Search Bar (Amazon white input + #FFA41C orange submit button) */
.market-search,
#navbar .market-search,
.marketplace-header .market-search {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  height: 42px !important;
  background: #FFFFFF !important;
  border: 0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

main .market-search {
  border: 1px solid #888C8C !important;
  max-width: 520px !important;
}

.market-search:focus-within,
#navbar .market-search:focus-within,
.marketplace-header .market-search:focus-within {
  box-shadow: 0 0 0 2px #FFA41C, 0 0 0 4px rgba(255, 164, 28, 0.38) !important;
}

.market-search .search-input-wrap {
  flex: 1 1 auto !important;
  min-width: 0;
  height: 100%;
  background: #FFFFFF !important;
}

.market-search .search-input-wrap input[type="search"],
#navbar .market-search input[type="search"] {
  width: 100% !important;
  height: 100% !important;
  padding: 0 14px !important;
  border: 0 !important;
  background: #FFFFFF !important;
  color: #0F1111 !important;
  font-family: var(--amz-font-body) !important;
  font-size: 14px !important;
  outline: none !important;
}

.market-search input[type="search"]::placeholder {
  color: #565959 !important;
  opacity: 1 !important;
}

.market-search .search-submit-btn,
#navbar .market-search .search-submit-btn {
  width: 48px !important;
  height: 100% !important;
  flex-shrink: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #FFA41C !important;
  color: #0F1111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

.market-search .search-submit-btn:hover,
#navbar .market-search .search-submit-btn:hover {
  background: #F3A847 !important;
  color: #0F1111 !important;
}

.market-search .search-submit-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #0F1111 !important;
  stroke-width: 2.4 !important;
}

/* Header Action Buttons */
#navbar .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#navbar .nav-actions .nav-icon-btn,
.marketplace-header .nav-icon-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#navbar .nav-actions .nav-icon-btn:hover,
.marketplace-header .nav-icon-btn:hover {
  background: transparent !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

#navbar .nav-actions .nav-icon-btn svg,
#navbar .nav-actions .nav-icon-btn .lucide,
.marketplace-header .nav-icon-btn svg,
.marketplace-header .nav-icon-btn .lucide {
  width: 22px !important;
  height: 22px !important;
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

#navbar .nav-actions .nav-icon-btn .cart-badge-count,
.marketplace-header .nav-icon-btn .cart-badge-count,
#headerCartBtn .cart-badge-count {
  top: 2px !important;
  inset-block-start: 2px !important;
  inset-inline-end: 2px !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  border: 2px solid #131921 !important;
  background: #FFA41C !important;
  color: #0F1111 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

#navbar .nav-actions .desktop-whatsapp,
.marketplace-header .nav-actions .btn-wa {
  min-height: 42px !important;
  padding: 6px 12px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 2px !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

#navbar .nav-actions .desktop-whatsapp:hover,
.marketplace-header .nav-actions .btn-wa:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

#navbar .nav-actions .desktop-whatsapp svg {
  stroke: #FFA41C !important;
}

#navbar :focus-visible {
  outline: 2px solid #FFA41C !important;
  outline-offset: 2px !important;
}

/* Nav Sub-Bar (#232F3E, white 14px links, white 1px hover outline) */
#navbar .header-sub-row,
.marketplace-header .header-sub-row,
html[data-theme="dark"] #navbar .header-sub-row {
  background: #232F3E !important;
  background-color: #232F3E !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
}

#navbar .sub-row-nav {
  min-height: 40px !important;
  padding-block: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

#navbar .header-sub-row .links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

#navbar .header-sub-row .links > a,
#navbar .header-sub-row .all-cats-menu > summary {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 4px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

#navbar .header-sub-row .links > a:hover,
#navbar .header-sub-row .all-cats-menu > summary:hover,
#navbar .header-sub-row .all-cats-menu[open] > summary {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  background: transparent !important;
}

#navbar .header-sub-row .links > a.active {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-color: transparent !important;
  border-bottom: 2px solid #FFA41C !important;
}

#navbar .header-sub-row .links > a.active:hover {
  border-color: #FFFFFF !important;
  border-bottom-color: #FFFFFF !important;
}

/* All Categories Dropdown inside dark sub-bar */
#navbar .all-cats-menu {
  position: relative;
}

#navbar .all-cats-menu > summary::after {
  content: " ▾";
  font-size: 11px;
  color: #DDDDDD;
  margin-inline-start: 4px;
}

#navbar .all-cats-panel {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(15, 17, 17, 0.2) !important;
  padding: 6px 0 !important;
  min-width: 260px;
  z-index: 120;
}

#navbar .all-cats-panel a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  border: 0 !important;
  color: #0F1111 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

#navbar .all-cats-panel a:hover {
  background: #EAEDED !important;
  color: #C7511F !important;
}

#navbar .all-cats-panel a span {
  color: #565959 !important;
  font-size: 12px !important;
}

#navbar .sub-row-quick-contact a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  min-height: 36px;
}

#navbar .sub-row-quick-contact a:hover {
  border-color: #FFFFFF !important;
}

#navbar .sub-row-quick-contact a,
#navbar .delivery-promo {
  color: #DDDDDD !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  background: transparent !important;
}

#navbar .delivery-promo::before {
  background: #FFA41C !important;
}

/* Mobile Search Bar inside Dark Header */
#navbar .mobile-search-bar-wrap,
.mobile-search-bar-wrap {
  background: #131921 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 2px 12px 10px 12px !important;
}

#navbar .mobile-search-bar-wrap .mobile-search-form,
.mobile-search-bar-wrap .mobile-search-form {
  background: #FFFFFF !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  overflow: hidden;
}

#navbar .mobile-search-bar-wrap .mobile-search-form:focus-within {
  box-shadow: 0 0 0 2px #FFA41C !important;
}

#navbar .mobile-search-form .search-icon {
  color: #565959 !important;
  right: 12px !important;
  left: auto !important;
}

#navbar .mobile-search-form input[type="search"] {
  background: #FFFFFF !important;
  color: #0F1111 !important;
  border: 0 !important;
  height: 44px !important;
  padding: 0 38px 0 12px !important;
  font-size: 16px !important;
}

#navbar .mobile-search-form input[type="search"]::placeholder {
  color: #565959 !important;
}

/* Mobile Drawer Menu */
#navbar .mobile-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  inset: 100% 0 auto 0 !important;
  max-height: calc(100dvh - 150px) !important;
  overflow-y: auto !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid #D5D9D9 !important;
  box-shadow: 0 8px 24px rgba(15, 17, 17, 0.2) !important;
  padding: 8px 16px 20px !important;
  z-index: 95 !important;
}

#navbar .mobile-menu a {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid #EAEDED !important;
  color: #0F1111 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
}

#navbar .mobile-menu a:hover,
#navbar .mobile-menu a.active {
  color: #C7511F !important;
  background: #F7F8F8 !important;
}

#navbar .mobile-menu a.mobile-menu-cta {
  justify-content: center !important;
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  border-radius: 999px !important;
  color: #0F1111 !important;
  margin-top: 14px !important;
  font-weight: 700 !important;
}

#navbar .mobile-menu a.mobile-menu-fb {
  justify-content: center !important;
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 999px !important;
  color: #0F1111 !important;
  margin-top: 8px !important;
}

/* Mobile Fixed Bottom Nav */
.mobile-bottom-nav,
html[data-theme="dark"] .mobile-bottom-nav {
  background: #FFFFFF !important;
  border-top: 1px solid #D5D9D9 !important;
  box-shadow: 0 -2px 10px rgba(15, 17, 17, 0.08) !important;
  backdrop-filter: none !important;
  height: 62px !important;
  z-index: 90 !important;
}

.mobile-bottom-nav .nav-item {
  color: #565959 !important;
  min-height: 48px !important;
  font-size: 11px !important;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:active {
  color: #007185 !important;
}

.mobile-bottom-nav .nav-item.active svg,
.mobile-bottom-nav .nav-item:active svg {
  color: #007185 !important;
  transform: none !important;
}

#bottomNavCartBtn .cart-badge-count {
  background: #FFA41C !important;
  color: #0F1111 !important;
  border: 1.5px solid #FFFFFF !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   4. HOMEPAGE SECTIONS (White Cards on #EAEDED Grey Background)
   ========================================================================== */
#home .rs-order-prepared {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-inline-start: 4px solid #007600 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  margin-top: 16px !important;
}

/* Hero Section: Amazon navy gradient top fading cleanly into #EAEDED,
   holding crisp white gateway cards */
.ag .ag-hero {
  background: linear-gradient(180deg, #232F3E 0%, #37475A 42%, #EAEDED 92%) !important;
  border-bottom: 0 !important;
  padding-block: clamp(18px, 3vw, 28px) !important;
}

.ag .ag-hero__inner {
  gap: 18px !important;
  align-items: stretch !important;
}

.ag .hero__content {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ag .ag-kicker {
  color: #C7511F !important;
  margin-bottom: 10px;
}

.ag .ag-kicker__rule {
  background: #FFA41C !important;
}

.ag .ag-hero__title {
  color: #0F1111 !important;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem) !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
}

.ag .ag-hero__accent {
  color: #007185 !important;
}

.ag .ag-hero__text {
  color: #565959 !important;
  font-size: 15px !important;
  margin-bottom: 18px !important;
}

.ag .ag-hero__actions {
  margin-bottom: 20px !important;
}

.ag .ag-hero__specs {
  border-top: 1px solid #EAEDED !important;
  padding-top: 14px !important;
}

.ag .ag-hero__spec dt {
  color: #565959 !important;
}

.ag .ag-hero__spec dd {
  color: #0F1111 !important;
}

/* Hero Spotlight Card */
.ag .ag-spotlight-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08) !important;
}

.ag .ag-spotlight-card__head {
  background: #F7F8F8 !important;
  border-bottom: 1px solid #EAEDED !important;
}

.ag .ag-spotlight-card__label {
  color: #0F1111 !important;
}

.ag .ag-spotlight-card__cat {
  color: #007185 !important;
}

.ag .ag-spotlight-card__media {
  background: #FFFFFF !important;
  border-bottom: 1px solid #EAEDED !important;
}

.ag .ag-spot-arrow {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  color: #0F1111 !important;
  box-shadow: 0 2px 5px rgba(15, 17, 17, 0.14) !important;
}

.ag .ag-spot-arrow:hover {
  background: #FFD814 !important;
  border-color: #FCD200 !important;
  color: #0F1111 !important;
}

.ag .ag-spotlight-card__body {
  margin-top: auto;
}

.ag .ag-spotlight-card__title {
  color: #0F1111 !important;
  font-weight: 700 !important;
}

.ag .ag-spotlight-card__price {
  color: #B12704 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.ag .ag-spotlight-tabs {
  border-top: 1px solid #D5D9D9 !important;
}

.ag .ag-spotlight-tab {
  min-height: 40px;
  background: #F7F8F8 !important;
  color: #565959 !important;
  border-inline-end: 1px solid #D5D9D9 !important;
}

.ag .ag-spotlight-tab.is-active,
.ag .ag-spotlight-tab.ag-is-active {
  background: #FFFFFF !important;
  color: #C7511F !important;
  box-shadow: inset 0 -2px 0 #FFA41C;
}

/* Homepage .ag-btn system (Amazon Yellow primary, Orange add, Clean outline) */
.ag .ag-btn {
  border-radius: 999px !important;
  min-height: 42px;
  font-weight: 700 !important;
}

.ag .ag-btn:hover {
  transform: none !important;
}

.ag .ag-btn--primary,
html[data-theme="dark"] .ag .ag-btn--primary {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
}

.ag .ag-btn--primary:hover,
html[data-theme="dark"] .ag .ag-btn--primary:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.ag .ag-btn--outline {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  color: #0F1111 !important;
}

.ag .ag-btn--outline:hover {
  background: #F7F8F8 !important;
  border-color: #BBBFBF !important;
  color: #0F1111 !important;
}

.ag .ag-btn--wa,
.ag .ag-btn--wa-outline {
  background: #FFFFFF !important;
  border: 1px solid #007600 !important;
  color: #007600 !important;
}

.ag .ag-btn--wa:hover,
.ag .ag-btn--wa-outline:hover {
  background: #E7F5E7 !important;
  border-color: #005C00 !important;
  color: #005C00 !important;
}

.ag #spotlightAdd,
.ag .ag-product-card__actions .btn-add-to-cart {
  background: #FFA41C !important;
  border: 1px solid #FF8F00 !important;
  color: #0F1111 !important;
}

.ag #spotlightAdd:hover,
.ag .ag-product-card__actions .btn-add-to-cart:hover {
  background: #FA8900 !important;
  border-color: #E07B00 !important;
  color: #0F1111 !important;
}

/* Home Sections as White Cards on #EAEDED Grey Background */
.ag .ag-features,
.ag .ag-categories-section,
.ag .ag-products-section,
.ag .ag-order-concierge {
  padding-block: 10px !important;
}

.ag .ag-order-concierge {
  padding-bottom: 24px !important;
}

.ag .ag-features__grid {
  background: #D5D9D9 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

.ag .ag-feature {
  background: #FFFFFF !important;
}

.ag .ag-feature__num {
  color: #C7511F !important;
}

.ag .ag-categories-section > .ag-container,
.ag .ag-products-section > .ag-container {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 22px 24px;
  width: min(1320px, calc(100% - 32px));
}

.ag .ag-section-head--split {
  border-bottom: 1px solid #EAEDED !important;
  padding-bottom: 14px !important;
  margin-bottom: 18px !important;
}

.ag .ag-section-kicker {
  color: #007185 !important;
}

.ag .ag-section-title {
  color: #0F1111 !important;
}

.ag .ag-section-sub {
  color: #565959 !important;
}

.ag .ag-category-tile {
  background: #F7F8F8 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

.ag .ag-category-tile:hover {
  background: #FFFFFF !important;
  border-color: #007185 !important;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(15, 17, 17, 0.08);
}

.ag .ag-category-tile.is-active {
  background: #EBF5F7 !important;
  border-color: #007185 !important;
}

.ag .ag-category-tile__top,
.ag .ag-category-tile__meta {
  color: #565959 !important;
}

.ag .ag-category-tile:hover .ag-category-tile__arrow {
  color: #C7511F !important;
}

.ag .ag-category-tile__name {
  color: #0F1111 !important;
}

/* Home Products Toolbar & Filter Chips */
.ag .ag-search-box input,
.ag .ag-sort-box select {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
}

.ag .ag-sort-box select {
  background: #F0F2F2 !important;
  border-color: #D5D9D9 !important;
}

.ag .ag-search-box input:focus,
.ag .ag-sort-box select:focus {
  border-color: #007185 !important;
  box-shadow: 0 0 0 3px #C8F3FA !important;
}

.ag .ag-filter-count,
.ag .ag-price-range-tag {
  background: #F7F8F8 !important;
  border-color: #D5D9D9 !important;
  color: #565959 !important;
  border-radius: 8px !important;
}

.ag .ag-filters button {
  background: #F0F2F2 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
  min-height: 38px;
}

.ag .ag-filters button:hover {
  background: #E3E6E6 !important;
  border-color: #BBBFBF !important;
}

.ag .ag-filters button.is-active,
html[data-theme="dark"] .ag .ag-filters button.is-active {
  background: #232F3E !important;
  border-color: #232F3E !important;
  color: #FFFFFF !important;
}

.ag .ag-filters .ag-cats-toggle.has-value {
  background: #EBF5F7 !important;
  border-color: #007185 !important;
  color: #007185 !important;
}

.ag .ag-filter-empty {
  background: #F7F8F8 !important;
  border: 1px dashed #D5D9D9 !important;
  border-radius: 8px !important;
}

/* Concierge Inquiry Panel */
.ag .ag-concierge-panel {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.ag .ag-concierge-steps li {
  background: #F7F8F8 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
}

.ag .ag-concierge-steps__num {
  color: #C7511F !important;
}

.ag .ag-inquiry-form {
  background: #F7F8F8 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

.ag .ag-inquiry-field select,
.ag .ag-inquiry-field textarea {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 6px !important;
  color: #0F1111 !important;
}

.ag .ag-inquiry-field select:focus,
.ag .ag-inquiry-field textarea:focus {
  border-color: #007185 !important;
  box-shadow: 0 0 0 3px #C8F3FA !important;
}

.ag .ag-inquiry-form button[type="submit"] {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
}

.ag .ag-inquiry-form button[type="submit"]:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
}

/* Conditional Deal of the Day & Customer Reviews (front-page.php) */
#home #deal-of-the-day.section,
#home #reviews.section {
  padding-block: 10px 24px !important;
}

#home .deal-wrapper {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
  box-shadow: none !important;
  padding: 24px !important;
}

#home .deal-heading {
  color: #0F1111 !important;
}

#home .deal-desc {
  color: #565959 !important;
}

#home .deal-new-price {
  color: #B12704 !important;
}

#home .deal-old-price {
  color: #565959 !important;
}

#home .deal-saving-badge {
  background: #CC0C39 !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-weight: 700 !important;
}

#home .countdown-box {
  background: #F0F2F2 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

#home .countdown-box .num {
  color: #0F1111 !important;
}

#home .countdown-box .lbl {
  color: #565959 !important;
}

#home .deal-media {
  background: #FFFFFF !important;
  border: 1px solid #EAEDED !important;
  border-radius: 8px !important;
}

#home .deal-cta .btn-wa {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
}

#home #reviews .wrap {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 22px 24px;
}

#home .reviews {
  background: transparent !important;
  border: 0 !important;
  gap: 14px !important;
}

#home .review {
  background: #F7F8F8 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 18px !important;
}

#home .review-author .avatar {
  background: #232F3E !important;
  color: #FFA41C !important;
}

/* ==========================================================================
   5. PRODUCT LIST CARDS (Homepage .ag-product-card & Archive .product-card)
   White cards, 1px #D5D9D9 border, 8px radius, equal height,
   #B12704 red price, #FFA41C orange rounded add button.
   ========================================================================== */
.ag .ag-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.catalog-layout-with-sidebar .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ag .ag-product-card,
.product-grid > .product-card.marketplace-product-card,
.product-grid > .product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
  grid-column: auto !important;
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.ag .ag-product-card:hover,
.product-grid > .product-card.marketplace-product-card:hover,
.product-grid > .product-card:hover {
  border-color: #BBBFBF !important;
  box-shadow: 0 3px 10px rgba(15, 17, 17, 0.09) !important;
  transform: none !important;
}

.product-grid > .product-card.product-card--noimg::before {
  background: #FFA41C !important;
  opacity: 1 !important;
}

/* Product Media */
.ag .ag-product-card__media,
.product-grid .marketplace-product-card .product-media,
.product-grid .product-card .product-media {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  background: #F7F8F8 !important;
  border: 0 !important;
  border-bottom: 1px solid #EAEDED !important;
  border-radius: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.ag .ag-product-card__media img,
.product-grid .marketplace-product-card .product-media img,
.product-grid .product-card .product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 12px !important;
  filter: none !important;
}

.product-grid .marketplace-product-card .badge-sale-percent,
.product-grid .product-card .badge {
  position: absolute !important;
  top: 8px !important;
  inset-inline-start: 8px !important;
  inset-inline-end: auto !important;
  background: #CC0C39 !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  padding: 3px 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Card Body & Typography */
.ag .ag-product-card__body,
.product-grid .marketplace-product-card .product-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  gap: 6px !important;
  padding: 12px 14px 14px !important;
  min-height: 0 !important;
}

.ag .ag-product-card__cat,
.product-grid .marketplace-product-card .market-product-category {
  background: #F0F2F2 !important;
  color: #007185 !important;
  border-radius: 4px !important;
  padding: 2px 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: inline-block !important;
  align-self: flex-start;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag .ag-product-card__title,
.product-grid .marketplace-product-card .product-title {
  margin: 0 !important;
  font-family: var(--amz-font-title) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  height: 3em !important;
  min-height: 3em !important;
  max-height: 3em !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  color: #0F1111 !important;
}

.ag .ag-product-card__title a,
.product-grid .marketplace-product-card .product-title a {
  color: #0F1111 !important;
  text-decoration: none !important;
}

.ag .ag-product-card__title a:hover,
.product-grid .marketplace-product-card .product-title a:hover {
  color: #C7511F !important;
  text-decoration: underline !important;
}

/* Price Row (#B12704 Price Red) */
.ag .ag-product-card__price,
.product-grid .marketplace-product-card .market-price-row .price-val {
  color: #B12704 !important;
  font-family: var(--amz-font-title) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.product-grid .marketplace-product-card .market-price-row .price-val small {
  color: #B12704 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.ag .ag-product-card__price del,
.product-grid .marketplace-product-card .market-price-row .old-price {
  color: #565959 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

/* Card Quantity Stepper injected by main.js (.gst-cq) */
.gst-cq {
  margin: 4px 0 6px !important;
}

.gst-cq__label {
  color: #565959 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.gst-cq__ctl {
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.06);
}

.gst-cq__btn {
  background: #F0F2F2 !important;
  color: #0F1111 !important;
  font-weight: 700;
}

.gst-cq__btn:hover:not(:disabled) {
  background: #E3E6E6 !important;
}

.gst-cq__input {
  background: #FFFFFF !important;
  border-inline: 1px solid #D5D9D9 !important;
  color: #0F1111 !important;
  font-family: var(--amz-font-body) !important;
}

.gst-cq__total {
  color: #565959 !important;
  font-size: 12.5px !important;
}

.gst-cq__total strong {
  color: #B12704 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Card Action Buttons: Orange Rounded Add-to-Cart + Clean Secondary WhatsApp */
.ag .ag-product-card__actions,
.product-grid .marketplace-product-card .market-card-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid #EAEDED !important;
}

.ag .ag-product-card__actions .ag-btn,
.product-grid .marketplace-product-card .market-card-actions .btn {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

.ag .ag-product-card__actions .btn-add-to-cart,
.product-grid .marketplace-product-card .btn-add-to-cart,
.marketplace-product-card .btn-add-to-cart {
  background: #FFA41C !important;
  border: 1px solid #FF8F00 !important;
  color: #0F1111 !important;
}

.ag .ag-product-card__actions .btn-add-to-cart:hover,
.product-grid .marketplace-product-card .btn-add-to-cart:hover,
.marketplace-product-card .btn-add-to-cart:hover {
  background: #FA8900 !important;
  border-color: #E07B00 !important;
  color: #0F1111 !important;
}

.ag .ag-product-card__actions .btn-add-to-cart.is-added,
.product-grid .marketplace-product-card .btn-add-to-cart.is-added {
  background: #E7F5E7 !important;
  border-color: #007600 !important;
  color: #007600 !important;
}

.ag .ag-product-card__actions .wa-product,
.product-grid .marketplace-product-card .btn-amazon-cart,
.marketplace-product-card .btn-amazon-cart {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  color: #0F1111 !important;
}

.ag .ag-product-card__actions .wa-product:hover,
.product-grid .marketplace-product-card .btn-amazon-cart:hover,
.marketplace-product-card .btn-amazon-cart:hover {
  background: #F7F8F8 !important;
  border-color: #007185 !important;
  color: #007185 !important;
}

.product-grid .marketplace-product-card .btn-amazon-cart svg {
  stroke: #007600 !important;
}

.ag .ag-product-card__actions .ag-btn:disabled,
.product-grid .marketplace-product-card .btn-amazon-disabled {
  background: #F0F2F2 !important;
  border: 1px solid #D5D9D9 !important;
  color: #565959 !important;
  border-radius: 999px !important;
}

/* ==========================================================================
   6. CATALOG, CATEGORY, SEARCH, CATEGORIES INDEX & EDITORIAL PAGES
   ========================================================================== */
.catalog-head {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 18px 22px !important;
  margin-bottom: 18px !important;
}

.catalog-head h1 {
  font-size: clamp(21px, 2.5vw, 28px) !important;
  color: #0F1111 !important;
  margin: 0 0 4px !important;
}

.catalog-head p {
  color: #565959 !important;
  font-size: 13.5px !important;
}

.catalog-count {
  color: #C7511F !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-top: 6px !important;
}

/* Catalog Sidebar Filters */
.catalog-layout-with-sidebar {
  gap: 20px !important;
}

.catalog-sidebar,
.catalog-filters-desktop .catalog-sidebar {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  top: 120px;
}

.filter-section {
  border-bottom: 1px solid #EAEDED !important;
  padding: 14px 0 !important;
}

.filter-section:first-child {
  padding-top: 0 !important;
}

.filter-section:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.filter-section h2,
.filter-section h3 {
  font-family: var(--amz-font-title) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F1111 !important;
  margin: 0 0 10px !important;
}

.filter-list a,
.filter-list span {
  color: #0F1111 !important;
  font-size: 13px !important;
}

.filter-list a:hover {
  color: #C7511F !important;
  text-decoration: underline !important;
}

.filter-list li.active > a,
.filter-list li.active > span {
  color: #C7511F !important;
  font-weight: 700 !important;
}

.amazon-checkbox-link {
  color: #0F1111 !important;
  font-size: 13px !important;
}

.amazon-checkbox-box {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 3px !important;
}

.amazon-checkbox-link.checked .amazon-checkbox-box {
  background: #007185 !important;
  border-color: #007185 !important;
  box-shadow: none !important;
}

.price-range-form input {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 4px !important;
  color: #0F1111 !important;
  min-height: 36px !important;
}

.price-range-form input:focus {
  border-color: #007185 !important;
  box-shadow: 0 0 0 3px #C8F3FA !important;
}

.price-range-form button[type="submit"] {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08) !important;
}

.price-range-form button[type="submit"]:hover {
  background: #F7F8F8 !important;
  border-color: #BBBFBF !important;
}

.catalog-filters-mobile {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

.catalog-filters-mobile summary {
  color: #0F1111 !important;
  min-height: 44px;
}

/* Pagination & Empty States */
.catalog-pagination {
  border-top: 0 !important;
  margin-top: 24px !important;
  gap: 6px !important;
}

.catalog-pagination .page-numbers {
  min-width: 40px !important;
  height: 40px !important;
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
  font-weight: 600 !important;
}

.catalog-pagination .page-numbers:hover {
  background: #F7F8F8 !important;
  border-color: #007185 !important;
  color: #007185 !important;
}

.catalog-pagination .page-numbers.current {
  background: #232F3E !important;
  border-color: #232F3E !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.catalog-empty {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

/* /categories page */
.rs-allcats {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 22px 24px !important;
  margin-block: 18px 28px !important;
}

.rs-allcats-title {
  color: #0F1111 !important;
}

.rs-allcats-sub {
  color: #565959 !important;
}

.rs-allcats-filter input {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
}

.rs-allcats-filter input:focus {
  border-color: #007185 !important;
  box-shadow: 0 0 0 3px #C8F3FA !important;
  outline: none;
}

.rs-cat {
  background: #F7F8F8 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
}

.rs-cat:hover {
  background: #FFFFFF !important;
  border-color: #007185 !important;
}

.rs-cat-media {
  background: #FFFFFF !important;
  border: 1px solid #EAEDED;
  color: #232F3E !important;
}

/* Generic Editorial / 404 / Non-product Search Results */
.site-main > article,
.site-main > section.wrap.section,
.gst-search-result {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow: none !important;
}

.site-main > article {
  margin-block: 16px;
}

.page-header,
.entry-header {
  border-bottom: 1px solid #EAEDED !important;
}

.entry-content,
.entry-content p {
  color: #0F1111 !important;
}

.tabs .tab {
  background: #F0F2F2 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 999px !important;
  color: #0F1111 !important;
  padding: 6px 14px !important;
  text-decoration: none !important;
}

.tabs .tab:hover,
.tabs .tab.active {
  background: #232F3E !important;
  border-color: #232F3E !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   7. SINGLE PRODUCT PAGE (White Panels, Large Red Price, Buy Box, Yellow/Orange Pills)
   ========================================================================== */
.gst-container {
  width: min(1320px, calc(100% - 32px)) !important;
  padding: 18px 0 40px !important;
}

.gst-single-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr) !important;
  gap: 20px !important;
  padding: 0 !important;
  align-items: start !important;
}

.gst-gallery-section,
.gst-product-info {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  min-width: 0;
  width: 100%;
}

.gst-gallery-main {
  background: #FFFFFF !important;
  border: 0 !important;
  border-radius: 6px !important;
  min-height: 440px !important;
}

.gst-gallery-main img {
  padding: 16px !important;
}

.gst-gallery-thumb {
  border: 1px solid #D5D9D9 !important;
  border-radius: 6px !important;
  opacity: 0.85 !important;
}

.gst-gallery-thumb:hover,
.gst-gallery-thumb.active {
  border: 2px solid #C7511F !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 2px rgba(255, 164, 28, 0.25);
}

.gst-product-info {
  position: sticky;
  top: 118px !important;
}

.gst-badge {
  border-radius: 4px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.gst-badge.available {
  background: #E7F5E7 !important;
  border-color: #A5D6A7 !important;
  color: #007600 !important;
}

.gst-badge.out_of_stock {
  background: #FFF5F5 !important;
  border-color: #F5C2C2 !important;
  color: #B12704 !important;
}

.gst-badge.coming_soon {
  background: #FFF8E7 !important;
  border-color: #FCD200 !important;
  color: #7D520A !important;
}

.gst-single-title {
  font-size: clamp(20px, 2.3vw, 27px) !important;
  line-height: 1.45 !important;
  color: #0F1111 !important;
  margin-bottom: 12px !important;
}

.gst-single-title--split .gst-title-rest {
  color: #565959 !important;
}

.gst-price-section {
  border-block: 1px solid #EAEDED !important;
  padding: 14px 0 !important;
  margin: 0 0 16px !important;
}

.gst-price,
.gst-price-section .gst-price,
.gst-price-section .gst-price.sale {
  color: #B12704 !important;
  font-family: var(--amz-font-title) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.gst-price-section .gst-price.original {
  color: #565959 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
}

/* Amazon Buy Box with crisp border */
.gst-buy-box {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 18px !important;
  margin: 0 0 18px !important;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.06) !important;
}

.gst-qty-label {
  color: #0F1111 !important;
  font-size: 13px !important;
}

.gst-qty-controls {
  background: #F0F2F2 !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

.gst-qty-btn {
  color: #0F1111 !important;
  font-weight: 700 !important;
}

.gst-qty-btn:hover {
  background: #E3E6E6 !important;
}

.gst-quantity-selector #gst-qty-input {
  background: #FFFFFF !important;
  border-inline: 1px solid #D5D9D9 !important;
  color: #0F1111 !important;
  font-weight: 700 !important;
}

.gst-cq__total--single {
  border-top: 1px solid #EAEDED !important;
}

.gst-cq__total--single strong {
  color: #B12704 !important;
  font-size: 17px !important;
}

.gst-buy-actions-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.gst-buy-actions-wrapper .gst-btn {
  border-radius: 999px !important;
  min-height: 46px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.45) !important;
}

/* Buy Box Primary/Secondary Pills */
.gst-buy-actions-wrapper .btn-amazon-buy-now {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
}

.gst-buy-actions-wrapper .btn-amazon-buy-now:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.gst-buy-actions-wrapper .btn-amazon-add-to-cart {
  background: #FFA41C !important;
  border: 1px solid #FF8F00 !important;
  color: #0F1111 !important;
}

.gst-buy-actions-wrapper .btn-amazon-add-to-cart:hover {
  background: #FA8900 !important;
  border-color: #E07B00 !important;
  color: #0F1111 !important;
}

.gst-product-meta-section {
  border-top: 1px solid #EAEDED;
  padding-top: 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #0F1111;
}

.gst-meta-row {
  padding-block: 4px;
}

.gst-meta-row strong {
  color: #565959;
}

.gst-color-badge {
  border-color: #D5D9D9 !important;
  background: #F7F8F8 !important;
  color: #0F1111 !important;
}

.gst-description-card {
  border-top: 1px solid #EAEDED !important;
  padding-top: 16px !important;
  margin: 0 !important;
}

.gst-description-card h2 {
  color: #0F1111 !important;
  font-size: 16px !important;
}

.gst-description-content {
  color: #333333 !important;
  font-size: 14px !important;
}

/* Related Products Section */
.gst-related-products {
  border-top: 0 !important;
  padding-block: 0 36px !important;
}

.gst-related-products .wrap {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 22px 24px;
}

/* ==========================================================================
   8. SHOPPING CART PAGE (.ag-cart & legacy .amazon-cart-layout)
   White cards, #B12704 prices, #FFD814 yellow proceed button, subtotal box.
   ========================================================================== */
.ag-cart,
html[data-theme="dark"] .ag-cart {
  background: #EAEDED !important;
  color: #0F1111 !important;
  padding-block: 20px 44px !important;
}

.ag-cart .ag-cart-head {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.ag-cart .ag-cart-head::after {
  display: none;
}

.ag-cart .ag-cart-title {
  color: #0F1111;
  font-size: clamp(21px, 2.5vw, 27px);
}

.ag-cart .ag-cart-count-pill {
  background: #F0F2F2;
  border-color: #D5D9D9;
  color: #0F1111;
}

.ag-cart .ag-cart-back-link {
  color: #007185;
}

.ag-cart .ag-cart-back-link:hover {
  color: #C7511F;
}

.ag-cart .ag-cart-grid {
  gap: 20px;
}

/* Items unified inside a crisp white Amazon shopping-cart card */
.ag-cart .ag-cart-items-col {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 6px 20px;
}

.ag-cart .ag-cart-list {
  gap: 0;
}

.ag-cart .ag-cart-item {
  background: #FFFFFF;
  border: 0;
  border-bottom: 1px solid #EAEDED;
  border-radius: 0;
  padding: 18px 0;
}

.ag-cart .ag-cart-item:last-child {
  border-bottom: 0;
}

.ag-cart .ag-cart-item-title a {
  color: #0F1111;
}

.ag-cart .ag-cart-item-title a:hover {
  color: #C7511F;
  text-decoration: underline;
}

.ag-cart .ag-cart-line-price {
  color: #B12704;
}

.ag-cart .ag-cart-stepper {
  background: #F0F2F2;
  border-color: #D5D9D9;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}

.ag-cart .ag-cart-qty-btn:hover:not(:disabled) {
  background: #E3E6E6;
  color: #0F1111;
}

.ag-cart .ag-cart-remove-btn {
  color: #007185;
}

.ag-cart .ag-cart-remove-btn:hover {
  background: transparent;
  color: #C7511F;
  text-decoration: underline;
}

/* Cart Subtotal Sidebar Box */
.ag-cart .ag-cart-summary {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-top: 1px solid #D5D9D9;
  border-radius: 8px;
  padding: 20px;
  top: 120px;
}

.ag-cart .ag-cart-summary-row--total strong {
  color: #B12704;
}

.ag-cart .ag-cart-checkout-btn,
.ag-cart .ag-cart-empty-btn {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
  text-decoration: none !important;
}

.ag-cart .ag-cart-checkout-btn:hover,
.ag-cart .ag-cart-empty-btn:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.ag-cart .ag-cart-empty {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
}

.ag-cart .ag-cart-empty-icon {
  background: #FFF8E7;
  border-color: #FCD200;
  color: #C7511F;
}

/* Legacy cart classes fallback */
.amazon-cart-layout .cart-main-panel,
.amazon-cart-layout .cart-sidebar-panel {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  box-shadow: none !important;
}

.amazon-cart-layout .cart-sidebar-panel .sidebar-sec-wrap {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.amazon-cart-layout .cart-total-price-val {
  color: #B12704 !important;
}

.amazon-cart-layout .btn-amazon-checkout {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
  border-radius: 999px !important;
  min-height: 46px !important;
}

.amazon-cart-layout .btn-amazon-checkout:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
}

/* ==========================================================================
   9. CHECKOUT PAGE (.ag-co & legacy .amazon-checkout-layout & .gst-done)
   White cards, #FFD814 yellow place-order button, summary box.
   ========================================================================== */
.ag-co,
html[data-theme="dark"] .ag-co {
  background: #EAEDED !important;
  color: #0F1111 !important;
}

.ag-co .ag-co-step-link {
  color: #007185;
}

.ag-co .ag-co-step-link:hover {
  color: #C7511F;
}

.ag-co .ag-co-step.is-done .ag-co-step-dot {
  background: #E7F5E7;
  border-color: #A5D6A7;
  color: #007600;
}

.ag-co .ag-co-step.is-current .ag-co-step-dot {
  background: #232F3E;
  border-color: #232F3E;
  color: #FFFFFF;
}

.ag-co .ag-co-head {
  border-bottom: 1px solid #D5D9D9;
}

.ag-co .ag-co-head::after {
  background: #FFA41C;
}

.ag-co .checkout-page-title.ag-co-title {
  color: #0F1111 !important;
}

.ag-co .ag-co-back-link {
  color: #007185 !important;
}

.ag-co .ag-co-back-link:hover {
  color: #C7511F !important;
}

/* White Form Cards */
.ag-co .ag-co-card {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
}

.ag-co .ag-co-card-head {
  border-bottom: 1px solid #EAEDED;
}

.ag-co .ag-co-sec-num {
  background: #232F3E;
  border-color: #232F3E;
  color: #FFFFFF;
}

.ag-co .ag-co-req {
  color: #B12704;
}

.ag-co .ag-co-input,
.ag-co .ag-co-select {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 4px !important;
  color: #0F1111 !important;
}

.ag-co .ag-co-input:focus,
.ag-co .ag-co-select:focus {
  border-color: #007185 !important;
  box-shadow: 0 0 0 3px #C8F3FA !important;
}

/* Payment Method Tiles */
.ag-co .ag-co-pay-tile {
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 8px;
}

.ag-co .ag-co-pay-tile:hover {
  border-color: #BBBFBF;
  background: #F7F8F8;
}

.ag-co .ag-co-pay-tile.is-selected,
.ag-co .ag-co-pay-tile:has(.ag-co-pay-radio:checked) {
  background: #FCF5EE !important;
  border-color: #E77600 !important;
}

.ag-co .ag-co-pay-tile.is-selected .ag-co-pay-control,
.ag-co .ag-co-pay-radio:checked + .ag-co-pay-label .ag-co-pay-control {
  border-color: #007185;
}

.ag-co .ag-co-pay-control::after {
  background: #007185;
}

.ag-co .ag-co-pay-tile.is-selected .ag-co-pay-icon,
.ag-co .ag-co-pay-tile:has(.ag-co-pay-radio:checked) .ag-co-pay-icon {
  border-color: #E77600;
  color: #C7511F;
}

/* Summary Sidebar Card */
.ag-co .ag-co-summary {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-top: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  top: 120px;
}

.ag-co .ag-co-count-badge {
  background: #F0F2F2;
  border-color: #D5D9D9;
  color: #0F1111;
}

.ag-co #checkout-items-list > div {
  border-bottom: 1px solid #EAEDED !important;
}

.ag-co #checkout-items-list > div > div:last-child {
  color: #B12704 !important;
}

.ag-co #checkout-total-val {
  color: #B12704 !important;
}

.ag-co .ag-co-ship-val {
  background: #E7F5E7;
  border-color: #A5D6A7;
  color: #007600;
}

/* Yellow Pill Place-Order Button */
.ag-co .ag-co-submit-btn,
.ag-co #submit-checkout-btn {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5) !important;
}

.ag-co .ag-co-submit-btn:hover:not(:disabled),
.ag-co #submit-checkout-btn:hover:not(:disabled) {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.ag-co .ag-co-reassure {
  background: #F7F8F8;
  border-color: #D5D9D9;
}

.ag-co .ag-co-reassure-row svg {
  color: #007600;
}

/* Legacy Checkout Template (page-checkout.php without .ag-co) */
.amazon-checkout-layout:not(.ag-co-layout) .checkout-section-card {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 20px 22px !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .checkout-section-card h2 {
  color: #C7511F !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #EAEDED !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .form-group label {
  color: #0F1111 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .form-group input,
.amazon-checkout-layout:not(.ag-co-layout) .form-group select {
  background: #FFFFFF !important;
  border: 1px solid #888C8C !important;
  border-radius: 4px !important;
  color: #0F1111 !important;
  min-height: 44px !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .form-group input:focus,
.amazon-checkout-layout:not(.ag-co-layout) .form-group select:focus {
  border-color: #007185 !important;
  box-shadow: 0 0 0 3px #C8F3FA !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .payment-method-box {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .payment-method-box:has(input:checked) {
  background: #FCF5EE !important;
  border-color: #E77600 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .payment-method-box input[type="radio"] {
  accent-color: #007185 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .checkout-sidebar-panel {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  top: 120px;
}

.amazon-checkout-layout:not(.ag-co-layout) .checkout-sidebar-panel .sidebar-sec-wrap {
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  padding: 0 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .checkout-summary-title {
  color: #0F1111 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) #checkout-items-list > div {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #EAEDED !important;
}

.amazon-checkout-layout:not(.ag-co-layout) #checkout-items-list > div:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.amazon-checkout-layout:not(.ag-co-layout) #checkout-items-list > div:last-child {
  border-bottom: 0 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) #checkout-items-list > div > div:last-child {
  color: #B12704 !important;
}

.amazon-checkout-layout:not(.ag-co-layout) #checkout-total-val,
.amazon-checkout-layout:not(.ag-co-layout) .summary-row.total-row strong {
  color: #B12704 !important;
  font-size: 20px !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .btn-amazon-checkout,
.amazon-checkout-layout:not(.ag-co-layout) #submit-checkout-btn {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  color: #0F1111 !important;
  border-radius: 999px !important;
  min-height: 46px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5) !important;
}

.amazon-checkout-layout:not(.ag-co-layout) .btn-amazon-checkout:hover,
.amazon-checkout-layout:not(.ag-co-layout) #submit-checkout-btn:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
}

/* Order Confirmation Card (.gst-done injected by main.js) */
.gst-done,
.ag-co .gst-done {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-top: 4px solid #007600 !important;
  border-radius: 8px !important;
  color: #0F1111 !important;
}

.gst-done__icon,
.ag-co .gst-done__icon {
  background: #E7F5E7 !important;
  border-color: #A5D6A7 !important;
  color: #007600 !important;
}

.gst-done__total strong,
.ag-co .gst-done__total strong {
  color: #B12704 !important;
}

.gst-done__wa,
.ag-co .gst-done__wa {
  background: #007600 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}

.gst-done__wa:hover,
.ag-co .gst-done__wa:hover {
  background: #005C00 !important;
  color: #FFFFFF !important;
}

.gst-done__more,
.ag-co .gst-done__more {
  color: #007185 !important;
}

.gst-done__more:hover,
.ag-co .gst-done__more:hover {
  color: #C7511F !important;
}

/* ==========================================================================
   10. FOOTER (#37475A Back-to-Top, #232F3E Main, #131A22 Bottom, #DDD Links)
   ========================================================================== */
.ag-footer,
html[data-theme="dark"] .ag-footer {
  background: #232F3E !important;
  background-color: #232F3E !important;
  color: #DDDDDD !important;
  border-top: 0 !important;
  font-family: var(--amz-font-body) !important;
}

.ag-footer :focus-visible {
  outline: 2px solid #FFA41C !important;
  outline-offset: 2px !important;
}

/* Back-to-top strip */
.ag-footer .ag-footer-backtop {
  background: #37475A !important;
  border-bottom: 0 !important;
  color: #FFFFFF !important;
  min-height: 48px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

.ag-footer .ag-footer-backtop:hover {
  background: #485769 !important;
  color: #FFFFFF !important;
}

.ag-footer .ag-footer-backtop svg {
  color: #FFFFFF !important;
}

/* Footer columns */
.ag-footer .ag-footer-col + .ag-footer-col {
  border-inline-start-color: rgba(255, 255, 255, 0.1) !important;
}

.ag-footer .ag-footer-col-title {
  color: #FFFFFF !important;
  font-family: var(--amz-font-title) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
}

.ag-footer .ag-footer-col-title::after {
  background: #FFA41C !important;
}

.ag-footer .ag-footer-link {
  color: #DDDDDD !important;
  border-bottom: 0 !important;
  min-height: 36px;
  padding-block: 5px;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.ag-footer .ag-footer-link:hover {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

.ag-footer .ag-footer-link svg {
  color: #CCCCCC !important;
}

.ag-footer .ag-footer-link:hover svg {
  color: #FFA41C !important;
}

.ag-footer .ag-footer-contact-note {
  color: #DDDDDD !important;
}

.ag-footer .ag-footer-contact-line {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid #3A4553 !important;
  color: #DDDDDD !important;
}

.ag-footer .ag-footer-contact-line strong {
  color: #CCCCCC !important;
}

.ag-footer .ag-footer-tel {
  color: #FFFFFF !important;
}

.ag-footer .ag-footer-tel:hover {
  color: #FFA41C !important;
}

.ag-footer .ag-footer-wa-btn {
  background: #FFD814 !important;
  border: 1px solid #FCD200 !important;
  border-radius: 999px !important;
  color: #0F1111 !important;
}

.ag-footer .ag-footer-wa-btn:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
  transform: none !important;
}

.ag-footer .ag-footer-fb-btn {
  background: transparent !important;
  border: 1px solid #848688 !important;
  border-radius: 999px !important;
  color: #DDDDDD !important;
}

.ag-footer .ag-footer-fb-btn svg {
  color: #FFA41C !important;
}

.ag-footer .ag-footer-fb-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  transform: none !important;
}

/* Footer brand & payment methods strip */
.ag-footer .ag-footer-settings {
  background: #232F3E !important;
  border-top: 1px solid #3A4553 !important;
  border-bottom: 0 !important;
}

.ag-footer .ag-footer-lockup {
  filter: grayscale(1) invert(1) contrast(1.55) brightness(1.15);
}

.ag-footer .ag-footer-brand-tagline {
  color: #CCCCCC !important;
}

.ag-footer .ag-footer-payments-label {
  color: #CCCCCC !important;
}

.ag-footer .ag-footer-payment-pill {
  background: transparent !important;
  border: 1px solid #848688 !important;
  border-radius: 4px !important;
  color: #DDDDDD !important;
}

.ag-footer .ag-footer-payment-pill svg {
  color: #FFA41C !important;
}

/* Footer bottom dark strip (#131A22) */
.ag-footer .ag-footer-bottom {
  background: #131A22 !important;
  color: #DDDDDD !important;
  padding-block: 18px 22px !important;
}

.ag-footer .ag-footer-policy-link {
  color: #DDDDDD !important;
}

.ag-footer .ag-footer-policy-link:hover {
  color: #FFFFFF !important;
}

.ag-footer .ag-footer-policy-link + .ag-footer-policy-link::before {
  background: #556170 !important;
}

.ag-footer .ag-footer-copy {
  color: #DDDDDD !important;
}

/* Legacy .amazon-footer fallback */
.amazon-footer,
html[data-theme="dark"] .amazon-footer {
  background: #232F3E !important;
  color: #DDDDDD !important;
}

.amazon-footer-bottom {
  background: #131A22 !important;
}

.back-to-top {
  background: #37475A !important;
  color: #FFFFFF !important;
}

.back-to-top:hover {
  background: #485769 !important;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (Tablet & Mobile 390px)
   No horizontal overflow, no bottom gap, all tap targets >= 44px.
   ========================================================================== */
@media (max-width: 1020px) {
  .ag .ag-product-grid,
  .product-grid,
  .catalog-layout-with-sidebar .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .gst-single-layout {
    grid-template-columns: 1fr !important;
  }

  .gst-product-info {
    position: static !important;
  }

  .amazon-cart-layout,
  .amazon-checkout-layout:not(.ag-co-layout) {
    grid-template-columns: 1fr !important;
  }

  .checkout-sidebar-panel {
    position: static !important;
  }
}

@media (max-width: 768px) {
  /* Move bottom-nav clearance into the dark footer bottom strip so there is
     never a light grey gap below #131A22 */
  html body {
    padding-bottom: 0 !important;
  }

  .ag-footer .ag-footer-bottom {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .wrap,
  .gst-container,
  .ag .ag-container,
  .ag .ag-categories-section > .ag-container,
  .ag .ag-products-section > .ag-container {
    width: calc(100% - 24px) !important;
  }

  .ag .ag-container {
    padding-inline: 0 !important;
  }

  .ag .ag-categories-section > .ag-container,
  .ag .ag-products-section > .ag-container,
  .ag .ag-concierge-panel,
  .rs-allcats,
  .gst-gallery-section,
  .gst-product-info,
  .gst-related-products .wrap {
    padding: 14px !important;
  }

  /* Compact 390px navy mobile header: hide desktop .market-search above full-width .mobile-search-bar-wrap */
  header#navbar.topbar.marketplace-header,
  #navbar.topbar,
  #navbar.marketplace-header,
  .topbar.marketplace-header {
    background: #131921 !important;
    background-color: #131921 !important;
    color: #FFFFFF !important;
    border-bottom: 0 !important;
  }

  #navbar .header-main-row {
    width: 100% !important;
    min-height: 54px !important;
    padding: 6px 12px 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  #navbar .market-search,
  .marketplace-header .market-search,
  .header-main-row .market-search {
    display: none !important;
  }

  #navbar .header-sub-row,
  .marketplace-header .header-sub-row {
    display: none !important;
  }

  #navbar .mobile-search-bar-wrap,
  #navbar .mobile-search-bar-wrap.open,
  .marketplace-header .mobile-search-bar-wrap {
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: #131921 !important;
    background-color: #131921 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    padding: 2px 12px 10px 12px !important;
  }

  #navbar .brand {
    padding: 4px !important;
    min-width: 0;
  }

  #navbar .brand img.brand-lockup {
    height: 32px !important;
  }

  #navbar .nav-actions {
    margin-inline-start: auto !important;
    flex-shrink: 0;
  }

  #navbar .nav-actions .desktop-whatsapp {
    display: none !important;
  }

  /* 44px+ touch targets on mobile (matching desktop rule specificity) */
  #navbar .nav-actions .nav-icon-btn,
  .ag-filters button,
  .tabs .tab,
  .catalog-pagination .page-numbers,
  .ag .ag-spotlight-tab,
  .ag-spot-arrow,
  .ag-footer .ag-footer-link,
  .ag-footer .ag-footer-policy-link,
  .ag-footer .ag-footer-channel-btn,
  .ag-cart .ag-cart-qty-btn,
  .ag-cart .ag-cart-remove-btn,
  .gst-breadcrumbs a,
  .btn,
  .ag .ag-btn,
  .ag .ag-product-card__actions .ag-btn,
  .product-grid .marketplace-product-card .market-card-actions .btn,
  .gst-buy-actions-wrapper .gst-btn,
  .gst-qty-btn,
  .ag-cart .ag-cart-checkout-btn,
  .ag-cart .ag-cart-empty-btn,
  .amazon-cart-layout .btn-amazon-checkout,
  .amazon-checkout-layout:not(.ag-co-layout) .btn-amazon-checkout,
  .ag-co .ag-co-submit-btn,
  .btn-amazon-checkout {
    min-height: 44px !important;
  }

  .gst-qty-btn {
    min-width: 44px !important;
  }

  .ag .ag-spot-arrow {
    width: 44px !important;
    height: 44px !important;
  }

  .ag .ag-search-box input,
  .ag .ag-sort-box select,
  .ag .ag-inquiry-field select,
  .ag .ag-inquiry-field textarea,
  .rs-allcats-filter input,
  .price-range-form input,
  .form-group input,
  .form-group select {
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .filter-list li a,
  .amazon-checkbox-link,
  .price-range-form button[type="submit"],
  .catalog-filters-mobile summary {
    min-height: 44px !important;
  }

  .ag .ag-product-grid,
  .product-grid,
  .catalog-layout-with-sidebar .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ag .ag-product-card__body,
  .product-grid .marketplace-product-card .product-body {
    padding: 10px !important;
    gap: 5px !important;
  }

  .ag .ag-product-card__title,
  .product-grid .marketplace-product-card .product-title {
    font-size: 13px !important;
    line-height: 1.45 !important;
    height: 2.9em !important;
    min-height: 2.9em !important;
    max-height: 2.9em !important;
  }

  .ag .ag-product-card__price,
  .product-grid .marketplace-product-card .market-price-row .price-val {
    font-size: 16px !important;
  }

  /* Stack card quantity stepper cleanly inside 2-col 390px cards with 44px tap targets */
  .product-card .gst-cq__row,
  .ag-product-card .gst-cq__row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
  }

  .product-card .gst-cq__ctl,
  .ag-product-card .gst-cq__ctl {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  }

  .product-card .gst-cq__btn,
  .ag-product-card .gst-cq__btn {
    width: 44px !important;
    min-height: 44px !important;
  }

  .product-card .gst-cq__input,
  .ag-product-card .gst-cq__input {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .ag-cart .ag-cart-stepper {
    height: 44px !important;
  }

  .ag-cart .ag-cart-qty-btn {
    width: 44px !important;
  }

  .ag-cart .ag-cart-items-col {
    padding: 4px 14px !important;
  }

  .ag-co {
    padding-bottom: 56px !important;
  }

  .ag-co:has(.gst-done) {
    padding-bottom: 24px !important;
  }

  .ag-co .ag-co-cta-bar {
    background: #FFFFFF !important;
    border-top: 1px solid #D5D9D9 !important;
    box-shadow: 0 -4px 14px rgba(15, 17, 17, 0.12) !important;
  }

  .ag-co .ag-co-cta-total-val {
    color: #B12704 !important;
  }

  .gst-gallery-main {
    min-height: 300px !important;
  }

  .ag-footer .ag-footer-cols {
    border-top: 0;
  }

  .ag-footer .ag-footer-col + .ag-footer-col {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }

  .ag-footer .ag-footer-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .ag-footer .ag-footer-list > li:last-child .ag-footer-link {
    border-bottom-color: transparent !important;
  }
}

@media (max-width: 360px) {
  .ag .ag-product-grid,
  .product-grid,
  .catalog-layout-with-sidebar .product-grid {
    gap: 8px !important;
  }

  .ag .ag-product-card__actions .ag-btn,
  .product-grid .marketplace-product-card .market-card-actions .btn {
    font-size: 12px !important;
    padding: 8px 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
