/* Explain: Styles for buttons, cards, accordion, logo halo, language menu, and social rail. */
.btn-chocolate {
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--cream-color);
    box-shadow: 0 14px 32px rgba(61, 28, 0, 0.22);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn-chocolate:hover {
    background: var(--primary-hover);
    box-shadow: 0 18px 44px rgba(61, 28, 0, 0.28);
    transform: translateY(-2px);
}

.btn-gold {
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-color), var(--caramel-color));
    color: var(--primary-color);
    box-shadow: 0 14px 30px rgba(198, 142, 23, 0.22);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.btn-gold:hover {
    box-shadow: 0 18px 42px rgba(198, 142, 23, 0.28);
    transform: translateY(-2px);
}

.btn-ivory {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.84);
    color: var(--primary-color);
    transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.btn-ivory:hover {
    border-color: var(--accent-color);
    background: var(--cream-color);
    transform: translateY(-1px);
}

.product-card {
    overflow: hidden;
    border: 1px solid rgba(232, 216, 191, 0.86);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 248, 0.82);
    box-shadow: var(--shadow-card);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.62);
    box-shadow: 0 24px 64px rgba(61, 28, 0, 0.16);
    transform: translateY(-5px);
}

.product-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-deep);
}

.product-card__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.055);
}

.gold-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.9), transparent);
}

.category-pill {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.8);
    color: var(--text-muted);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.category-pill.is-active,
.category-pill:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.16);
    color: var(--primary-color);
}

.accordion-panel {
    border-bottom: 1px solid var(--border-color);
}

.accordion-panel summary {
    cursor: pointer;
    list-style: none;
}

.accordion-panel .accordion-icon {
    transition: transform 220ms ease;
}

.accordion-panel[open] .accordion-icon {
    transform: rotate(45deg);
}

.notice-success {
    border: 1px solid rgba(40, 107, 58, 0.24);
    border-radius: 1rem;
    background: rgba(40, 107, 58, 0.08);
    color: var(--success-color);
}

.notice-error {
    border: 1px solid rgba(160, 50, 37, 0.24);
    border-radius: 1rem;
    background: rgba(160, 50, 37, 0.08);
    color: var(--error-color);
}

/* Sample slab note shown on the dark wholesale summary cards */
.slab-note {
    border: 1px solid transparent;
    border-radius: 0.9rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    line-height: 1.6;
}

.slab-note-ok {
    border-color: rgba(20, 184, 122, 0.5);
    background: rgba(20, 184, 122, 0.14);
    color: #7FE0A8;
}

.slab-note-warn {
    border-color: rgba(217, 119, 6, 0.5);
    background: rgba(217, 119, 6, 0.14);
    color: #F5B25B;
}

.mobile-sticky-cta {
    border-top: 1px solid rgba(232, 216, 191, 0.9);
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: blur(18px);
}

/* Retail marketplace — matches the warm ivory site theme */
.retail-shell {
    background: var(--surface-color);
}

.flavour-card,
.retail-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 248, 0.86);
    box-shadow: var(--shadow-card);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.flavour-card:hover,
.retail-card:hover {
    border-color: rgba(212, 175, 55, 0.62);
    box-shadow: 0 24px 64px rgba(61, 28, 0, 0.16);
    transform: translateY(-6px);
}

.flavour-card__media,
.retail-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-deep);
}

.flavour-card__media img,
.retail-card__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.flavour-card:hover .flavour-card__media img,
.retail-card:hover .retail-card__media img {
    transform: scale(1.06);
}

.retail-filter-select {
    min-height: 3rem;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--cream-color);
    color: var(--text-color);
    padding-left: 1rem;
    padding-right: 1rem;
}

.retail-filter-select option {
    color: var(--text-color);
    background: var(--cream-color);
}

.retail-filter-select:focus {
    border-color: var(--accent-color);
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

/* Portrait frames for individual retail pack shots */
.retail-pack__image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-deep);
}

.retail-pack__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.product-card:hover .retail-pack__image img {
    transform: scale(1.055);
}

/* Retail estimate builder */
.estimate-item {
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.estimate-item.is-selected {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.10);
    box-shadow: 0 18px 44px rgba(198, 142, 23, 0.16);
}

.estimate-qty-input::-webkit-outer-spin-button,
.estimate-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.estimate-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Oval emblem logo — smoothly clips rectangular corners so the badge sits cleanly on dark surfaces */
.logo-emblem {
    border-radius: 9999px;
    clip-path: ellipse(48.8% 47.8% at 50% 50%);
    -webkit-clip-path: ellipse(48.8% 47.8% at 50% 50%);
}

/* Soft golden halo behind the transparent logo for legibility on dark surfaces */
.logo-halo::before {
    position: absolute;
    inset: -16%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 246, 224, 0.5) 40%, rgba(212, 175, 55, 0) 72%);
    content: "";
    filter: blur(16px);
    pointer-events: none;
    animation: logo-halo-pulse 3.8s ease-in-out infinite;
}

@keyframes logo-halo-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-halo::before {
        animation: none;
    }
}

/* Language selector */
.lang-switcher {
    position: relative;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 60;
    display: none;
    min-width: 12rem;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid rgba(255, 253, 248, 0.16);
    border-radius: 1rem;
    background: rgba(42, 18, 0, 0.98);
    box-shadow: 0 24px 60px rgba(42, 18, 0, 0.4);
    list-style: none;
}

.lang-switcher.is-open .lang-menu {
    display: block;
}

.lang-menu li {
    margin: 0;
}

.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 0.9rem;
    background: rgba(255, 253, 248, 0.08);
    color: var(--cream-color);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.lang-option:hover,
.lang-option:focus-visible {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.16);
    color: var(--accent-color);
}

.lang-option.is-active {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.24);
    color: var(--accent-color);
}

.lang-menu .lang-option {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0.6rem 0.9rem;
    border-color: transparent;
    background: transparent;
    color: var(--cream-color);
    text-align: left;
}

.lang-menu .lang-option:hover,
.lang-menu .lang-option:focus-visible {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
}

.lang-menu .lang-option.is-active {
    background: rgba(212, 175, 55, 0.22);
    color: var(--accent-color);
}

/* Nav "More" dropdown — bridge the gap between the trigger and the panel so the
   pointer can travel from the button into the submenu without the hover area
   breaking and the menu snapping shut. */
.dropdown-hover > .dropdown-content::before {
    position: absolute;
    top: -0.5rem;
    right: 0;
    left: 0;
    height: 0.5rem;
    content: "";
}

/* Wholesale order table — vertical column rules so each payable category reads clearly */
.wholesale-order-table th,
.wholesale-order-table td {
    border-right: 1px solid var(--border-color);
}

.wholesale-order-table th:last-child,
.wholesale-order-table td:last-child {
    border-right: 0;
}

.wholesale-order-table thead th {
    border-right-color: rgba(255, 253, 248, 0.28);
}

/* Wholesale order table — a distinct colour edge per payable category column
   so Bulk / Wholesale, Paanch ka Punch and Sample never look alike. */
.wholesale-order-table th.ws-col-bulk,
.wholesale-order-table td.ws-col-bulk {
    border-left: 3px solid #0F8A5F;
    border-right-color: rgba(15, 138, 95, 0.45);
}

.wholesale-order-table th.ws-col-punch,
.wholesale-order-table td.ws-col-punch {
    border-left: 3px solid #D97706;
    border-right-color: rgba(217, 119, 6, 0.45);
}

.order-summary-card:target {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5), var(--shadow-soft);
}

.wholesale-order-table th.ws-col-sample,
.wholesale-order-table td.ws-col-sample {
    border-left: 3px solid #7C3AED;
    border-right-color: rgba(124, 58, 237, 0.45);
}

/* Floating social rail — fixed on screen across every page */
.social-rail {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.55rem 0.35rem;
    transform: translateY(-50%);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-left: none;
    border-radius: 0 1.05rem 1.05rem 0;
    background: rgba(61, 28, 0, 0.92);
    box-shadow: 0 18px 46px rgba(61, 28, 0, 0.3);
    backdrop-filter: blur(12px);
}

.social-rail__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.social-rail__link:hover,
.social-rail__link:focus-visible {
    color: var(--primary-color);
    transform: translateX(4px) scale(1.06);
}

.social-rail__link--facebook:hover,
.social-rail__link--facebook:focus-visible {
    background: #1877F2;
    color: #FFFFFF;
}

.social-rail__link--instagram:hover,
.social-rail__link--instagram:focus-visible {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
    color: #FFFFFF;
}

.social-rail__link--youtube:hover,
.social-rail__link--youtube:focus-visible {
    background: #FF0000;
    color: #FFFFFF;
}

.social-rail__link--whatsapp:hover,
.social-rail__link--whatsapp:focus-visible {
    background: #25D366;
    color: #FFFFFF;
}

@media (max-width: 640px) {
    .social-rail {
        gap: 0.35rem;
        padding: 0.45rem 0.3rem;
    }

    .social-rail__link {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.05rem;
    }
}

/* Review & Rating Component Utilities */
.review-star-btn {
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.review-star-btn:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.16);
}

.rating-bar-fill {
    transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card with blurred product image background */
.card-blur-bg {
    position: relative;
    isolation: isolate;
}

.card-blur-bg__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.card-blur-bg__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.45) brightness(0.96);
    transform: scale(1.05);
    transition: transform 600ms ease, filter 600ms ease;
}

.card-blur-bg:hover .card-blur-bg__media img {
    transform: scale(1.10);
    filter: blur(1px) saturate(1.55) brightness(1.02);
}

.card-blur-bg__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 253, 248, 0.38) 0%,
        rgba(255, 250, 238, 0.20) 45%,
        rgba(253, 240, 220, 0.42) 100%
    );
}