:root {
    --gold: #c9a84c;
    --gold-light: #e8c97e;
    --cream: #fdf6ec;
    --deep: #1a0e05;
    --brown: #3d2009;
    --text-muted: #7a5c3a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.products-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background: linear-gradient(rgba(64, 46, 37, 0.45), rgba(64, 46, 37, 0.5)), url('../images/gallary-hero2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-floating {
    position: absolute;
    font-size: 100px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    color: var(--main-color);
}

.float1 {
    top: 15%;
    left: 5%;
    animation: floatHero 10s infinite;
}

.float2 {
    bottom: 20%;
    right: 8%;
    animation: floatHero 12s infinite reverse;
}

.float3 {
    top: 40%;
    right: 15%;
    animation: floatHero 14s infinite;
}

.float4 {
    bottom: 30%;
    left: 10%;
    animation: floatHero 11s infinite;
}

@keyframes floatHero {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(6deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: white;
    text-shadow: 0 5px 20px rgba(64, 46, 37, 0.4);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 236, 214, 0.95);
    max-width: 650px;
    margin: 1.5rem auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--main-color);
    text-shadow: 0 2px 8px rgba(64, 46, 37, 0.3);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: rgba(255, 236, 214, 0.9);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--ternary-color), var(--main-color));
    padding: 14px 38px;
    border-radius: 50px;
    border: none;
    color: var(--body-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(218, 182, 120, 0.5);
    background: linear-gradient(135deg, var(--main-color), var(--ternary-color));
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid white;
    padding: 12px 34px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(218, 182, 120, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }
}

.order-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-box h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.popup-box button {
    margin-top: 15px;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ========== GALLERY SECTION (15 POLAROID CARDS) ========== */
.gallery-polaroid {
    background: #fffbf2;
    padding: 5rem 2rem 6rem;
}

.gallery-container {
    max-width: 1180px;
    margin: 0 auto;
}

.section-subhead {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subhead p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.section-subhead h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--brown);
}

/* cards row layout */
.cards-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.polaroid-wrapper {
    position: relative;
    flex-shrink: 0;
}

.polaroid-card {
    width: 270px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(61, 32, 9, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.32s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* random tilt per card */
.cards-row:nth-child(1) .polaroid-wrapper:nth-child(1) .polaroid-card {
    transform: rotate(-4deg);
}

.cards-row:nth-child(1) .polaroid-wrapper:nth-child(2) .polaroid-card {
    transform: rotate(3deg) translateY(-12px);
}

.cards-row:nth-child(1) .polaroid-wrapper:nth-child(3) .polaroid-card {
    transform: rotate(-2.5deg);
}

.cards-row:nth-child(2) .polaroid-wrapper:nth-child(1) .polaroid-card {
    transform: rotate(5deg);
}

.cards-row:nth-child(2) .polaroid-wrapper:nth-child(2) .polaroid-card {
    transform: rotate(-3.8deg) translateY(-14px);
}

.cards-row:nth-child(2) .polaroid-wrapper:nth-child(3) .polaroid-card {
    transform: rotate(2.2deg);
}

.cards-row:nth-child(3) .polaroid-wrapper:nth-child(1) .polaroid-card {
    transform: rotate(-5.2deg);
}

.cards-row:nth-child(3) .polaroid-wrapper:nth-child(2) .polaroid-card {
    transform: rotate(4.5deg) translateY(-18px);
}

.cards-row:nth-child(3) .polaroid-wrapper:nth-child(3) .polaroid-card {
    transform: rotate(-2deg);
}

.cards-row:nth-child(4) .polaroid-wrapper:nth-child(1) .polaroid-card {
    transform: rotate(3.6deg);
}

.cards-row:nth-child(4) .polaroid-wrapper:nth-child(2) .polaroid-card {
    transform: rotate(-4.2deg) translateY(-12px);
}

.cards-row:nth-child(4) .polaroid-wrapper:nth-child(3) .polaroid-card {
    transform: rotate(2deg);
}

.cards-row:nth-child(5) .polaroid-wrapper:nth-child(1) .polaroid-card {
    transform: rotate(-3.2deg);
}

.cards-row:nth-child(5) .polaroid-wrapper:nth-child(2) .polaroid-card {
    transform: rotate(5.1deg) translateY(-16px);
}

.cards-row:nth-child(5) .polaroid-wrapper:nth-child(3) .polaroid-card {
    transform: rotate(-4deg);
}

.polaroid-card:hover {
    transform: translateY(-12px) rotate(0deg) !important;
    box-shadow: 0 28px 44px rgba(61, 32, 9, 0.2);
    border-color: var(--gold);
}

.polaroid-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.polaroid-body {
    padding: 0.9rem 1rem 1.2rem;
    background: white;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 240, 0.95);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: #3d2009;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 0.5px solid rgba(201, 168, 76, 0.5);
}

.polaroid-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.2px;
}

.polaroid-desc {
    font-size: 0.74rem;
    color: #6b5a48;
    line-height: 1.4;
}

/* dynamic title colors */
.tc-1,
.tc-10 {
    color: #d9373f;
}

.tc-2,
.tc-11 {
    color: #c47d18;
}

.tc-3,
.tc-12 {
    color: #1a3a6e;
}

.tc-4,
.tc-13 {
    color: #2d9e5f;
}

.tc-5,
.tc-14 {
    color: #b02d68;
}

.tc-6,
.tc-15 {
    color: #c47d18;
}

.tc-7 {
    color: #d9373f;
}

.tc-8 {
    color: #1a3a6e;
}

.tc-9 {
    color: #2d9e5f;
}

/* responsive cards */
@media (max-width: 950px) {
    .polaroid-card {
        width: 220px;
    }

    .polaroid-img {
        height: 160px;
    }

    .cards-row {
        gap: 1.2rem;
    }
}

@media (max-width: 700px) {
    .polaroid-card {
        width: 45vw;
    }

    .polaroid-img {
        height: 32vw;
    }

    .cards-row {
        gap: 1rem;
    }
}

/* ===== UPDATED MOBILE VIEW - SINGLE COLUMN CONTINUOUS FLOW ===== */
@media (max-width: 550px) {
    .gallery-polaroid {
        padding: 2rem 1rem;
    }

    .cards-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* All images visible in single column */
    .cards-row .polaroid-wrapper:nth-child(2),
    .cards-row .polaroid-wrapper:nth-child(3) {
        display: flex;
    }

    .polaroid-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .polaroid-card {
        width: 100%;
        max-width: 350px;
    }

    .polaroid-img {
        height: 50vw;
        max-height: 200px;
    }

    .polaroid-title {
        font-size: 0.9rem;
    }

    .polaroid-desc {
        font-size: 0.75rem;
    }

    .polaroid-body {
        padding: 0.8rem 1rem 1.2rem;
    }

    .card-badge {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        top: 10px;
        left: 10px;
    }

    /* Reset rotations for mobile */
    .cards-row .polaroid-wrapper .polaroid-card {
        transform: rotate(0deg) !important;
    }

    .section-subhead h2 {
        font-size: 1.6rem;
    }

    .section-subhead p {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .cards-row {
        gap: 1.2rem;
    }

    .polaroid-card {
        max-width: 300px;
    }

    .polaroid-img {
        height: 55vw;
        max-height: 170px;
    }

    .polaroid-title {
        font-size: 0.8rem;
    }

    .polaroid-desc {
        font-size: 0.7rem;
    }

    .polaroid-body {
        padding: 0.6rem 0.8rem 1rem;
    }

    .card-badge {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        top: 8px;
        left: 8px;
    }
}

/* ── BANNER ── */
.gal-banner {
    margin: 20px 4% 70px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--brown) 0%, #6b3516 50%, var(--gold) 100%);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gal-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(201, 168, 76, .12);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.gal-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

.gal-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    color: #fff;
    margin-bottom: .8rem;
}

.gal-banner p {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, .78);
    max-width: 540px;
    margin: 0 auto 1.8rem;
    font-size: 1rem;
}

.gal-banner button {
    background: #fff;
    border: none;
    color: var(--brown);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    padding: .9rem 2.4rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all .28s;
    position: relative;
    z-index: 1;
}

.gal-banner button:hover {
    background: var(--gold-light);
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

@media (max-width: 550px) {
    .gal-banner {
        margin: 10px 2% 40px;
        padding: 2rem 1.5rem;
    }

    .gal-banner h2 {
        font-size: 1.4rem;
    }

    .gal-banner p {
        font-size: 0.85rem;
    }

    .gal-banner button {
        padding: 0.7rem 1.8rem;
        font-size: 0.8rem;
    }
}

/* ── LIGHTBOX ── */
.gal-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 2, .96);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(12px);
}

.gal-lightbox.open {
    display: flex;
    animation: lbIn .3s ease;
}

@keyframes lbIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gal-lb-inner {
    max-width: 88vw;
    max-height: 88vh;
    position: relative;
}

.gal-lb-inner img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 24px;
    display: block;
}

.gal-lb-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .25s;
}

.gal-lb-close:hover {
    background: var(--gold);
    transform: rotate(90deg);
}

.gal-lb-caption {
    text-align: center;
    color: rgba(255, 255, 255, .7);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    margin-top: 1rem;
}

.gal-lb-caption strong {
    color: var(--gold-light);
    display: block;
    font-size: 1.05rem;
    margin-bottom: .2rem;
}

@media (max-width: 550px) {
    .gal-lb-close {
        top: -40px;
        right: 0;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .gal-lb-caption {
        font-size: 0.8rem;
    }

    .gal-lb-caption strong {
        font-size: 0.9rem;
    }
}

/* scroll progress (keep existing) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    width: 0%;
    z-index: 9990;
    transition: width .1s;
}