/* style/style-shop.css */

main.page-wrap > .shop-section {
    position: relative;
    z-index: 5;
    width: calc(100% - 64px);
    max-width: 1300px;
    margin: -72px auto 0;
    padding: 42px 40px 80px;
    background: #f6f1e8;
    border-radius: 28px 28px 0 0;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.shop-header .eyebrow2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.shop-header h2 {
    margin: 0;
    font-size: 40px;
}

.shop-filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d9cfc2;
    background: #efe6d9;
    cursor: pointer;
}

.shop-filters-toggle img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.shop-filters {
    background: #efe6d9;
    padding: 24px;
    height: fit-content;
    border: 1px solid #d9cfc2;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #5f5248;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cdbfad;
    background: #fffaf4;
    color: #2f241e;
}

.filter-group button {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #2f221c;
    background: transparent;
    color: #2f221c;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-group button:hover {
    background: #2f221c;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fffaf4;
    border: 1px solid #d9cfc2;
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}

.product-image {
    position: relative;
    width: 100%;
}

.product-image img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.wishlist-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    margin: 0;
}

.wishlist-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease;
}

.wishlist-form button img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 2px rgba(255,255,255,0.8))
        drop-shadow(0 0 6px rgba(255,255,255,0.6));
    transition: transform 0.15s ease, filter 0.15s ease;
}

.wishlist-form button:hover {
    transform: scale(1.12);
}

.wishlist-form button:hover img {
    transform: scale(1.08);
    filter:
        drop-shadow(0 0 3px rgba(255,255,255,1))
        drop-shadow(0 0 8px rgba(255,255,255,0.9));
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.product-area {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a6858;
}

.product-body h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-meta span {
    padding: 6px 10px;
    font-size: 12px;
    background: #efe6d9;
    color: #4a3c33;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.product-footer a,
.buy-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid #2f221c;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.product-footer a {
    background: #2f221c;
    color: #fff;
}

.buy-form {
    margin: 0;
}

.buy-form button {
    background: transparent;
    color: #2f221c;
}

.product-footer a:hover {
    opacity: 0.9;
}

.buy-form button:hover {
    background: #2f221c;
    color: #fff;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    main.page-wrap > .shop-section {
        width: calc(100% - 20px);
        margin: -36px auto 0;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 22px 22px 0 0;
    }

    .shop-header {
        margin-bottom: 22px;
    }

    .shop-filters-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        display: none;
        padding: 20px;
        margin-bottom: 10px;
    }

    .shop-filters.is-open {
        display: block;
    }
}

@media (min-width: 901px) {
    .shop-filters {
        display: block !important;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-header h2 {
        font-size: 30px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions {
        flex-direction: column;
        justify-content: stretch;
    }

    .product-footer a,
    .buy-form button {
        width: 100%;
    }

    .wishlist-form {
        top: 10px;
        right: 10px;
    }

    .wishlist-form button {
        width: 34px;
        height: 34px;
    }

    .wishlist-form button img {
        width: 20px;
        height: 20px;
    }
}