/* ============================================
   Calistry — Luminous Elegance Design System
   Shared Styles
   ============================================ */

/* --- Material Symbols --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* --- Custom Scrollbar (Webkit) --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f9f9f9; }
::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 2px; }

/* --- Hero Gradient Overlay --- */
.hero-gradient {
    background: linear-gradient(180deg,
        rgba(26, 28, 28, 0.3) 0%,
        rgba(26, 28, 28, 0) 40%,
        rgba(26, 28, 28, 0) 60%,
        rgba(26, 28, 28, 0.4) 100%);
}

.hero-gradient-dark {
    background: linear-gradient(180deg,
        rgba(26, 28, 28, 0.5) 0%,
        rgba(26, 28, 28, 0.2) 40%,
        rgba(26, 28, 28, 0.2) 60%,
        rgba(26, 28, 28, 0.6) 100%);
}

/* --- Reveal Animation (scroll-triggered) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stagger Fade-In Animation --- */
.stagger-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stagger-in.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Zoom Effect (product pages) --- */
.hero-zoom-container:hover .hero-image {
    transform: scale(1.05);
}
.hero-image {
    transition: transform 12s cubic-bezier(0.1, 0, 0.1, 1);
}

/* --- Product Card Hover (secondary image crossfade) --- */
.product-card:hover .secondary-image { opacity: 1; }
.product-card .secondary-image { 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
}

.product-card:hover .product-overlay {
    opacity: 1;
}
.product-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Hide Scrollbar Utility --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* --- Product Carousel --- */
.product-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}

/* --- Drop Cap (Journal articles) --- */
.dropcap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    color: #735c00;
}

/* --- Mobile Menu --- */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}
#mobile-menu.open {
    max-height: 600px;
    opacity: 1;
}

/* --- Nav Active State --- */
.nav-link-active {
    color: #735c00 !important;
    border-bottom: 1px solid #735c00;
    padding-bottom: 4px;
    font-weight: 700;
}

/* --- Shared Section Transitions --- */
.section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accordion --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-content.open {
    max-height: 800px;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-icon.rotated {
    transform: rotate(180deg);
}

/* --- Image Hover Scale --- */
.img-hover-scale {
    overflow: hidden;
}
.img-hover-scale img,
.img-hover-scale .bg-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-hover-scale:hover img,
.img-hover-scale:hover .bg-img {
    transform: scale(1.05);
}

/* --- Button Hover Effects --- */
.btn-primary {
    background-color: #1a1c1c;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: #2f3131;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #1a1c1c;
    color: #1a1c1c;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    background-color: #1a1c1c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- Feature badge --- */
.feature-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #735c00;
}

/* --- Checkout Step Indicator --- */
.step-active {
    color: #735c00;
    border-color: #735c00;
}
.step-completed {
    background-color: #735c00;
    color: #ffffff;
}

/* --- Sidebar Active Link --- */
.sidebar-link-active {
    color: #735c00;
    border-left: 2px solid #735c00;
    padding-left: 14px;
    font-weight: 700;
}

/* --- Scroll Indicator Animation --- */
@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 0.4; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
    100% { transform: translate(-50%, 0); opacity: 0.4; }
}
.scroll-indicator-animate {
    animation: scrollDown 2s infinite ease-in-out;
}

/* Search result panel: keep every result and quantity control inside the viewport. */
.search-suggestions {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(540px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}
.search-row {
    grid-template-columns: 72px minmax(0, 1fr) 116px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}
.search-row > * { min-width: 0 !important; }
.search-qty { width: 116px !important; min-width: 116px !important; }
@media (max-width: 700px) {
    .search-row { grid-template-columns: 60px minmax(0, 1fr) !important; }
    .search-qty { grid-column: 2; }
}
/* Sale pricing and low-stock messaging */
.calistry-sale-price{display:flex;align-items:baseline;gap:.7rem;flex-wrap:wrap}.calistry-current-price{font:inherit}.calistry-mrp{font:500 13px/1.2 "DM Sans",sans-serif;color:#70695e;white-space:nowrap}.calistry-mrp s{text-decoration-thickness:1px}.calistry-stock-status{margin:-.5rem 0 1.5rem;color:#a33b22;font:600 12px/1.3 "DM Sans",sans-serif;letter-spacing:.03em}.calistry-stock-status span{font-size:10px;margin-right:.35rem}
.glass-overlay{background:rgba(28,25,21,.45);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid rgba(255,255,255,.15)}
.custom-card-shadow{box-shadow:0 10px 30px -10px rgba(128,102,0,.08);transition:all .4s cubic-bezier(.16,1,.3,1)}
.custom-card-shadow:hover{transform:translateY(-6px);box-shadow:0 20px 40px -15px rgba(128,102,0,.15)}
#checkout-product-price{display:flex;align-items:baseline;gap:.45rem;flex-wrap:wrap}
