/* =============================================================
   SHUVINO — Design System
   Buy Together, Save Together
   Brand: Blue #123B93 · Orange #FF6A00 · Teal #0FA7A0
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Brand */
    --sh-blue: #123B93;
    --sh-blue-600: #0E2F76;
    --sh-blue-700: #0A2258;
    --sh-blue-50: #EAF0FB;
    --sh-orange: #FF6A00;
    --sh-orange-600: #E85D00;
    --sh-orange-50: #FFF1E6;
    --sh-teal: #0FA7A0;
    --sh-teal-600: #0C8781;
    --sh-teal-50: #E6F6F5;

    /* Neutrals */
    --sh-white: #FFFFFF;
    --sh-bg: #F8F9FA;
    --sh-bg-soft: #F1F3F7;
    --sh-ink: #222222;
    --sh-ink-soft: #4B5563;
    --sh-muted: #8A94A6;
    --sh-line: #E9EDF3;

    /* Status */
    --sh-success: #16A34A;
    --sh-danger: #E11D48;
    --sh-warning: #F59E0B;

    /* Gradients */
    --sh-grad-brand: linear-gradient(135deg, #123B93 0%, #0FA7A0 100%);
    --sh-grad-orange: linear-gradient(135deg, #FF6A00 0%, #FF9142 100%);
    --sh-grad-hero: linear-gradient(135deg, #123B93 0%, #1B4FB8 45%, #0FA7A0 100%);
    --sh-grad-dark: linear-gradient(180deg, #0A2258 0%, #123B93 100%);

    /* Shadows */
    --sh-shadow-xs: 0 1px 2px rgba(18, 59, 147, .06);
    --sh-shadow-sm: 0 2px 8px rgba(18, 59, 147, .07);
    --sh-shadow: 0 8px 24px rgba(18, 59, 147, .10);
    --sh-shadow-lg: 0 18px 48px rgba(18, 59, 147, .14);
    --sh-shadow-orange: 0 10px 26px rgba(255, 106, 0, .30);
    --sh-shadow-teal: 0 10px 26px rgba(15, 167, 160, .28);

    /* Radius */
    --sh-r-sm: 10px;
    --sh-r: 16px;
    --sh-r-lg: 22px;
    --sh-r-xl: 28px;
    --sh-r-pill: 999px;

    /* Typography */
    --sh-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Motion */
    --sh-ease: cubic-bezier(.22, 1, .36, 1);
    --sh-fast: .18s;
    --sh-mid: .32s;

    /* Layout */
    --sh-header-h: 74px;
    --sh-container: 1240px;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sh-font);
    color: var(--sh-ink);
    background: var(--sh-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--sh-fast) var(--sh-ease); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--sh-blue); letter-spacing: -.02em; line-height: 1.2; margin: 0; }

.sh-container { max-width: var(--sh-container); margin-inline: auto; padding-inline: 20px; }

.text-orange { color: var(--sh-orange) !important; }
.text-teal { color: var(--sh-teal) !important; }
.text-blue { color: var(--sh-blue) !important; }
.text-muted-2 { color: var(--sh-muted) !important; }
.bg-soft { background: var(--sh-bg-soft); }

/* Selection */
::selection { background: var(--sh-orange); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #c7d0e0; border-radius: 999px; border: 3px solid var(--sh-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--sh-blue); }

/* ---------- 3. Section Utilities ---------- */
.sh-section { padding: 62px 0; }
.sh-section--tight { padding: 40px 0; }

.sh-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.sh-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--sh-teal); margin-bottom: 10px;
}
.sh-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sh-orange); border-radius: 2px; }
.sh-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.sh-section-head p { color: var(--sh-ink-soft); margin: 6px 0 0; max-width: 540px; }

.sh-link-all {
    font-weight: 700; color: var(--sh-blue); display: inline-flex; align-items: center; gap: 6px;
    font-size: .92rem; white-space: nowrap;
}
.sh-link-all i { transition: transform var(--sh-fast) var(--sh-ease); }
.sh-link-all:hover { color: var(--sh-orange); }
.sh-link-all:hover i { transform: translateX(4px); }

/* ---------- 4. Buttons ---------- */
.sh-btn {
    --_bg: var(--sh-blue); --_fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
    padding: 13px 24px; border-radius: var(--sh-r-pill); border: 0; cursor: pointer;
    background: var(--_bg); color: var(--_fg); position: relative; overflow: hidden;
    transition: transform var(--sh-fast) var(--sh-ease), box-shadow var(--sh-mid) var(--sh-ease), filter var(--sh-fast);
    white-space: nowrap;
}
.sh-btn:hover { transform: translateY(-2px); }
.sh-btn:active { transform: translateY(0); }
.sh-btn i { font-size: 1.05em; }

.sh-btn--primary { background: var(--sh-grad-brand); box-shadow: var(--sh-shadow); }
.sh-btn--primary:hover { box-shadow: var(--sh-shadow-lg); }
.sh-btn--orange { background: var(--sh-grad-orange); color: #fff; box-shadow: var(--sh-shadow-orange); }
.sh-btn--orange:hover { box-shadow: 0 16px 34px rgba(255,106,0,.42); }
.sh-btn--teal { background: linear-gradient(135deg, #0FA7A0, #14C4BB); color: #fff; box-shadow: var(--sh-shadow-teal); }
.sh-btn--ghost { background: #fff; color: var(--sh-blue); border: 1.5px solid var(--sh-line); box-shadow: var(--sh-shadow-xs); }
.sh-btn--ghost:hover { border-color: var(--sh-blue); background: var(--sh-blue-50); }
.sh-btn--light { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.sh-btn--light:hover { background: rgba(255,255,255,.28); }
.sh-btn--sm { padding: 9px 16px; font-size: .85rem; }
.sh-btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.sh-btn--block { width: 100%; }

/* Shine sweep */
.sh-btn--primary::after, .sh-btn--orange::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .6s var(--sh-ease);
}
.sh-btn--primary:hover::after, .sh-btn--orange:hover::after { left: 130%; }

/* ---------- 5. Badges / Pills ---------- */
.sh-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 11px; border-radius: var(--sh-r-pill); line-height: 1;
}
.sh-badge--group { background: var(--sh-teal-50); color: var(--sh-teal-600); }
.sh-badge--deal { background: var(--sh-orange-50); color: var(--sh-orange-600); }
.sh-badge--new { background: var(--sh-blue-50); color: var(--sh-blue); }
.sh-badge--hot { background: linear-gradient(135deg,#FF6A00,#FF3D00); color:#fff; }
.sh-badge--live { background: #FEE2E2; color: var(--sh-danger); }
.sh-badge--live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--sh-danger); animation: sh-pulse 1.3s infinite; }

@keyframes sh-pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.35;transform:scale(1.5);} }

/* ---------- 6. Product Card ---------- */
.sh-card {
    background: #fff; border-radius: var(--sh-r); border: 1px solid var(--sh-line);
    box-shadow: var(--sh-shadow-sm); overflow: hidden; position: relative;
    transition: transform var(--sh-mid) var(--sh-ease), box-shadow var(--sh-mid) var(--sh-ease), border-color var(--sh-mid);
    display: flex; flex-direction: column; height: 100%;
}
.sh-card:hover { transform: translateY(-6px); box-shadow: var(--sh-shadow-lg); border-color: transparent; }

.sh-card__media { position: relative; aspect-ratio: 1/1; background: var(--sh-bg-soft); overflow: hidden; }
.sh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sh-ease); }
.sh-card:hover .sh-card__media img { transform: scale(1.07); }

.sh-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.sh-card__wish {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.9); backdrop-filter: blur(4px); color: var(--sh-ink-soft);
    display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-shadow-xs);
    transition: all var(--sh-fast) var(--sh-ease);
}
.sh-card__wish:hover { background: var(--sh-orange); color: #fff; transform: scale(1.1); }
.sh-card__wish.is-active { background: var(--sh-orange); color: #fff; }

.sh-card__quick {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
    transform: translateY(130%); opacity: 0; transition: all var(--sh-mid) var(--sh-ease);
}
.sh-card:hover .sh-card__quick { transform: translateY(0); opacity: 1; }

.sh-card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sh-card__vendor { font-size: .74rem; font-weight: 700; color: var(--sh-teal); text-transform: uppercase; letter-spacing: .04em; }
.sh-card__title {
    font-size: .96rem; font-weight: 700; color: var(--sh-ink); line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.sh-card__title a:hover { color: var(--sh-blue); }
.sh-card__rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--sh-ink-soft); }
.sh-card__stars { color: var(--sh-warning); letter-spacing: 1px; }
.sh-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.sh-card__price .now { font-size: 1.2rem; font-weight: 800; color: var(--sh-blue); }
.sh-card__price .was { font-size: .85rem; color: var(--sh-muted); text-decoration: line-through; }
.sh-card__price .off { font-size: .75rem; font-weight: 800; color: var(--sh-success); }

/* Group-buy mini strip inside card */
.sh-card__group {
    margin-top: 4px; padding: 9px 11px; border-radius: var(--sh-r-sm);
    background: var(--sh-teal-50); display: flex; flex-direction: column; gap: 7px;
}
.sh-card__group-top { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; font-weight: 700; color: var(--sh-teal-600); }
.sh-progress { height: 6px; border-radius: 999px; background: #d5efee; overflow: hidden; }
.sh-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#0FA7A0,#14C4BB); transition: width .8s var(--sh-ease); }

/* ---------- 7. Category Card ---------- */
.sh-cat {
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    padding: 22px 14px; background: #fff; border-radius: var(--sh-r); border: 1px solid var(--sh-line);
    box-shadow: var(--sh-shadow-xs); transition: all var(--sh-mid) var(--sh-ease); height: 100%;
}
.sh-cat:hover { transform: translateY(-6px); box-shadow: var(--sh-shadow); border-color: transparent; }
.sh-cat__icon {
    width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
    font-size: 1.7rem; color: var(--sh-blue); background: var(--sh-blue-50);
    transition: all var(--sh-mid) var(--sh-ease);
}
.sh-cat:hover .sh-cat__icon { background: var(--sh-grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.sh-cat__name { font-size: .92rem; font-weight: 700; color: var(--sh-ink); }
.sh-cat__count { font-size: .74rem; color: var(--sh-muted); }

/* ---------- 8. Countdown ---------- */
.sh-countdown { display: inline-flex; align-items: center; gap: 6px; }
.sh-countdown__unit {
    min-width: 42px; padding: 7px 4px; border-radius: 10px; text-align: center;
    background: var(--sh-blue); color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1;
    display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums;
}
.sh-countdown__unit small { font-size: .55rem; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.sh-countdown__sep { font-weight: 800; color: var(--sh-orange); }
.sh-countdown--sm .sh-countdown__unit { min-width: 34px; padding: 5px 3px; font-size: .9rem; }
.sh-countdown--light .sh-countdown__unit { background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }

/* ---------- 9. Avatars stack ---------- */
.sh-avatars { display: flex; align-items: center; }
.sh-avatars img, .sh-avatars .more {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px;
    object-fit: cover; box-shadow: var(--sh-shadow-xs);
}
.sh-avatars img:first-child { margin-left: 0; }
.sh-avatars .more {
    display: grid; place-items: center; background: var(--sh-blue); color: #fff;
    font-size: .68rem; font-weight: 800;
}

/* ---------- 10. Skeleton / Shimmer ---------- */
.sh-skeleton { position: relative; overflow: hidden; background: #e9edf3; border-radius: 8px; }
.sh-skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    transform: translateX(-100%); animation: sh-shimmer 1.5s infinite;
}
@keyframes sh-shimmer { 100% { transform: translateX(100%); } }

/* ---------- 11. Scroll reveal ---------- */
.sh-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--sh-ease), transform .7s var(--sh-ease); }
.sh-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 12. Toast ---------- */
.sh-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.sh-toast {
    display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 360px;
    background: #fff; border-radius: var(--sh-r-sm); padding: 13px 16px;
    box-shadow: var(--sh-shadow-lg); border-left: 4px solid var(--sh-blue);
    transform: translateX(120%); transition: transform .4s var(--sh-ease);
}
.sh-toast.is-show { transform: none; }
.sh-toast__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.sh-toast--success { border-color: var(--sh-success); } .sh-toast--success .sh-toast__icon { background: var(--sh-success); }
.sh-toast--error { border-color: var(--sh-danger); } .sh-toast--error .sh-toast__icon { background: var(--sh-danger); }
.sh-toast--info { border-color: var(--sh-blue); } .sh-toast--info .sh-toast__icon { background: var(--sh-blue); }
.sh-toast__body { font-size: .88rem; }
.sh-toast__body strong { display: block; color: var(--sh-ink); }
.sh-toast__body span { color: var(--sh-ink-soft); font-size: .82rem; }

/* ---------- 13. Grid helpers ---------- */
.sh-grid { display: grid; gap: 22px; }
.sh-grid--cats { grid-template-columns: repeat(8, 1fr); }
.sh-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sh-grid--5 { grid-template-columns: repeat(5, 1fr); }
.sh-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px){ .sh-grid--cats{grid-template-columns:repeat(6,1fr);} .sh-grid--5{grid-template-columns:repeat(4,1fr);} }
@media (max-width: 900px){ .sh-grid--4,.sh-grid--5{grid-template-columns:repeat(3,1fr);} .sh-grid--3{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 680px){ .sh-grid--cats{grid-template-columns:repeat(3,1fr);} .sh-grid--4,.sh-grid--5,.sh-grid--3{grid-template-columns:repeat(2,1fr);} .sh-grid{gap:14px;} }
@media (max-width: 380px){ .sh-grid--cats{grid-template-columns:repeat(2,1fr);} }
