/* ========================================
   SELFII UNIVERSE — SHOP PAGE
======================================== */

.shop-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 410px;
    padding: 75px 8%;
    overflow: hidden;
    background: #EDE7DA;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 590px;
}

.shop-hero h1 {
    margin: 18px 0;
    color: #17201F;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.08;
}

.shop-hero h1 span,
.shop-brand-message h2 span {
    color: #A85F47;
    font-style: italic;
}

.shop-hero-content > p:not(.eyebrow) {
    max-width: 490px;
    margin-bottom: 25px;
    color: #555B55;
    line-height: 1.8;
}

.shop-hero-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border: 1px solid rgba(23, 32, 31, 0.2);
    border-radius: 50%;
    color: #17201F;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    letter-spacing: 5px;
    transform: rotate(-12deg);
}

.shop-hero-decoration span:last-child {
    margin-top: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 7px;
}

/* SHOP CONTAINER */

.shop-container {
    padding-top: 75px;
    padding-bottom: 90px;
}

.shop-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.shop-page-heading h2 {
    margin: 10px 0;
    color: #17201F;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.shop-subtitle {
    color: #777B73;
    line-height: 1.6;
}

.product-total {
    color: #777B73;
    white-space: nowrap;
}

.product-total span {
    color: #17201F;
    font-weight: 700;
}

/* CATEGORY FILTERS */

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.category-btn {
    padding: 12px 19px;
    border: 1px solid #DDD8CD;
    border-radius: 30px;
    background: transparent;
    color: #343A36;
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.category-btn:hover,
.category-btn.active {
    border-color: #17201F;
    background: #17201F;
    color: #FFFFFF;
}

/* TOOLBAR */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.shop-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 430px);
    padding: 5px 7px 5px 16px;
    border: 1px solid #DDD8CD;
    border-radius: 5px;
    background: #FFFFFF;
}

.shop-search > i {
    color: #777B73;
}

.shop-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #17201F;
    font: inherit;
}

.shop-search button {
    padding: 11px 17px;
    border: none;
    border-radius: 3px;
    background: #17201F;
    color: #FFFFFF;
    cursor: pointer;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #656B64;
    font-size: 0.85rem;
}

.shop-sort select {
    max-width: 190px;
    padding: 12px;
    border: 1px solid #DDD8CD;
    border-radius: 4px;
    background: #FFFFFF;
    color: #17201F;
    font: inherit;
}

/* PRODUCT GRID */

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.shop-product-card {
    min-width: 0;
}

.shop-product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #EDE7DA;
}

.shop-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.shop-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: #F7F4EC;
    color: #17201F;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-product-info {
    padding-top: 15px;
}

.shop-product-category {
    color: #A85F47;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-product-info h3 {
    margin: 8px 0;
    color: #17201F;
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.shop-product-description {
    margin-bottom: 12px;
    color: #777B73;
    font-size: 0.83rem;
    line-height: 1.6;
}

.shop-product-price {
    margin-bottom: 15px;
    color: #17201F;
    font-size: 1rem;
    font-weight: 700;
}

.shop-add-to-cart {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #17201F;
    background: transparent;
    color: #17201F;
    font-family: "DM Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.shop-add-to-cart:hover {
    background: #17201F;
    color: #FFFFFF;
}

/* EMPTY SEARCH STATE */

.shop-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.shop-empty-state[hidden] {
    display: none;
}

.shop-empty-state > i {
    margin-bottom: 20px;
    color: #A85F47;
    font-size: 2.5rem;
}

.shop-empty-state h3 {
    margin-bottom: 10px;
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
}

.shop-empty-state p {
    margin-bottom: 22px;
    color: #777B73;
    line-height: 1.7;
}

/* BRAND MESSAGE */

.shop-brand-message {
    padding: 80px 20px;
    background: #17201F;
    color: #FFFFFF;
    text-align: center;
}

.shop-brand-message h2 {
    margin: 18px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.2;
}

.shop-brand-message > p:last-child {
    color: #D5D7D0;
    line-height: 1.8;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-hero {
        padding-right: 6%;
        padding-left: 6%;
    }

    .shop-hero-decoration {
        width: 190px;
        height: 190px;
        font-size: 1.1rem;
    }
}

@media (max-width: 700px) {
    .shop-hero {
        min-height: 360px;
        padding: 60px 6%;
    }

    .shop-hero-decoration {
        display: none;
    }

    .shop-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-search {
        width: 100%;
    }

    .shop-sort {
        justify-content: space-between;
    }

    .shop-sort select {
        flex: 1;
        max-width: 220px;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 14px;
    }

    .shop-product-info h3 {
        font-size: 1rem;
    }

    .shop-product-description {
        font-size: 0.78rem;
    }

    .shop-product-badge {
        top: 8px;
        left: 8px;
        padding: 6px 8px;
        font-size: 0.6rem;
    }

    .category-btn {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .shop-container {
        padding-top: 50px;
        padding-bottom: 60px;
    }
}

@media (max-width: 360px) {
    .shop-product-grid {
        grid-template-columns: 1fr;
    }
}