/* =========================================================
   MEelo - Shop Page
   Professional Responsive Styling
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f8f8;
    color: #222;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: min(1200px, 94%);
    min-height: 70px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    flex-shrink: 0;
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    color: #222;
    letter-spacing: -1px;
}

.logo span {
    color: #e91e63;
}

/* Search */

.header-search {
    flex: 1;
    max-width: 560px;

    display: flex;
    align-items: center;

    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    height: 44px;

    border: 0;
    outline: none;
    background: transparent;

    padding: 0 14px;
    font-size: 14px;
}

.header-search button {
    width: 48px;
    height: 44px;

    border: 0;
    background: transparent;

    cursor: pointer;
    font-size: 18px;
}

.header-search button:hover {
    background: #eeeeee;
}

/* Header actions */

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 18px;
}

.header-link {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.header-link:hover,
.header-link.active {
    color: #e91e63;
}

.cart-button {
    position: relative;

    border: 0;
    background: transparent;

    cursor: pointer;
    font-size: 21px;

    padding: 7px;
}

#cartCount {
    position: absolute;
    top: -2px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    border-radius: 50%;
    background: #e91e63;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   HERO
   ========================================================= */

.shop-page {
    min-height: 70vh;
}

.shop-hero {
    width: min(1200px, 94%);
    margin: 24px auto 0;

    padding: 38px 42px;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        #fff0f5,
        #ffffff
    );

    border: 1px solid #f4dce5;
}

.shop-eyebrow {
    margin: 0 0 8px;

    color: #e91e63;
    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-hero h1 {
    margin: 0 0 10px;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.shop-hero p:not(.shop-eyebrow) {
    margin: 0;

    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================================
   SHOP SECTION
   ========================================================= */

.shop-section {
    width: min(1200px, 94%);
    margin: 28px auto 60px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.shop-sidebar {
    position: sticky;
    top: 94px;

    padding: 20px;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.filter-header h2 {
    margin: 0;
    font-size: 19px;
}

.clear-filter-btn {
    border: 0;
    background: transparent;

    color: #e91e63;

    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.clear-filter-btn:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;

    margin-bottom: 8px;

    color: #444;
    font-size: 13px;
    font-weight: 700;
}

.filter-group select {
    width: 100%;
    height: 42px;

    padding: 0 10px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    background: #ffffff;
    color: #333;

    outline: none;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #e91e63;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.shop-toolbar h2 {
    margin: 0 0 5px;

    font-size: 24px;
}

#productResultText {
    margin: 0;

    color: #777;
    font-size: 13px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;

    white-space: nowrap;
}

.sort-wrapper label {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.sort-wrapper select {
    height: 40px;

    padding: 0 10px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    background: #ffffff;

    outline: none;
    cursor: pointer;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.shop-product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

/*
   These styles also make the cards generated by
   common.js look good on the Shop page.
*/

.shop-product-grid .product-card {
    min-width: 0;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 15px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shop-product-grid .product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.09);
}

.shop-product-grid .product-image-wrap {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    background: #f7f7f7;

    overflow: hidden;
}

.shop-product-grid .product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.shop-product-grid .product-card:hover .product-image {
    transform: scale(1.04);
}

.shop-product-grid .product-info {
    padding: 14px;
}

.shop-product-grid .product-category {
    margin-bottom: 5px;

    color: #888;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
}

.shop-product-grid .product-title {
    margin: 0 0 8px;

    color: #222;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}

.shop-product-grid .product-price {
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.shop-product-grid .price {
    color: #e91e63;

    font-size: 17px;
    font-weight: 800;
}

.shop-product-grid .mrp {
    color: #999;

    font-size: 12px;
    text-decoration: line-through;
}

.shop-product-grid .product-add-cart {
    width: 100%;
}

/* Wishlist */

.shop-product-grid .product-wishlist {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    cursor: pointer;

    font-size: 19px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    z-index: 2;
}

.shop-product-grid .product-wishlist:hover {
    transform: scale(1.05);
}

/* Discount badge */

.shop-product-grid .discount-badge {
    position: absolute;

    left: 10px;
    top: 10px;

    padding: 5px 8px;

    border-radius: 6px;

    background: #e91e63;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    z-index: 2;
}

/* =========================================================
   STATES
   ========================================================= */

.shop-state {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 16px;
}

.shop-state p {
    margin: 8px 0 0;

    color: #777;
    font-size: 14px;
}

.shop-state h3 {
    margin: 8px 0 0;

    font-size: 19px;
}

.state-icon {
    font-size: 42px;
}

.hidden {
    display: none !important;
}

/* Loading */

.loading-spinner {
    width: 38px;
    height: 38px;

    border: 4px solid #eeeeee;
    border-top-color: #e91e63;

    border-radius: 50%;

    animation: shopSpin 0.8s linear infinite;
}

@keyframes shopSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.btn-primary {
    background: #e91e63;
    color: #ffffff;
}

.btn-primary:hover {
    background: #d81b60;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 40px;

    background: #222;
    color: #ffffff;
}

.footer-container {
    width: min(1200px, 94%);
    margin: 0 auto;

    padding: 40px 0;

    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand .logo {
    color: #ffffff;
}

.footer-brand p {
    margin: 12px 0 0;

    color: #bbbbbb;

    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.footer-links a {
    color: #dddddd;
    text-decoration: none;

    font-size: 13px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 16px;

    border-top: 1px solid #3a3a3a;

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: #999;

    font-size: 12px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .shop-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .header-container {
        gap: 15px;
    }

    .header-actions {
        gap: 12px;
    }

}


/* =========================================================
   MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .header-container {
        min-height: auto;

        padding: 12px 0;

        flex-wrap: wrap;
    }

    .header-search {
        order: 3;

        flex-basis: 100%;
        max-width: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-link {
        display: none;
    }

    .shop-hero {
        padding: 28px 22px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .shop-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-wrapper select {
        flex: 1;
    }

    .footer-container {
        flex-direction: column;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .header-container {
        width: 92%;
    }

    .logo {
        font-size: 26px;
    }

    .shop-hero {
        width: 92%;
        margin-top: 16px;

        border-radius: 15px;
    }

    .shop-section {
        width: 92%;
    }

    .shop-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .shop-product-grid .product-info {
        padding: 10px;
    }

    .shop-product-grid .product-title {
        font-size: 13px;
    }

    .shop-product-grid .price {
        font-size: 15px;
    }

    .shop-product-grid .product-add-cart {
        min-height: 38px;

        padding: 0 8px;

        font-size: 12px;
    }

    .shop-product-grid .product-wishlist {
        width: 32px;
        height: 32px;

        font-size: 17px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}