/* ===============================================
   GLOBAL RESET & GENERAL
================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #222;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================================
   HEADER (Etsy-Style Light Header)
================================================ */
.site-header-light {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e3e3e3;
    padding: 14px 0;
}

.header-inner-light {
    max-width: 1600px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 0 20px;
}

.logo-light a {
    font-size: 1.9rem;
    font-weight: bold;
    color: #333;
}

/* SEARCH BAR */
.search-bar {
    flex: 1;
    display: flex;
    max-width: 480px;
}

.search-bar input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
}

.search-bar button {
    padding: 10px 16px;
    background: #f3c2d3;
    border: 1px solid #f1a9c3;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.main-nav-light a {
    margin-left: 18px;
    color: #444;
    font-size: 0.95rem;
}

/* ===============================================
   PAGE LAYOUT
================================================ */
.site-main-light.container {
    max-width: 1600px;
    width: 100%;
    margin: auto;
    padding: 20px;
}

/* ===============================================
   SHOP BANNER
================================================ */
.shop-banner img {
    width: 100%;
    display: block;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
}

/* ===============================================
   CATEGORIES SIDEBAR
================================================ */
.shop-layout {
    display: flex;
    gap: 32px;
    margin-top: 30px;
}

.category-sidebar {
    width: 240px;
}

.category-sidebar h3 {
    margin-bottom: 14px;
    color: #444;
    font-size: 1.05rem;
    font-weight: bold;
}

.category-sidebar ul {
    list-style: none;
}

.category-sidebar li {
    margin-bottom: 12px;
}

.category-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.cat-icon-sidebar {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ===============================================
   PRODUCT GRID (Etsy Style)
================================================ */
.product-grid-wrapper {
    flex: 1;
}

.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

/* CARD BOX */
.product-card-modern {
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.product-card-modern:hover {
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
}

/* UNIFORM IMAGE BOX */
.product-img-wrapper {
    width: 100%;
    height: 270px;   /* Uniform height */
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes all images uniform like Etsy */
}

/* PRODUCT TEXT */
.product-info {
    padding: 12px 14px;
}

.product-info h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 6px;
}

.product-info .price {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
}

/* ===============================================
   FORM PAGES (Login, Register, Cart)
================================================ */
.form-page {
    max-width: 480px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
}

.form-page h1 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: #333;
}

.form-page label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #444;
}

.form-page input,
.form-page textarea,
.form-page select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.form-page button,
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #f3c2d3;
    border: 1px solid #f1a9c3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.form-page button:hover,
.btn:hover {
    background: #ffd9e7;
}

/* CART TABLE */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    padding: 12px;
    border-bottom: 1px solid #e3e3e3;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

/* ===============================================
   MOBILE RESPONSIVE
================================================ */
@media (max-width: 900px) {
    .header-inner-light {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-bar {
        width: 100%;
        max-width: none;
    }

    .shop-layout {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
    }

    .product-img-wrapper {
        height: 220px;
    }
}

/* ===============================================
   Category collapsible sidebar (index & category)
================================================ */
.category-collapse-btn {
    display: none; /* hidden on desktop, shown on mobile */
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    width: 100%;
    text-align: left;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.category-collapse-box {
    display: block; /* visible by default on desktop */
}

/* MOBILE BEHAVIOR: collapse categories on small screens */
@media (max-width: 900px) {

    /* Show button only on mobile */
    .category-collapse-btn {
        display: block;
    }

    /* Start with list collapsed on mobile */
    .category-collapse-box {
        display: none;
    }

    /* When "open" class is added by JS, show it */
    .category-collapse-box.open {
        display: block;
        margin-top: 10px;
    }

    .category-sidebar {
        width: 100%;
    }
}

/* Mobile-only centered footer text */
@media (max-width: 900px) {
    .site-footer p {
        text-align: center;
    }
}









