/* ==========================================================================
   SVR SHOP PAGE — All selectors scoped to shop BEM classes + cart sidebar
   ========================================================================== */

/* 1. SHOP WRAPPER */
.svr-avant-shop {
    margin: clamp(16px, 3vw, 40px) 30px 40px;
    margin-block-start: clamp(16px, 3vw, 40px) !important;
    border-radius: 40px;
    background: var(--svr-color-card-light);
    color: var(--svr-color-text-dark);
    box-shadow: 0 40px 100px color-mix(in srgb, var(--svr-color-text-dark) 10%, transparent);
    padding: clamp(40px, 6vw, 80px) clamp(20px, 7vw, 100px);
}

/* 2. SHOP HERO */
.svr-shop-hero {
    border-block-end: 1px solid var(--svr-color-border-light);
    padding-block-end: 40px;
    margin-block-end: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}
.svr-shop-hero__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--svr-color-accent-gold);
    margin-block-end: 15px;
    display: block;
    font-weight: 700;
}
.svr-shop-hero__title {
    font-family: var(--svr-font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--svr-color-text-dark);
}
.svr-shop-hero__title-italic {
    font-family: 'Dancing Script', cursive;
    color: var(--svr-color-accent-gold);
    text-transform: lowercase;
    font-size: 1.2em;
    font-style: italic;
}
.svr-shop-hero__sort { display: flex; gap: 15px; align-items: center; }
.svr-shop-hero__sort-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--svr-color-text-muted-light);
}
.svr-shop-hero__select {
    padding: 12px 25px;
    border: 1px solid var(--svr-color-border-light);
    border-radius: var(--svr-radius-pill);
    background: var(--svr-color-bg-light);
    font-family: var(--svr-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    color: var(--svr-color-text-dark);
    transition: border-color 0.3s ease;
}
.svr-shop-hero__select:hover { border-color: var(--svr-color-text-dark); }

/* 3. SHOP LAYOUT */
.svr-shop-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

/* 4. FILTER SIDEBAR */
.svr-shop-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 40px;
}
.svr-shop-widget { margin-block-end: 50px; }
.svr-shop-widget__title {
    font-family: var(--svr-font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0 0 20px;
    border-block-end: 1px solid var(--svr-color-border-light);
    padding-block-end: 15px;
    color: var(--svr-color-text-dark);
}
.svr-shop-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.svr-shop-categories__link {
    color: var(--svr-color-text-muted-light);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}
.svr-shop-categories__link:hover,
.svr-shop-categories__link--active {
    color: var(--svr-color-text-dark);
    font-weight: 600;
}
.svr-shop-categories__count { color: var(--svr-color-text-muted-light); font-weight: 400; }
.svr-shop-filter-range { display: flex; gap: 10px; align-items: center; }
.svr-shop-filter-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--svr-color-border-light);
    border-radius: var(--svr-radius-sm);
    background: var(--svr-color-bg-light);
    outline: none;
    font-family: var(--svr-font-body);
    color: var(--svr-color-text-dark);
    transition: border-color 0.3s ease;
}
.svr-shop-filter-input:focus { border-color: var(--svr-color-accent-gold); }
.svr-shop-filter-btn {
    width: 100%;
    padding: 15px;
    margin-block-start: 15px;
    background: var(--svr-color-text-dark);
    color: var(--svr-color-text-light);
    border: none;
    border-radius: var(--svr-radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var(--svr-font-body);
}
.svr-shop-filter-btn:hover { background: var(--svr-color-accent-gold); color: var(--svr-color-text-dark); }
.svr-shop-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.svr-shop-tags__link {
    padding: 8px 15px;
    border: 1px solid var(--svr-color-border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--svr-color-text-muted-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
.svr-shop-tags__link:hover { border-color: var(--svr-color-text-dark); color: var(--svr-color-text-dark); }
.svr-shop-promo {
    background: var(--svr-color-bg-light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--svr-color-border-light);
}
.svr-shop-promo__eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--svr-color-accent-gold); display: block; margin-block-end: 10px; }
.svr-shop-promo__title { font-family: var(--svr-font-heading); font-size: 1.8rem; margin: 0 0 15px; color: var(--svr-color-text-dark); }
.svr-shop-promo__text { font-size: 0.9rem; color: var(--svr-color-text-muted-light); margin-block-end: 20px; }
.svr-shop-promo__link { font-size: 0.8rem; font-weight: 700; color: var(--svr-color-text-dark); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border-block-end: 1px solid var(--svr-color-text-dark); padding-block-end: 3px; transition: color 0.3s ease, border-color 0.3s ease; }
.svr-shop-promo__link:hover { color: var(--svr-color-accent-gold); border-color: var(--svr-color-accent-gold); }

/* 5. PRODUCT GRID */
.svr-shop-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 50px;
}

/* 6. PRODUCT CARD */
.svr-product-card { display: flex; flex-direction: column; }
.svr-product-card-img-wrap {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: var(--svr-radius-lg) !important;
    overflow: hidden !important;
    background: var(--svr-color-bg-light);
    margin-block-end: 20px;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}
.svr-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(0,0,0) scale(1);
    backface-visibility: hidden;
    will-change: transform;
}
.svr-product-card-img-wrap:hover .svr-product-card__img { transform: translate3d(0,0,0) scale(1.04); }
.svr-product-card__badge {
    position: absolute;
    top: 15px;
    inset-inline-start: 15px;
    background: var(--svr-color-accent-gold);
    color: var(--svr-color-text-dark);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
}
.svr-product-card__badge--new { background: var(--svr-color-text-dark); color: var(--svr-color-text-light); }
.svr-product-card__title { font-family: var(--svr-font-heading); font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 5px; color: var(--svr-color-text-dark); }
.svr-product-card__link { color: var(--svr-color-text-dark); text-decoration: none; transition: color 0.3s ease; }
.svr-product-card__link:hover { color: var(--svr-color-accent-gold); }
.svr-product-card__price { font-weight: 600; font-size: 1.2rem; color: var(--svr-color-text-muted-light); }

/* Add to Bag button */
.svr-add-btn {
    position: absolute;
    bottom: 20px;
    inset-inline-start: 20px;
    inset-inline-end: 20px;
    background: color-mix(in srgb, var(--svr-color-text-dark) 90%, transparent) !important;
    color: var(--svr-color-accent-gold) !important;
    border: 1px solid color-mix(in srgb, var(--svr-color-accent-gold) 25%, transparent) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    padding: 16px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-size: 0.78rem !important;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 3;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--svr-color-text-dark) 15%, transparent) !important;
}
.svr-product-card-img-wrap:hover .svr-add-btn { opacity: 1 !important; transform: translateY(0) !important; }
.svr-add-btn:hover { background: var(--svr-color-accent-gold) !important; color: var(--svr-color-text-dark) !important; border-color: var(--svr-color-accent-gold) !important; box-shadow: 0 12px 30px color-mix(in srgb, var(--svr-color-accent-gold) 30%, transparent) !important; }

/* 7. PAGINATION */
.svr-shop-pagination {
    margin-block-start: 80px;
    padding-block-start: 40px;
    border-block-start: 1px solid var(--svr-color-border-light);
    display: flex;
    justify-content: center;
    gap: 10px;
}
.svr-shop-pagination__link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--svr-color-bg-light);
    color: var(--svr-color-text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.svr-shop-pagination__link:hover { background: color-mix(in srgb, var(--svr-color-text-dark) 10%, transparent); }
.svr-shop-pagination__link--active { background: var(--svr-color-text-dark); color: var(--svr-color-text-light); }

/* 8. CART DRAWER */
.svr-cart-trigger {
    position: relative; width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--svr-color-border-light);
    background: var(--svr-color-card-light);
    color: var(--svr-color-text-dark);
    cursor: pointer; font-size: 1rem;
    transition: all 0.25s ease;
    text-decoration: none; flex-shrink: 0;
}
.svr-cart-trigger:hover { border-color: var(--svr-color-accent-gold); color: var(--svr-color-accent-gold); transform: translateY(-1px); }
.svr-cart-trigger__count {
    position: absolute; top: -4px; inset-inline-end: -4px;
    background: var(--svr-color-accent-gold); color: var(--svr-color-text-dark);
    font-size: 0.6rem; font-weight: 800;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.svr-cart-overlay {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--svr-color-text-dark) 40%, transparent);
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.svr-cart-overlay--active { opacity: 1; pointer-events: all; }
.svr-cart-drawer {
    position: fixed; top: 0; inset-inline-end: 0;
    width: min(420px, 100vw); height: 100%;
    background: var(--svr-color-card-light);
    z-index: 9999; display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px color-mix(in srgb, var(--svr-color-text-dark) 12%, transparent);
}
.svr-cart-drawer--open { transform: translateX(0); }
.svr-cart-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 30px 24px;
    border-block-end: 1px solid var(--svr-color-border-light);
    flex-shrink: 0;
}
.svr-cart-drawer__title { font-family: var(--svr-font-heading); font-size: 1.8rem; font-weight: 700; color: var(--svr-color-text-dark); margin: 0; letter-spacing: -0.01em; }
.svr-cart-drawer__close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--svr-color-border-light);
    background: transparent; color: var(--svr-color-text-dark);
    cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease;
}
.svr-cart-drawer__close:hover { background: var(--svr-color-text-dark); color: var(--svr-color-text-light); border-color: var(--svr-color-text-dark); }
.svr-cart-drawer__items { flex: 1; overflow-y: auto; padding: 20px 30px; display: flex; flex-direction: column; gap: 20px; }
.svr-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--svr-color-text-muted-light); text-align: center; padding: 40px; }
.svr-cart-drawer__empty i { font-size: 3rem; color: color-mix(in srgb, var(--svr-color-text-dark) 15%, transparent); }
.svr-cart-drawer__empty p { font-size: 1rem; margin: 0; }
.svr-cart-item { display: flex; gap: 16px; align-items: flex-start; padding-block-end: 20px; border-block-end: 1px solid var(--svr-color-border-light); }
.svr-cart-item__img-wrap { width: 80px; height: 80px; border-radius: var(--svr-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--svr-color-bg-light); }
.svr-cart-item__img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.svr-cart-item__info { flex: 1; min-width: 0; }
.svr-cart-item__name { font-family: var(--svr-font-heading); font-size: 1.1rem; font-weight: 600; color: var(--svr-color-text-dark); margin: 0 0 4px; line-height: 1.2; }
.svr-cart-item__price { font-size: 0.95rem; color: var(--svr-color-text-muted-light); font-weight: 500; }
.svr-cart-item__qty { display: flex; align-items: center; gap: 10px; margin-block-start: 10px; }
.svr-cart-item__qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--svr-color-border-light); background: transparent; color: var(--svr-color-text-dark); cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.svr-cart-item__qty-btn:hover { background: var(--svr-color-text-dark); color: var(--svr-color-text-light); border-color: var(--svr-color-text-dark); }
.svr-cart-item__qty-num { font-weight: 700; font-size: 0.95rem; min-width: 20px; text-align: center; color: var(--svr-color-text-dark); }
.svr-cart-item__remove { background: none; border: none; color: var(--svr-color-text-muted-light); cursor: pointer; font-size: 0.8rem; padding: 4px; transition: color 0.2s ease; flex-shrink: 0; }
.svr-cart-item__remove:hover { color: var(--svr-color-text-dark); }
.svr-cart-drawer__foot { padding: 24px 30px 30px; border-block-start: 1px solid var(--svr-color-border-light); flex-shrink: 0; }
.svr-cart-drawer__total-row { display: flex; justify-content: space-between; align-items: center; margin-block-end: 20px; }
.svr-cart-drawer__total-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--svr-color-text-muted-light); }
.svr-cart-drawer__total-price { font-family: var(--svr-font-heading); font-size: 2rem; font-weight: 700; color: var(--svr-color-text-dark); }
.svr-cart-drawer__checkout-btn { display: block; width: 100%; padding: 18px; background: var(--svr-color-accent-gold); color: var(--svr-color-text-dark); border: none; border-radius: var(--svr-radius-pill); font-family: var(--svr-font-body); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; text-align: center; text-decoration: none; cursor: pointer; transition: all 0.3s ease; margin-block-end: 12px; }
.svr-cart-drawer__checkout-btn:hover { background: color-mix(in srgb, var(--svr-color-accent-gold) 85%, var(--svr-color-text-dark)); transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--svr-color-accent-gold) 35%, transparent); }
.svr-cart-drawer__continue { display: block; text-align: center; font-size: 0.8rem; color: var(--svr-color-text-muted-light); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s ease; }
.svr-cart-drawer__continue:hover { color: var(--svr-color-text-dark); }

/* 9. RESPONSIVE — TABLET */
@media (max-width: 1200px) {
    .svr-avant-shop { margin: 0 15px 30px; padding: clamp(30px, 4vw, 60px) clamp(20px, 4vw, 60px); }
    .svr-shop-sidebar { flex: 0 0 200px; }
    .svr-shop-layout { gap: 40px; }
}

/* 10. RESPONSIVE — MOBILE */
@media (max-width: 900px) {
    .svr-avant-shop { margin: clamp(16px, 3vw, 30px) 6px 20px; margin-block-start: clamp(16px, 3vw, 30px) !important; border-radius: var(--svr-radius-lg); padding-block: 24px; padding-inline: 0; }
    .svr-shop-hero, .svr-shop-sidebar, .svr-shop-pagination { padding-inline: 20px; }
    .svr-shop-layout { flex-direction: column; gap: 30px; padding-inline: 0; }
    .svr-shop-sidebar { flex: none; width: 100%; position: static; box-sizing: border-box; }
    .svr-shop-hero { flex-direction: column; align-items: flex-start; gap: 20px; margin-block-end: 30px; padding-block-end: 24px; }
    .svr-shop-hero__sort { width: 100%; }
    .svr-shop-hero__select { flex: 1; }
    .svr-shop-grid { grid-template-columns: 1fr 1fr; gap: 0; width: 100%; }
    .svr-product-card { padding: 12px; box-sizing: border-box; }
    .svr-product-card-img-wrap { height: 220px; border-radius: var(--svr-radius-md) !important; }
    .svr-add-btn { opacity: 1 !important; transform: translateY(0) !important; }
}

/* 11. RESPONSIVE — SMALL MOBILE */
@media (max-width: 600px) {
    .svr-shop-grid { grid-template-columns: 1fr 1fr; gap: 0; }
    .svr-product-card { padding: 10px; }
    .svr-product-card-img-wrap { height: 200px; border-radius: var(--svr-radius-md) !important; }
    .svr-product-card__title { font-size: 1.05rem; }
    .svr-product-card__price { font-size: 0.95rem; }
    .svr-add-btn { font-size: 0.68rem !important; padding: 10px !important; opacity: 1 !important; transform: translateY(0) !important; inset-inline-start: 10px !important; inset-inline-end: 10px !important; bottom: 10px !important; }
    .svr-shop-pagination { margin-block-start: 30px; padding-inline: 20px; }
    .svr-cart-drawer { width: 100vw; }
    .svr-shop-hero__sort-label { display: none !important; }
    .svr-shop-hero__sort, .svr-shop-hero__select { width: 100%; box-sizing: border-box; }
}

/* 12. CART TRIGGER MOBILE */
@media (max-width: 768px) { .svr-cart-trigger { width: 38px; height: 38px; font-size: 0.9rem; margin-inline-start: 6px !important; } }
@media (max-width: 420px) { .svr-cart-trigger { width: 35px; height: 35px; } }
@media (max-width: 380px) {
    .svr-top-nav__submit-btn { display: none !important; }
    .svr-cart-trigger { width: 33px !important; height: 33px !important; margin-inline-start: 5px !important; }
}

/* 13. SIDEBAR LOGO COLLAPSE */
@media (max-width: 1100px) {
    .svr-sidebar .svr-logo span { display: none !important; }
    .svr-sidebar .svr-logo i { font-size: 1.4rem !important; }
    .svr-sidebar .svr-logo > div { gap: 0 !important; margin-block-end: 16px !important; margin-block-start: 6px !important; }
}
