/* =============================================================
   HC Shop — Main Stylesheet  v1.0.0
   Brand: Himalayan Corp (Orange #E8631A + Navy #0D1B3E)
   Same design language as the main site — consistent identity.
   ============================================================= */

/* ── CSS Custom Properties (Design Tokens) ───────────────────────────────────
   Think of these as variables. Change one value here and it updates everywhere.
   This is the ONLY place brand colors, fonts, and spacing are defined.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
    /* Brand colours — match himalayancorp.com.np exactly */
    --primary:        #E8631A;
    --primary-dark:   #C5521A;
    --primary-light:  rgba(232, 99, 26, 0.10);
    --navy:           #0D1B3E;
    --navy-light:     #152347;
    --navy-subtle:    rgba(13, 27, 62, 0.06);

    /* Neutral greys — systematic scale */
    --white:          #FFFFFF;
    --gray-50:        #F8FAFC;
    --gray-100:       #F1F5F9;
    --gray-200:       #E2E8F0;
    --gray-300:       #CBD5E1;
    --gray-400:       #94A3B8;
    --gray-500:       #64748B;
    --gray-600:       #475569;
    --gray-700:       #334155;
    --gray-800:       #1E293B;
    --gray-900:       #0F172A;

    /* Semantic colours */
    --success:        #16A34A;
    --success-light:  rgba(22, 163, 74, 0.10);
    --warning:        #D97706;
    --warning-light:  rgba(217, 119, 6, 0.10);
    --danger:         #DC2626;
    --danger-light:   rgba(220, 38, 38, 0.10);
    --info:           #0284C7;
    --info-light:     rgba(2, 132, 199, 0.10);

    /* Typography */
    --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height:    1.6;

    /* Spacing scale */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  24px;
    --space-6:  32px;
    --space-7:  48px;
    --space-8:  64px;
    --space-9:  80px;
    --space-10: 96px;

    /* Border radius */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Shadows — elevation system */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg:  0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-w:      1280px;
    --header-h:   72px;
}

/* ── CSS Reset ───────────────────────────────────────────────────────────────
   Removes browser default margins/paddings so we start from a clean slate.
   ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* box-sizing: border-box means padding doesn't ADD to an element's width.
       e.g. a 200px div with 20px padding stays 200px total (default behaviour
       would make it 240px). Much easier to work with. */
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Prevents iOS from auto-zooming text on orientation change */
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    line-height: var(--line-height);
    background: var(--white);
    overflow-x: hidden;
    /* overflow-x: hidden prevents horizontal scrollbars from appearing
       if any element is slightly wider than the viewport */
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
    /* display: block removes the small gap below images caused by inline baseline */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

input, select, textarea {
    font-family: var(--font);
    font-size: inherit;
}

/* ── Accessibility ───────────────────────────────────────────────────────────
   sr-only: visually hidden but readable by screen readers.
   Used for labels and descriptions that help blind users but shouldn't appear.
   ─────────────────────────────────────────────────────────────────────────── */
.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;
}

/* Focus visible ring — keyboard navigation indicator */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── Layout Utilities ────────────────────────────────────────────────────────
   .container centres content and limits width.
   .section adds consistent vertical padding to page sections.
   ─────────────────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.section {
    padding: var(--space-9) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-7);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.section-eyebrow::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(26px, 3vw, 42px);
    /* clamp(min, preferred, max): minimum 26px, scales with viewport, max 42px */
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-4);
}

.section-title span { color: var(--primary); }

.section-subtitle {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Topbar ──────────────────────────────────────────────────────────────────
   Small dark bar at very top showing contact info and quick links.
   ─────────────────────────────────────────────────────────────────────────── */
.hcs-topbar {
    background: var(--navy);
    padding: 9px 0;
    font-size: 12px;
}

.hcs-topbar__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.hcs-topbar__left,
.hcs-topbar__right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.hcs-topbar a {
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}

.hcs-topbar a:hover { color: var(--primary); }
.hcs-topbar i { color: var(--primary); font-size: 11px; }

/* ── Header / Navbar ─────────────────────────────────────────────────────────
   Sticky header: stays at top when scrolling.
   ─────────────────────────────────────────────────────────────────────────── */
.hcs-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--gray-200);
    transition: box-shadow 0.3s;
}

.hcs-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.hcs-nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: var(--space-4);
}

/* Logo */
.hcs-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.hcs-logo__icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary);
    font-size: 15px;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.hcs-logo__text {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hcs-logo__sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.3px;
}

/* Desktop navigation menu */
.hcs-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
}

.hcs-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.hcs-nav__link:hover,
.hcs-nav__link.is-active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Nav right: search, cart, account */
.hcs-nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.hcs-nav__icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    font-size: 16px;
}

.hcs-nav__icon-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Cart count badge */
.hcs-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hcs-nav__cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.hcs-nav__cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232, 99, 26, 0.40);
}

/* Hamburger button (mobile only) */
.hcs-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.hcs-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    display: block;
    transition: var(--transition);
}

.hcs-hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hcs-hamburger.is-active span:nth-child(2) { opacity: 0; }
.hcs-hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.hcs-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 100vw);
    height: 100vh;
    background: var(--navy);
    z-index: 1100;
    padding: 80px var(--space-6) var(--space-7);
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.hcs-mobile-nav.is-open { right: 0; }

.hcs-mobile-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.80);
    padding: 13px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s, padding-left 0.2s;
}

.hcs-mobile-nav a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.hcs-mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.60);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hcs-mobile-nav__close:hover { color: var(--white); background: rgba(255, 255, 255, 0.10); }

.hcs-mobile-nav__overlay {
    position: fixed;
    inset: 0; /* shorthand for top/right/bottom/left: 0 — covers full screen */
    background: rgba(0, 0, 0, 0.50);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.hcs-mobile-nav__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────
   Consistent button styles used across the entire site.
   ─────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 99, 26, 0.38);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 27, 62, 0.28);
    color: var(--white);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* Disabled state for all buttons */
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Badges ──────────────────────────────────────────────────────────────────
   Small labels on product cards.
   ─────────────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
}

.badge-new      { background: var(--info-light);    color: var(--info); }
.badge-hot      { background: var(--danger-light);  color: var(--danger); }
.badge-limited  { background: var(--warning-light); color: var(--warning); }
.badge-sale     { background: var(--primary-light); color: var(--primary-dark); }
.badge-featured { background: var(--navy-subtle);   color: var(--navy); }
.badge-service  { background: var(--success-light); color: var(--success); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────────*/
.hcs-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--gray-500);
    padding: var(--space-4) 0;
    flex-wrap: wrap;
}

.hcs-breadcrumb a {
    color: var(--gray-600);
    transition: color 0.15s;
}

.hcs-breadcrumb a:hover { color: var(--primary); }

.hcs-breadcrumb__sep { color: var(--gray-300); }

.hcs-breadcrumb span:last-child { color: var(--gray-900); font-weight: 500; }

/* ── Footer ──────────────────────────────────────────────────────────────────*/
.hcs-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-10) 0 0;
    margin-top: var(--space-10);
}

.hcs-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hcs-footer__brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.hcs-footer__brand-name span { color: var(--primary); }

.hcs-footer__desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.hcs-footer__heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.hcs-footer__links { display: flex; flex-direction: column; gap: var(--space-2); }

.hcs-footer__links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hcs-footer__links a:hover { color: var(--primary); }

.hcs-footer__bottom {
    padding: var(--space-5) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.hcs-footer__bottom a { color: rgba(255, 255, 255, 0.55); }
.hcs-footer__bottom a:hover { color: var(--primary); }

/* ── Form elements ───────────────────────────────────────────────────────────*/
.hcs-input {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-4);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.hcs-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 99, 26, 0.15);
}

.hcs-input::placeholder { color: var(--gray-400); }

/* ── Loading / Skeleton states ───────────────────────────────────────────────
   Used while AJAX is loading new products — shows animated placeholder
   so the page doesn't look broken. Better UX than a spinner.
   ─────────────────────────────────────────────────────────────────────────── */
.hcs-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: hcs-shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes hcs-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── VD Discount UI ──────────────────────────────────────────────────────────*/
.hcs-price { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.hcs-price__original {
    color: var(--gray-400);
    font-size: 14px;
    text-decoration: line-through;
}

.hcs-price__vd,
.hcs-price__sale {
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.hcs-price__badge--vd {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.hcs-vd-prompt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--primary);
    border: 1px dashed var(--primary);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.hcs-vd-prompt:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ── Responsive ──────────────────────────────────────────────────────────────
   Breakpoints:
   - Mobile:  < 640px
   - Tablet:  640px – 1024px
   - Desktop: > 1024px
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hcs-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .hcs-nav__menu,
    .hcs-topbar {
        display: none;
    }

    .hcs-hamburger {
        display: flex;
    }

    .hcs-nav__cta {
        display: none;
    }

    .section { padding: var(--space-7) 0; }

    .hcs-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .hcs-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-4); }

    .section-title { font-size: 24px; }
}

/* ── ACF Block styles ────────────────────────────────────────────────────── */

/* Product Showcase block */
.hcs-showcase-block { padding: 56px 0; }
.hcs-showcase-block--bg-gray  { background: var(--gray-50); }
.hcs-showcase-block--bg-white { background: var(--white); }
.hcs-showcase-block--bg-navy  { background: var(--navy); }
.hcs-showcase-block--bg-navy .hcs-showcase-block__title,
.hcs-showcase-block--bg-navy .hcs-showcase-block__subtitle { color: var(--white); }

.hcs-showcase-block__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.hcs-showcase-block__title {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

.hcs-showcase-block__subtitle {
    font-size: 15px;
    color: var(--gray-600);
    margin: 4px 0 0;
}

.hcs-showcase-block__grid {
    display: grid;
    grid-template-columns: repeat( var(--showcase-cols, 4), 1fr );
    gap: 20px;
    align-items: stretch;
    list-style: none;
    padding: 0;
}

.hcs-showcase-block__grid li {
    display: flex;
    flex-direction: column;
}

.hcs-showcase-block__grid .hcs-product-card {
    height: 100%;
    flex: 1;
}

@media (max-width: 1024px) {
    .hcs-showcase-block__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hcs-showcase-block__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* CTA Banner utility (reusable by both homepage and block) */
.hcs-cta-banner { background: var(--navy); padding: 56px 0; }
.hcs-cta-banner__inner { display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; }
.hcs-cta-banner__title { font-size:clamp(20px,2.5vw,32px); font-weight:800; color:#fff; margin-bottom:8px; }
.hcs-cta-banner__desc  { font-size:15px; color:rgba(255,255,255,.65); }
.hcs-cta-banner__actions { display:flex; gap:14px; flex-wrap:wrap; }

@media (max-width:768px) {
    .hcs-cta-banner__inner { flex-direction:column; text-align:center; }
    .hcs-cta-banner__actions { justify-content:center; }
}
