/**
 * RUH-E-KHUSHBU — UI Components
 * Buttons, Product Cards, Forms, Badges, Modals, Bottom Sheets, Header, Footer.
 */

/* ─── Buttons (Design.md §8) ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--touch-min);
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-size: var(--text-btn);
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: var(--transition-colors), transform var(--duration-fast) var(--ease-default);
    text-align: center;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background-color: var(--color-emerald);
    color: var(--color-ivory);
    border-color: var(--color-emerald);
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--color-forest);
    border-color: var(--color-forest);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-emerald);
    border-color: var(--color-emerald);
}
.btn-secondary:hover:not(:disabled) {
    background-color: var(--color-champagne);
    color: var(--color-forest);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-forest);
    border-color: var(--color-gold);
}
.btn-gold:hover:not(:disabled) {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.btn-ghost {
    background-color: rgba(245, 240, 229, 0.12);
    color: var(--color-ivory);
    border-color: rgba(245, 240, 229, 0.28);
}
.btn-ghost:hover:not(:disabled) {
    background-color: rgba(245, 240, 229, 0.22);
}

.btn-sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    min-height: 50px;
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ─── Header & Navigation ───────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background-color: var(--color-forest);
    color: var(--color-ivory);
    box-shadow: var(--shadow-header);
}

@media (min-width: 1024px) {
    .mobile-only,
    .header-icon-btn.mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: inline-flex;
    }
}

.announcement-bar {
    background-color: var(--color-emerald);
    color: var(--color-ivory);
    font-size: 12.5px;
    line-height: 1.4;
    padding: 7px 0;
    border-bottom: 1px solid rgba(198, 161, 91, 0.28);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.announcement-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-marquee__track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: rk-marquee-ltr 32s linear infinite;
}

.announcement-marquee__item {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 10px;
    white-space: nowrap;
    padding-right: 48px;
    letter-spacing: 0.01em;
}

.announcement-coupon-btn {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(198, 161, 91, 0.22);
    border: 1px dashed var(--color-gold);
    color: var(--color-champagne);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.announcement-coupon-btn:hover {
    background: var(--color-gold);
    color: var(--color-forest);
}

.announcement-marquee__sep {
    color: var(--color-gold);
    margin-left: 38px;
    font-size: 10px;
    flex-shrink: 0;
}

.announcement-bar:hover .announcement-marquee__track {
    animation-play-state: paused;
}

@keyframes rk-marquee-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 64px;
    gap: var(--space-2);
}

.header-inner > .mobile-only {
    justify-self: start;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    justify-self: center;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
}

.header-logo img,
.header-logo__icon,
.header-logo__text,
.footer-brand-logos img,
.footer-brand-logos__icon,
.footer-brand-logos__text,
.brand-logo-img {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.header-logo__icon {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.header-logo__text {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: none; /* Mobile (< 768px): ONLY borderless র icon */
}

@media (min-width: 768px) {
    .header-logo__icon {
        height: 40px;
    }
    .header-logo__text {
        display: block; /* Tablet (768-1023px): BOTH icon + wordmark centered */
        height: 30px;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 74px;
        gap: var(--space-3);
    }
    .header-logo {
        justify-self: auto;
        justify-content: flex-start; /* Desktop (>= 1024px): far left */
    }
    .header-logo__icon {
        height: 42px;
    }
    .header-logo__text {
        height: 32px;
    }
}

.header-actions {
    justify-self: end;
}

.header-nav {
    display: none;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: var(--space-1);
    }
}

.header-nav__link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ivory);
    white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__link.is-active {
    color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-icon-btn {
    position: relative;
    width: var(--touch-min);
    height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-ivory);
}

.header-icon-btn:hover {
    color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.06);
}

.header-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background-color: var(--color-gold);
    color: var(--color-forest);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ─── Mobile Bottom Navigation Bar ──────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: var(--z-mobile-nav);
    background: rgba(11, 48, 39, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(11, 48, 39, 0.28);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 5px 4px;
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(245, 240, 229, 0.72);
    position: relative;
    gap: 3px;
    border-radius: 12px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.mobile-bottom-nav__item.is-active {
    color: var(--color-gold);
    background: rgba(198, 161, 91, 0.14);
    font-weight: 600;
}

.mobile-bottom-nav__item.is-active::after {
    content: '';
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-gold);
    margin-top: 1px;
}

.mobile-bottom-nav__badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background-color: var(--color-gold);
    color: var(--color-forest);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Slide-in Drawer / Mobile Menu ─────────────────────── */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9998;
    background-color: rgba(11, 48, 39, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-default), visibility var(--duration-normal);
}
.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100dvh;
    z-index: 9999;
    width: min(88vw, 380px);
    background-color: var(--color-ivory);
    color: var(--color-text);
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-normal) var(--ease-default);
}

.drawer--left {
    left: 0;
    transform: translateX(-100%);
}
.drawer--right {
    right: 0;
    transform: translateX(100%);
}
.drawer.is-open {
    transform: translateX(0);
}

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    padding-top: max(var(--space-4), env(safe-area-inset-top, 16px));
    background-color: var(--color-forest);
    color: var(--color-ivory);
    border-bottom: 1px solid rgba(198, 161, 91, 0.22);
    flex-shrink: 0;
}

.drawer__close-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-ivory);
    font-size: 26px;
    line-height: 1;
    transition: background-color var(--duration-fast), color var(--duration-fast);
}
.drawer__close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
}

.drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--space-4);
    -webkit-overflow-scrolling: touch;
}

.drawer__footer {
    padding: var(--space-4);
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface);
    flex-shrink: 0;
}

/* Mobile Menu Structured Hierarchy */
.drawer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 4px 10px 6px;
    text-transform: uppercase;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-forest);
    transition: background-color var(--duration-fast), color var(--duration-fast);
}
.drawer-nav-item:hover,
.drawer-nav-item.is-active {
    background-color: rgba(11, 48, 39, 0.07);
    color: var(--color-emerald);
}
.drawer-nav-item svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

.drawer-nav-item--secondary {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    min-height: 40px;
    padding: 8px 12px;
}

.drawer-divider {
    height: 1px;
    background-color: var(--color-divider);
    margin: 12px 0;
}

.drawer-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-forest);
    text-align: left;
    transition: background-color var(--duration-fast);
}
.drawer-accordion__trigger:hover {
    background-color: rgba(11, 48, 39, 0.06);
}
.drawer-accordion__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-accordion__left svg {
    color: var(--color-gold);
    flex-shrink: 0;
}
.drawer-accordion__chevron {
    color: var(--color-gold);
    transition: transform 0.22s var(--ease-default);
    flex-shrink: 0;
}
.drawer-accordion.is-open .drawer-accordion__chevron {
    transform: rotate(180deg);
}

.drawer-accordion__panel {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 6px 34px;
}
.drawer-accordion.is-open .drawer-accordion__panel {
    display: flex;
}

.drawer-nav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-left: 2px solid rgba(198, 161, 91, 0.4);
}
.drawer-nav-subitem:hover {
    background-color: rgba(198, 161, 91, 0.14);
    color: var(--color-forest);
    border-left-color: var(--color-gold);
}

.drawer__cta-wrap {
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    border-top: 1px solid var(--color-divider);
}

.empty-cart-state {
    text-align: center;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.empty-cart-state__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(145deg, rgba(11, 48, 39, 0.08), rgba(198, 161, 91, 0.16));
    border: 1px solid rgba(198, 161, 91, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* ─── Product Card (Design.md §7) ───────────────────────── */
.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--duration-normal) var(--ease-default), transform var(--duration-normal) var(--ease-default);
}

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

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background-color: #EFE9DA;
    overflow: hidden;
}

.product-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 48, 39, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-default);
    z-index: 1;
}

.product-card:hover .product-card__media::after {
    opacity: 1;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-default), filter var(--duration-normal) var(--ease-default);
}

.product-card:hover .product-card__img {
    transform: scale(1.08);
    filter: brightness(0.84);
}

.product-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: rgba(11, 48, 39, 0.9);
    color: var(--color-champagne);
    font-size: 11px;
    font-weight: 600;
}

.product-card__actions-top {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.product-card__icon-btn:hover {
    transform: scale(1.06);
}

.product-card__icon-btn--combo {
    color: var(--color-forest);
}

.product-card__wishlist.is-active {
    color: #ba1a1a;
}

.product-card__icon-btn--mobile-only {
    display: flex;
}

/* Image Bottom Overlay Controls */
.product-card__overlay-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 8px;
    background: linear-gradient(180deg, rgba(11, 48, 39, 0) 0%, rgba(11, 48, 39, 0.86) 38%, rgba(11, 48, 39, 0.95) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-card__quick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.product-card__variant-select {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--color-forest);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.product-card__qty-stepper {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 6px;
    height: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card__qty-stepper button {
    width: 24px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-forest);
    background: transparent;
}

.product-card__qty-stepper button:hover {
    background-color: rgba(11, 48, 39, 0.1);
}

.product-card__qty-stepper span {
    min-width: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-forest);
}

.product-card__hover-btns {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.product-card__hover-btn {
    padding: 6px 8px !important;
    min-height: 32px !important;
    font-size: 11px !important;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
    text-align: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .product-card__icon-btn {
        width: 38px;
        height: 38px;
    }

    .product-card__icon-btn--mobile-only {
        display: none;
    }

    .product-card__overlay-controls {
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
        padding: 10px;
    }

    .product-card:hover .product-card__overlay-controls,
    .product-card:focus-within .product-card__overlay-controls {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .product-card__hover-btns {
        display: grid;
    }
}

.product-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 4px;
}

@media (min-width: 640px) {
    .product-card__body {
        padding: 12px 14px 14px;
    }
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--color-text-muted);
}

.product-card__title {
    font-family: var(--font-display-bn);
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 600;
    color: var(--color-emerald);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price-wrap {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-forest);
}

.product-card__old-price {
    font-size: 12px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card__mobile-cart-btn {
    display: flex;
    width: 100%;
    margin-top: 8px;
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .product-card__mobile-cart-btn {
        display: none;
    }
}

/* Combo Box Drawer Cards */
.combo-box-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--color-surface);
}

.combo-box-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-divider);
}

.combo-box-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-divider);
}

.combo-box-slot:last-child {
    border-bottom: none;
}

.combo-box-slot--empty {
    color: var(--color-text-muted);
    font-size: 12px;
    padding: 8px;
    background: var(--color-ivory);
    border-radius: 6px;
    margin-top: 4px;
    border-bottom: none;
    justify-content: center;
}

/* View Mode Switcher (Grid vs Column/List) */
.view-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--color-ivory);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.view-toggle__btn.is-active {
    background-color: var(--color-emerald);
    color: var(--color-ivory);
}

.grid-products.is-list-view,
.shop-product-grid.is-list-view {
    grid-template-columns: 1fr !important;
}

.grid-products.is-list-view .product-card,
.shop-product-grid.is-list-view .product-card {
    flex-direction: row;
    align-items: stretch;
}

.grid-products.is-list-view .product-card__media,
.shop-product-grid.is-list-view .product-card__media {
    width: 130px;
    min-width: 130px;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .grid-products.is-list-view .product-card__media,
    .shop-product-grid.is-list-view .product-card__media {
        width: 170px;
        min-width: 170px;
    }
}

.grid-products.is-list-view .product-card__body,
.shop-product-grid.is-list-view .product-card__body {
    justify-content: center;
    padding: 14px 16px;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-4);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-forest);
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: 16px;
    transition: border-color var(--duration-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.12);
}

.form-control.is-invalid {
    border-color: var(--color-error);
}

.form-error {
    font-size: 13px;
    color: var(--color-error);
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ─── Cards & Surfaces ──────────────────────────────────── */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .card {
        padding: var(--space-6);
    }
}

/* ─── Badges & Alerts ───────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge-emerald {
    background-color: rgba(6, 78, 59, 0.12);
    color: var(--color-emerald);
}

.badge-gold {
    background-color: rgba(198, 161, 91, 0.22);
    color: #785a1b;
}

.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(6, 78, 59, 0.1);
    border-color: rgba(6, 78, 59, 0.25);
    color: var(--color-emerald);
}

.alert-error {
    background-color: var(--color-error-bg);
    border-color: rgba(186, 26, 26, 0.25);
    color: var(--color-error);
}

/* ─── Breadcrumbs ───────────────────────────────────────── */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: var(--space-3) 0;
}

.breadcrumbs a:hover {
    color: var(--color-emerald);
    text-decoration: underline;
}

/* ─── Toast Notification ────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: min(92vw, 400px);
}

@media (min-width: 1024px) {
    .toast-container {
        bottom: 24px;
        left: auto;
        right: 24px;
        transform: none;
    }
}

.toast {
    background-color: var(--color-forest);
    color: var(--color-ivory);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-gold);
    box-shadow: var(--shadow-elevated);
    font-size: 14px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-forest);
    color: var(--color-ivory);
    padding-top: var(--space-12);
    padding-bottom: calc(var(--space-8) + 84px); /* mobile bottom nav clearance */
    border-top: 2px solid rgba(198, 161, 91, 0.25);
}

@media (min-width: 1024px) {
    .site-footer {
        padding-bottom: var(--space-8);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-brand-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-3);
}

.footer-brand-logos__icon {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.footer-brand-logos__text {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-heading {
    font-family: var(--font-display-bn);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: rgba(245, 240, 229, 0.85);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(245, 240, 229, 0.14);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
    font-size: 13px;
    color: rgba(245, 240, 229, 0.75);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.payment-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-pill {
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(198, 161, 91, 0.3);
    color: var(--color-champagne);
    font-size: 12px;
    font-weight: 600;
}

/* ─── Auth Brand Header ─────────────────────────────────── */
.auth-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-forest) 0%, #07261f 100%);
    border: 1px solid rgba(198, 161, 91, 0.32);
}

/* ─── Product Card Luxury Placeholder ───────────────────── */
.product-card__placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 35%, #11473A 0%, #0B3027 72%, #07211B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid rgba(198, 161, 91, 0.25);
    color: var(--color-champagne);
    text-align: center;
}
.product-card__placeholder svg {
    opacity: 0.92;
}
.product-card__placeholder span {
    font-family: var(--font-display-bn);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(220, 203, 165, 0.85);
}

/* ─── Trust Highlight Cards ─────────────────────────────── */
.trust-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.trust-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, rgba(11, 48, 39, 0.08), rgba(198, 161, 91, 0.18));
    border: 1px solid rgba(198, 161, 91, 0.35);
    color: var(--color-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* ─── Social Media Icons & Footer Contact List ────────────── */
.social-links-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 161, 91, 0.14);
    border: 1px solid rgba(198, 161, 91, 0.35);
    color: var(--color-champagne);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-icon-link:hover {
    transform: translateY(-2px);
    background: var(--color-gold);
    color: var(--color-forest);
}

.social-links-row--light .social-icon-link {
    background: rgba(11, 48, 39, 0.06);
    border-color: rgba(11, 48, 39, 0.16);
    color: var(--color-forest);
}

.social-links-row--light .social-icon-link:hover {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
    color: #fff;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-gold);
}


/* Google Identity OAuth Button */
.btn-google-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFFFFF;
    color: #1F1F1F;
    border: 1.5px solid #DADCE0;
    border-radius: 10px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(11, 48, 39, 0.06);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
    cursor: pointer;
}

.btn-google-oauth:hover {
    background: #F8FAFC;
    border-color: #C6C9CE;
    box-shadow: 0 4px 12px rgba(11, 48, 39, 0.10);
    transform: translateY(-1px);
    color: #0B3027;
}

.btn-google-oauth:active {
    transform: translateY(0);
    background: #F1F5F9;
}

.btn-google-oauth--block {
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
}

.btn-google-oauth--sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    gap: 8px;
}

.btn-google-oauth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-google-oauth--sm .btn-google-oauth__icon svg {
    width: 16px;
    height: 16px;
}
