/*
 * HOB Design System — UI/UX Enhancements
 * ========================================
 * Applied on top of base style.css
 *
 * Design Principles (WCAG 2.1 AA):
 *  1. Accessibility-first — 4.5:1 contrast, focus rings, aria
 *  2. HOB Brand: Navy #15417E + Gold #FFD50D
 *  3. Mobile-first, 44px touch targets
 *  4. Supports light & dark mode
 *  5. prefers-reduced-motion compliant
 *  6. No emoji icons — ion-icons only
 */


/* ══════════════════════════════════════════════
   Z-INDEX SCALE
   Consistent layering prevents overlap bugs
══════════════════════════════════════════════ */
:root {
  --z-base:     1;
  --z-dropdown: 10;   /* Dropdown menus, tooltips */
  --z-sticky:   20;   /* Sticky header, sidebar */
  --z-overlay:  30;   /* Page dimming overlays */
  --z-modal:    40;   /* Modal dialogs */
  --z-toast:    50;   /* Toast / snackbar notifications */
}


/* ══════════════════════════════════════════════
   HOB BRAND TOKENS
   Single source of truth for all brand values.
   Semantic aliases prevent token mis-use.
══════════════════════════════════════════════ */
:root {
  /* ── Raw Brand Palette ── */
  --hob-navy:          #15417E;   /* Primary brand navy */
  --hob-navy-dark:     #0f2f5c;   /* Hover / active */
  --hob-navy-light:    #1e5299;   /* Lighter variant */
  --hob-gold:          #FFD50D;   /* Accent highlight */
  --hob-gold-dark:     #c4a400;   /* Used for text on light bg — passes 4.5:1 */
  --hob-gray-100:      #f7f8fa;
  --hob-gray-200:      #ebebeb;
  --hob-gray-300:      #d4d4d4;
  --hob-gray-600:      #767676;   /* Min 4.54:1 on white — AA pass */
  --hob-gray-700:      #444444;   /* 9.7:1 — strong body text */
  --hob-gray-900:      #1a1a1a;   /* 16:1 — headings */

  /* ── Semantic Semantic Tokens — Light Mode ── */
  --color-primary:            var(--hob-navy);
  --color-primary-hover:      var(--hob-navy-dark);
  --color-accent:             var(--hob-gold);

  /* Text — all values pass 4.5:1 contrast on white */
  --color-text-primary:       var(--hob-gray-900);   /* 16:1 */
  --color-text-secondary:     var(--hob-gray-700);   /*  9.7:1 */
  --color-text-muted:         var(--hob-gray-600);   /*  4.54:1 min */
  --color-text-link:          var(--hob-navy);       /* 10.2:1 */
  --color-text-inverse:       #ffffff;

  /* Surfaces */
  --color-bg:                 #ffffff;
  --color-bg-subtle:          var(--hob-gray-100);
  --color-bg-muted:           var(--hob-gray-200);

  /* Borders */
  --color-border:             var(--hob-gray-300);
  --color-border-focus:       var(--hob-navy);

  /* Buttons */
  --color-btn-primary-bg:     var(--hob-navy);
  --color-btn-primary-fg:     #ffffff;
  --color-btn-primary-hover:  var(--hob-navy-dark);
  /* Note: gold buttons use navy text to pass contrast: #FFD50D + #15417E = 8.5:1 */
  --color-btn-accent-bg:      var(--hob-gold);
  --color-btn-accent-fg:      var(--hob-navy);
  --color-btn-accent-hover:   var(--hob-gold-dark);

  /* Status tokens */
  --color-success:            #1a7a4a;
  --color-danger:             #c0392b;
  --color-warning:            var(--hob-gold-dark);

  /* ── Spacing Scale (4 px grid) ── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* ── Typography ── */
  --font-size-xs:     0.75rem;    /* 12px */
  --font-size-sm:     0.875rem;   /* 14px */
  --font-size-base:   1rem;       /* 16px */
  --font-size-lg:     1.125rem;   /* 18px */
  --font-size-xl:     1.25rem;    /* 20px */
  --line-height-body:    1.65;
  --line-height-heading: 1.2;
  --max-line-length:     65ch;

  /* ── Radius ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg:    0 8px 24px rgba(0, 0, 0, 0.12);

  /* ── Animation ── */
  --dur-fast:  150ms;
  --dur-base:  200ms;
  --dur-slow:  300ms;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Touch Targets ── */
  --touch-min: 44px;

  /* Force light theme — no auto dark mode */
  color-scheme: light;
}


/* ══════════════════════════════════════════════
   ACCESSIBILITY — SKIP NAVIGATION
   First element in <body>. Hidden until focused.
   Lets keyboard users jump straight to content.
══════════════════════════════════════════════ */

/* Hide visually but keep accessible to screen readers */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: var(--z-toast);
  background: var(--hob-gold);
  color: var(--hob-navy);
  font-weight: 700;
  font-size: var(--font-size-sm);
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  /* Animate into view on focus */
  transition: top var(--dur-fast);
}

.skip-nav:focus {
  top: var(--sp-4);
  outline: 3px solid var(--hob-navy);
  outline-offset: 2px;
}


/* ══════════════════════════════════════════════
   ACCESSIBILITY — FOCUS STATES
   All interactive elements must show visible
   focus indicators for keyboard navigation.
   Uses gold ring — visible on all surfaces.
══════════════════════════════════════════════ */

/* Gold focus ring — 3px minimum, clearly visible */
:focus-visible {
  outline: 3px solid var(--hob-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Clean up pointer-driven focus (mouse/touch) */
:focus:not(:focus-visible) {
  outline: none;
}

/* Inside dark footer — use gold which is always visible */
footer :focus-visible {
  outline-color: var(--hob-gold);
}

/* Text inputs get inset focus ring for cleaner look */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hob-navy);
  outline-offset: -2px;
  border-color: var(--hob-navy);
  border-radius: var(--radius-sm);
}


/* ══════════════════════════════════════════════
   BASE — TYPOGRAPHY
══════════════════════════════════════════════ */

/* Always 16px base on mobile — never go below for readability */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  /* Be Vietnam Pro: thiết kế riêng cho tiếng Việt, đủ 9 bộ chữ đậm */
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Limit paragraph line length for optimal readability (65-75ch) */
p,
.banner-subtitle,
.newsletter-desc,
.testimonial-desc,
.service-desc,
.blog-meta {
  max-width: var(--max-line-length);
}


/* ══════════════════════════════════════════════
   CURSOR — All interactive elements
   Explicitly declare cursor: pointer so there
   is no ambiguity about what is clickable.
══════════════════════════════════════════════ */
a,
button,
[role="button"],
select,
input[type="checkbox"],
input[type="radio"],
label[for],
.category-btn,
.banner-btn,
.btn-action,
.action-btn,
.social-link,
.menu-title,
.sidebar-accordion-menu,
.accordion-menu,
.toast-close-btn,
.modal-close-btn,
.menu-close-btn,
.sidebar-close-btn,
.search-btn,
.btn-newsletter,
.add-cart-btn,
.showcase-category,
.showcase-title,
.footer-nav-link,
.footer-category-link,
.submenu-title,
.sidebar-submenu-title,
.cta-btn,
.cta-content,
.header-logo {
  cursor: pointer;
}


/* ══════════════════════════════════════════════
   TOUCH TARGETS — Minimum 44×44 px
   Prevents mis-taps on small mobile screens.
══════════════════════════════════════════════ */

/* Icon-only controls */
.action-btn,
.btn-action,
.social-link,
.toast-close-btn,
.modal-close-btn,
.menu-close-btn,
.sidebar-close-btn,
.search-btn {
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Text buttons / CTAs */
.category-btn,
.banner-btn,
.btn-newsletter,
.add-cart-btn,
.cta-btn {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}


/* ══════════════════════════════════════════════
   COLOUR CONTRAST FIXES
   The previous yellow (#FFD50D) was applied as
   text on white backgrounds — this fails 4.5:1.
   Rule: yellow is ONLY used on dark backgrounds
   or as a background colour itself.
══════════════════════════════════════════════ */

/* Category "View all" links */
.category-btn {
  color: var(--hob-navy);
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-base),
              color var(--dur-base);
}

.category-btn:hover {
  color: var(--hob-navy-dark);
  text-decoration-color: var(--hob-navy-dark);
}

/* Product prices — navy replaces yellow-on-white */
.product-minimal .price,
.product-featured .price,
.product-grid .price {
  color: var(--hob-navy);
  font-weight: 700;
}

/* Product category labels */
.product-grid .showcase-category {
  color: var(--hob-navy);
  font-weight: 600;
}

.product-minimal .showcase-category:hover,
.product-grid .showcase-category:hover {
  color: var(--hob-navy-dark);
}

/* Blog category tag */
.blog-category {
  color: var(--hob-navy);
  font-weight: 600;
}

.blog-title:hover {
  color: var(--hob-navy);
}

/* Star ratings — use darker gold so they pass contrast */
.product-featured .showcase-rating,
.product-grid .showcase-rating,
.sidebar .showcase-rating {
  color: var(--hob-gold-dark);
}

/* Service section icons */
.service-icon {
  color: var(--hob-navy);
}

.service-item:hover .service-icon {
  color: var(--hob-gold-dark);
}

/* Service text — upgrade from sonic-silver to pass contrast */
.service-title {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.service-desc {
  color: var(--color-text-muted);
}

/* Banner subtitle — placed over images, use navy for readability */
.banner-subtitle {
  color: var(--hob-navy);
  font-weight: 600;
  letter-spacing: 1.5px;
}


/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */

/* Header alert text — readable contrast */
.header-alert-news {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.3px;
}

.header-alert-news b {
  color: var(--hob-navy);
  font-weight: 600;
}

/* Logo link — add subtle focus state */
.header-logo {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.header-logo img {
  object-fit: contain;
  height: 48px;
  width: auto;
  max-width: 200px;
}

/* Search input — clear focus ring */
.header-search-container .search-field:focus-visible {
  outline: 2px solid var(--hob-navy);
  outline-offset: -2px;
  border-color: var(--hob-navy);
}

/* Search button */
.search-btn:hover {
  color: var(--hob-navy);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
}

/* Search input placeholder — boost contrast */
.header-search-container .search-field::placeholder {
  color: var(--hob-gray-600);
}

/* User action buttons */
.header-user-actions .action-btn {
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  transition: background var(--dur-base),
              color var(--dur-base);
}

.header-user-actions .action-btn:hover {
  background: var(--color-bg-subtle);
  color: var(--hob-navy);
}

/* Cart/wishlist count badge — navy badge, white text */
.header-user-actions .count,
.mobile-bottom-navigation .count {
  background: var(--hob-navy);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
}

/* Top-bar social links */
.header-social-container .social-link {
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--dur-base),
              color var(--dur-base);
}

.header-social-container .social-link:hover {
  background: var(--hob-gold);
  color: var(--hob-navy);
}

/* Top-bar selects */
.header-top-actions select {
  color: var(--color-text-secondary);
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  padding: 4px 0;
  border-radius: var(--radius-sm);
}


/* ══════════════════════════════════════════════
   DESKTOP NAVIGATION
══════════════════════════════════════════════ */

/* Nav menu titles — upgrade base contrast */
.desktop-menu-category-list .menu-category > .menu-title {
  color: var(--color-text-primary);
  font-weight: 600;
  transition: color var(--dur-base);
}

.desktop-menu-category-list .menu-category > .menu-title:hover {
  color: var(--hob-navy);
}

/* Gold underline indicator */
.desktop-menu-category-list .menu-category > .menu-title::after {
  background: var(--hob-gold);
  height: 2px;
}

/* Dropdown link colors */
.panel-list-item a:hover,
.dropdown-list .dropdown-item a:hover {
  color: var(--hob-navy);
}

.dropdown-panel-list .menu-title a {
  color: var(--color-text-primary);
}


/* ══════════════════════════════════════════════
   MOBILE NAVIGATION
══════════════════════════════════════════════ */

/* Mobile nav header */
.menu-top .menu-title {
  color: var(--hob-navy);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Accordion buttons — wider hit area */
.accordion-menu {
  padding: var(--sp-3) 0;
  width: 100%;
}

/* Mobile social links */
.menu-social-container .social-link {
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  transition: background var(--dur-base),
              color var(--dur-base);
}

.menu-social-container .social-link:hover {
  background: var(--hob-navy);
  color: #ffffff;
}

/* Mobile bottom navigation */
.mobile-bottom-navigation .action-btn {
  transition: color var(--dur-base);
}

.mobile-bottom-navigation .action-btn:hover {
  color: var(--hob-navy);
}


/* ══════════════════════════════════════════════
   BANNER / HERO SLIDER
   Hover effects use transform — no layout shift
══════════════════════════════════════════════ */

.banner-content {
  /* Backdrop improves text readability on any image */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--hob-gold);
}

.banner-title {
  color: var(--hob-navy);
  line-height: var(--line-height-heading);
}

/* CTA button — navy background, transitions to gold on hover */
.banner-btn {
  background: var(--hob-navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  padding: 10px var(--sp-5);
  text-transform: uppercase;
  /* transform transition avoids layout shift */
  transition: background var(--dur-base),
              color var(--dur-base),
              transform var(--dur-fast);
}

.banner-btn:hover {
  background: var(--hob-gold);
  color: var(--hob-navy);
  /* transform never causes layout shift */
  transform: translateY(-1px);
}

.banner-btn:active {
  transform: translateY(0);
}


/* ══════════════════════════════════════════════
   CATEGORY BAR
══════════════════════════════════════════════ */

.category-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  /* Smooth hover without layout shift */
  transition: border-color var(--dur-base),
              box-shadow var(--dur-base);
}

.category-item:hover {
  border-color: var(--hob-navy);
  box-shadow: var(--shadow-sm);
}

.category-item-title {
  color: var(--color-text-primary);
  font-weight: 600;
}

.category-item-amount {
  color: var(--color-text-muted);
}


/* ══════════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════════ */

.product-grid .showcase {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  /* box-shadow transition — no layout shift */
  transition: box-shadow var(--dur-base),
              border-color var(--dur-base);
}

.product-grid .showcase:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--hob-navy);
}

/* Slightly reduce scale to prevent image overflow artifacts */
.product-grid .showcase:hover .product-img {
  transform: scale(1.05);
}

/* Product title — readable contrast */
.product-grid .showcase-title {
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.product-grid .showcase-title:hover {
  color: var(--hob-navy);
}

/* Action buttons — big enough for touch */
.product-grid .btn-action {
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--dur-base),
              color var(--dur-base),
              border-color var(--dur-base);
}

.product-grid .btn-action:hover {
  background: var(--hob-navy);
  color: #ffffff;
  border-color: var(--hob-navy);
}

/* Featured product — add-to-cart CTA */
.product-featured .add-cart-btn {
  background: var(--hob-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  transition: background var(--dur-base);
}

.product-featured .add-cart-btn:hover {
  background: var(--hob-navy-dark);
}

/* Sale badge */
.product-grid .showcase-badge.pink {
  /* Replace pink badge with gold for HOB branding */
  background: var(--hob-gold);
  color: var(--hob-navy);
}

.product-grid .showcase-badge.black {
  background: var(--hob-navy);
  color: #ffffff;
}


/* ══════════════════════════════════════════════
   NEWSLETTER MODAL
══════════════════════════════════════════════ */

.modal-close-btn {
  background: var(--hob-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: background var(--dur-base);
}

.modal-close-btn:hover {
  background: var(--hob-navy-dark);
  opacity: 1; /* Override the base opacity change */
}

/* Email input */
.email-field {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--font-size-base);
  width: 100%;
  color: var(--color-text-primary);
  transition: border-color var(--dur-base);
}

.email-field:focus-visible {
  border-color: var(--hob-navy);
  outline: 2px solid var(--hob-navy);
  outline-offset: -2px;
}

/* Subscribe button */
.btn-newsletter {
  background: var(--hob-navy);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px var(--sp-6);
  width: 100%;
  transition: background var(--dur-base);
}

.btn-newsletter:hover {
  background: var(--hob-gold);
  color: var(--hob-navy);
}

/* Newsletter title */
.newsletter-title {
  color: var(--color-text-primary);
  font-size: 1.25rem;
}

/* Newsletter description */
.newsletter-desc {
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
}


/* ══════════════════════════════════════════════
   CTA SECTION — REDESIGNED
══════════════════════════════════════════════ */

/* Container: deep navy gradient, flush panel */
.cta-container {
  background: linear-gradient(135deg, #1a4f96 0%, #15417e 40%, #0e2b56 75%, #09193a 100%) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  aspect-ratio: unset !important;
  min-height: 300px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}

/* Hide old image/overlay approach */
.cta-container > img.cta-banner,
.cta-container > a.cta-content {
  display: none !important;
}

/* Inner layout: text left, image right */
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 36px 36px 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Text column */
.cta-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Gold discount badge pill */
.cta-discount-badge {
  display: inline-flex;
  align-items: center;
  background: #FFD50D;
  color: #15417e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 30px;
  width: fit-content;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Title: big, white, bold */
.cta-title {
  font-size: clamp(22px, 2.4vw, 32px) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Subtitle white/muted */
.cta-text {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Price in gold */
.cta-text strong {
  color: #FFD50D !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* CTA button: gold pill */
.cta-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #FFD50D !important;
  color: #15417e !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 12px 28px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  width: fit-content;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  box-shadow: 0 4px 16px rgba(255, 213, 13, 0.35) !important;
}

.cta-btn:hover {
  background: #ffffff !important;
  color: #15417e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255, 213, 13, 0.5) !important;
}

/* Image column: circular framed product photo */
.cta-img-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.cta-product-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 213, 13, 0.55);
  box-shadow:
    0 0 0 8px rgba(255, 213, 13, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta-container:hover .cta-product-img {
  transform: scale(1.06) rotate(2deg);
  box-shadow:
    0 0 0 10px rgba(255, 213, 13, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

/* Decorative blurred circles */
.cta-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.cta-deco-1 {
  width: 220px;
  height: 220px;
  bottom: -90px;
  right: 170px;
  background: rgba(255, 213, 13, 0.07);
}

.cta-deco-2 {
  width: 110px;
  height: 110px;
  top: -35px;
  left: -20px;
  background: rgba(255, 255, 255, 0.04);
}

.cta-deco-3 {
  width: 60px;
  height: 60px;
  top: 20px;
  right: 220px;
  background: rgba(255, 213, 13, 0.1);
}

/* Responsive: stack vertically on narrow panels */
@media (max-width: 480px) {
  .cta-inner {
    flex-direction: column;
    padding: 28px 24px;
    text-align: center;
    align-items: center;
  }

  .cta-discount-badge,
  .cta-btn { margin: 0 auto; }
}


/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */

.testimonial-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-sm);
}

.testimonial-name {
  color: var(--color-text-primary);
  font-weight: 700;
}

.testimonial-title {
  color: var(--color-text-muted);
}

.testimonial-desc {
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}


/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */

.sidebar-title {
  color: var(--hob-navy);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-accordion-menu:hover .menu-title {
  color: var(--hob-navy);
}

.sidebar-submenu-title:hover {
  color: var(--hob-navy);
}


/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════ */

.notification-toast {
  border-left: 4px solid var(--hob-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.toast-title {
  color: var(--hob-navy);
  font-weight: 600;
}

.toast-message {
  color: var(--color-text-muted);
}

.toast-meta {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Close button — meets touch target */
.toast-close-btn {
  color: var(--color-text-muted);
  transition: color var(--dur-base);
}

.toast-close-btn:hover {
  color: var(--hob-navy);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

/* Keep navy background; gold accents for visual hierarchy */
footer {
  background: var(--hob-navy);
}

.footer-category-title {
  /* Gold on navy: 8.5:1 — passes AAA */
  color: var(--hob-gold);
}

.category-box-title {
  color: #c0cedf;   /* Light blue-white on navy — 4.6:1 */
}

.footer-category-link {
  color: #9eb5d0;   /* Softer but passes 4.5:1 on navy */
  transition: color var(--dur-base);
}

.footer-category-link:hover {
  color: #ffffff;
}

.footer-nav .nav-title {
  color: #ffffff;
  font-weight: 600;
}

/* Gold underline on nav section titles */
.footer-nav .nav-title::before {
  background: var(--hob-gold);
}

.footer-nav-link,
.footer-nav-item .content {
  color: #9eb5d0;
  transition: color var(--dur-base);
}

.footer-nav-link:hover {
  color: #ffffff;
}

.footer-nav-item .icon-box {
  color: #9eb5d0;
}

.copyright {
  color: #9eb5d0;
}

.copyright a {
  color: var(--hob-gold);
  display: inline;
}

.copyright a:hover {
  color: #ffffff;
}


/* ══════════════════════════════════════════════
   DARK MODE — disabled
   Theme locked to light per brand requirement.
   color-scheme: light is set in :root above.
══════════════════════════════════════════════ */

/* Dark mode intentionally removed — light theme only */


/* ══════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   Removes all animations for users who prefer
   reduced motion. Preserves functionality.
══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable scroll-snap momentum animations */
  .slider-container,
  .has-scrollbar {
    scroll-snap-type: none;
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   375 → 768 → 1024 → 1440
══════════════════════════════════════════════ */

/* ── 375px (smallest supported viewport) ── */
@media (max-width: 374px) {
  .header-logo img {
    width: 90px;
    height: auto;
  }

  .banner-content {
    padding: var(--sp-4);
  }

  .banner-title {
    font-size: 1.1rem;
  }

  .category-item {
    min-width: 90%;
  }
}

/* ── 480px ── */
@media (min-width: 480px) {
  .banner-content {
    border-left-width: 5px;
  }
}

/* ── 768px ── */
@media (min-width: 768px) {
  .service-title {
    text-align: left;
  }

  .service-desc {
    text-align: left;
  }

  /* Larger body text on tablets */
  html {
    font-size: 17px;
  }
}

/* ── 1024px ── */
@media (min-width: 1024px) {
  /* Subtle bottom border to separate nav from content */
  .desktop-navigation-menu {
    border-bottom: 1px solid var(--color-border);
  }

  /* Dropdown transitions should be snappier on desktop */
  .dropdown-panel,
  .dropdown-list {
    transition: opacity var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                visibility var(--dur-fast);
  }

  /* Showcase hover actions slide in faster */
  .product-grid .showcase-actions {
    transition: transform var(--dur-base) var(--ease-out);
  }
}

/* ── 1440px ── */
@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }

  .banner-content {
    max-width: 500px;
  }
}


/* ══════════════════════════════════════════════
   MODERN FULL-WIDTH OVERHAUL
   ─ Fluid container   ─ Glassmorphism header
   ─ Hero edge-to-edge ─ Card depth system
   ─ Section rhythm    ─ Modern typography
══════════════════════════════════════════════ */

/* ── 1. FLUID CONTAINER — removes hard 1350px cap ── */
.container {
  width: 100%;
  max-width: 1600px !important;
  padding-inline: clamp(16px, 4vw, 80px) !important;
  margin-inline: auto;
}

/* Header containers stay fluid too */
.header-top .container,
.header-main .container,
.desktop-navigation-menu .container,
.footer-nav .container,
.footer-category .container {
  max-width: 1600px !important;
  padding-inline: clamp(16px, 4vw, 80px) !important;
}


/* ── 2. STICKY GLASSMORPHISM HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(21, 65, 126, 0.12);
  box-shadow: 0 2px 20px rgba(21, 65, 126, 0.08);
  transition: box-shadow var(--dur-base);
}

header:has(.header-main) {
  padding-block: 0;
}

/* Top bar — slightly compressed */
.header-alert-news {
  padding-block: 6px;
  font-size: 0.8125rem;
}

/* Header main row — compact padding */
.header-main {
  padding: 8px 0 !important;
}

/* Top alert bar — tighter */
.header-top {
  padding-block: 4px !important;
}

/* Logo — controlled height across all breakpoints */
.header-logo img {
  height: 40px !important;
}

@media (min-width: 1200px) {
  .header-logo img {
    height: 44px !important;
  }
}

/* Search field — shorter vertically */
.header-search-container .search-field {
  padding-block: 8px !important;
}

/* Action buttons — tighter */
.header-user-actions .action-btn {
  min-height: 38px !important;
  min-width: 38px !important;
}

/* Search bar — pill shape */
.header-search-container {
  border-radius: var(--radius-full) !important;
  overflow: hidden;
  border: 1.5px solid var(--color-border) !important;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.header-search-container:focus-within {
  border-color: var(--hob-navy) !important;
  box-shadow: 0 0 0 3px rgba(21, 65, 126, 0.12);
}

.header-search-container .search-field {
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 10px 16px;
}


/* ── 3. SLIDER — edge-to-edge hero ── */
.slider-container {
  border-radius: 0 !important;
  width: 100vw;
  margin-inline: calc(50% - 50vw);   /* Break out of container */
}

.slider-item {
  height: clamp(320px, 56vw, 600px) !important;
}

.slider-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Banner content glass card */
.banner-content {
  max-width: min(460px, 90%) !important;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 5px solid var(--hob-gold) !important;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
  box-shadow: var(--shadow-lg);
}

.banner-title {
  font-size: clamp(1.4rem, 3vw, 2.25rem) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15 !important;
}

.banner-subtitle {
  font-size: clamp(0.75rem, 1.2vw, 0.9375rem) !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

/* Slider dots and buttons */
.slider-controls {
  bottom: 20px;
}

.slider-btn {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full) !important;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-base), transform var(--dur-fast);
}

.slider-btn:hover {
  background: var(--hob-navy) !important;
  color: #fff !important;
  transform: scale(1.08);
}


/* ── 4. CATEGORY SECTION ── */
.category {
  padding-block: clamp(28px, 4vw, 56px);
}

.category-item {
  border-radius: var(--radius-lg) !important;
  padding: 20px 16px !important;
  gap: 12px !important;
  background: var(--color-bg) !important;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base),
              border-color var(--dur-base) !important;
}

.category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(21, 65, 126, 0.14) !important;
  border-color: var(--hob-navy) !important;
}

.category-item-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.category-item-title {
  font-size: 0.9rem !important;
  font-weight: 700;
}


/* ── 5. SECTION TITLES ── */
.title {
  font-size: clamp(1.2rem, 2.5vw, 1.625rem) !important;
  font-weight: 800;
  color: var(--hob-navy) !important;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 12px;
}

.title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--hob-gold);
  border-radius: var(--radius-full);
}


/* ── 6. PRODUCT CARDS — depth & interaction ── */
.product-grid {
  gap: 20px !important;
}

.product-grid .showcase {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: 1px solid var(--color-border) !important;
  background: var(--color-bg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base),
              border-color var(--dur-base) !important;
}

.product-grid .showcase:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(21, 65, 126, 0.16) !important;
  border-color: var(--hob-navy) !important;
}

.product-grid .showcase-banner {
  overflow: hidden;
  background: var(--hob-gray-100);
  aspect-ratio: 1 / 1;
}

.product-grid .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out) !important;
}

.product-grid .showcase:hover .product-img.default {
  transform: scale(1.08) !important;
}

.product-grid .showcase-content {
  padding: 14px 16px 18px !important;
}

.product-grid .showcase-title {
  font-weight: 700;
  font-size: 0.9375rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.product-grid .showcase-rating {
  margin-block: 6px 8px;
  font-size: 0.75rem;
}

.product-grid .price {
  font-size: 1.0625rem !important;
  font-weight: 800;
}

.product-grid del {
  font-size: 0.8125rem;
  opacity: 0.55;
}

/* Showcase actions overlay — slide up from bottom */
.product-grid .showcase-actions {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(6px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  gap: 4px !important;
  padding-block: 8px;
}

.product-grid .btn-action {
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: background var(--dur-fast),
              color var(--dur-fast),
              border-color var(--dur-fast) !important;
}

.product-grid .btn-action:hover {
  background: var(--hob-navy) !important;
  color: #fff !important;
  border-color: var(--hob-navy) !important;
}

/* Showcase badge */
.showcase-badge {
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm) !important;
  padding: 4px 10px !important;
}


/* ── 7. PRODUCT MINIMAL (sidebar) ── */
.product-minimal.has-scrollbar {
  gap: 16px;
}

.product-minimal .showcase {
  border-radius: var(--radius-md);
  padding: 10px;
  transition: background var(--dur-base);
}

.product-minimal .showcase:hover {
  background: var(--hob-gray-100);
}


/* ── 8. SECTION RHYTHM — alternating bg ── */
.product-box > *:nth-child(even),
.product-main:nth-child(even) {
  background: var(--hob-gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}


/* ── 9. FEATURED PRODUCT ── */
.product-featured .showcase {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base);
}

.product-featured .showcase:hover {
  box-shadow: var(--shadow-md);
}


/* ── 10. TESTIMONIAL / CTA / SERVICE BAND ── */
.testimonials-box {
  gap: clamp(16px, 3vw, 32px) !important;
}

.testimonial-card {
  padding: clamp(20px, 2.5vw, 32px) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base), box-shadow var(--dur-base) !important;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

.cta-container {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

.cta-content {
  padding: clamp(20px, 3vw, 40px) !important;
}

.cta-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
  font-weight: 800;
}

.service-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.service-item {
  border-radius: var(--radius-md);
  padding: 12px !important;
  transition: background var(--dur-base), transform var(--dur-base);
}

.service-item:hover {
  background: var(--hob-gray-100);
  transform: translateY(-2px);
}

.service-icon ion-icon {
  font-size: 1.75rem;
}


/* ── 11. BLOG CARDS ── */
.blog-card {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-card .blog-banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.blog-card:hover .blog-banner {
  transform: scale(1.05);
}

.blog-content {
  padding: 16px 18px 20px !important;
}

.blog-title {
  font-size: 0.9375rem !important;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── 12. SIDEBAR ── */
.sidebar {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--color-border) !important;
  padding: 20px !important;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.875rem !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hob-gold);
  margin-bottom: 16px !important;
}


/* ── 13. FOOTER MODERNISATION ── */
footer {
  background: linear-gradient(160deg, var(--hob-navy) 0%, #0c2a56 100%) !important;
}

.footer-category {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding-block: clamp(28px, 4vw, 48px) !important;
}

.footer-category-box {
  gap: 8px !important;
}

.footer-nav {
  padding-block: clamp(28px, 4vw, 48px) !important;
}

.footer-nav-list {
  gap: 8px !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  padding-block: 20px !important;
}

.payment-img {
  border-radius: var(--radius-sm);
  opacity: 0.85;
}


/* ── 14. MOBILE BOTTOM NAV — raise it ── */
.mobile-bottom-navigation {
  box-shadow: 0 -4px 20px rgba(21, 65, 126, 0.10);
  border-top: 1px solid var(--color-border);
}


/* ── 15. NOTIFICATION TOAST ── */
.notification-toast {
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 32px rgba(21, 65, 126, 0.18) !important;
  min-width: min(320px, 90vw);
}


/* ── 16. SCROLL-BAR TRACK (webkit only) ── */
.has-scrollbar::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--hob-gray-200);
  border-radius: var(--radius-full);
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--hob-navy);
  border-radius: var(--radius-full);
}


/* ── 17. RESPONSIVE FULL-WIDTH GRID ── */
@media (min-width: 1600px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .slider-item {
    height: 640px !important;
  }

  .banner-title {
    font-size: 2.5rem !important;
  }
}

@media (min-width: 1900px) {
  .container {
    max-width: 1800px !important;
  }
}


/* ══════════════════════════════════════════════
   18. TESTIMONIAL / CTA / SERVICE RE-LAYOUT
══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .testimonials-box {
    display: grid !important;
    grid-template-columns: minmax(300px, 0.95fr) minmax(520px, 1.55fr) !important;
    grid-template-areas:
      "testimonial cta"
      "service service";
    align-items: stretch;
    gap: 22px !important;
  }

  .testimonials-box > .testimonial {
    grid-area: testimonial;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .testimonials-box > .cta-container {
    grid-area: cta;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 300px !important;
  }

  .testimonials-box > .service {
    grid-area: service;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .service-container {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px !important;
    padding: 16px !important;
  }

  .service-item {
    min-width: 0 !important;
    width: 100% !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 12px !important;
  }
}

@media (max-width: 1023px) {
  .testimonials-box {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px !important;
  }

  .testimonials-box > .testimonial,
  .testimonials-box > .cta-container,
  .testimonials-box > .service {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .service-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    padding: 14px !important;
  }

  .service-item {
    min-width: 0 !important;
    width: 100% !important;
    flex-direction: row !important;
    text-align: left !important;
    padding: 12px !important;
  }
}

@media (max-width: 620px) {
  .service-container {
    grid-template-columns: 1fr;
  }
}
