/* =========================================================
   SolvoShoes — storefront theme
   Palette: burgundy · antique gold · warm cream · espresso
   ========================================================= */
:root {
    --sb-primary: #7b1e3b;
    --sb-primary-dark: #5f142c;
    --sb-ink: #2a1418;
    --sb-ink-soft: #6b5a52;
    --sb-gold: #c39a4e;
    --sb-gold-dark: #a97f34;
    --sb-cream: #faf6f1;
    --sb-cream-2: #f2eae0;
    --sb-line: #e7ddd0;
    --sb-sale: #c0392b;
    --sb-success: #2f7d54;
    --sb-radius: 14px;
    --sb-shadow: 0 10px 30px rgba(42, 20, 24, .08);
    --sb-shadow-sm: 0 4px 14px rgba(42, 20, 24, .06);
    --sb-font-head: "Playfair Display", Georgia, serif;
    --sb-font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--sb-font-body);
    color: var(--sb-ink);
    background: var(--sb-cream);
    font-size: 15px;
}

h1, h2, h3, h4, h5, .font-head { font-family: var(--sb-font-head); }

a { text-decoration: none; color: var(--sb-primary); }
a:hover { color: var(--sb-primary-dark); }

.container-wide { max-width: 1240px; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .2px; }
.btn-brand {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    color: #fff;
}
.btn-brand:hover { background: var(--sb-primary-dark); border-color: var(--sb-primary-dark); color: #fff; }
.btn-gold { background: var(--sb-gold); border-color: var(--sb-gold); color: #2a1408; }
.btn-gold:hover { background: var(--sb-gold-dark); border-color: var(--sb-gold-dark); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--sb-primary); color: var(--sb-primary); }
.btn-outline-brand:hover { background: var(--sb-primary); color: #fff; }
.btn-ink { background: var(--sb-ink); color: #fff; border-color: var(--sb-ink); }
.btn-ink:hover { background: #3d2028; color: #fff; }

.text-brand { color: var(--sb-primary) !important; }
.text-gold { color: var(--sb-gold-dark) !important; }
.bg-cream { background: var(--sb-cream); }
.bg-ink { background: var(--sb-ink); }

/* ---------- top strip ---------- */
.sb-announce {
    background: linear-gradient(90deg, var(--sb-ink), #451b26);
    color: #f4e4c7;
    font-size: 13px;
    letter-spacing: .3px;
}
.sb-announce a { color: var(--sb-gold); font-weight: 700; }

.sb-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(42,20,24,.06);
    font-size: 13px;
    color: var(--sb-ink-soft);
}
.sb-topbar .offer-pill {
    background: rgba(195,154,78,.14);
    color: var(--sb-gold-dark);
    border-radius: 30px;
    padding: 3px 12px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    transition: .2s;
}
.sb-topbar a.offer-pill:hover { background: var(--sb-gold); color: #fff; }

/* ---------- header ---------- */
.sb-header { background: #fff; box-shadow: var(--sb-shadow-sm); }
.sb-logo { display: inline-flex; align-items: center; gap: 10px; }
.sb-logo .mark {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--sb-primary), var(--sb-ink));
    display: grid; place-items: center; color: var(--sb-gold);
    font-family: var(--sb-font-head); font-weight: 800; font-size: 22px;
    box-shadow: inset 0 0 0 1.5px rgba(195,154,78,.5);
}
.sb-logo .name { font-family: var(--sb-font-head); font-weight: 800; font-size: 24px; color: var(--sb-ink); line-height: 1; }
.sb-logo .name small { display: block; font-family: var(--sb-font-body); font-size: 10.5px; letter-spacing: 3px; color: var(--sb-gold-dark); font-weight: 600; }

.sb-search .form-control { border-radius: 30px 0 0 30px; border-color: var(--sb-line); }
.sb-search .btn { border-radius: 0 30px 30px 0; }

.sb-icon-btn {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; color: var(--sb-ink);
    background: var(--sb-cream); border: 1px solid rgba(42,20,24,.05);
    transition: .2s;
}
.sb-icon-btn:hover { background: var(--sb-primary); color: #fff; }
.sb-icon-btn .badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--sb-gold); color: #2a1408; font-size: 11px;
}

/* ---------- nav ---------- */
.sb-nav { background: var(--sb-primary); }
.sb-nav .nav-link {
    color: #fbeee0; font-weight: 600; font-size: 13.5px; letter-spacing: .6px;
    text-transform: uppercase; padding: 13px 15px;
}
.sb-nav .nav-link:hover, .sb-nav .nav-link.active { color: var(--sb-gold); }
.sb-nav .dropdown-menu {
    border: none; border-radius: 0 0 12px 12px; box-shadow: var(--sb-shadow);
    padding: 8px; margin-top: 0;
}
.sb-nav .dropdown-item { border-radius: 8px; font-weight: 600; font-size: 14px; padding: 8px 12px; }
.sb-nav .dropdown-item:hover { background: var(--sb-cream); color: var(--sb-primary); }

/* ---------- section headings ---------- */
.sb-section { padding: 42px 0; }
.sb-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sb-section-head h2 {
    font-size: 26px; font-weight: 800; margin: 0; position: relative; color: var(--sb-ink);
}
.sb-section-head h2::after {
    content: ""; display: block; width: 54px; height: 3px; margin-top: 8px;
    background: var(--sb-gold); border-radius: 3px;
}
.sb-see-more {
    background: var(--sb-ink); color: #fff; border-radius: 30px;
    padding: 7px 18px; font-size: 13px; font-weight: 600;
}
.sb-see-more:hover { background: var(--sb-primary); color: #fff; }

/* ---------- hero ---------- */
.sb-hero { position: relative; overflow: hidden; border-radius: 0; }
.sb-hero .carousel-item { min-height: 420px; }
.sb-hero-slide {
    min-height: 420px; display: flex; align-items: center;
    background-size: cover; background-position: center;
    position: relative;
}
.sb-hero-inner { position: relative; z-index: 2; max-width: 560px; }
.sb-hero .badge-eyebrow {
    display: inline-block; background: rgba(255,255,255,.85); color: var(--sb-primary);
    font-weight: 700; letter-spacing: 2px; font-size: 11px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.sb-hero h1 { font-size: 44px; font-weight: 800; color: #fff; line-height: 1.1; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.sb-hero p { color: #f4ece1; font-size: 17px; max-width: 440px; }

/* ---------- category tiles ---------- */
.sb-cat-tile { display: block; text-align: center; }
.sb-cat-tile .thumb {
    background: #fff; border: 1px solid rgba(42,20,24,.06); border-radius: var(--sb-radius);
    padding: 14px; box-shadow: var(--sb-shadow-sm); transition: .25s; overflow: hidden;
    aspect-ratio: 1; display: grid; place-items: center;
}
.sb-cat-tile:hover .thumb { transform: translateY(-4px); box-shadow: var(--sb-shadow); border-color: var(--sb-gold); }
.sb-cat-tile img { width: 100%; height: 100%; object-fit: contain; }
.sb-cat-tile .label { margin-top: 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--sb-ink); }

/* ---------- product card ---------- */
.sb-card {
    background: #fff; border: 1px solid rgba(42,20,24,.06); border-radius: var(--sb-radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .25s;
    position: relative;
}
.sb-card:hover { box-shadow: var(--sb-shadow); transform: translateY(-4px); border-color: rgba(195,154,78,.5); }
.sb-card .media { position: relative; aspect-ratio: 1; background: var(--sb-cream); overflow: hidden; }
.sb-card .media img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.sb-card:hover .media img { transform: scale(1.05); }
.sb-card .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.sb-badge {
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: .3px;
}
.sb-badge.sale { background: var(--sb-sale); color: #fff; }
.sb-badge.new { background: var(--sb-gold); color: #2a1408; }
.sb-badge.brand { background: var(--sb-ink); color: #fff; }
.sb-card .sold-tag {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(255,255,255,.92); color: var(--sb-ink-soft);
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
}
.sb-card .wish {
    position: absolute; bottom: 10px; right: 10px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--sb-primary);
    display: grid; place-items: center; box-shadow: var(--sb-shadow-sm); border: none;
    opacity: 0; transform: translateY(6px); transition: .25s;
}
.sb-card:hover .wish { opacity: 1; transform: translateY(0); }
.sb-card .body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.sb-card .code { font-size: 11px; color: var(--sb-gold-dark); letter-spacing: 1px; font-weight: 600; text-transform: uppercase; }
.sb-card .title { font-size: 14px; font-weight: 600; color: var(--sb-ink); margin: 4px 0 8px; line-height: 1.35; min-height: 38px; }
.sb-card .title a { color: inherit; }
.sb-card .title a:hover { color: var(--sb-primary); }
.sb-card .price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.sb-card .price .now { font-size: 17px; font-weight: 800; color: var(--sb-primary); }
.sb-card .price .was { font-size: 13px; color: #a99; text-decoration: line-through; }
.sb-card .add-cart {
    margin-top: 12px; width: 100%; border-radius: 10px; font-size: 13px; font-weight: 700;
    background: var(--sb-cream); color: var(--sb-ink); border: 1px solid rgba(42,20,24,.08);
    padding: 9px; transition: .2s;
}
.sb-card .add-cart:hover { background: var(--sb-primary); color: #fff; border-color: var(--sb-primary); }

/* horizontal scroll rows on desktop-narrow */
.sb-scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; }

/* ---------- outlet banner ---------- */
.sb-outlet {
    position: relative; border-radius: 18px; overflow: hidden; min-height: 260px;
    display: grid; place-items: center; text-align: center;
    background: linear-gradient(rgba(42,20,24,.7), rgba(42,20,24,.7)), var(--sb-ink);
}
.sb-outlet h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: 1px; }

/* ---------- footer ---------- */
.sb-footer { background: var(--sb-ink); color: #cbb8ae; padding-top: 54px; font-size: 14px; }
.sb-footer h5 { color: #fff; font-family: var(--sb-font-body); font-weight: 700; font-size: 15px; letter-spacing: .5px; margin-bottom: 18px; }
.sb-footer a { color: #cbb8ae; }
.sb-footer a:hover { color: var(--sb-gold); }
.sb-footer .foot-links li { margin-bottom: 10px; }
.sb-footer .social { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sb-footer .social a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    background: rgba(255,255,255,.06); color: #fff; transition: .2s; flex: 0 0 auto;
}
.sb-footer .social a:hover { background: var(--sb-primary); }
.sb-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; font-size: 13px; }
.sb-pay-badge { background: #fff; border-radius: 6px; padding: 5px 9px; font-size: 11px; font-weight: 700; color: var(--sb-ink); }

/* ---------- misc ---------- */
.sb-breadcrumb { background: var(--sb-cream); border-bottom: 1px solid rgba(42,20,24,.05); padding: 14px 0; }
.sb-breadcrumb a { color: var(--sb-ink-soft); font-size: 13px; }
.sb-breadcrumb .active { color: var(--sb-primary); font-weight: 600; }

.sb-panel { background: #fff; border: 1px solid rgba(42,20,24,.06); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow-sm); }

.form-control:focus, .form-select:focus { border-color: var(--sb-gold); box-shadow: 0 0 0 .2rem rgba(195,154,78,.18); }

.sb-chip { display:inline-block; background: var(--sb-cream); border:1px solid rgba(42,20,24,.08); border-radius: 30px; padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--sb-ink); }
.sb-chip.active, .sb-chip:hover { background: var(--sb-primary); color: #fff; border-color: var(--sb-primary); }

.sb-qty { display: inline-flex; align-items: center; border: 1px solid var(--sb-line); border-radius: 30px; overflow: hidden; }
.sb-qty button { border: none; background: transparent; width: 34px; height: 38px; font-size: 18px; color: var(--sb-ink); }
.sb-qty input { border: none; width: 44px; text-align: center; font-weight: 700; }
.sb-qty input:focus { outline: none; }

/* size swatches */
.sb-size { min-width: 42px; text-align:center; border: 1.5px solid var(--sb-line); border-radius: 8px; padding: 7px 10px; font-weight: 700; cursor: pointer; font-size: 13px; }
.sb-size.active { border-color: var(--sb-primary); background: var(--sb-primary); color: #fff; }

@media (max-width: 767px) {
    .sb-hero h1 { font-size: 30px; }
    .sb-section-head h2 { font-size: 21px; }
    .sb-hero-slide, .sb-hero .carousel-item { min-height: 320px; }
}

/* ---------- product gallery zoom trigger ---------- */
.sb-gallery-main { cursor: zoom-in; }
.sb-gallery-main .sb-zoom-hint {
    position: absolute;
    inset: auto 10px 10px auto;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: rgba(42, 20, 24, .62);
    color: #fff; border-radius: 50%;
    font-size: 15px; pointer-events: none;
    opacity: 0; transition: opacity .18s ease;
}
.sb-gallery-main:hover .sb-zoom-hint { opacity: 1; }
@media (hover: none) { .sb-gallery-main .sb-zoom-hint { opacity: 1; } }

/* ---------- image zoom viewer ---------- */
body.sb-lb-open { overflow: hidden; }

.sb-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; flex-direction: column;
    background: rgba(20, 10, 12, .94);
    animation: sbLbIn .16s ease-out;
}
.sb-lightbox[hidden] { display: none; }

@keyframes sbLbIn { from { opacity: 0; } to { opacity: 1; } }

.sb-lightbox-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; color: #fff; flex: 0 0 auto;
}
.sb-lightbox-counter { font-size: 13px; font-weight: 700; letter-spacing: .5px; opacity: .8; }
.sb-lightbox-tools { display: flex; gap: 8px; }
.sb-lightbox-tools button,
.sb-lightbox-nav {
    border: none; background: rgba(255, 255, 255, .12); color: #fff;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px;
    transition: background .15s ease;
}
.sb-lightbox-tools button:hover,
.sb-lightbox-nav:hover { background: var(--sb-primary); }

.sb-lightbox-stage {
    flex: 1 1 auto; position: relative;
    display: grid; place-items: center;
    overflow: hidden;
    /* The gesture guard: the browser never gets to pan or pinch-zoom the page. */
    touch-action: none;
    overscroll-behavior: contain;
}
.sb-lightbox-stage img {
    max-width: 94%; max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    user-select: none; -webkit-user-drag: none;
    will-change: transform;
}
.sb-lightbox-stage.zoomed { cursor: grab; }
.sb-lightbox-stage.zoomed:active { cursor: grabbing; }

.sb-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px;
}
.sb-lightbox-nav.prev { left: 14px; }
.sb-lightbox-nav.next { right: 14px; }

.sb-lightbox-hint {
    flex: 0 0 auto; text-align: center; color: #fff;
    font-size: 12px; padding: 12px 16px 20px;
    opacity: 0; transition: opacity .3s ease;
}
.sb-lightbox-hint.visible { opacity: .65; }

@media (max-width: 575px) {
    .sb-lightbox-nav { width: 38px; height: 38px; }
    .sb-lightbox-nav.prev { left: 6px; }
    .sb-lightbox-nav.next { right: 6px; }
    .sb-lightbox-stage img { max-width: 100%; }
    .sb-lightbox-hint { font-size: 11px; }
}

/* ---------- featured category slider ---------- */
.sb-cat-slider { position: relative; }
.sb-cat-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory; padding: 4px 2px 8px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.sb-cat-track::-webkit-scrollbar { display: none; }
.sb-cat-track > .sb-cat-tile { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
@media (min-width: 768px) {
    .sb-cat-track > .sb-cat-tile { flex-basis: calc((100% - 64px) / 5); }
}
.sb-slide-btn {
    position: absolute; top: calc(50% - 20px); transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; padding: 0;
    display: grid; place-items: center; cursor: pointer;
    background: #fff; color: var(--sb-ink);
    border: 1px solid rgba(42,20,24,.08); box-shadow: var(--sb-shadow);
    transition: .2s;
}
.sb-slide-btn:hover { background: var(--sb-primary); color: #fff; border-color: var(--sb-primary); }
.sb-slide-btn[hidden] { display: none; }
.sb-slide-btn.prev { left: -8px; }
.sb-slide-btn.next { right: -8px; }
@media (min-width: 1200px) {
    .sb-slide-btn.prev { left: -20px; }
    .sb-slide-btn.next { right: -20px; }
}

/* ---------- product page: Add to Bag / Buy Now sit side by side ---------- */
.sb-buy-actions .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .sb-buy-actions .btn { font-size: 15px; padding-left: .6rem; padding-right: .6rem; }
}
