/* ==========================
   Root Variables & Body
========================== */
:root {
    --glass: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    background: #ffffff;
    color: #101010;
    scroll-behavior: smooth;
}

/* ==========================
   Header Compact State (Scroll)
========================== */
header.compact {
    padding-top: 0.6rem; 
    padding-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* ==========================
   Search Panel Styling
========================== */
.search-panel-refined {
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.search-panel-refined:focus-within {
    border-color: #101010;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

/* ==========================
   Search Orb Button
========================== */
.search-orb {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9fafb;
    color: #101010;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.search-panel-refined:focus-within .search-orb {
    background: #101010;
    color: #ffffff;
    border-color: #101010;
}

/* ==========================
   Glass Pills (Filter Buttons)
========================== */
.glass-pill {
    padding: 7px 32px;
    border-radius: 7px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    transition: all 0.5s;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    color: #9ca3af;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #101010;
    color: #101010;
    transform: translateY(-3px);
    transition: 0.2s ease;
}

.glass-pill.active {
    background: #101010;
    color: #ffffff;
    border-color: #f3f4f6;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================
   Live Search Animation
========================== */
#searchResults:not(.hidden) {
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================
   Glass Cards Styling
========================== */
.master-card {
    background: #fff;
    border-radius: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.master-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -15px rgba(0,0,0,0.06);
    border-color: #e5e7eb;
}

/* Product Title - Soft Gradient, Slim & 17px Font */
.product-title {
    background: linear-gradient(135deg, #10b981, #06b6d4); /* soft green → cyan */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600; /* medium weight, চিকন দেখাবে */
    text-shadow: 0.3px 0.3px 0.8px rgba(0,0,0,0.04); /* subtle shadow for luxury feel */
    letter-spacing: 0.01em; /* সামান্য tighter */
    line-height: 1.2;
    font-size: 17px; /* fixed size */
}

/* ==========================
   Image Container & Scroll Animation
========================== */
.image-container {
    height: 350px;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background: #f9fafb;
    border:1px solid #f3f4f6;
}

.auto-scroll-img {
    width: 100%;
    transition: transform 6s ease-in-out;
}

.image-container:hover .auto-scroll-img {
    transform: translateY(calc(-100% + 350px));
}

/* ==========================
   Search Glass Effect
========================== */
.search-glass {
    background: #f3f4f6;
    border-radius: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-glass:focus-within {
    background: #fff;
    border-color: #101010;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* ==========================
   Section Tag Styling
========================== */
.section-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #10b981;
    background: linear-gradient(135deg, #10b98115 0%, #10b98105 100%);
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid #10b98120;
    margin-bottom: 3rem;
}

/* ==========================
   Custom Scrollbar
========================== */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* ==========================
   Modal Container
========================== */
#imgWrapper {
    width: 100%;
    height: 100%;
    display: flex; /* Centering by default */
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

#previewImg {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#previewImg.zoomed {
    max-height: none;
    width: 120%;
    cursor: zoom-out;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* ==========================
   Payment Modal Placeholder Styling
========================== */
#paymentModal input::placeholder {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 9px;
}

#paymentModal.flex {
    animation: applePop 0.3s ease-out;
}