/*
Theme Name: Pharmacy2
Theme URI: https://example.com/
Author: Codex
Description: Product guide theme adapted from the supplied XS Guide static pages.
Version: 1.0.0
Text Domain: cpb
*/

:root {
    --primary: #1a1a1a;
    --accent: #c00;
    --accent-hover: #a00;
    --text: #222;
    --text-muted: #666;
    --text-light: #999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --bg: #fff;
    --bg-secondary: #f8f8f8;
    --white: #fff;
    --black: #1a1a1a;
    --red: #c00;
    --font-main: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --font-accent: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.top-bar { background: var(--primary); color: #ccc; font-size: 12px; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-bar a:hover { color: #fff; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 20; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    gap: 18px;
}
.site-logo { font-size: 20px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.site-logo .logo-accent { color: var(--accent); }
.nav-list, .nav-list ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 14px;
    transition: color 0.15s;
    font-weight: 600;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search { display: flex; align-items: center; border: 1px solid var(--border); background: #fff; }
.header-search-input { border: none; padding: 6px 10px; font-size: 12px; width: 168px; color: var(--text); background: transparent; outline: none; }
.header-search-btn { border: none; border-left: 1px solid var(--border); background: #fff; padding: 6px 10px; color: var(--text-muted); font-size: 12px; }
.header-search-btn:hover { color: var(--primary); }
.cart-link { font-size: 13px; color: var(--text-muted); padding: 6px; position: relative; }
.cart-count {
    position: absolute;
    top: 0;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: none;
    color: #000;
    border: none;
    font-size: 12px;
    font-weight: 600;
}
.login-btn:hover { color: var(--accent); }
.mobile-toggle { display: none; font-size: 13px; cursor: pointer; color: var(--text-muted); }
.mobile-nav-checkbox { display: none; }

.carousel { margin-bottom: 40px; }
.carousel-track { position: relative; overflow: hidden; }
.carousel-slides { position: relative; min-height: 380px; }
.carousel-slide { display: none; min-width: 100%; position: relative; }
.carousel-slide.active { display: block; }
.carousel-slide a { display: block; }
.carousel-slide img { width: 100%; height: 380px; object-fit: cover; background: var(--bg-secondary); }
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}
.carousel-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    padding: 3px 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.carousel-caption h2 { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 0 0 4px; }
.carousel-caption p { font-size: 14px; opacity: 0.88; margin: 0; }
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    border: none;
    font-size: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; padding: 0; }
.carousel-dot.active { background: var(--primary); }

.section { padding: 40px 0; }
.section-title { font-size: 22px; font-weight: 800; margin: 0 0 24px; color: var(--primary); }
.home-intro-section { padding-top: 8px; }
.home-intro {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding: 34px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.home-intro-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.home-intro h2 {
    margin: 0;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}
.home-intro-body {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
}
.home-intro-body p { margin: 0 0 14px; }
.home-intro-body p:last-child { margin-bottom: 0; }
.home-intro-body strong { color: var(--primary); }
.home-intro-body a { color: var(--accent); font-weight: 700; }
.home-intro-body ul,
.home-intro-body ol { margin: 0 0 16px 20px; padding: 0; }
.home-intro-body li { margin: 5px 0; }
.home-icon-svg { width: 1em; height: 1em; display: block; }
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #eceff2 100%);
    padding: 58px 0;
    border-bottom: 1px solid var(--border-light);
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    align-items: center;
    gap: 48px;
}
.hero-text h2 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 42px;
    line-height: 1.12;
    font-weight: 800;
}
.hero-sub {
    max-width: 620px;
    color: #555;
    font-size: 16px;
    line-height: 1.78;
}
.hero-sub p { margin: 0 0 12px; }
.hero-sub p:last-child { margin-bottom: 0; }
.hero-sub strong { color: var(--primary); }
.hero-sub a { color: var(--accent); font-weight: 800; }
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.hero-cta-primary,
.hero-cta-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.hero-cta-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.hero-cta-primary:hover { background: #333; border-color: #333; color: #fff; }
.hero-cta-secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.hero-cta-secondary:hover { background: var(--primary); color: #fff; }
.hero-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.1);
    background: var(--bg-secondary);
}
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.trust-icon,
.cat-icon,
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-secondary);
    font-size: 18px;
}
.trust-text { min-width: 0; }
.trust-text strong {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}
.trust-text span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}
.shop-category-section { padding-top: 38px; }
.category-card .cat-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    font-size: 24px;
    transition: background 0.15s, color 0.15s;
}
.category-card:hover .cat-icon {
    background: var(--primary);
    color: #fff;
}
.benefits-section {
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 48px 0;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.benefit-card {
    text-align: center;
    padding: 10px 16px;
}
.benefit-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-light);
    font-size: 25px;
}
.benefit-card h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}
.benefit-card p {
    max-width: 320px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}
.testimonials-section { padding: 44px 0; background: #fff; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.testimonial-card {
    border: 1px solid var(--border-light);
    background: #f8f9fa;
    border-radius: 8px;
    padding: 22px;
}
.testimonial-card .stars {
    color: #e6a817;
    font-size: 13px;
    margin-bottom: 10px;
}
.testimonial-card blockquote {
    margin: 0 0 14px;
    color: #444;
    font-size: 13px;
    line-height: 1.7;
    font-style: italic;
}
.testimonial-card .author {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}
.testimonial-card .verified {
    color: #16884a;
    font-size: 12px;
    margin-top: 2px;
}
.brand-strip {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}
.brand-strip h2 {
    margin: 0 0 16px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.brand-logos {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.brand-logos span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: #888;
    font-size: 13px;
    font-weight: 800;
}
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    min-height: 160px;
    text-align: center;
    background: var(--bg);
    transition: background 0.15s;
}
.category-card:hover { background: var(--bg-secondary); }
.cat-thumb {
    width: 244px;
    height: 162px;
    max-width: 100%;
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-secondary);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.category-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { display: block; background: var(--bg); padding: 16px; transition: background 0.15s; position: relative; }
.product-card:hover { background: var(--bg-secondary); }
.product-img, .product-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-img img, .product-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s; }
.product-card:hover .product-img img, .product-card:hover .product-card-image img { transform: scale(1.04); }
.product-brand { font-size: 11px; color: var(--text-light); text-transform: uppercase; margin-bottom: 4px; }
.product-name, .product-card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.product-card-title a:hover { color: var(--accent); }
.product-spec { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; min-height: 18px; }
.product-tags { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.product-tags span { font-size: 10px; color: var(--text-muted); background: var(--bg-secondary); padding: 2px 6px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.price-original, .price-was { font-size: 13px; color: var(--text-light); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.product-card-body { padding: 4px 0 0; }
.product-card-pricing { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.price-now { font-size: 15px; font-weight: 800; color: var(--accent); }
.product-card-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    z-index: 2;
}
.product-card-buy {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 9px;
}
.product-card-buy:hover { background: var(--accent); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: block; background: var(--bg); padding: 20px; transition: background 0.15s; }
.news-card:hover { background: var(--bg-secondary); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-secondary); margin-bottom: 12px; }
.news-date { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.news-card h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.news-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px; }
.read-link { font-size: 12px; font-weight: 800; color: var(--accent); }
.latest-guides { background: #fafafa; }
.guide-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card {
    display: block;
    min-height: 176px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary);
    padding: 20px;
    transition: border-color 0.15s, transform 0.15s;
}
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-date { font-size: 11px; color: var(--text-light); margin-bottom: 10px; text-transform: uppercase; }
.guide-card h3 { font-size: 16px; line-height: 1.35; margin: 0 0 10px; font-weight: 800; }
.guide-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-row a { font-size: 12px; color: var(--text-muted); padding: 6px 14px; border: 1px solid var(--border); transition: border-color 0.15s, color 0.15s; }
.tag-row a:hover { border-color: var(--primary); color: var(--primary); }

.site-footer { background: var(--primary); color: #999; padding: 40px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 24px; }
.footer-col h4 { font-size: 12px; font-weight: 800; color: #fff; margin: 0 0 14px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 13px; color: #999; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; color: #666; }

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.auth-modal-overlay.active, .auth-modal-overlay.open { display: flex; }
.auth-modal { background: var(--bg); padding: 32px; width: 400px; max-width: 90vw; max-height: 90vh; overflow-y: auto; position: relative; border-radius: 8px; }
.auth-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px 0; border: none; background: none; font-size: 14px; font-weight: 700; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form-group { margin-bottom: 16px; }
.auth-form-group label { display: block; font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; }
.auth-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); font-size: 14px; color: var(--text); }
.auth-input:focus { border-color: var(--primary); outline: none; }
.auth-submit { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.auth-submit:hover { background: #333; }
.auth-msg { font-size: 12px; margin-top: 10px; padding: 8px 10px; border-radius: 4px; display: none; }
.auth-msg.ok { background: #eafaf1; color: #1e8449; display: block; }
.auth-msg.err { background: #fdf2f2; color: #a93226; display: block; }

.archive-page { padding: 32px 0 60px; }
.page-main { padding: 0 0 64px; }
.page-header { padding: 24px 0 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 800; margin: 0; }
.page-section {
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 0 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.85;
}
.page-section > *:first-child { margin-top: 0; }
.page-section > *:last-child { margin-bottom: 0; }
.page-section h2 {
    margin: 30px 0 12px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}
.page-section h3 {
    margin: 24px 0 10px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}
.page-section h4 {
    margin: 20px 0 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}
.page-section p { margin: 0 0 18px; }
.page-section ul,
.page-section ol {
    margin: 0 0 22px 22px;
    padding: 0;
}
.page-section li { margin: 6px 0; }
.page-section a { color: var(--accent); font-weight: 700; }
.page-section a:hover { color: var(--accent-hover); }
.page-section strong { color: var(--primary); }
.page-section blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
    font-size: 16px;
}
.page-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.page-section .wp-block-table {
    overflow-x: auto;
}
.page-section .wp-block-table table {
    min-width: 560px;
}
.page-section th,
.page-section td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.page-section th {
    background: var(--bg-secondary);
    color: var(--primary);
    font-weight: 800;
}
.page-section img {
    margin: 24px auto;
    border: 1px solid var(--border-light);
}
.page-featured-image {
    margin: 0 0 28px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.page-featured-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin: 0;
    border: none;
}
.page-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 800;
}
.page-links a,
.page-links .post-page-numbers {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--primary);
}
.page-links .current,
.page-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.page-edit-link { margin-top: 28px; font-size: 12px; }
.archive-grid { margin-bottom: 32px; }
.archive-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.archive-pagination a, .archive-pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); padding: 0 10px; }
.archive-pagination .current, .archive-pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

.breadcrumb { font-size: 12px; color: var(--text-light); padding: 16px 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.btn-primary { display: inline-block; padding: 10px 24px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; border: none; cursor: pointer; }
.btn-primary:hover { background: #333; color: #fff; }

.article-wrap { max-width: 880px; margin: 0 auto; padding: 36px 24px 70px; }
.article-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--accent); text-align: center; margin-bottom: 10px; }
.article-eyebrow a { margin: 0 4px; }
.article-title { font-size: 34px; font-weight: 800; text-align: center; line-height: 1.15; margin: 0 0 16px; }
.article-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 28px; }
.article-body { font-size: 15px; color: #333; line-height: 1.85; }
.article-body p { margin: 0 0 18px; }
.latest-section { margin: 36px 0; }
.latest-section h3 { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 18px; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.latest-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 10px; }
.latest-card-title { font-size: 13px; font-weight: 800; line-height: 1.4; }
.latest-card-date { font-size: 11px; color: #888; margin: 4px 0 6px; }
.latest-card-excerpt { font-size: 12px; color: #555; line-height: 1.6; }
.post-nav { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 16px 0; margin: 28px 0; gap: 12px; }
.post-nav-link { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.post-nav-link:hover { color: var(--accent); }
.post-nav-link svg { width: 14px; height: 14px; }
.comment-section { border: 1px solid #e0e0e0; padding: 24px; margin-top: 8px; }
.comment-section h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.comment-section .req-note { font-size: 12px; color: #888; margin-bottom: 18px; }
.comment-form-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.comment-form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.comment-form-group label { font-size: 13px; font-weight: 800; }
.comment-form-group input, .comment-form-group textarea { border: 1px solid #ddd; padding: 9px 12px; font-size: 13px; outline: none; border-radius: 2px; }
.comment-form-group textarea { min-height: 110px; resize: vertical; }
.comment-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; margin-bottom: 14px; }
.comment-submit { background: var(--accent); color: #fff; padding: 11px 28px; font-size: 12px; font-weight: 800; text-transform: uppercase; border: none; border-radius: 2px; }

.sp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px; }
.sp-bread { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 44px; }
.sp-main-wrap { position: relative; background: #f8f8f8; border: 1px solid #eee; overflow: hidden; margin-bottom: 10px; aspect-ratio: 1; }
.sp-main-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s; }
.sp-main-wrap:hover img { transform: scale(1.04); }
.sp-sku-label { position: absolute; bottom: 12px; right: 14px; font-size: 11px; color: #aaa; }
.sp-zoom-btn, .sp-wish-btn, .g-arrow {
    position: absolute;
    border: 1px solid #ddd;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.sp-zoom-btn { top: 12px; left: 12px; width: 34px; height: 34px; }
.sp-wish-btn { top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; }
.sp-zoom-btn svg, .sp-wish-btn svg, .g-arrow svg { width: 16px; height: 16px; }
.g-arrow { top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.sp-thumbs { display: flex; gap: 8px; }
.sp-thumb { flex: 1; aspect-ratio: 1; border: 2px solid #ddd; cursor: pointer; overflow: hidden; background: #f5f5f5; max-width: calc(25% - 6px); }
.sp-thumb.active { border-color: var(--primary); }
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sp-title { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 0 0 14px; }
.sp-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sp-price { font-size: 24px; font-weight: 800; color: var(--accent); }
.sp-orig { font-size: 15px; color: #aaa; text-decoration: line-through; }
.sp-sale-badge, .sbb-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 2px; }
.sp-perks { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.sp-perk { font-size: 13px; color: #444; display: flex; align-items: center; gap: 7px; }
.sp-perk svg { width: 14px; height: 14px; flex-shrink: 0; }
.sp-variants, .sp-size-block { margin-bottom: 14px; }
.sp-variant-label, .sp-g-label, .sp-size-lbl { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.sp-variant-options, .sp-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sp-opt-btn, .sz-btn, .sp-g-tab {
    min-width: 48px;
    min-height: 36px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}
.sp-opt-btn.active, .sz-btn.active, .sp-g-tab.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.sz-btn.sold { color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.sp-gender-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sp-g-tabs { display: flex; border: 1px solid #ddd; }
.sz-chart-link { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--primary); text-decoration: underline; margin-left: auto; }
.sz-chart-link svg { width: 14px; height: 14px; }
.sp-size-panel { display: none; }
.sp-size-panel.active { display: flex; }
.sp-stock { font-size: 12px; color: #c0392b; margin-bottom: 10px; font-weight: 700; }
.sp-actions { margin-bottom: 14px; }
.btn-buy { display: block; width: 100%; text-align: center; background: var(--accent); color: #fff; height: 48px; line-height: 48px; font-size: 13px; font-weight: 800; text-transform: uppercase; border: none; }
.btn-buy:hover { background: var(--accent-hover); color: #fff; }
.sp-bmsm { background: #f9f9f9; border: 1px solid #eee; padding: 14px 16px; margin-bottom: 14px; font-size: 13px; }
.sp-bmsm-title { font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.sp-bmsm-row { padding: 4px 0; color: #444; }
.sp-payment { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eee; margin-top: 4px; flex-wrap: wrap; }
.sp-acc { margin-top: 16px; }
.sp-acc-item { border-bottom: 1px solid #eee; }
.sp-acc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.sp-acc-head svg { width: 16px; height: 16px; transition: transform 0.25s; }
.sp-acc-item.open .sp-acc-head svg { transform: rotate(180deg); }
.sp-acc-body { display: none; padding: 0 0 14px; font-size: 13px; color: #444; line-height: 1.7; }
.sp-acc-item.open .sp-acc-body { display: block; }
.media-lb, .sc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.86);
    z-index: 9800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.media-lb.open, .sc-overlay.open { display: flex; }
.media-lb-inner img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.media-lb-close, .sc-close { position: fixed; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 32px; line-height: 1; }
.sc-box { background: #fff; width: 100%; max-width: 760px; max-height: 85vh; overflow: auto; border-radius: 4px; }
.sc-close { color: #555; position: absolute; }
.sc-head { padding: 20px 24px 14px; font-size: 18px; font-weight: 800; border-bottom: 1px solid #eee; }
.sc-body { padding: 18px 24px 24px; }
.sc-tabs { display: flex; border: 1px solid #ddd; width: fit-content; margin: 14px 0 16px; }
.sc-tab { padding: 9px 24px; font-size: 12px; font-weight: 800; text-transform: uppercase; background: none; border: none; color: #666; }
.sc-tab.active { background: var(--primary); color: #fff; }
.sz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sz-table th { background: var(--primary); color: #fff; padding: 9px 12px; text-align: center; }
.sz-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.recommended { background: #f9f9f9; padding: 48px 0; }
.rec-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.rec-inner h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.rec-slider-wrap { position: relative; overflow: hidden; }
.rec-track { display: flex; gap: 16px; transition: transform 0.35s; }
.rec-card { flex: 0 0 calc(25% - 12px); position: relative; overflow: hidden; }
.rec-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.rec-label { position: absolute; inset: auto 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); padding: 32px 16px 16px; color: #fff; }
.rc-title { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.rc-btn { display: inline-block; background: #fff; color: var(--primary); font-size: 11px; font-weight: 800; padding: 6px 14px; }
.rec-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,0.92); border: 1px solid #ddd; z-index: 2; }
.rec-prev { left: 0; }
.rec-next { right: 0; }
.rec-arrow svg { width: 16px; height: 16px; }
.sbb-wrap { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #ddd; z-index: 5000; transform: translateY(110%); transition: transform 0.22s; box-shadow: 0 -4px 18px rgba(0,0,0,0.08); }
.sbb-wrap.sbb-visible { transform: translateY(0); }
.sbb-inner { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; }
.sbb-product { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.sbb-thumb { width: 44px; height: 44px; object-fit: contain; background: #f5f5f5; border: 1px solid #eee; }
.sbb-title { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbb-price-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sbb-price { font-size: 16px; font-weight: 800; color: var(--accent); }
.sbb-orig { font-size: 12px; color: #999; text-decoration: line-through; }
.sbb-btn { background: var(--accent); color: #fff; padding: 11px 24px; font-size: 12px; font-weight: 800; }

.product-page { padding-bottom: 56px; }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: 40px; align-items: start; margin-bottom: 32px; }
.pdp-gallery { position: sticky; top: 16px; }
.pdp-main-img-wrap { position: relative; background: var(--bg-secondary); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-light); overflow: hidden; }
.pdp-main-img { width: 100%; height: 100%; object-fit: contain; }
.pdp-img-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.pdp-img-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; background: var(--primary); color: #fff; }
.pdp-img-badge.hot { background: var(--accent); }
.pdp-thumb-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pdp-thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--border); background: var(--bg-secondary); cursor: pointer; padding: 4px; }
.pdp-thumb.active { border-color: var(--primary); }
.pdp-buybox { min-width: 0; }
.pdp-brand { font-size: 12px; color: var(--text-light); text-transform: uppercase; margin-bottom: 8px; }
.pdp-title { font-size: 26px; line-height: 1.25; font-weight: 800; margin: 0 0 12px; }
.pdp-rating-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.pdp-stars, .review-summary-stars, .review-stars { color: #e6a817; letter-spacing: 2px; }
.pdp-rating-num { font-weight: 800; }
.pdp-rating-count { color: var(--accent); font-size: 12px; }
.pdp-price-block { padding: 16px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: 16px; }
.pdp-price-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.pdp-price-current { font-size: 30px; font-weight: 800; color: var(--primary); }
.pdp-price-original { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.pdp-price-discount { font-size: 12px; color: var(--accent); font-weight: 800; background: var(--bg-secondary); padding: 2px 6px; }
.pdp-price-save { font-size: 13px; color: var(--text-muted); }
.pdp-shipping-bar { font-size: 13px; color: var(--text-muted); padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.progress-track { height: 4px; background: var(--border-light); margin-top: 6px; position: relative; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); }
.pdp-highlights { margin-bottom: 16px; }
.pdp-highlights ul { list-style: none; padding: 0; margin: 0; }
.pdp-highlights li { font-size: 13px; color: var(--text-muted); padding: 5px 0 5px 18px; position: relative; }
.pdp-highlights li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pdp-variant-label { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.pdp-variant-label span { font-weight: 400; color: var(--text-muted); }
.pdp-variant-options { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pdp-variant-btn { padding: 10px 16px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 13px; min-width: 80px; }
.pdp-variant-btn.active, .pdp-variant-btn:hover { border-color: var(--primary); background: var(--bg-secondary); font-weight: 700; }
.pdp-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pdp-qty-label { font-size: 13px; font-weight: 800; }
.pdp-qty-box { display: flex; border: 1px solid var(--border); }
.pdp-qty-box button { width: 34px; height: 34px; border: none; background: #fff; font-size: 16px; }
.pdp-qty-box input { width: 48px; height: 34px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; font-weight: 800; }
.pdp-stock-msg { font-size: 12px; color: #2a7; }
.pdp-actions { display: flex; gap: 10px; margin-top: 20px; }
.pdp-btn-cart, .pdp-btn-buy { flex: 1; padding: 14px; text-align: center; font-size: 14px; font-weight: 800; border-radius: 4px; }
.pdp-btn-cart { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.pdp-btn-cart:hover { background: var(--primary); color: #fff; }
.pdp-btn-buy { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.pdp-btn-buy:hover { background: var(--accent-hover); color: #fff; }
.pdp-info-list { margin-top: 16px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.pdp-info-item { font-size: 13px; color: var(--text-muted); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; }
.pdp-info-item strong { color: var(--text); }
.info-icon { display: inline-block; min-width: 52px; font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.pdp-accordion-section { margin-top: 32px; }
.pdp-accordion-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.pdp-accordion { border: 1px solid var(--border); margin-bottom: 8px; }
.pdp-accordion summary { padding: 14px 16px; font-size: 14px; font-weight: 800; cursor: pointer; display: flex; justify-content: space-between; }
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: "+"; color: var(--text-muted); }
.pdp-accordion[open] summary::after { content: "-"; }
.pdp-accordion-content { padding: 0 16px 16px; font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.pdp-accordion-content p { margin-top: 0; }
.reviews-section { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 28px; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.reviews-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.reviews-head h2 span { font-weight: 400; color: var(--text-muted); font-size: 14px; }
.review-write-btn { padding: 9px 16px; background: var(--primary); color: #fff; border: none; font-size: 12px; font-weight: 800; border-radius: 4px; }
.review-summary { display: flex; gap: 32px; padding: 24px; background: var(--bg-secondary); margin-bottom: 20px; border-radius: 4px; align-items: center; }
.review-summary-left { text-align: center; min-width: 130px; }
.review-summary-score { font-size: 48px; font-weight: 800; line-height: 1; }
.review-summary-total { font-size: 12px; color: var(--text-muted); }
.review-summary-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.review-bar-row .bar-label { width: 28px; text-align: right; color: var(--text-muted); }
.review-bar-row .bar-track { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.review-bar-row .bar-fill { height: 100%; background: #e6a817; border-radius: 4px; }
.review-bar-row .bar-pct { width: 36px; color: var(--text-muted); text-align: right; }
.review-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.review-filter-btn { padding: 7px 16px; font-size: 12px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 20px; }
.review-filter-btn.active, .review-filter-btn:hover { border-color: var(--primary); color: var(--primary); background: #dce4ec; font-weight: 700; }
.review-item { padding: 20px 24px; border: 1px solid var(--border); margin-bottom: 12px; border-radius: 6px; background: #fff; }
.review-item.is-hidden { display: none; }
.review-item-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: #f0f2f5; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.review-user-info { flex: 1; min-width: 0; }
.review-name { font-weight: 800; font-size: 14px; margin-bottom: 3px; }
.review-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-verified { font-size: 11px; color: #2a7; background: #e8f5e9; padding: 2px 8px; border-radius: 3px; }
.review-ip { font-size: 11px; color: var(--text-light); margin-top: 2px; font-family: "Courier New", monospace; }
.review-date { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.review-title { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.review-body { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.review-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.review-media img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--border-light); border-radius: 4px; }
.review-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.48); display: none; align-items: center; justify-content: center; z-index: 9998; padding: 16px; }
.review-modal.open { display: flex; }
.review-modal-box { width: 520px; max-width: 100%; max-height: 92vh; overflow: auto; background: #fff; padding: 28px; border-radius: 8px; position: relative; }
.review-modal-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; }
.review-modal h3 { margin: 0 0 18px; font-size: 20px; }
.review-modal label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.review-modal input, .review-modal select, .review-modal textarea { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--border); font-size: 14px; text-transform: none; }
.review-modal textarea { min-height: 120px; resize: vertical; }
.review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-upload { border: 1px dashed var(--border); padding: 14px; border-radius: 6px; background: var(--bg-secondary); }
.review-submit { width: 100%; padding: 12px; border: none; background: var(--accent); color: #fff; font-weight: 800; }
.fbt-section { margin-top: 36px; border: 1px solid var(--border); padding: 22px; background: #fff; }
.fbt-section h2 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.fbt-subtitle { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.fbt-items { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.fbt-item { flex: 1; min-width: 160px; text-align: center; padding: 14px; border: 1px solid var(--border-light); }
.fbt-item img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto; background: var(--bg-secondary); }
.fbt-name { font-size: 13px; font-weight: 700; line-height: 1.35; margin-top: 8px; }
.fbt-price { font-size: 15px; font-weight: 800; color: var(--accent); margin-top: 4px; }

.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text-light); }
.cart-empty h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); background: #fff; }
.cart-item-img { width: 80px; height: 80px; object-fit: contain; background: var(--bg-secondary); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 60px; overflow: hidden; }
.cart-item-name { font-size: 14px; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-spec { font-size: 12px; color: var(--text-light); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-item-qty { display: flex; align-items: center; border: 1px solid var(--border); }
.cart-item-qty button { width: 32px; height: 32px; border: none; background: #fff; font-size: 16px; }
.cart-item-qty input { width: 44px; height: 32px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; font-weight: 800; }
.cart-item-total { font-size: 15px; font-weight: 800; white-space: nowrap; min-width: 70px; text-align: right; }
.cart-item-remove { width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; color: var(--text-light); flex-shrink: 0; }
.cart-item-remove:hover { border-color: var(--accent); color: var(--accent); }
.cart-summary { padding: 24px; border: 1px solid var(--border); background: var(--bg-secondary); position: sticky; top: 24px; }
.cart-summary h3 { font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--text-muted); }
.cart-summary-divider { border-top: 1px solid var(--border); margin: 12px 0; }
.cart-summary-total { font-size: 16px; font-weight: 800; color: var(--primary); }
.cart-checkout-btn { display: block; width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; font-size: 14px; font-weight: 800; margin-top: 16px; text-align: center; }
.cart-continue { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-muted); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 70px; }
.checkout-layout[hidden], .checkout-success[hidden] { display: none; }
.checkout-form-stack { display: grid; gap: 18px; }
.checkout-card { border: 1px solid var(--border); background: #fff; padding: 24px; }
.checkout-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.checkout-step { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.checkout-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--primary); }
.checkout-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-grid .wide { grid-column: 1 / -1; }
.checkout-payment-options { display: grid; gap: 10px; }
.checkout-payment-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 13px 14px; font-size: 13px; font-weight: 800; cursor: pointer; }
.checkout-payment-option:hover { border-color: var(--primary); }
.checkout-payment-option input { margin: 0; }
.checkout-summary { position: sticky; top: 24px; border: 1px solid var(--border); background: var(--bg-secondary); padding: 24px; }
.checkout-summary h2 { font-size: 18px; font-weight: 800; margin: 0 0 16px; }
.checkout-items { display: grid; gap: 12px; max-height: 360px; overflow: auto; padding-right: 4px; }
.checkout-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; }
.checkout-item img { width: 54px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--border-light); }
.checkout-item-title { font-size: 13px; font-weight: 800; line-height: 1.35; }
.checkout-item-meta { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.checkout-item-price { font-size: 13px; font-weight: 800; white-space: nowrap; }
.checkout-success { max-width: 620px; margin: 40px auto 80px; text-align: center; border: 1px solid var(--border); background: #fff; padding: 42px 28px; }
.checkout-success h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.checkout-success p { color: var(--text-muted); margin: 0 0 18px; }
.checkout-success-number { display: inline-flex; margin-bottom: 24px; padding: 8px 14px; background: var(--bg-secondary); font-size: 13px; font-weight: 800; color: var(--primary); }
.address-smart-form select.auth-input,
.checkout-card select.auth-input { background-color: #fff; }

.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 24px 0; }
.account-sidebar { padding: 24px; border: 1px solid var(--border); background: var(--bg-secondary); align-self: start; }
.account-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin: 0 auto 10px; }
.account-name { font-size: 16px; font-weight: 800; text-align: center; }
.account-email { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.account-nav-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; color: var(--text-muted); }
.account-nav-item:hover, .account-nav-item.active { background: #fff; color: var(--primary); font-weight: 800; }
.account-logout { display: flex; padding: 12px; font-size: 13px; color: var(--accent); border-top: 1px solid var(--border); }
.account-content { min-height: 400px; }
.account-tab { display: none; }
.account-tab.active { display: block; }
.account-tab h2 { font-size: 18px; font-weight: 800; margin: 0 0 20px; }
.account-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); border: 1px solid var(--border-light); }
.account-form { max-width: 420px; }
.account-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
.account-panel-head h2 { margin: 0 0 4px; }
.account-panel-head p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.account-card { border: 1px solid var(--border); background: #fff; padding: 20px; margin-bottom: 16px; max-width: none; }
.account-collapsible[hidden] { display: none; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-form-grid .wide { grid-column: 1 / -1; }
.account-inline-submit { width: auto; min-width: 160px; padding-left: 24px; padding-right: 24px; }
.account-secondary-btn { padding: 11px 20px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-weight: 700; }
.account-secondary-btn:hover { border-color: var(--primary); color: var(--primary); }
.account-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.account-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); margin: 8px 0 16px; }
.account-check input { margin-top: 2px; }
.account-list { display: grid; gap: 12px; }
.account-list:empty { display: none; }
.account-list-item { border: 1px solid var(--border); background: #fff; padding: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.account-list-main { min-width: 0; }
.account-list-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: var(--primary); }
.account-list-meta { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.account-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; background: var(--bg-secondary); color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; vertical-align: middle; }
.account-list-actions { display: flex; gap: 8px; flex-shrink: 0; }
.account-tracking-result { margin-top: 10px; max-width: 100%; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.55; color: #555; background: #f7f7fb; border: 1px solid #ececf3; border-radius: 8px; padding: 10px 12px; }
.account-tracking-result:empty { display: none; }
.account-list-actions .account-icon-btn { width: auto; min-width: 32px; padding: 0 9px; }
.account-icon-btn { width: 32px; height: 32px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 12px; }
.account-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.account-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-product-card { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--border); background: #fff; padding: 12px; }
.account-product-card img { width: 82px; height: 82px; object-fit: contain; background: var(--bg-secondary); }
.account-product-title { font-size: 13px; font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.account-product-meta { font-size: 12px; color: var(--text-muted); }
.account-product-price { font-size: 14px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.account-empty.is-hidden { display: none; }

@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 34px; }
    .hero-text h2 { font-size: 34px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .header-inner { position: relative; }
    .mobile-nav-checkbox:checked ~ .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
    }
    .mobile-nav-checkbox:checked ~ .main-nav .nav-list { display: flex; flex-direction: column; align-items: stretch; }
    .sp-grid { grid-template-columns: 1fr; }
    .pdp-layout { grid-template-columns: 1fr; }
    .pdp-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-summary { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .home-intro { grid-template-columns: 1fr; gap: 16px; }
    .hero-section { padding: 42px 0; }
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; max-width: 380px; width: 100%; margin: 0 auto; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .benefits-grid, .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container, .header-inner { padding-left: 16px; padding-right: 16px; }
    .top-bar .container { align-items: flex-start; flex-direction: column; gap: 4px; }
    .header-search .header-search-input { width: 110px; }
    .carousel-slides { min-height: 240px; }
    .carousel-slide img { height: 240px; }
    .carousel-caption { padding: 18px 20px; }
    .carousel-caption h2 { font-size: 18px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 22px; }
    .section { padding: 28px 0; }
    .section-title { font-size: 18px; }
    .hero-text h2 { font-size: 28px; }
    .hero-sub { font-size: 14px; line-height: 1.7; }
    .trust-grid { grid-template-columns: 1fr; gap: 10px; }
    .trust-item { padding: 2px 0; }
    .home-intro { padding: 26px 0; }
    .home-intro h2 { font-size: 22px; }
    .home-intro-body { font-size: 14px; line-height: 1.75; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .news-grid, .latest-grid { grid-template-columns: 1fr; }
    .comment-form-cols { grid-template-columns: 1fr; }
    .article-title { font-size: 26px; }
    .rec-card { flex-basis: calc(50% - 8px); }
    .sbb-inner { padding: 8px 12px; gap: 10px; }
    .sbb-product { display: none; }
    .reviews-head, .review-summary { flex-direction: column; align-items: stretch; }
    .review-summary-left { min-width: 0; }
    .review-form-grid { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-grid .wide { grid-column: auto; }
    .page-section { font-size: 14px; line-height: 1.8; }
    .page-section h2 { font-size: 20px; }
    .page-section h3 { font-size: 17px; }
    .account-panel-head { flex-direction: column; }
    .account-form-grid { grid-template-columns: 1fr; }
    .account-form-grid .wide { grid-column: auto; }
    .account-product-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .header-search { display: none; }
    .login-btn { display: none; }
    .hero-section { padding: 32px 0; }
    .hero-cta-primary, .hero-cta-secondary { width: 100%; }
    .category-card { padding: 20px 12px; min-height: 140px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-card { padding: 10px; }
    .product-name, .product-card-title { font-size: 13px; }
    .product-price { font-size: 16px; }
    .sp-wrap, .article-wrap { padding-left: 16px; padding-right: 16px; }
    .sp-title { font-size: 21px; }
    .sbb-price-group { display: none; }
    .sbb-btn { width: 100%; text-align: center; }
    .guide-list { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 22px; }
    .page-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .pdp-actions { flex-direction: column; }
    .review-item-header { flex-wrap: wrap; }
    .review-date { width: 100%; }
    .account-list-item { flex-direction: column; }
    .account-product-card { grid-template-columns: 70px 1fr; }
    .account-product-card .account-icon-btn { grid-column: 1 / -1; width: 100%; }
}
