/* /live/ page. DripFit brand: monochrome only, no gradients, no accent colours. */
:root {
    --black: #000;
    --white: #fff;
    --charcoal: #1a1a1a;
    --grey-light: #f5f5f5;
    --grey-mid: #999;
    --radius: 8px;
    --gutter: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
}
[hidden] { display: none !important; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
[dir="rtl"], .ar { font-family: 'Cairo', sans-serif; }

/* Top bar */
.lv-top { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--grey-light); padding: 10px var(--gutter) 12px; }
.lv-top-row { display: flex; align-items: center; justify-content: space-between; }
.lv-logo img { height: 24px; width: auto; display: block; }
.lv-cart-btn { position: relative; background: none; border: 0; padding: 8px; color: var(--black); }
.lv-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--black); color: var(--white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lv-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.lv-title { font-size: 15px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 1px; }
.lv-live { display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: var(--white); border-radius: 999px; padding: 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.lv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: lv-pulse 1.6s ease-in-out infinite; }
@keyframes lv-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .lv-dot { animation: none; } }
.lv-updated { font-size: 11px; font-weight: 600; color: var(--grey-mid); text-transform: uppercase; letter-spacing: .5px; }

.lv-strip { background: var(--black); color: var(--white); text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 9px var(--gutter); }

.lv-main { max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter) 40px; }

/* Tabs */
.lv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lv-tab { border: 2px solid var(--black); background: var(--white); color: var(--black); border-radius: var(--radius); padding: 16px 0; font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 2px; }
.lv-tab.is-active { background: var(--black); color: var(--white); }

/* Controls */
.lv-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.lv-search { grid-column: 1 / -1; }
.lv-search, .lv-select { width: 100%; min-height: 46px; border: 1.5px solid var(--black); border-radius: var(--radius); background: var(--white); padding: 0 14px; font-size: 16px; }
.lv-select { font-weight: 600; text-transform: uppercase; letter-spacing: 0; font-size: 12px; padding: 0 10px; }
.lv-banner { margin-top: 14px; padding: 14px var(--gutter); background: var(--grey-light); border: 1.5px solid var(--black); border-radius: var(--radius); text-align: center; font-family: 'Cairo', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.5; }
.lv-count { margin: 16px 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-mid); min-height: 18px; }

/* Grid */
.lv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.lv-card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.lv-card-img { position: relative; aspect-ratio: 4 / 5; background: var(--grey-light); border-radius: var(--radius); overflow: hidden; }
.lv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-orig { position: absolute; top: 8px; left: 8px; background: var(--black); color: var(--white); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.lv-tag { position: absolute; top: 8px; right: 8px; background: var(--black); color: var(--white); border-radius: 4px; padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.lv-card-name { margin-top: 10px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.lv-card-meta { font-size: 11px; font-weight: 600; color: var(--grey-mid); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.lv-card-price { margin-top: 6px; font-size: 14px; font-weight: 700; }
.lv-was { color: var(--grey-mid); text-decoration: line-through; font-weight: 400; margin-left: 6px; font-size: 12px; }
.lv-empty { text-align: center; padding: 60px 0; color: var(--grey-mid); font-weight: 600; }
.lv-more { text-align: center; margin-top: 28px; }
.lv-foot { text-align: center; font-size: 11px; color: var(--grey-mid); letter-spacing: .5px; padding: 0 var(--gutter) 40px; }

/* Buttons */
.lv-btn { border-radius: var(--radius); padding: 15px 28px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border: 2px solid var(--black); }
.lv-btn-solid { background: var(--black); color: var(--white); }
.lv-btn-outline { background: var(--white); color: var(--black); }
.lv-btn-block { display: block; width: 100%; }
.lv-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Overlays */
.lv-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; }
.lv-sheet { position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; background: var(--white); border-radius: 16px 16px 0 0; }
.lv-close { position: absolute; top: 10px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); font-size: 26px; line-height: 1; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.lv-close-inline { position: static; box-shadow: none; background: none; }
.lv-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--grey-light); scrollbar-width: none; }
.lv-gallery::-webkit-scrollbar { display: none; }
.lv-gallery img { flex: none; width: 100%; aspect-ratio: 4 / 5; max-height: 62vh; max-height: 62dvh; object-fit: contain; background: var(--grey-light); scroll-snap-align: center; display: block; }
.lv-gallery-count { text-align: center; font-size: 11px; font-weight: 600; color: var(--grey-mid); letter-spacing: 1px; padding-top: 8px; min-height: 22px; }
.lv-pinfo { padding: 12px var(--gutter) 24px; }
.lv-kicker { font-size: 10px; font-weight: 600; color: var(--grey-mid); text-transform: uppercase; letter-spacing: 1.5px; }
.lv-ptitle { font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; margin-top: 4px; }
.lv-pcolor { font-size: 13px; font-weight: 600; color: var(--grey-mid); margin-top: 4px; }
.lv-price { font-size: 22px; font-weight: 700; margin: 12px 0 4px; }
.lv-price .lv-was { font-size: 15px; }
.lv-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin: 18px 0 8px; }
.lv-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-size { min-width: 52px; height: 46px; padding: 0 12px; border: 1.5px solid var(--black); border-radius: var(--radius); background: var(--white); font-weight: 700; font-size: 13px; }
.lv-size.is-selected { background: var(--black); color: var(--white); }
.lv-size:disabled { border-color: #ddd; color: var(--grey-mid); background: var(--grey-light); text-decoration: line-through; cursor: not-allowed; }
.lv-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--black); border-radius: var(--radius); }
.lv-qty button { width: 46px; height: 46px; border: 0; background: none; font-size: 20px; }
.lv-qty span { min-width: 36px; text-align: center; font-weight: 700; }
.lv-msg { min-height: 20px; margin: 12px 0 8px; font-size: 12px; font-weight: 600; }

#lv-p-add { position: sticky; bottom: 8px; }

/* Cart drawer */
.lv-overlay-right { align-items: stretch; justify-content: flex-end; }
.lv-drawer { width: 100%; max-width: 420px; height: 100%; background: var(--white); display: flex; flex-direction: column; }
.lv-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--grey-light); }
.lv-drawer-head h2 { font-size: 16px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 1px; }
.lv-cart-items { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.lv-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grey-light); align-items: start; }
.lv-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; background: var(--grey-light); }
.lv-item-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.lv-item-meta { font-size: 11px; font-weight: 600; color: var(--grey-mid); text-transform: uppercase; letter-spacing: .5px; margin: 2px 0 6px; }
.lv-item-qty { display: inline-flex; align-items: center; border: 1px solid var(--black); border-radius: 6px; }
.lv-item-qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 16px; }
.lv-item-qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; }
.lv-item-side { text-align: right; font-size: 13px; font-weight: 700; }
.lv-item-rm { display: block; margin-top: 10px; margin-left: auto; background: none; border: 0; font-size: 11px; color: var(--grey-mid); text-decoration: underline; }
.lv-cart-empty { text-align: center; color: var(--grey-mid); font-weight: 600; padding: 60px 0; }
.lv-cart-foot { padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--grey-light); display: grid; gap: 10px; }
.lv-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.lv-total strong { font-size: 20px; }
.lv-hint { font-size: 11px; color: var(--grey-mid); line-height: 1.5; }

/* Larger screens */
@media (min-width: 700px) {
    .lv-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
    .lv-controls { grid-template-columns: 2fr 1fr 1fr; }
    .lv-search { grid-column: auto; }
    .lv-top { padding-left: 32px; padding-right: 32px; }
    .lv-top-row { max-width: 1280px; margin: 0 auto; }
    .lv-title-row { max-width: 1280px; margin: 8px auto 0; }
    .lv-title { font-size: 18px; }
    .lv-overlay { align-items: center; }
    .lv-overlay-right { align-items: stretch; }
    .lv-gallery img { max-height: none; }
    .lv-sheet { max-width: 880px; max-height: 90vh; border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
    .lv-gallery-count { grid-column: 1; }
    .lv-pinfo { grid-column: 2; grid-row: 1 / span 2; padding: 32px 28px; }
    .lv-gallery { grid-column: 1; }
}
@media (min-width: 1000px) { .lv-grid { grid-template-columns: repeat(4, 1fr); } }
