:root {
    --primary-color: #f5f4f2;
    --secondary-color: #e8cc69;
    --accent-color: #f1ebe5;
    --highlight-color: #706b07;
    --heading-color: #241403;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ================= BASE IMAGE OPTIMIZATION ================= */
img {
    content-visibility: auto;
}

.slideshow img,
.art-slider img {
    content-visibility: visible; /* always render for sliders */
}

/* ================= BODY ================= */
body {
    font-family: 'Gill Sans', Calibri, Trebuchet MS, sans-serif;
    color: #41270d;
    background: url('../assets/background6.jpg') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ================= HEADER ================= */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.logo-space {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-space img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 2rem;
    color: var(--heading-color);
    text-align: center;
}

.tagline {
    font-size: 1rem;
    text-align: center;
}

/* ================= NAV ================= */
nav {
    background: var(--primary-color);
    padding: 10px;
    text-align: center;
}

.nav-link {
    margin: 0 10px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.nav-link:hover {
    background: var(--highlight-color);
    color: #fff;
}

/* ================= HERO SLIDESHOW ================= */
.slideshow-container {
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.slide-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: kenburns 20s ease-in-out infinite alternate;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(55%);
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0,0); }
    50% { transform: scale(1.1) translate(-5%, -5%); }
    100% { transform: scale(1.2) translate(-10%, -10%); }
}

/* Hero text */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
    max-width: 90%;
    z-index: 2;
}

.hero-text p {
    margin: 0.5rem 0;
}

.slide-title {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Dots */
.dots {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dots span.active {
    background: white;
}

/* ================= SECTIONS ================= */
.section {
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--heading-color);
}

/* ================= PURPOSE GRID ================= */
.purpose-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.purpose-card {
    background: #fefbf5;
    padding: 24px 18px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    max-width: 320px;
    text-align: center;
}

.purpose-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--heading-color);
}

.purpose-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #41270d;
}

/* ================= CATEGORY HEADER FIX FOR DESKTOP LEFT/RIGHT ================= */

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center category buttons below */
    padding: 20px 40px;
    gap: 20px;
    text-align: left;      /* left-align top row content */
}

/* Top row: left and right sections */
.category-header .header-top {
    display: flex;
    justify-content: space-between;   /* left and right content */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Left section: logo + title + tagline */
.category-header .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-header .logo-space {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.category-header .brand-name {
    font-size: 2rem;
    margin: 0;
}

.category-header h2#categoryTitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.85;
}

/* Right section: buttons */
.category-header .header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.category-header .header-right a.custom-btn {
    padding: 8px 18px;
    white-space: nowrap;
}

.category-header .header-right a {
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 25px;
    background: var(--secondary-color);
    color: var(--heading-color);
    font-weight: 600;
    transition: 0.3s;
}

.category-header .header-right a:hover {
    background: var(--highlight-color);
    color: #fff;
}

/* ================= CATEGORY BUTTONS CENTERED ================= */
.category-buttons {
    display: flex;
    justify-content: center;  /* center all category buttons */
    gap: 14px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.category-buttons button {
    padding: 10px 24px;
    border-radius: 25px;
    border: none;
    background: var(--highlight-color);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.category-buttons button:hover {
    background: var(--heading-color);
}

/* ================= GALLERY GRID ================= */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

.featured-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.gallery-item.reverse {
    flex-direction: row-reverse;
}

.gallery-image {
    flex: 1;
}

.gallery-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.gallery-text {
    flex: 1;
}

.gallery-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.gallery-text p {
    font-size: 1rem;
    line-height: 1.5;
}

.gallery-text a {
    font-weight: 500;
    color: var(--highlight-color);
    text-decoration: none;
}

/* ================= CARD ================= */
.card {
    background: #fff;
    padding: 40px 36px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    display: block;
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 420px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 16px;
    border-radius: 18px;
}

.card h3,
.card p {
    width: 100%;
    max-width: 720px;
}

.card h3 {
    color: var(--heading-color);
    margin-bottom: 12px;
    text-align: center;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: justify;
}

/* ================= CARD ACTIONS ================= */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* ================= BUY BUTTON ================= */
.buy-btn {
    margin-top: 24px;
    padding: 12px 28px;
    background: #25D366;
    color: #fff;
    border-radius: 28px;
    text-align: center;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.buy-btn:hover {
    opacity: 0.9;
}

.buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ================= FOOTER BUTTON ================= */
.footer-btn {
    text-align: center;
    margin: 50px 0;
}

.footer-btn a {
    padding: 16px 36px;
    background: linear-gradient(135deg, #e8cc69, #f1ebe5);
    color: var(--heading-color);
    font-weight: 600;
    border-radius: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.footer-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* CONTACT BUTTON */
.center-text {
    text-align: center;
}

.contact-btn {
    padding: 16px 36px;
    background: linear-gradient(135deg, #25D366, #1ebc59);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* FLOATING WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: white;
    font-size: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ART IMAGE SLIDER */
.art-slider {
    position: relative;
}

.art-slider img {
    border-radius: 18px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots span.active {
    background: var(--highlight-color);
}

/* MAIN HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right a {
    margin-left: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

.custom-btn {
    padding: 8px 18px;
    background: var(--highlight-color);
    color: white !important;
    border-radius: 20px;
}

/* CUSTOM FORM */
.custom-form {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-form input,
.custom-form select,
.custom-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.custom-form textarea {
    min-height: 100px;
}

.size-row {
    display: flex;
    gap: 12px;
}

/* SCROLL TO TOP */
#scrollTopBtn {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--highlight-color);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 998;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

#scrollTopBtn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DESCRIPTION TOGGLE */
.desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc-text.expanded {
    -webkit-line-clamp: unset;
}

.view-more {
    color: var(--highlight-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ===== CUSTOM CENTER POPUP ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 28px 36px;
    border-radius: 20px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    animation: popupScale 0.25s ease;
}

.popup-box p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--heading-color);
    font-weight: 500;
}

.popup-box button {
    padding: 10px 26px;
    border-radius: 24px;
    border: none;
    background: var(--highlight-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.popup-box button:hover {
    opacity: 0.9;
}

/*image slide*/
.art-slider img {
    touch-action: pan-y;
    cursor: grab;
}

@keyframes popupScale {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* === WORKSHOP SLIDER === */
.workshop-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Wrapper scrollable horizontally */
.workshop-wrapper {
    display: flex !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

/* Remove track wrapping */
.workshop-track {
    display: inline-flex; /* keep slides in a row */
    gap: 16px;
}

/* Each slide natural size */
.workshop-slide {
    flex: 0 0 auto !important;
    width: auto !important;
}
/* Image respects natural size, scales down if needed */
.workshop-slide img {
    height: auto !important;  /* don't fix height */
    width: auto !important;   /* don't stretch width */
    max-height: 420px;        /* optional limit */
    max-width: 100%;          /* never overflow container */
    object-fit: contain;
    display: block;
}

/* Ken Burns only on active */
.workshop-slide.active img {
    animation: kenburns 8s ease-in-out infinite alternate;
}

/* Hide scrollbar if you want a cleaner look */
.workshop-wrapper::-webkit-scrollbar {
    height: 8px;
}
.workshop-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}


/* ================= MOBILE REFINEMENT ================= */
@media (max-width: 768px) {

    /* HERO SLIDESHOW */
    .slideshow-container {
        height: 40vh;
    }

    .hero-text {
        font-size: 1.3rem;
        line-height: 1.3;
        padding: 0 12px;
        max-width: 95%;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .slide-title {
        font-size: 1rem;
        bottom: 10%;
        max-width: 90%;
    }

    .dots {
        bottom: 3%;
    }

    /* HEADER */
    header {
        flex-direction: column;
        padding: 12px 14px;
        gap: 10px;
        text-align: center;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    nav {
        padding: 8px 6px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* CATEGORY HEADER */
    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 12px;
        gap: 8px;
    }

    .category-header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .category-header h2 {
        font-size: 1.1rem;
        opacity: 0.9;
        margin-bottom: 6px;
    }

    .nav-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 6px;
    }

    .nav-actions a {
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 20px;
        background: #f7f3e8;
        white-space: nowrap;
    }

    /* CUSTOM BUTTONS */
    .custom-btn {
        margin-top: 8px;
        font-size: 0.85rem;
        padding: 8px 16px;
        border-radius: 22px;
        white-space: nowrap;
    }

    /* CATEGORY BUTTONS */
    .category-buttons {
        padding: 12px 10px;
        gap: 8px;
    }

    .category-buttons button {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    /* GALLERY & CARDS */
    .gallery {
        padding: 20px 10px;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .featured-gallery {
        gap: 40px;
        max-width: 100%;
        margin: 0 auto;
    }

    .gallery-item,
    .gallery-item.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-text h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .gallery-text p {
        font-size: 0.95rem;
        line-height: 1.4;
        text-align: justify;
    }

    .card {
        padding: 24px 18px;
        max-width: 100%;
    }

    .card img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .card p {
        font-size: 0.9rem;
        margin-bottom: 8px;
        text-align: justify;
    }

    .desc-text,
    .card p.description {
        -webkit-line-clamp: 2;
    }

    .view-more {
        font-size: 0.85rem;
        margin-top: 4px;
    }


    
    /* FORM */
    body {
        overflow-x: hidden;
    }

    .home-page,
    .hero-section,
    .section,
    .custom-form {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .custom-form input,
    .custom-form select,
    .custom-form textarea {
        width: 100%;
        max-width: 100%;
    }

    .size-row {
        flex-direction: column;   /* stack length & breadth */
        gap: 12px;
    }

    /* BUTTONS */
    .buy-btn,
    .footer-btn a,
    .contact-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    /* SCROLL & FLOAT */
    #scrollTopBtn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
/* POP up */
     .popup-box {
        padding: 22px 20px;
        max-width: 280px;
        width: 85%;
        border-radius: 18px;
    }

    .popup-box p {
        font-size: 0.95rem;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .popup-box button {
        padding: 10px 22px;
        font-size: 0.9rem;
        border-radius: 22px;
    }
     img {
        content-visibility: auto;
    }

    .workshop-slide img {
        height: 300px;
    }
}
