/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --bg-cream: var(--bg);
    --bg-accent: var(--accent);
    --primary-red: var(--primary);
    --primary-orange: var(--accent);
    --text-dark: var(--text-dark);
    --text-gray: var(--muted);
    --font-head: var(--title-font);
    --font-body: var(--font-family);
    --border-width: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--text-dark);
    line-height: 1.2;
}

p {
    color: var(--text-gray);
    line-height: 1.6;
}

img {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

video {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 500px;
    object-fit: cover;
}


/* --- 2. UTILITY CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 3rem;
}

/* The "Paint Stroke" Button */
.btn-paint {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-red);
    color: white;
    font-weight: 600;
    text-decoration: none;
    /* Irregular radius for paint look */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transition: 0.3s;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-paint:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    background: #c02e22;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

/* Underline decoration */
.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 15px;
    background: var(--primary-orange);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
}

/* --- 3. NAVBAR --- */
nav {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* --- 4. HERO SECTION --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 2rem;
    gap: 15px;
    width: 80%;
    position: relative;
    justify-content: center;
    align-content: center;
    justify-items: center;
}

/* Abstract background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: var(--primary-orange);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
}

.hero-content span {
    color: var(--primary-red);
    font-style: italic;
    font-size: 44px;
    font-family: var(--font-head);
    line-height: 27px;
    margin-bottom: 10px;
}

.hero-content p {
    margin-left: 0;
    font-size: 0.9rem;
    margin-bottom: 30px;
    max-width: 450px;
    margin-top: 9px;
}

.hero-img-wrapper {
    position: relative;
    padding: 20px;
}

.hero-img-wrapper img {
    border-radius: 200px 200px 20px 20px;
    /* Arch shape */
    border: 2px solid var(--text-dark);
    box-shadow: 20px 20px 0px var(--bg-accent);
}

.hero-img-wrapper video {
    border-radius: 200px 200px 20px 20px;
    /* Arch shape */
    border: 2px solid var(--text-dark);
    box-shadow: 20px 20px 0px var(--bg-accent);
}

/* --- 5. FEATURED (6 PRODUCTS) --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.product-card {
    background: var(--bg);
    padding: 15px;
    border: 1px solid #ddd;
    transition: 0.3s;
    position: relative;
}

/* Frame Style Hover Effect */
.product-card:hover {
    border-color: var(--text-dark);
    box-shadow: 10px 10px 0px var(--text-dark);
    transform: translate(-5px, -5px);
}

.card-img-container {
    max-height: 300px;
    overflow: hidden;
    aspect-ratio: 4/4;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.product-card .price {
    color: var(--primary-red);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.add-btn {
    background: transparent;
    border: 2px solid var(--text-dark);
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    color: var(--text-dark);
}

.add-btn:hover {
    background: var(--text-dark);
    color: white;
}

/* --- 6. BEST SELLER (Spotlight) --- */
.best-seller {
    background: var(--text-dark);
    color: var(--bg-cream);
    margin: 50px 0;
    padding: 80px 0;
    /* Torn paper edge effect using clip-path */
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}

.spotlight-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.spotlight-img {
    flex: 1;
    border: 10px solid white;
    transform: rotate(-3deg);
    box-shadow: 20px 20px 0px var(--primary-red);
}

.spotlight-content {
    flex: 1;
}

.spotlight-content h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.spotlight-content p {
    color: #ccc;
    margin-bottom: 30px;
}

.tag {
    background: var(--primary-orange);
    color: var(--text-dark);
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 7. ABOUT US --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: var(--bg-accent);
    padding: 30px;
    text-align: center;
    border-radius: 50% 50% 50% 0;
    /* Leaf/Organic shape */
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.about-img img {
    border-radius: 0px;
    border: 2px solid var(--text-dark);
    padding: 10px;
    /* Double border effect */
    background: white;
}

.about-img video {
    border-radius: 0px;
    border: 2px solid var(--text-dark);
    padding: 10px;
    /* Double border effect */
    background: white;
}

/* --- 8. CONTACT SECTION --- */
.contact-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
}

/* Subtle pattern */

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border: 2px solid var(--text-dark);
    box-shadow: 15px 15px 0 var(--primary-orange);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    background: var(--bg-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    background: white;
}

/* --- 9. FOOTER --- */
footer {
    background: var(--text-dark);
    color: white;
    padding-top: 80px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--primary-orange);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-input {
    width: 100%;
    padding: 12px;
    border: none;
    margin-bottom: 10px;
    background-color: var(--text-dark);
    box-shadow: -7px 8px 0px var(--accent);
}

.copyright {
    border-top: 1px solid #333;
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {

    .hero,
    .about-wrapper,
    .spotlight-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        flex-direction: column;
    }

    .hero-img-wrapper {
        order: -1;
        margin-bottom: 30px;
    }

    .nav-links {
        display: none;
    }

    .spotlight-img {
        margin-bottom: 30px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }

    .section-padding {
        padding: 50px 40px;
    }

    .product-card p {
        font-size: xx-small !important;

    }

    .add-btn {
        font-size: x-small !important;
    }

    .contact-form-wrapper {
        padding: 1rem;
    }

    @media (max-width: 768px) {
        .contact-stats {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start !important;
        }
    }

    .product-card h3 {
        font-size: 0.7rem;
    }

    .section-padding {
        padding: 20px 2rem !important;
    }

}


@media (max-width: 995px) {

    .hero {
        width: 90%;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .hero-content p {
        margin-left: 0;
        font-size: 0.6rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 80px 2rem;
    }

    .best-seller {
        padding: 80px 20px;
    }

    .spotlight-content h2 {
        font-size: 2.5rem;
    }

}


/*************************************************
************************************************
***********************************************
*********** 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;
    background: var(--bg);
    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;
}

@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);
}

/* FORM */
#cart-form input,
#cart-form textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    background: var(--bg);
    border: 1px solid var(--text-dark);
    font-family: var(--font-family);
}

/* 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(--primary);
    color: var(--primary-text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 10rem;
    font-size: 15px;
    justify-content: center;
}

.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 #ccc;
}

/*************************************
************ HEADER ****************
***************************************
****************************************
/* --- 2. Header Styles --- */
.header {

    top: 0;
    color: var(--text-light);
    transition: all 0.3s ease-in-out;
    /* Custom animation target */
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);

}

.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: 0.5rem;
    transition: color 0.15s;
    color: var(--text-dark);
    border: none;
    background: none;
    font-family: var(--font-family);
    font-size: 14px;
}

.nav-link:hover {
    color: var(--primary);
}

/* 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: -4px;
    right: -4px;
    display: flex;
    height: 20px;
    width: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-text);
    transition: all 0.2s;
    line-height: 1;
}

#add-to-cart {
    color: var(--primary);
}

/* --- 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: linear-gradient(359deg, var(--bg) 36%, #8c8c8c4a 182%);
    color: var(--text-dark);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #92929265;
}

.footer-heading {
    color: var(--primary-orange);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
    list-style: none;

}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
}

p {
    margin: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input {
    padding: 0.75rem;
    /* border-radius: 0.5rem; */
    border: 1px solid var(--primary);
    width: 100%;
    box-sizing: border-box;
    outline: none;
}


.newsletter-input:focus,
.newsletter-input:hover {
    border-color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.footer-bottom p {
    color: var(--accent) !important;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: color 0.2s;
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--primary);
}

/* --- 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 {
    background: var(--text-dark);
    color: white;
    margin-top: 100px;
    padding: 40px 20px 20px;
}

.footer-container {
    display: grid;
    gap: 20px;
}

.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;
}

/**********************************************************
******************SHOP PAGE*****************************
***********************************************************
**********************************************************/
.page {
    padding: 2rem 2rem 2rem 2rem;
}

.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;
    border: 1px solid var(--text-dark);
    outline: none;
    font-size: 1em;
    color: var(--text-dark);
    background: none;
    font-family: var(--font-family);
}

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;
}


.shop-btn {

    padding: 8px;
    font-size: 13px;
    background: var(--accent);
    display: inline-block;

    color: white;
    font-weight: 600;
    text-decoration: none;
    /* Irregular radius for paint look */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transition: 0.3s;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;

}


.shop-btn:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    background: #c02e22;
}

.filters-overlay.show {
    display: block;
    /* visible when sidebar is open */
    opacity: 1;
}

.sidebar {
    background: var(--bg);
    padding: 18px;
    box-shadow: var(--shadow);
    position: sticky;
    border: 1px solid var(--text-dark);
    top: 24px;
    height: fit-content;
}

.color.selected {
    outline: 2px solid var(--primary);
    /* optional highlight */
}

.size.selected {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

.sidebar h3 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    background-color: var(--primary);
    padding: 0.5rem;
    color: var(--primary-text);
    font-family: var(--title-font);
    font-weight: 200;
    box-shadow: 5px 5px 0px var(--accent);
}

#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;
}

.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;
}

/* 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;
        box-shadow: var(--shadow);
        overflow-y: auto;
        z-index: 2000;
        transition: left 0.3s ease;
    }

    .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.8rem 0.8rem !important;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 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(--primary);
    color: var(--primary-text);
    border: none;
    padding: 17px 14px;
    /* border-radius: 10px; */
    cursor: pointer;
    height: 100%;
    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: 153px 53px 82px 15px / 15px 118px 15px 240px;
}

.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: 153px 53px 82px 15px / 15px 118px 15px 240px;
}

.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: 6px;
    }

    .product-card-footer .btn {
        font-size: 8px !important;
    }

}

.shop-products {
    text-align: center;
    position: relative;
    white-space: normal;
    display: flex;
    flex-direction: column;
    opacity: 1;
    padding: 0 !important;
}

.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(--primary-text);
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.shop-products p {
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 70px;
    padding: 0px 5px;
}

.shop-products .product-card-image {
    background-color: var(--bg);
    height: 200px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shop-products .product-card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.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;

}


/*====================================
=======================================
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;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid var(--muted);
    box-shadow: var(--shadow);
    padding: 20px;
    background: var(--bg);
    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%;
    max-height: 100% !important;
    min-height: 350px;
    object-fit: contain;
}

.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;
}

.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;
}

.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;
    }

    .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;
    }
}