/* ============================================
   SILKY FUSION — Shop Page v2
   Premium editorial shop experience
   ============================================ */

/* --- Shop Page Wrapper --- */
.shop-page {
    padding: 0;
}

/* --- Shop Hero --- */
.shop-hero {
    background: var(--color-primary);
    padding: 100px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.shop-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    z-index: 2;
}
.shop-hero h1 {
    color: white;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    font-weight: 400;
}
.shop-hero p {
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--text-md);
    letter-spacing: 2px;
}

/* --- Shop Layout Grid --- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding: 60px 0 100px;
}

/* --- Sidebar Filters --- */
.shop-sidebar {
    position: sticky;
    top: calc(var(--announcement-height, 40px) + var(--navbar-height, 72px) + 24px);
    height: fit-content;
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}
.filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.filter-group h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 600;
}
.filter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    border-radius: 8px;
    font-weight: 500;
}
.filter-link:hover {
    color: var(--color-primary);
    background: rgba(212,165,116,0.08);
}
.filter-link.active {
    color: var(--color-secondary-dark);
    background: rgba(212,165,116,0.12);
    font-weight: 600;
}
.filter-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.25s;
}
.filter-link.active::before {
    background: var(--color-secondary);
}

/* --- Toolbar --- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.shop-toolbar .result-count {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.shop-toolbar .result-count strong {
    color: var(--color-primary);
    font-weight: 700;
}
.sort-select {
    padding: 10px 36px 10px 16px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    color: var(--color-primary);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.sort-select:focus { border-color: var(--color-secondary); }

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Product Card --- */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: rgba(212,165,116,0.2);
}

/* Image */
.product-card .image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--color-cream, #faf6f0);
}
.product-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .image-wrapper img {
    transform: scale(1.08);
}

/* Badge */
.product-card .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
}
.badge-bestseller {
    background: var(--color-primary);
    color: white;
}
.badge-new {
    background: #22c55e;
    color: white;
}
.badge-sale {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Hover Actions */
.product-card .btn-wishlist-float {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    color: var(--color-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 3;
}
.product-card:hover .btn-wishlist-float {
    opacity: 1;
    transform: scale(1);
}
.product-card .btn-wishlist-float:hover {
    background: #fdfdfd;
    color: #b8834a;
    transform: scale(1.1);
}

.product-card .btn-add-bag-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.product-card .btn-add-bag-info:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Product Info */
.product-info {
    padding: 20px 20px 24px;
}
.product-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary-dark, #b8834a);
    margin-bottom: 8px;
}
.product-name {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-body);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; gap: 32px; }
    .shop-sidebar { position: static; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-info { padding: 14px 14px 18px; }
    .product-name { font-size: 13px; }
    .product-price { font-size: 15px; }
    .shop-hero { padding: 60px 0 50px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}
