/* Tahura Jewellery — Storefront */
:root {
    --sf-gold: #d4af37;
    --sf-gold-light: #f5d76e;
    --sf-dark: #0a0e17;
    --sf-dark-mid: #141b2d;
    --sf-font-display: 'Cormorant Garamond', Georgia, serif;
    --sf-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.sf-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto; /* legacy style.css sets body { overflow: hidden } — must allow scroll for footer */
    font-family: var(--sf-font-body);
    color: #e2e8f0;
    background:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #0a0e17 0%, #141b2d 40%, #0a0e17 100%);
    -webkit-font-smoothing: antialiased;
}

.sf-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sf-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Header ── */
.sf-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.sf-header-top {
    background: linear-gradient(90deg, #0a0e17, #1a1520, #0a0e17);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.sf-ticker-marquee-wrap {
    overflow: hidden;
    width: 100%;
    padding: 0.35rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.sf-ticker-marquee {
    display: flex;
    width: max-content;
    animation: sf-ticker-scroll var(--sf-ticker-duration, 45s) linear infinite;
}

.sf-ticker-marquee:hover {
    animation-play-state: paused;
}

.sf-ticker-segment {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

@keyframes sf-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sf-ticker-tv {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}

.sf-ticker-tv:hover {
    color: var(--sf-gold-light);
}

.sf-ticker-tv-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #38bdf8;
    margin-left: 0.25rem;
}

.sf-live-ticker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.sf-ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.sf-ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: sf-pulse 1.5s ease infinite;
}

@keyframes sf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sf-ticker-item strong { color: var(--sf-gold-light); }
.sf-ticker-divider { opacity: 0.3; }

.sf-header-main {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
}

.sf-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.sf-header-brand {
    text-decoration: none;
    flex-shrink: 0;
}

.sf-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sf-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.sf-brand-icon svg { width: 100%; height: 100%; }
.sf-brand-img { height: 2.5rem; width: auto; }

.sf-brand-name {
    display: block;
    font-family: var(--sf-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sf-gold-light);
    line-height: 1.1;
}

.sf-brand-tag {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.65);
}

.sf-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex: 1 1 auto;
    order: 3;
    width: 100%;
}

@media (min-width: 768px) {
    .sf-header-inner {
        flex-wrap: nowrap;
    }

    .sf-nav {
        order: 0;
        width: auto;
        flex: 1;
        justify-content: center;
    }
}

.sf-nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sf-nav-link:hover {
    color: var(--sf-gold-light);
    background: rgba(212, 175, 55, 0.08);
}

.sf-nav-link.active {
    color: var(--sf-gold-light);
    background: rgba(212, 175, 55, 0.15);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.sf-nav-badge {
    background: linear-gradient(135deg, #fbbf24, #b45309);
    color: #0a0e17;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    min-width: 1.1rem;
    text-align: center;
}

.sf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sf-header-utils {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
}

@media (min-width: 768px) {
    .sf-header-utils {
        order: 0;
        margin-left: 0;
    }
}

.sf-header-clock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.sf-header-clock-icon {
    width: 1rem;
    height: 1rem;
    color: var(--sf-gold);
    flex-shrink: 0;
}

.sf-header-clock-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sf-header-clock-time {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: var(--sf-gold-light);
    white-space: nowrap;
}

.sf-header-clock-date {
    font-size: 0.6rem;
    color: #64748b;
}

.sf-header-currency {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sf-header-currency-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.sf-header-currency-select {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 4.25rem;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sf-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; }

.sf-btn-gold {
    background: linear-gradient(135deg, #fbbf24, #b45309);
    color: #0a0e17;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}
.sf-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }

.sf-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}
.sf-btn-ghost:hover { background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.3); }

.sf-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--sf-gold-light), #b45309);
    color: #0a0e17;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sf-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 11rem;
    background: #1e293b;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 0.75rem;
    padding: 0.35rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 60;
}

.sf-user-menu { position: relative; }

.sf-dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}
.sf-dropdown-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sf-dropdown-item.gold { color: var(--sf-gold-light); }

/* ── Main ── */
.sf-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.sf-main-full {
    padding: 0 0 2rem;
    flex: 1 0 auto;
}

/* ── Footer ── */
.sf-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: linear-gradient(180deg, #0a0e17 0%, #05070a 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .sf-footer-grid {
        grid-template-columns: minmax(14rem, 1.35fr) repeat(var(--sf-footer-cols, 4), minmax(0, 1fr));
    }
}

.sf-footer-heading {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sf-gold);
    margin: 0 0 1rem;
}

.sf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-footer-links li { margin-bottom: 0.5rem; }

.sf-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}
.sf-footer-links a:hover { color: var(--sf-gold-light); }

.sf-footer-links a.is-active {
    color: var(--sf-gold-light);
    font-weight: 600;
}

.sf-footer-ext {
    font-size: 0.75em;
    opacity: 0.7;
    margin-left: 0.15rem;
}

.sf-footer-about {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 1rem 0;
}

.sf-footer-contact {
    color: var(--sf-gold-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.sf-footer-contact:hover { text-decoration: underline; }

.sf-footer-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
}

.sf-footer-contact {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.sf-footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sf-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.sf-footer-contact-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    opacity: 0.85;
}

.sf-footer-contact-item.sf-footer-contact-whatsapp .sf-footer-contact {
    color: #4ade80;
}

.sf-footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.sf-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sf-footer-cta-primary {
    background: linear-gradient(135deg, #d4af37 0%, #996515 100%);
    color: #0a0e17;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.sf-footer-cta-primary:hover {
    filter: brightness(1.08);
}

.sf-footer-cta-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sf-footer-cta-secondary:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--sf-gold-light);
}

.sf-footer-cta-whatsapp {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.sf-footer-trust li {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.sf-footer-spot-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-footer-spot {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

a.sf-footer-spot-link:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
}

.sf-footer-spot-board {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sf-gold-light);
    text-decoration: none;
}

.sf-footer-spot-board:hover {
    text-decoration: underline;
}

.sf-footer-spot-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.75);
    margin: 0 0 0.35rem;
}

.sf-footer-spot-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fcd34d;
    margin: 0;
    line-height: 1.2;
}

.sf-footer-spot-unit {
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
}

.sf-footer-spot-22k {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0.5rem 0 0;
}

.sf-footer-spot-22k strong { color: var(--sf-gold-light); }

.sf-footer-spot-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #34d399;
    margin-bottom: 0.35rem;
}

.sf-footer-spot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: sf-footer-pulse 1.5s ease-in-out infinite;
}

@keyframes sf-footer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sf-footer-spot-source {
    font-size: 0.65rem;
    color: #64748b;
    margin: 0.35rem 0 0;
    text-transform: capitalize;
}

.sf-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    font-size: 0.75rem;
    color: #475569;
}

.sf-footer-bottom-start {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.sf-footer-copyright {
    margin: 0;
}

.sf-footer-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
}

.sf-footer-quick a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
}

.sf-footer-quick a:hover,
.sf-footer-quick a.is-active {
    color: var(--sf-gold-light);
}

.sf-footer-quick-sep {
    color: #334155;
    user-select: none;
}

.sf-footer-meta {
    color: #64748b;
    margin: 0;
    text-align: right;
}

/* ── Shop banner carousel ── */
.sf-banner-carousel {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, #121826 0%, #0a0e17 100%);
    min-height: 10rem;
}

.sf-banner-slide {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 10rem;
}

@media (min-width: 640px) {
    .sf-banner-slide:has(.sf-banner-img) {
        grid-template-columns: 1.2fr 1fr;
    }
}

.sf-banner-img {
    width: 100%;
    height: 100%;
    min-height: 10rem;
    object-fit: cover;
}

.sf-banner-copy {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.sf-banner-title {
    font-family: var(--sf-font-display);
    font-size: 1.5rem;
    color: var(--sf-gold-light);
    margin: 0;
}

.sf-banner-sub {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

.sf-banner-dots {
    position: absolute;
    bottom: 0.65rem;
    right: 0.75rem;
    display: flex;
    gap: 0.35rem;
}

.sf-banner-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
}

.sf-banner-dots button.active {
    background: var(--sf-gold);
}

/* ── Page components ── */
.sf-page-header {
    margin-bottom: 2rem;
}

.sf-page-title {
    font-family: var(--sf-font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--sf-gold-light);
    margin: 0 0 0.35rem;
    line-height: 1.1;
}

.sf-page-sub {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 0;
}

.sf-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sf-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

a.sf-card-link {
    text-decoration: none;
    display: block;
}
a.sf-card-link:hover { transform: translateY(-3px); }

.sf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 0.875rem;
}

.sf-input,
.sf-select {
    font-family: var(--sf-font-body);
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(15, 23, 42, 0.9);
    color: #f1f5f9;
    min-width: 0;
}
.sf-input:focus, .sf-select:focus {
    outline: none;
    border-color: var(--sf-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.sf-price {
    font-family: var(--sf-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sf-gold-light);
}

.sf-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--sf-gold-light);
}

.sf-alert-success {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.sf-alert-error {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ── Live rate board (storefront kiosk) ── */
.sf-rate-board {
    padding: 0.75rem 0 2.5rem;
}

.sf-rate-board-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .sf-rate-board-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(0, 1.65fr);
        gap: 2rem;
        align-items: start;
    }
}

.sf-rate-spots {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sf-spot-panel {
    background: linear-gradient(145deg, rgba(45, 28, 12, 0.85) 0%, rgba(20, 14, 8, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sf-spot-panel-title {
    font-family: var(--sf-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    margin: 0 0 0.85rem;
    letter-spacing: 0.02em;
}

.sf-spot-bid-ask {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.sf-spot-side-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin: 0 0 0.4rem;
}

.sf-spot-arrow { color: var(--sf-gold); margin-right: 0.15rem; }
.sf-spot-arrow.up { color: #4ade80; }
.sf-spot-unit { font-weight: 500; opacity: 0.85; }

.sf-spot-price-box {
    background: linear-gradient(180deg, #3d2814 0%, #2a1a0c 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 0.5rem;
    padding: 0.65rem 0.5rem;
    margin-bottom: 0.45rem;
}

.sf-spot-price-value {
    display: block;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.sf-spot-extreme {
    text-align: center;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
}

.sf-spot-low { color: #f87171; }
.sf-spot-low strong { color: #fca5a5; }
.sf-spot-high { color: #4ade80; }
.sf-spot-high strong { color: #86efac; }

.sf-spot-updated {
    text-align: center;
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
}

.sf-metals-table {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.sf-metals-head,
.sf-metals-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr 5rem 8.5rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
}

.sf-metals-head {
    background: linear-gradient(180deg, #5c3a1a 0%, #4a2e14 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.sf-metals-row {
    background: rgba(15, 23, 42, 0.92);
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
    font-weight: 600;
}

.sf-metals-row:nth-child(even) {
    background: rgba(10, 14, 23, 0.95);
}

.sf-metals-thumb {
    display: flex;
    justify-content: center;
}

.sf-metals-thumb img {
    width: 3.5rem;
    height: auto;
    max-height: 4.5rem;
    object-fit: contain;
}

.sf-metals-name,
.sf-metals-weight {
    text-align: center;
}

.sf-metals-price {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sf-gold-light);
    font-variant-numeric: tabular-nums;
}

.sf-metals-empty {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .sf-metals-head,
    .sf-metals-row {
        grid-template-columns: 4rem 1fr 4rem 6.5rem;
        font-size: 0.75rem;
    }
}

/* ── Shop / buyback / cart pages ── */
.sf-page-shell {
    padding: 1rem 0 3rem;
}

.sf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.sf-breadcrumb a {
    color: var(--sf-gold-light);
    text-decoration: none;
}

.sf-breadcrumb a:hover { text-decoration: underline; }

.sf-breadcrumb-sep { opacity: 0.4; }

.sf-breadcrumb-current { color: #94a3b8; }

.sf-live-spot-strip {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(15, 23, 42, 0.6), rgba(212, 175, 55, 0.08));
    border-block: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 1.25rem;
}

.sf-live-spot-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.sf-live-spot-item strong { color: var(--sf-gold-light); }

.sf-live-spot-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.25rem;
    color: #64748b;
}

.sf-live-spot-link {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sf-gold-light);
    text-decoration: none;
}

.sf-live-spot-link:hover { text-decoration: underline; }

.sf-panel {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.sf-panel-highlight {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(145deg, rgba(30, 25, 15, 0.5), rgba(15, 23, 42, 0.85));
}

.sf-panel-title {
    font-family: var(--sf-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sf-gold-light);
    margin: 0 0 1rem;
}

.sf-grid-2 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .sf-grid-2 { grid-template-columns: 1fr 1fr; }
}

.sf-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.sf-btn {
    display: inline-block;
    font-family: var(--sf-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, transform 0.15s;
}

.sf-btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #0a0e17;
}

.sf-btn-primary:hover { filter: brightness(1.08); }

.sf-btn-secondary {
    background: rgba(51, 65, 85, 0.8);
    color: #f1f5f9;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.sf-price-lg {
    font-family: var(--sf-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sf-gold-light);
    line-height: 1.1;
}

.sf-quote-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.sf-quote-meta li { margin-bottom: 0.35rem; }

.sf-cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.sf-cart-thumb {
    width: 4rem;
    height: 5rem;
    object-fit: contain;
}

.sf-cart-info { flex: 1; min-width: 10rem; }

.sf-cart-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.sf-cart-name:hover { color: var(--sf-gold-light); }

.sf-cart-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sf-qty-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.sf-cart-remove {
    font-size: 0.8rem;
    color: #f87171;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.sf-cart-summary { text-align: left; }

.sf-cart-layout {
    align-items: start;
}

.sf-product-card {
    display: flex;
    flex-direction: column;
}

.sf-product-card-media {
    text-decoration: none;
}

.sf-product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.sf-btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
}

.sf-btn-wa {
    background: #25d366;
    color: #fff;
    border: none;
}

.sf-btn-wa:hover {
    filter: brightness(1.08);
    color: #fff;
}

.sf-whatsapp-order-box {
    padding: 1rem 1.25rem;
    background: rgba(37, 211, 102, 0.06);
    border-color: rgba(37, 211, 102, 0.25);
}

.sf-buyback-layout {
    align-items: start;
}

.sf-buyback-rates-hint {
    background: rgba(15, 23, 42, 0.5);
}

.sf-buyback-breakdown td {
    vertical-align: top;
}

.sf-order-preview summary {
    list-style: none;
}

.sf-order-preview summary::-webkit-details-marker {
    display: none;
}

/* ── Mobile responsive (storefront) ── */
@media (max-width: 767px) {
    .sf-container {
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    }

    .sf-header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .sf-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand utils"
            "nav nav";
        gap: 0.5rem 0.65rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .sf-header-brand {
        grid-area: brand;
        min-width: 0;
    }

    .sf-header-utils {
        grid-area: utils;
        order: unset;
        margin-left: 0;
        gap: 0.4rem;
    }

    .sf-nav {
        grid-area: nav;
        order: unset;
        width: 100%;
        flex: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.15rem;
        padding-bottom: 0.1rem;
        mask-image: linear-gradient(90deg, #000 92%, transparent);
    }

    .sf-nav::-webkit-scrollbar {
        display: none;
    }

    .sf-nav-link {
        flex-shrink: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
    }

    .sf-brand-tag {
        display: none;
    }

    .sf-brand-name {
        font-size: 1.05rem;
    }

    .sf-brand-img {
        height: 2rem;
    }

    .sf-header-clock {
        padding: 0.3rem 0.5rem;
    }

    .sf-header-clock-date {
        display: none;
    }

    .sf-header-clock-time {
        font-size: 0.72rem;
    }

    .sf-ticker-segment {
        font-size: 0.68rem;
        padding: 0 1.25rem;
        gap: 0.5rem 0.75rem;
    }

    .sf-main,
    .sf-main-full {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .sf-page-shell {
        padding: 0.75rem 0 2rem;
    }

    .sf-page-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.15;
    }

    .sf-page-sub {
        font-size: 0.875rem;
    }

    .sf-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .sf-toolbar .sf-input,
    .sf-toolbar .sf-select {
        width: 100%;
        min-width: 0;
    }

    .sf-grid-2 {
        grid-template-columns: 1fr;
    }

    .sf-panel {
        padding: 1rem 1.1rem;
    }

    .sf-price-lg {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .sf-price {
        font-size: 1.15rem;
    }

    .sf-product-actions {
        flex-direction: column;
    }

    .sf-product-actions .sf-btn {
        width: 100%;
    }

    .sf-cart-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-cart-qty,
    .sf-cart-line-total {
        width: 100%;
        justify-content: space-between;
    }

    .sf-cart-remove {
        align-self: flex-end;
    }

    .sf-buyback-breakdown {
        font-size: 0.8rem;
    }

    .sf-buyback-breakdown td {
        display: block;
        width: 100%;
        text-align: left !important;
        padding: 0.2rem 0;
    }

    .sf-footer {
        padding: 2rem 0 max(1.25rem, env(safe-area-inset-bottom, 0px));
    }

    .sf-footer-grid {
        gap: 1.5rem;
    }

    .sf-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 0.75rem;
    }

    .sf-footer-bottom-start {
        align-items: center;
    }

    .sf-footer-meta {
        text-align: center;
    }

    .sf-footer-quick {
        justify-content: center;
    }

    .sf-rates-wrap {
        margin-left: max(-0.75rem, calc(-1 * env(safe-area-inset-left, 0px)));
        margin-right: max(-0.75rem, calc(-1 * env(safe-area-inset-right, 0px)));
        width: calc(100% + 1.5rem);
        max-width: 100vw;
    }
}

@media (max-width: 640px) {
    .sf-live-spot-link {
        margin-left: 0;
        width: 100%;
    }

    .sf-cart-line-total {
        width: 100%;
        text-align: left;
    }

    .sf-metals-head,
    .sf-metals-row {
        grid-template-columns: 3.25rem 1fr 3.5rem 5.5rem;
        font-size: 0.7rem;
        padding: 0.45rem 0.4rem;
    }

    .sf-metals-thumb img {
        width: 2.5rem;
        max-height: 3rem;
    }

    .sf-spot-price-value {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .sf-btn,
    .sf-btn-primary,
    .sf-btn-secondary,
    .sf-btn-wa {
        min-height: 2.75rem;
    }
}

@media (max-width: 380px) {
    .sf-brand-text {
        max-width: 9rem;
    }

    .sf-brand-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sf-header-currency-select {
        max-width: 4.5rem;
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    .sf-header-currency-label {
        display: none;
    }
}
