/* ============================================
   SHADOW STYLE SHOP — Shop & Product Pages
   ============================================ */

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0;
}

.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    align-self: start;
}

.filter-group { margin-bottom: var(--space-xl); }

.filter-group__title {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.filter-link:hover, .filter-link.active { color: var(--red-primary); }
.filter-link.active { font-weight: var(--fw-semibold); }

.filter-link__count {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.shop-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.shop-content__count { font-size: var(--fs-sm); color: var(--text-muted); }
.shop-content__count strong { color: var(--red-primary); }

.shop-content__sort { display: flex; align-items: center; gap: var(--space-sm); }
.shop-content__sort label { font-size: var(--fs-sm); color: var(--text-muted); white-space: nowrap; }

.shop-content__sort select {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: var(--fs-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8694' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}

.shop-content__sort select:focus { border-color: var(--red-primary); }
.shop-content__sort select option { background: var(--bg-elevated); }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.filter-toggle { display: none; margin-bottom: var(--space-lg); }

/* ═══════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════ */
.product-detail { padding: var(--space-3xl) 0; }

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.product-gallery__main {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gradient-card);
    border: var(--border-card);
    margin-bottom: var(--space-md);
}

.product-gallery__main img,
.product-gallery__main .product-card__image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__main .product-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-dim);
    background: linear-gradient(135deg, #1a0808, #0a0a12);
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.product-gallery__thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    border-color: var(--red-primary);
    box-shadow: var(--glow-pink-sm);
}

.product-info { display: flex; flex-direction: column; gap: var(--space-lg); }

.product-info__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-red);
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.product-info__category {
    font-size: var(--fs-sm);
    color: var(--silver);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    font-weight: var(--fw-medium);
}

.product-info__name { font-size: var(--fs-3xl); line-height: var(--lh-snug); }

.product-info__price-box {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
}

.product-info__price {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--red-primary);
    text-shadow: var(--glow-text-pink);
}

.product-info__old-price {
    font-size: var(--fs-lg);
    color: var(--text-dim);
    text-decoration: line-through;
}

.product-info__discount {
    display: inline-flex;
    padding: 2px 10px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--accent-green);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-full);
}

.product-info__desc { color: var(--text-muted); line-height: var(--lh-relaxed); font-size: var(--fs-base); }
.product-info__divider { height: 1px; background: var(--border-subtle); }

.product-option { display: flex; flex-direction: column; gap: var(--space-sm); }
.product-option__label {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--text-muted);
}
.product-option__values { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.size-btn, .color-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.size-btn:hover, .size-btn.active, .size-btn.selected,
.color-btn:hover, .color-btn.active, .color-btn.selected {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: var(--red-primary-dim);
    box-shadow: var(--glow-pink-sm);
}

.size-btn.out-of-stock { opacity: 0.3; pointer-events: none; text-decoration: line-through; }

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: none;
    color: var(--text-body);
    font-size: var(--fs-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover { background: var(--red-primary-dim); color: var(--red-primary); }

.quantity-input {
    width: 60px;
    height: 40px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    color: var(--text-primary);
    text-align: center;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.product-info__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.product-info__actions .btn { flex: 1; min-width: 200px; }

.product-info__wishlist {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.product-info__wishlist:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    box-shadow: var(--glow-pink-sm);
}

.product-info__stock { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--fs-sm); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-dot.in-stock { background: var(--accent-green); box-shadow: 0 0 8px rgba(46, 204, 113, 0.4); }
.stock-dot.low-stock { background: var(--accent-gold); box-shadow: 0 0 8px rgba(212, 168, 83, 0.4); }
.stock-dot.out-of-stock { background: var(--red-primary); box-shadow: 0 0 8px rgba(194, 29, 39, 0.4); }

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-md);
}

.product-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.product-feature i { color: var(--silver); width: 20px; text-align: center; }

.related-products { padding: var(--space-4xl) 0; background: var(--gradient-section-2); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 992px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .filter-toggle { display: block; }
    .shop-sidebar.hidden-mobile { display: none; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail__grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
}

@media (max-width: 576px) {
    .shop-grid { grid-template-columns: 1fr; }
    .product-features { grid-template-columns: 1fr; }
}
