/* =========================================
           1. CSS VARIABLES (ROOTS)
           ========================================= */
:root {
    --primary: var(--primary);
    /* The dominant yellow from the image */
    --primary-dark: var(--accent);
    /* Slightly darker for hover states */
    --text-main: var(--text-dark);
    /* Dark grey for headings */
    --text-light: var(--text-light);
    /* Lighter grey for paragraphs */
    --bg-white: var(--bg);
    /* Pure white */
    --bg-offwhite: var(--bg);
    /* Subtle background for contrast */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --btn-text: var(--primary-text);
    --border-radius-lg: 30px;
    --border-radius-sm: 12px;
    --transition: all 0.3s ease;
}

/* =========================================
           2. GLOBAL RESET & TYPOGRAPHY
           ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;

}

video {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
    max-width: 0 auto;
}


/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
section {
    padding: 80px 0;
    position: relative;
}

/* Titles */
h1,
h2,
h3 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-white);
}

/* =========================================
           3. HEADER / NAV
           ========================================= */
header {
    background-color: var(--primary);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    opacity: 0.7;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
           4. HERO SECTION
           ========================================= */
#hero {
    background-color: var(--primary);
    padding-top: 0px;
    /* Account for fixed header */
    padding-bottom: 0;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 62px;
}

.hero-text p {
    font-size: 0.8rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-image {
    position: relative;
    justify-self: center;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    /* Creating a soft float animation */
    animation: float 6s ease-in-out infinite;
}

.hero-image video {
    border-radius: var(--border-radius-lg);
    /* Creating a soft float animation */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* The Wave SVG at the bottom of Hero */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(133% + 1.3px);
    height: 150px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-white);
}

/* =========================================
           5. FEATURED PRODUCTS
           ========================================= */
#featured {
    background-color: var(--bg-white);
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header span {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-img-wrapper {
    background-color: var(--bg-offwhite);
    border-radius: var(--border-radius-sm);
    padding: 1px;
    margin-bottom: 20px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-height: 100%;
    width: 100%;
    border-radius: 11px;
    object-fit: cover;
    object-position: top;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 40px;
    /* Align cards */
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
}

.buy-btn {
    background-color: var(--primary);
    color: var(--text-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.buy-btn:hover {
    background-color: var(--text-main);
    color: var(--primary);
}

/* =========================================
           6. BEST SELLER SECTION
           ========================================= */
#bestseller {
    background-color: var(--bg-offwhite);
    padding: 100px 0;
}

.bestseller-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.bestseller-img img {
    border-radius: 50%;
    width: 100%;
    object-fit: cover;
    max-height: 500px;
    border: 10px solid var(--bg-white);
    box-shadow: var(--card-shadow);
}

.bestseller-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.bestseller-content p {
    margin-bottom: 30px;
    color: var(--text-light);
}

/* =========================================
           7. ABOUT US
           ========================================= */
#about {
    background-color: var(--bg-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--border-radius-lg);
    top: 20px;
    left: 20px;
    z-index: -1;
}

.about-image img {
    border-radius: var(--border-radius-lg);
}

.about-image video {
    border-radius: var(--border-radius-lg);
}

/* =========================================
           8. CONTACT SECTION
           ========================================= */
#contact {
    background-color: var(--bg-offwhite);
    text-align: center;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =========================================
           9. FOOTER
           ========================================= */
footer {

    position: relative;
    margin-top: -1px;
    /* fix sub-pixel gaps */
}

/* Wave at top of footer */
.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(133% + 1.3px);
    height: 100px;
}

.custom-shape-divider-top .shape-fill {
    fill: var(--bg-offwhite);
}

/* Fix for contact section transition */
#contact+footer .custom-shape-divider-top .shape-fill {
    fill: var(--bg-offwhite);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    color: var(--text-main);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* =========================================
           10. RESPONSIVE MEDIA QUERIES
           ========================================= */

@media (max-width: 900px) {
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 24px 18px;
    }

    .hero-content {
        gap: 0px;
    }

    .hero-text p {
        font-size: 0.7rem;
        margin-bottom: 30px;
    }

    .bestseller-img img {
        max-height: 300px;
    }

    #bestseller {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {

        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column-reverse;
        margin-top: 112px;
    }

    section {
        padding: 20px 0;
        position: relative;
    }


    .bestseller-grid,
    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }

    .about-image {
        order: -1;
    }

    .about-image::before {
        display: none;
    }

    /* Simplify on mobile */
}

/*************************************************
************************************************
***********************************************
*********** STABLE CSS STARTS FROM HERE **************
*****************************************************
*************************************************
***********************************************
*************************************************
***************************************************




/*****************************************
*************CART*************************
***************************************/
/* BACKDROP */
#cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 1000;
}

/* SIDEBAR – now appears from the RIGHT */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50%;
    max-width: 500px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    z-index: 1001;
    background: var(--bg);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    #cart-sidebar {
        width: 80%;
    }
}

/* CLOSE BUTTON */
.close-btn {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    color: var(--accent);
}


#submitOrder {
    padding: 15px;
    width: 150px;
}

#submitOrder:hover {
    color: var(--text-dark);
    background-color: var(--bg);
}

/* FORM */
#cart-sidebar input,
#cart-sidebar textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    background: none;
    color: var(--text-dark);
    border-radius: 5px;
}

/* TABLE */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 10px 5px;
    border-bottom: 1px solid var(--primary);
    font-size: 14px;
}

.cart-table td {
    padding: 12px 5px;
    border-bottom: 1px solid var(--text-dark);
    /* Horizontal separators */
    vertical-align: middle;
}

/* Images */
.prod-img img {
    width: 60px;
    border-radius: 5px;
}

/* Delete button */
.prod-del i {
    cursor: pointer;
    color: #e63946;
}

/* SHIPMENT BOX */
.shipment {
    padding: 15px 0;
    margin-top: 15px;
}

/* BOTTOM ROW */
.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 1rem;
}

/* CHECKOUT BUTTON */
.checkout-btn {
    padding: 10px 18px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 10rem;
    font-size: 15px;
    justify-content: center;
    border-radius: 25px;
}

.preview-item {
    position: relative;
    display: inline-block;
    margin: 6px;
}

.preview-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--muted);
}

/*************************************
************ HEADER ****************
***************************************
****************************************
/* --- 2. Header Styles --- */
.header {

    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 903px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
    max-width: 100px;
    max-height: 50px;
    margin-top: 5px;
}

.logo img {
    width: 100%;
    max-height: 45px;
    object-fit: contain;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Hover shake */
#add-to-cart:hover i {
    animation: shake 0.5s;
    filter: grayscale(0.4);
}

/* Click shake */
#add-to-cart:active i {
    animation: shake 0.3s;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-link {
    padding: 0.5rem;
    border-radius: 0px;
    transition: color 0.15s;
    color: var(--text-dark);
    border: none;
    background: none;
    font-size: 14px;
    transition: 0.1s;
}

.nav-link:hover {
    color: var(--bg);

}

/* Dropdown */
.dropdown-wrapper {
    position: relative;
    /* Make sure the hover effect covers both button and content area */
    padding-bottom: 0.5rem;
    /* Extend hover area downwards */
    margin-bottom: -0.5rem;
    /* Counteract the padding-bottom to keep layout tight */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    width: 192px;
    box-shadow: 0 10px 15px rgb(0 0 0 / 25%);
    background-color: var(--bg);
    color: var(--text-dark);
    overflow: hidden;
    /* border: 1px solid #e5e7eb; */
    transform: translateY(-5px);
}

.dropdown-wrapper:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s;
    font-size: 12px;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: var(--primary-text);
}

/* Cart Icon */
.cart-icon-wrapper {
    position: relative;
    padding: 0.1rem;
    transition: 0.5s;
}

.cart-icon-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.067);
    border-radius: 100px;
    /* Gray-700 */
}


#template-alert {
    position: fixed;
    top: -60px;
    /* start hidden above screen */
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-text);
    padding: 15px 25px;
    box-shadow: 0 14px 10px rgba(0, 0, 0, 0.453);
    font-size: 14px;
    z-index: 9999;
    transition: top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.cart-count {
    position: absolute;
    top: 0px;
    right: -3px;
    display: flex;
    height: 20px;
    width: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-text);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s;
    line-height: 1;
}

#add-to-cart {
    color: var(--bg);
}

/* --- 3. Mobile Menu (Off-Canvas) --- */

/* Initial state */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 256px;
    color: var(--text-dark);
    background: var(--bg);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 50;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    /* color: var(--text-light); */

}

.m-menu-container {
    background: linear-gradient(45deg, var(--bg), #74747445);
    padding: 1.5rem;
    height: 100%;
}

.mobile-menu-open {
    transform: translateX(0);
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.25rem;
    /* border-radius: 0.5rem; */
    transition: background-color 0.15s;
    color: var(--text-dark);
}

.mobile-menu-link:hover {
    background-color: var(--primary);
    color: var(--primary-text);
}

/* Dropdown content (hidden by default) */
.dropdown-content-mobile {
    display: none;
    flex-direction: column;
    margin-left: 1rem;
    animation: fadeIn 0.25s ease;
}

/* Smooth animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* When active */
.dropdown-content-mobile.active {
    display: flex;
}

.close-button {
    color: var(--text-dark);
    transition: color 0.15s;
}

.close-button:hover {
    color: var(--primary-color);
}

/* Backdrop */
.backdrop {
    position: fixed;
    inset: 0;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 40;
    display: none;
}

.backdrop-visible {
    display: block;
    opacity: 0.5;
}

@media (min-width: 768px) {

    /* Desktop Layout */
    .burger-button {
        display: none;
    }

    .nav-desktop {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 2fr;

        /* Adjust grid for wider screens */
    }
}


/*///////////////////////////////
///////// SCROLLBAR /////////////
//////////////////////////////////
////////////////////////////////
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(131, 131, 131, 0.318);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:single-button:horizontal,
*::-webkit-scrollbar-button:single-button:vertical,
*::-webkit-scrollbar-button:decrement,
*::-webkit-scrollbar-button:increment,
*::-webkit-scrollbar-button:start,
*::-webkit-scrollbar-button:end {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: none !important;
}

/**********FOOTER*******************
*************************************
**********************************/
/* --- 5. Footer Styles --- */
.footer {
    background: var(--primary);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    color: var(--primary-text);
    font-size: smaller;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-heading {
    color: var(--primary-text);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
    list-style: none;

}

.footer-links a {
    opacity: 0.9;
    transition: 0.3s;

}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}


.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input {
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-dark);
}


.newsletter-input:focus,
.newsletter-input:hover {
    border-color: var(--text-dark);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.footer-bottom p {
    color: var(--primary-text) !important;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--bg);
    font-size: 1.25rem;
    transition: color 0.2s;
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--text-dark);
}

/* --- 6. Media Queries (Mobile to Desktop) --- */

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
        gap: 0.5rem;
    }

    .newsletter-input {
        flex-grow: 1;
    }

    .newsletter-button {
        width: auto;
    }

    .footer-bottom {
        flex-direction: row;
        margin-top: 0px;
        padding-top: 0px;
    }

    .social-links {
        margin-top: 0;
    }
}

@media (min-width: 768px) {

    /* Desktop Layout */
    .burger-button {
        display: none;
    }

    .nav-desktop {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 2fr;
        /* Adjust grid for wider screens */
    }
}

/* Footer */
.footer {
    padding: 67px 20px 20px;
}

.footer-container {

    display: grid;
    gap: 20px;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.footer-container h4 {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    color: var(--muted);
}

/*contact stats*/
.contact-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    font-size: smaller;
    padding: 20px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 200;
    font-size: 12px;
    min-width: 26%;
}

.stat-item .icon {
    font-size: 1.2em;
    color: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .contact-stats {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .section-padding {
        padding: 50px 15px;
        box-sizing: border-box;
    }

}



/**********************************************************
******************SHOP PAGE*****************************
***********************************************************
**********************************************************/
.page {
    padding: 2rem 2rem 2rem 2rem;
    margin-top: 100px;
}

.top-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.search-wrap {
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
}

.search-input,
textarea {
    width: 100%;
    padding: 15px 10px;
    outline: none;
    font-size: 1em;
    color: var(--text-dark);
    background: none;
}

.search-input {
    border-radius: 15px;
    border: 1px solid var(--muted);
}

input:hover,
.search-input:hover,
textarea:hover {
    border-color: var(--primary);
}

input:focus,
.search-input:focus,
textarea:focus {
    border-color: var(--primary);
}

/* Layout: sidebar + content */
.main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--gap);
    align-items: start;
}

/* Sidebar (filters) */

.filters-overlay {
    position: fixed;
    /* cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    /* semi-transparent black */
    z-index: 1500;
    /* behind the sidebar which is z-index 2000 */
    display: none;
    /* hidden by default */
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.filters-overlay.show {
    display: block;
    /* visible when sidebar is open */
    opacity: 1;
}

.sidebar {
    padding: 18px;
    position: sticky;
    top: 24px;
    height: fit-content;
    background: var(--bg);
    box-shadow: -8px 8px 20px #0000002e;
    border-radius: 20px;

}

.color.selected {
    outline: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
    /* optional highlight */
}

.size.selected {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.sidebar h3 {
    margin: 0 0 18px 0;
    /* font-size: 1.05rem; */
    padding: 0.6rem 9.6px;
    background: var(--primary);
    font-weight: 600;
    border-radius: 7px;
    text-align: left;
    box-shadow: var(--shadow);
}

#closeFiltersBtn {
    visibility: hidden;
}

.filter-section {
    margin-bottom: 16px;
}

.color.active {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.35);
}

.size.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-wrap: nowrap;
    align-content: flex-start;
    align-items: flex-start;
}

.checkbox-list span {
    text-align: left;
    min-width: 222px;
}

.checkbox-list label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
}

.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-range input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    padding: 0px;
    cursor: pointer;
}


/* Update background on input */

.price-values {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 6px;
    color: var(--muted);
}

.clear-filters {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--primary);
    cursor: pointer;
    font-weight: 100;
    font-size: 0.9rem;
}

/* Product area */
.products-area {
    min-height: 400px;
    padding: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
    gap: 16px;

}

/* Product card (your original with small tweaks) */
.product-card {
    overflow: hidden;
    gap: 8px;
    transition: 0.2s ease;
}

.shop-products {
    min-width: 0 !important;
}

.shop-products h4 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--text-dark);
    background: none;
    cursor: pointer;
    color: var(--text-dark);
}

.page-btn.active {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

/* Empty state */
.empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 12px;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

input[type="checkbox"] {
    accent-color: var(--accent);
    /* simplest modern way */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 920px) {
    .main-grid {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 720px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        /* hidden initially */
        height: 100%;
        width: 300px;
        /* adjust if needed */
        max-width: 90%;
        padding: 18px;
        border: none;
        overflow-y: auto;
        z-index: 2000;
        transition: left 0.3s ease;
        border-radius: 0px;

    }

    .sidebar.open {
        left: 0;
    }

    .filters-toggle {
        display: inline-flex !important;
        /* show button */
    }

    .filters-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1500;
        display: none;
    }

    .filters-overlay.show {
        display: block;
    }

    #closeFiltersBtn {
        display: block;
        /* always visible on mobile */
    }

    .shop-products {
        font-size: small;
    }

    .shop-btn {
        font-size: 10px;
        padding: 0.4rem 0.4rem !important;
    }

    .shop-products .product-price {

        font-size: 12px;

    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    }

    .sidedesk {
        display: none;
    }

    .filters-toggle {
        display: inline-flex;
    }
}

/* small niceties */
.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.filters-toggle {
    display: none;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 17px 14px;
    /* border-radius: 10px; */
    cursor: pointer;
    height: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color {
    width: 30px;
    height: 30px;
    /* border-radius: 50%; */
    cursor: pointer;
    border: 1px solid var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 50%;
}

.color:hover {
    outline: 1px solid var(--primary);

}

.sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size {
    padding: 8px 14px;
    border: 1px solid var(--text-dark);
    cursor: pointer;
    font-weight: 500;
    background: var(--bg);
    transition: all 0.2s ease;
    border-radius: 50px;
}

.sidebar h1,
h2,
h3,
h4 {
    margin-bottom: 0.5em;
}

.size:hover {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .properties {
        max-width: 95%;
        padding: 0px;
    }

    .category-tab {
        font-size: 11px;
    }

    .product-card-footer {

        padding: 8px !important;
    }

    .product-card-footer .btn {
        font-size: 8px !important;
    }

    .shop-btn {
        font-size: 0.5rem !important;
    }

}

.shop-products {
    text-align: center;
    position: relative;
    white-space: normal;
    display: flex;
    flex-direction: column;
    opacity: 1;
    padding: 0 !important;
    transition: 0.2s ease-in;
    background: var(--bg);
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 20px;
    box-shadow: 0 4px 30px rgb(0 0 0 / 8%);
    border: 1px solid #ffffff1f;
}


.shop-products .product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.product-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--accent-text);
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 24px 18px 6px 11px;
}

.shop-products p {
    font-size: 0.7em;
    color: var(--muted);
    margin-bottom: 53px;
    padding: 0px 24px;
}

.shop-btn {
    display: inline-block;
    padding: 6px 10px;
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    min-width: 93px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    background: var(--primary-text);
    border-radius: 30px;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: -1px 9px 19px #00000027;
}

.shop-products .product-card-image {
    height: 200px;
    /*margin-bottom: 10px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    /*extra*/
    padding: 1rem;
}

.shop-products .product-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /*extra*/
    border-radius: 20px;
    object-position: top;
}

.shop-products .product-price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 17px;
}

.shop-products .btn-paint {
    padding: 8px;
    font-size: 13px;
    background: var(--accent);
}

main::before {

    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: var(--primary-orange);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    opacity: 0.05;

}


@media (max-width: 768px) {
    .container {
        padding: 1rem 2rem;
    }
}

/*====================================
=======================================
ONE PRODUCT PAGE
===================================
==================================== */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 2fr));
    gap: 20px;
}


.single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    /*extra*/
}

.terms-conditions {
    margin-top: 80px;
    text-align: left;
}

.product-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    border: 1px solid #ffffff36;
    box-shadow: 13px -13px 62px #3434341f;
    padding: 20px;
    background: var(--bg);
    border-radius: 20px;
    margin-top: 100px;
    flex-direction: row;
}

/* GALLERY */
.product-gallery {
    flex: 1 1 400px;
}

.main-image {
    background: var(--bg);
    /* border-radius: 8px; */
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.main-image img {
    max-width: 100%;
    min-height: 350px;
    object-fit: contain;
    border-radius: 22px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnails img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnails img:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* DETAILS */
.product-details {
    flex: 1 1 400px;
}

.product-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-category {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.product-category i {
    margin-right: 6px;
    color: var(--accent);
}

.product-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-info i {
    margin-right: 6px;
    color: var(--primary);
    width: 22px;
}

.product-price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 17px;
}

.in-stock {
    color: var(--accent);
    font-weight: 400;
    font-size: 14px;
}

/* PROPERTIES */
.properties {
    margin-top: 1.5rem;
}

/* QUANTITY */
.quantity-section {
    margin-top: 1.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    background-color: var(--accent);
    color: var(--accent-text);
    border: none;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    /*extra*/
    border-radius: 5px;
}

.qty-btn:hover {
    background-color: var(--primary);
}

#quantity {
    width: 60px;
    text-align: center;
    padding: 9px;
    font-size: 1rem;
}

/* BUTTON */
.btn-add-to-cart {
    margin-top: 1.5rem;
    background-color: var(--primary);
    color: var(--primary-text);
    padding: 20px 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    /*extra*/
    border-radius: 15px;

}

.btn-add-to-cart:hover {
    background-color: var(--bg);
    transform: scale(1.03);
    color: var(--primary);
}

.prop-title {
    font-weight: 100;
    font-size: 12px;
    margin-top: 10px;
}

.sec-title {
    font-family: var(--title-font);
    margin-top: 40px;
    font-weight: bold;
    font-size: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        padding: 15px;
    }

    .footer-grid .product-gallery,
    .product-details {
        flex: 1 1 100%;
    }

    .thumbnails img {
        width: 70px;
        height: 70px;
    }

    .related-products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 2fr));
        gap: 20px;
    }
}

input {
    padding: 5px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--muted);
    border-radius: 5px;
}

input:hover,
input:focus {
    outline: none;
    border-color: var(--text-dark);
}