/* --- Base & Variables --- */
:root {
    --brand-brown: #4A3023;
    --card-bg: #F9EFEA; 
    --whatsapp: #25D366;
    --text-dark: #1A0B08; 
    --text-muted: #4A3023;
    --accent-pink: #D81B60;
    --bg-gradient: linear-gradient(135deg, #FFF4F1 0%, #FFF0F5 100%); 
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-gradient); color: var(--text-dark); font-family: 'Poppins', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4, .product-title { font-family: 'Playfair Display', serif; }

/* --- Header --- */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #f0e6e6; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-left i, .header-right i { font-size: 1.3rem; color: var(--brand-brown); cursor: pointer; transition: 0.3s ease; }
.header-left i:hover, .header-right i:hover { color: var(--accent-pink); transform: scale(1.1); }
.header-right { display: flex; gap: 18px; align-items: center; }
.header-right a { text-decoration: none; display: flex; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 45px; width: auto; display: block; }

/* --- Admin Dropdown --- */
.dropdown-menu { display: none; position: absolute; background: #fff; border: 1px solid #eee; padding: 10px 0; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); top: 50px; left: 10px; min-width: 160px; z-index: 99999; }
.dropdown-menu a { display: block; padding: 12px 20px; color: var(--brand-brown); text-decoration: none; font-weight: 600; font-family: 'Poppins', sans-serif; }
.dropdown-menu a:hover { background: var(--card-bg); color: var(--accent-pink); }

/* --- Hero Banner --- */
.hero-banner { background-color: var(--brand-brown); background-image: linear-gradient(to right, #4A3023, #6B4232); display: flex; flex-direction: column; padding: 30px 10px; color: #fff; }
.hero-text-side { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; }
.hero-logo-circle { width: 100px; height: 100px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden; }
.hero-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-tagline { font-size: 1.3rem; font-weight: 600; line-height: 1.5; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.hero-contact { font-size: 0.95rem; color: #ffe6e6; font-weight: 300; }
.hero-contact span { margin: 0 10px; opacity: 0.5; }
.hero-image-side { display: flex; gap: 10px; padding: 10px; }
.hero-image-side img { width: 33.33%; object-fit: cover; border: 2px solid #fff; aspect-ratio: 1/2; border-radius: 8px; }

/* --- Categories --- */
.section-header { display: flex; align-items: center; text-align: center; margin: 50px 20px 30px; font-size: 1.6rem; font-weight: 700; color: var(--brand-brown); }
.section-header::before, .section-header::after { content: ''; flex: 1; border-bottom: 2px solid rgba(74, 48, 35, 0.15); }
.section-header::before { margin-right: 20px; }
.section-header::after { margin-left: 20px; }
.categories-row { display: flex; justify-content: center; gap: 15px; padding: 0 15px; flex-wrap: wrap; }
.category-wrapper { width: 30%; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.3s ease; }
.category-wrapper:hover { transform: translateY(-8px); }
.category-card { background-color: #fff; border-radius: 16px; padding: 8px; width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 2px solid transparent; transition: 0.3s ease; }
.category-wrapper:hover .category-card { border-color: var(--accent-pink); }
.category-card img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.category-wrapper p { font-size: 1rem; font-weight: 600; color: var(--brand-brown); font-family: 'Playfair Display', serif; }

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 15px; margin-bottom: 20px; }
.product-card { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(5px); border-radius: 12px; border: 1px solid rgba(255,255,255,0.5); transition: 0.3s ease; overflow: hidden; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); background: #fff; }

/* AMAZON STYLE IMAGE CONTAINMENT */
.image-container { position: relative; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.image-container img { width: 100%; height: 280px; object-fit: contain; display: block; transition: 0.6s ease; }

.badge-new { position: absolute; top: 10px; left: 10px; background-color: #D81B60; color: white; font-size: 0.7rem; padding: 5px 10px; border-radius: 20px; z-index: 2; }
.badge-sold-out { position: absolute; top: 10px; left: 10px; background-color: #333; color: white; font-size: 0.7rem; padding: 5px 10px; border-radius: 20px; z-index: 2; font-weight: bold; }
.badge-heart { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.9); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #999; cursor: pointer; z-index: 2; transition: 0.2s ease; }
.badge-heart:hover { transform: scale(1.15); color: var(--accent-pink); background: #fff; }

/* --- OVERLAY STATUS ON IMAGE --- */
.image-status-bar { position: absolute; bottom: 0; left: 0; width: 100%; padding: 6px 0; text-align: center; font-size: 0.8rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 1px; z-index: 5; backdrop-filter: blur(3px); }
.status-bar-in-stock { background: rgba(37, 211, 102, 0.8); }
.status-bar-sold-out { background: rgba(231, 76, 60, 0.85); }

.product-info { padding: 15px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; flex-grow: 1; }
.product-title { font-size: 1.1rem; color: var(--text-dark); font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.whatsapp-action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--whatsapp); color: #fff; padding: 10px 18px; border-radius: 30px; font-size: 0.95rem; font-family: 'Poppins'; text-decoration: none; width: 100%; max-width: 220px; z-index: 5; position: relative; }
.btn-disabled { background-color: #999 !important; pointer-events: none; cursor: not-allowed; }
.btn-container { text-align: center; margin: 40px 0 20px; }
.btn-outline { display: inline-block; padding: 12px 35px; border: 2px solid var(--brand-brown); color: var(--brand-brown); text-decoration: none; border-radius: 50px; font-weight: 600; }

/* --- Footer --- */
footer { padding: 50px 20px 20px; background: #fff; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 18px; color: var(--brand-brown); }
.footer-col a, .footer-col p { font-size: 0.95rem; color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 12px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons i { color: #fff; background: var(--brand-brown); width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.9rem; }

/* --- Single Product Slider Page (Desktop Base) --- */
.product-detail-container { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 40px auto; padding: 0 20px; gap: 40px; }
.slider-container { flex: 1; min-width: 300px; position: relative; overflow: hidden; border-radius: 12px; background: #fff; }
.slider-track { display: flex; transition: transform 0.4s ease-in-out; height: 500px; background: #fff; }

/* FIXED TO CONTAIN (UNCROPPED) */
.slider-track img { width: 100%; height: 100%; object-fit: contain; flex-shrink: 0; cursor: pointer; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; color: var(--brand-brown); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots { display: none; }
.product-info-side { flex: 1; min-width: 300px; display: flex; flex-direction: column; justify-content: center; }
.product-info-side h1 { font-size: 2.5rem; color: var(--brand-brown); margin-bottom: 10px; }
.product-meta { font-size: 1.1rem; color: #666; margin-bottom: 10px; }
.product-desc { font-size: 1rem; line-height: 1.6; color: #444; margin-bottom: 20px; }

/* --- Admin Styles --- */
.admin-wrapper { max-width: 800px; margin: 50px auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.admin-tabs { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.tab-btn { padding: 15px; background: transparent; border: 1px solid var(--brand-brown); color: var(--brand-brown); font-size: 1.1rem; border-radius: 8px; cursor: pointer; text-align: left; }
.admin-section { display: none; }
.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.admin-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-family: 'Poppins'; }
.submit-btn { background: var(--whatsapp); color: #fff; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; width: 100%; font-family: 'Poppins'; }

/* --- Desktop Responsive --- */
@media (min-width: 768px) {
    .hero-banner { flex-direction: row; padding: 50px 8%; align-items: center; }
    .hero-text-side { flex: 1.5; text-align: left; align-items: flex-start; padding-left: 0;}
    .hero-image-side { flex: 1; padding: 0; }
    .hero-tagline { font-size: 1.9rem; }
    .category-wrapper { width: calc(100% / 3 - 20px); max-width: 200px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 5%; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 0 5%; }
}

/* =========================================
   📱 MOBILE OPTIMIZATION (Max-Width 767px)
   ========================================= */
@media (max-width: 767px) {
    .section-header { font-size: 1.3rem; margin: 30px 15px 20px; }
    .hero-tagline { font-size: 1.1rem; }
    .hero-logo-circle { width: 80px; height: 80px; }
    .hero-contact { font-size: 0.85rem; }
    .header-left a { font-size: 1.1rem !important; }
    .header-left i, .header-right i { font-size: 1.8rem !important; }
    .logo img { height: 40px; } 
    .categories-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 15px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .categories-row::-webkit-scrollbar { display: none; }
    .category-wrapper { flex: 0 0 40%; scroll-snap-align: start; width: auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px; }
    
    .image-container img { height: 180px; }
    
    .product-title { font-size: 0.85rem; margin-bottom: 8px; }
    .whatsapp-action-btn { padding: 8px 10px; font-size: 0.75rem; }
    .badge-heart { width: 30px; height: 30px; font-size: 0.8rem; }
    
    .product-detail-container { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; margin: 0 auto 30px !important; gap: 0 !important; padding: 0 !important; }
    
    .slider-container { flex: 0 0 auto !important; width: calc(100% - 30px) !important; margin: 15px auto 25px !important; border-radius: 20px !important; box-shadow: 0 15px 35px rgba(74, 48, 35, 0.15) !important; position: relative; overflow: hidden; background: #fff; }
    .slider-track { display: flex; height: auto; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); background: #fff; }
    
    /* FIXED TO CONTAIN (UNCROPPED) */
    .slider-track img { width: 100% !important; flex: 0 0 100% !important; aspect-ratio: 3/4 !important; object-fit: contain; cursor: pointer; }
    
    .slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 15; }
    .slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, 0.2); transition: 0.3s ease; }
    .slider-dot.active { background: var(--brand-brown); width: 24px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    
    .slider-btn { width: 45px; height: 45px; font-size: 1.3rem; background: rgba(255,255,255,0.9); border-radius: 50%; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; align-items: center; justify-content: center; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); color: var(--brand-brown); }
    .slider-btn.prev { left: 15px; }
    .slider-btn.next { right: 15px; }
    
    .product-info-side { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; padding: 0 20px 20px !important; text-align: left; }
    .product-info-side h1 { font-size: 2rem !important; margin-bottom: 8px; }
    .product-meta { font-size: 1.1rem !important; margin-bottom: 12px; }
    .product-desc { font-size: 1.05rem !important; line-height: 1.7 !important; color: #444; margin-bottom: 25px; }
    #whatsapp-link { width: 100% !important; max-width: 100% !important; padding: 16px !important; font-size: 1.15rem !important; border-radius: 8px; margin-top: 10px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    
    .admin-wrapper { margin: 20px 10px; padding: 20px 15px; }
    .admin-tabs { flex-direction: row; overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .tab-btn { flex: 0 0 auto; font-size: 0.9rem; padding: 10px 15px; }
    .form-row { flex-direction: column; gap: 15px; }
    .image-upload-area { justify-content: center; }
}

/* =========================================
   🟢 FULLSCREEN MODAL CSS
   ========================================= */
.slider-container.fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 999999 !important;
    background: #000 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slider-container.fullscreen-active .slider-track {
    height: 100vh !important;
    align-items: center;
    background: transparent !important; /* Removes white background in fullscreen */
}
.slider-container.fullscreen-active .slider-track img {
    height: 100vh !important;
    width: 100vw !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    background: transparent !important;
}
.slider-container.fullscreen-active .slider-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.slider-container.fullscreen-active .slider-dots .slider-dot {
    background: rgba(255,255,255,0.3);
}
.slider-container.fullscreen-active .slider-dots .slider-dot.active {
    background: #fff;
}
.close-fs-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 2px solid #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 1000000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.slider-container.fullscreen-active .close-fs-btn {
    display: flex; /* Only shows when fullscreen is active */
}