
/* ========================================
   BAKE N' TASTE — GALLERY PAGE
   Complete Responsive CSS
======================================== */


/* =========================
   ROOT VARIABLES
========================= */

:root {
    --bg-main: #f9f4ef;
    --bg-card: #f2e9e1;
    --primary-dark: #3b2a26;
    --accent-pink: #d88a80;
    --text-dark: #2c221e;
    --text-muted: #6e5e58;
    --white: #ffffff;
    --border: #e0d0c5;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --transition: all 0.3s ease;
}


/* =========================
   RESET / GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =========================
   HEADER / NAVIGATION
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0;
    background-color: rgba(249, 244, 239, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}


/* =========================
   LOGO
========================= */

.logo {
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-pink);
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}


/* =========================
   MESSAGE US BUTTON
========================= */

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--primary-dark);
    color: var(--white) !important;
    font-size: 14px;
    transition: var(--transition);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(59, 42, 38, 0.15);
}


/* =========================
   HAMBURGER BUTTON
========================= */

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}


/* =========================
   TABLET
   769px – 1024px
========================= */

@media (max-width: 1024px) and (min-width: 769px) {

    .menu-toggle,
    #mobileMenuBtn {
        display: none !important;
    }

    .nav-links {
        display: flex;
    }

    .btn-header {
        display: flex;
    }
}


/* =========================
   MOBILE NAVIGATION
   768px and below
========================= */

@media (max-width: 768px) {

    header {
        padding: 16px 0;
    }

    .nav-container {
        position: relative;
    }

    /* Hamburger */
    .menu-toggle {
        display: block;
        border: 0;
        background: transparent;
        color: var(--primary-dark);
        font-size: 22px;
        cursor: pointer;
        padding: 5px;
    }

    /* Mobile dropdown */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;
        gap: 16px;

        padding: 20px;

        border-radius: var(--radius-md);

        background-color: var(--white);

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);

        text-align: center;

        z-index: 200;
    }

    /* Open mobile menu */
    .nav-links.nav-active {
        display: flex;
    }

    /* Hide Message Us on mobile */
    .btn-header {
        display: none;
    }

    /* Mobile navigation links */
    .nav-links a {
        display: block;
        width: 100%;
        padding: 5px 0;
        font-size: 14px;
    }
}


/* =========================
   GALLERY PAGE HEADER
========================= */

.page-header {
    text-align: center;
    padding: 40px 0 20px;
}

.page-header .section-tag {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-pink);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}


/* =========================
   GALLERY CONTROLS
========================= */

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0 30px;
}


/* =========================
   FILTER BUTTONS
========================= */

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}


/* =========================
   SEARCH BOX
========================= */

.search-box {
    position: relative;
    width: 260px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    outline: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(216, 138, 128, 0.10);
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}


/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding-bottom: 80px;
}


/* =========================
   GALLERY CARD
========================= */

.gallery-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);

    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}


/* =========================
   GALLERY IMAGE
========================= */

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}


/* =========================
   GALLERY CONTENT
========================= */

.gallery-content {
    padding: 20px;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


/* =========================
   GALLERY BADGE
========================= */

.gallery-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-pink);
    margin-bottom: 6px;
}


/* =========================
   GALLERY TITLE
========================= */

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 6px;
}


/* =========================
   GALLERY DESCRIPTION
========================= */

.gallery-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}


/* =========================
   GALLERY FOOTER
========================= */

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* =========================
   PRICE
========================= */

.price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 16px;
}


/* =========================
   ORDER BUTTON
========================= */

.btn-accent {
    background-color: var(--accent-pink);
    color: var(--white);

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #c7786e;
    transform: translateY(-1px);
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid #e8ded5;
    padding: 40px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e8ded5;
    font-size: 12px;
}


/* =========================
   TABLET / MOBILE GALLERY
========================= */

@media (max-width: 768px) {

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: center;
    }

    .search-box {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .gallery-img {
        height: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================
   SMALL MOBILE (২ কলাম ভিউ)
   600px and below
========================= */

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .page-header {
        padding: 25px 0 20px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .gallery-controls {
        margin: 20px 0 20px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* গ্রিড ২ কলাম করা হলো */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-bottom: 60px;
    }

    /* ছবির উচ্চতা ছোট স্ক্রিনের সাথে মানানসই করা হলো */
    .card-img-wrapper {
        height: 160px; 
    }

    /* কার্ডের ভেতরের স্পেসিং কমানো হলো */
    .gallery-content {
        padding: 10px;
    }

    .gallery-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .gallery-badge {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .weight-badge {
        font-size: 11px;
        margin-bottom: 8px;
    }

    /* প্রাইস ও বাটন সুন্দরভাবে সাজানো */
    .gallery-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .price-container {
        align-items: flex-start;
    }

    .price-highlight {
        font-size: 1.1rem;
    }

    .save-tag {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    /* বাটন পুরো জায়গা জুড়ে থাকবে */
    .btn-accent {
        padding: 8px 10px;
        font-size: 11px;
        justify-content: center;
        width: 100%;
    }

    footer {
        padding: 30px 0 20px;
    }
}

/* =========================
   VERY SMALL DEVICES (আরও ছোট স্ক্রিন)
   400px and below
========================= */

@media (max-width: 400px) {
    .gallery-grid {
        gap: 8px; /* গ্যাপ আরও কমানো হলো */
    }

    .card-img-wrapper {
        height: 140px;
    }

    .gallery-content {
        padding: 8px;
    }

    .gallery-title {
        font-size: 12px;
    }

    .price-highlight {
        font-size: 1rem;
    }

    .old-price {
        font-size: 0.8rem;
    }

    .btn-accent {
        font-size: 10px;
        padding: 6px 8px;
    }
}
/* =========================================
   GALLERY CARD IMAGE
   ========================================= */

.card-img-wrapper {
    width: 100%;
    height: 300px;
    background-color: #faf5f0;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
}
.price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    color: #888888;
    font-size: 0.9em;
    text-decoration: line-through;
}


/* প্রাইস কন্টেইনার */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* ছাড় দেখানোর ছোট ট্যাগ */
.save-tag {
    background-color: #ffe4e6;
    color: #e11d48;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* বর্তমান মূল্য হাইলাইট */
.price-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b2b2b;
}

/* পুরাতন কাটা মূল্য */
.old-price {
    color: #888888;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-right: 6px;
}
/* ==========================================
   IMAGE LIGHTBOX MODAL (FIXED)
   ========================================== */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
    
    /* Flex alignment to lock it to the screen */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}