:root {
    --sf-blue: #3b5998;
    --sf-blue-dark: #2f477a;
    --sf-bg: #e9eaed;
    --sf-card: #fff;
    --sf-line: #d8dbe2;
    --sf-text: #1f2328;
    --sf-muted: #6b7280;
    --sf-link: #1877f2;
    --sf-orange: #d9480f;
    --sf-yellow: #f7c948;
    --sf-green: #2f9e44;
    --sf-sidebar: #f5f6f8;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a { color: var(--sf-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }

.sf-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--sf-blue);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    min-height: 56px;
}

.sf-brand {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.02em;
    white-space: nowrap;
    text-decoration: none;
}
.sf-brand:hover { text-decoration: none; color: #fff; }

.sf-search {
    flex: 1;
    display: flex;
    max-width: 720px;
    margin: 0 auto;
}
.sf-search input {
    flex: 1;
    border: 0;
    border-radius: 4px 0 0 4px;
    padding: 9px 14px;
    outline: none;
}
.sf-search button {
    border: 0;
    background: #eef0f4;
    color: #555;
    padding: 0 14px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.sf-auth-links {
    color: #fff;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
}
.sf-auth-links a { color: #fff; }
.sf-auth-links a:hover { text-decoration: underline; }
.sf-auth-sep { margin: 0 6px; opacity: .7; }

.sf-mobile-only { display: none; }
.sf-desktop-only { display: inline-flex; }

.sf-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 260px;
    gap: 14px;
    max-width: 1280px;
    margin: 14px auto;
    padding: 0 12px 40px;
    align-items: start;
}

.sf-side, .sf-right, .sf-panel, .sf-intro, .sf-filters, .sf-product, .sf-shortcuts {
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
}

.sf-side {
    background: var(--sf-sidebar);
    border-radius: 2px;
    padding: 10px 0 16px;
    position: sticky;
    top: 70px;
}

.sf-side h4 {
    margin: 14px 14px 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8b93a1;
    font-weight: 700;
}

.sf-side a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.sf-side a:hover { background: #e8ebf0; text-decoration: none; }
.sf-side a.active {
    background: var(--sf-blue);
    color: #fff;
}
.sf-side .ico {
    width: 18px;
    text-align: center;
    opacity: .85;
}
.sf-new {
    margin-left: auto;
    background: #1c7ed6;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .03em;
}

.sf-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.sf-shortcuts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 12px;
    border-radius: 2px;
}
.sf-shortcut {
    min-width: 92px;
    text-align: center;
    color: #333;
    text-decoration: none;
    flex: 0 0 auto;
}
.sf-shortcut:hover { text-decoration: none; }
.sf-shortcut .bubble {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.sf-shortcut .bubble .hot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    font-size: 14px;
}
.sf-shortcut span {
    display: block;
    font-size: 12px;
    line-height: 1.2;
}

.sf-intro {
    padding: 16px 18px;
    border-radius: 2px;
}
.sf-intro h1 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}
.sf-intro p { margin: 0 0 10px; color: #333; }
.sf-intro p:last-child { margin-bottom: 0; }

.sf-filters {
    padding: 14px;
    border-radius: 2px;
}
.sf-filters-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}
.sf-filters input,
.sf-filters select {
    width: 100%;
    border: 1px solid #cfd4dc;
    border-radius: 3px;
    padding: 8px 10px;
    background: #fff;
}
.sf-filters-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #555;
    font-size: 14px;
}
.sf-filters-meta label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.sf-btn-filter {
    background: var(--sf-yellow);
    border: 1px solid #e0b000;
    color: #222;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}
.sf-btn-filter:hover { filter: brightness(.97); }

.sf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sf-chip {
    background: #fff;
    border: 1px solid var(--sf-line);
    color: #445;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
}
.sf-chip:hover { border-color: var(--sf-blue); color: var(--sf-blue); text-decoration: none; }

.sf-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sf-product {
    border-radius: 2px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}
.sf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sf-tag {
    color: var(--sf-orange);
    font-size: 12px;
    font-weight: 700;
}
.sf-tag::after { content: " ,"; color: var(--sf-orange); }
.sf-tag:last-child::after { content: ""; }

.sf-product-head {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 10px;
    align-items: start;
}
.sf-product h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}
.sf-thumb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e8ef;
    background: #f5f6f8;
    display: block;
}
.sf-desc {
    margin: 0;
    color: var(--sf-muted);
    font-size: 13px;
}
.sf-meta {
    margin-top: auto;
    border-top: 1px solid #eef0f4;
    padding-top: 8px;
}
.sf-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
    color: #444;
}
.sf-meta-row strong { font-weight: 700; color: #222; }
.sf-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.sf-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}
.sf-btn:hover { text-decoration: none; filter: brightness(.98); }
.sf-btn-detail {
    background: #eef2f7;
    color: #334;
    border: 1px solid #d5dbe5;
}
.sf-btn-buy {
    background: var(--sf-blue);
    color: #fff;
    border: 1px solid var(--sf-blue-dark);
}

.sf-load {
    display: block;
    width: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--sf-line);
    padding: 12px;
    font-weight: 700;
    color: #334;
    cursor: pointer;
}

.sf-right {
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 70px;
}
.sf-panel {
    border-radius: 2px;
    padding: 12px 14px;
}
.sf-panel h3 {
    margin: 0 0 8px;
    font-size: 15px;
}
.sf-panel p.note {
    margin: 0 0 10px;
    color: var(--sf-muted);
    font-size: 12px;
}
.sf-quick a {
    display: block;
    padding: 7px 0;
    color: #333;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
    font-size: 14px;
}
.sf-quick a:last-child { border-bottom: 0; }
.sf-best li {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #eef0f4;
}
.sf-best li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sf-best {
    margin: 0;
    padding: 0;
}
.sf-best a {
    color: #222;
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}
.sf-best span {
    color: var(--sf-muted);
    font-size: 12px;
}
.sf-info li {
    list-style: none;
    margin: 0 0 12px;
}
.sf-info {
    margin: 0;
    padding: 0;
}
.sf-info strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}
.sf-info span {
    color: var(--sf-muted);
    font-size: 12px;
}

.sf-footer {
    background: #fff;
    border-top: 1px solid var(--sf-line);
    margin-top: 10px;
    padding: 28px 16px 40px;
}
.sf-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 18px;
}
.sf-footer h2 {
    margin: 0 0 10px;
    font-size: 15px;
}
.sf-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sf-footer li { margin: 0 0 7px; }
.sf-footer a { color: #445; font-size: 13px; }
.sf-footer .brand-copy {
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.5;
}
.sf-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sf-pay span {
    background: #f3f5f8;
    border: 1px solid #e1e5ec;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #445;
}
.sf-pay img {
    height: 28px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 3px;
    padding: 4px 6px;
}
.sf-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}
.sf-brand {
    display: inline-flex;
    align-items: center;
}
.sf-icon-btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.sf-side a i {
    width: 18px;
    text-align: center;
    color: inherit;
}
.sf-thumb-link { display: block; }
.sf-thumb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e8ef;
    background: #f5f6f8;
}
.sf-product h3 a { color: inherit; }
.sf-product h3 a:hover { color: var(--sf-link); }
.sf-tag {
    text-decoration: none;
}
.sf-tag:hover { text-decoration: underline; }
.sf-shell-detail {
    grid-template-columns: 230px minmax(0, 1fr);
}
.sf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #778;
    font-size: 13px;
    margin-bottom: 4px;
}
.sf-breadcrumb a { color: var(--sf-link); }
.sf-detail {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 2px;
    padding: 18px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
}
.sf-detail-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.sf-detail-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e8ef;
    background: #f7f8fa;
}
.sf-detail-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sf-blue);
}
.sf-detail-info h1 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}
.sf-qty { margin: 8px 0 12px; color: #444; }
.sf-price-box {
    background: #f0f2f5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.sf-price-box h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.02em;
}
.sf-policy p {
    margin: 0 0 8px;
    color: #555;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.sf-policy i { color: #f59f00; margin-top: 2px; }
.sf-btn-buy-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: var(--sf-yellow);
    color: #222;
    border: 1px solid #e0b000;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 3px;
    text-decoration: none;
}
.sf-btn-buy-lg:hover { text-decoration: none; filter: brightness(.97); }
.sf-detail-body {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 2px;
    padding: 18px;
}
.sf-detail-body p { margin: 0 0 10px; color: #333; }
.sf-detail-body mark {
    background: #ffe066;
    padding: 0 2px;
}
.sf-related {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 2px;
    padding: 16px;
}
.sf-related h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.sf-copy {
    max-width: 1280px;
    margin: 18px auto 0;
    padding-top: 14px;
    border-top: 1px solid #eef0f4;
    color: #778;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .sf-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .sf-right { display: none; }
}

@media (max-width: 860px) {
    .sf-shell, .sf-shell-detail { grid-template-columns: 1fr; }
    .sf-side { display: none; }
    .sf-products { grid-template-columns: 1fr; }
    .sf-filters-row { grid-template-columns: 1fr; }
    .sf-mobile-only { display: inline-flex; }
    .sf-desktop-only { display: none; }
    .sf-search { display: none; }
    .sf-topbar { gap: 10px; }
    .sf-footer-inner { grid-template-columns: 1fr 1fr; }
    .sf-product-head { grid-template-columns: 1fr 64px; }
    .sf-detail { grid-template-columns: 1fr; }
    .sf-thumb { width: 64px; height: 64px; }
}

@media (max-width: 520px) {
    .sf-footer-inner { grid-template-columns: 1fr; }
}
