/*
Theme Name: AB Station Responsive
Theme URI: https://example.com/
Author: Custom Theme
Description: Fully responsive WooCommerce theme (mobile + tablet + desktop) matching the reference site layout exactly.
Version: 3.0.0
Text Domain: ab-station
License: GPL-2.0-or-later
*/

/* ===== CSS Variables ===== */
:root {
    --accent: #ff4544;
    --accent2: #ff7877;
    --bg: #f0f0f0;
    --card: #fff;
    --text: #303133;
    --muted: #777;
    --line: #ececec;
    --radius: 8px;
    --gap: 8px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* ===== Layout Shell ===== */
.site-shell { min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    max-width: 1200px;
    margin: 0 auto;
}
.menu-toggle {
    border: 0;
    background: transparent;
    padding: 5px;
    cursor: pointer;
    color: #222;
    display: inline-flex;
    flex-shrink: 0;
}
.brand {
    font-weight: 800;
    letter-spacing: .4px;
    font-size: 18px;
    flex: 1;
    text-align: center;
}
.header-actions { display: flex; gap: 14px; align-items: center; }
.header-icon { color: #222; display: inline-flex; align-items: center; position: relative; }
.cart-count {
    position: absolute; top: -6px; right: -8px;
    background: var(--accent); color: #fff; font-size: 9px;
    line-height: 1; min-width: 14px; height: 14px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 6px; border-bottom: 1px solid #f2f2f2; font-size: 14px; }

/* ===== MAIN CONTENT WRAPPER ===== */
.site-main { padding-bottom: 70px; }

/* ===== MC HOME SECTIONS ===== */
.mc-home { width: 100%; }

/* ===== HERO SLIDER ===== */
.mc-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
}
.mc-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mc-hero-track::-webkit-scrollbar { display: none; }
.mc-hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}
.mc-hero-slide img { width: 100%; display: block; object-fit: cover; }
.mc-hero-dots {
    position: absolute; left: 0; right: 0; bottom: 8px;
    display: flex; justify-content: center; gap: 6px;
    pointer-events: none;
}
.mc-hero-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.55); transition: width .2s, background .2s;
    pointer-events: auto; cursor: pointer;
}
.mc-hero-dot.active { width: 16px; border-radius: 3px; background: #fff; }

/* ===== CONTACT/INFO IMAGE (full-width) ===== */
.mc-info-img { width: 100%; }
.mc-info-img img { width: 100%; display: block; }

/* ===== TWO-BANNER ROW (VIP + Add-to-Home) ===== */
.mc-two-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}
.mc-two-banner a { display: block; }
.mc-two-banner img { width: 100%; display: block; }

/* ===== FREE SHIPPING + REAL REVIEWS ROW ===== */
.mc-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
}
.mc-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid var(--line);
}
.mc-trust-item:last-child { border-right: 0; }
.mc-trust-item .trust-sub { font-size: 11px; font-weight: 400; color: #888; display: block; }
.mc-trust-stars { color: #f5a623; font-size: 13px; }

/* ===== SOCIAL ICONS ROW ===== */
.mc-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}
.mc-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    font-size: 22px;
    cursor: pointer;
    transition: opacity .15s;
}
.mc-social-btn:hover { opacity: .8; }
.mc-social-whatsapp { background: #25D366; }
.mc-social-discord  { background: #5865F2; }
.mc-social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.mc-social-telegram  { background: #2AABEE; }
.mc-social-btn svg { fill: #fff; width: 26px; height: 26px; }
.mc-social-btn img { width: 26px; height: 26px; object-fit: contain; filter: brightness(10); }

/* ===== CATEGORY ICONS ===== */
.mc-cats {
    background: #fff;
    padding: 12px 8px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mc-cats::-webkit-scrollbar { display: none; }
.mc-cats-track {
    display: flex;
    gap: 0;
    min-width: max-content;
}
.mc-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 6px;
    min-width: 68px;
    text-align: center;
    cursor: pointer;
}

.mc-cat-item span { font-size: 11px; color: #333; line-height: 1.3; }

/* ===== LIMITED TIME DISCOUNT BANNER ===== */
.mc-discount-banner {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
}
.mc-discount-banner .db-left { color: #e8a100; font-size: 14px; font-weight: 700; }
.mc-discount-banner .db-right { color: #e8a100; font-size: 14px; font-weight: 700; }

/* ===== PRODUCTS SECTION ===== */
.mc-products-section {
    background: #fff;
    padding: 12px 8px;
}
.mc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mc-section-header h2 { font-size: 15px; font-weight: 700; margin: 0; }
.mc-section-header .view-all {
    font-size: 12px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Products Grid */
.mc-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.mc-product-card {
    background: #fafafa;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.mc-product-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.mc-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-product-info { padding: 8px; flex: 1; }
.mc-product-cat { font-size: 10px; color: #888; margin-bottom: 2px; }
.mc-product-name { font-size: 12px; line-height: 1.4; }
.mc-product-prices { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; }
.mc-product-old { font-size: 11px; color: #aaa; text-decoration: line-through; }
.mc-product-new { font-size: 15px; font-weight: 800; color: var(--accent); }

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    z-index: 300;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: #888;
    text-decoration: none;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav svg { width: 22px; height: 22px; }

/* ===== FOOTER ===== */
.site-footer {
    background: #0d0d0d;
    color: #fff;
    padding: 24px 16px 20px;
    margin-top: 10px;
}
.footer-welcome { text-align: center; font-size: 14px; color: #fff; margin-bottom: 18px; }
.footer-link-accent { color: var(--accent); margin: 0 4px; }
.footer-accordion { border-top: 1px solid rgba(255,255,255,.15); }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,.15); }
.accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 2px; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .3px;
}
.accordion-icon { font-size: 18px; font-weight: 400; transition: transform .2s; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 2px 14px; flex-direction: column; gap: 8px; }
.accordion-item.open .accordion-body { display: flex; }
.accordion-body a { font-size: 12px; color: #ccc; }
.footer-contact { margin-top: 20px; }
.footer-contact-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; letter-spacing: .3px; }
.footer-contact-row { font-size: 13px; color: #ddd; margin: 6px 0; }
.footer-contact-row a { color: #fff; }
.site-footer .copyright { color: #999; font-size: 11px; text-align: center; margin-top: 24px; }

/* ===== WOOCOMMERCE ===== */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 0 0 8px; overflow: hidden; }
.woocommerce ul.products li.product a img { margin: 0 !important; width: 100% !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; padding: 8px 8px 0; }
.woocommerce ul.products li.product .price { padding: 0 8px; }
.woocommerce div.product { background: #fff; border-radius: 7px; padding: 10px; }
.woocommerce div.product .summary { padding: 8px; }
.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button { background: var(--accent); color: #fff; border-radius: 20px; border: 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent) !important; }

/* ===== ABOUT / QUALITY / RANKING PAGES ===== */
.quality-intro { font-size: 13px; color: #555; line-height: 1.6; margin: 0 0 10px; }
.quality-point { margin-bottom: 16px; }
.quality-point p { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: #444; line-height: 1.6; margin: 0 0 8px; }
.point-num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #111; color: #fff; font-size: 11px; font-weight: 700; margin-top: 2px; }
.quality-point img { width: 100%; border-radius: 8px; display: block; }
.ranking-section .section-title-icon { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ranking-section .section-title-icon img { width: 52px; height: 52px; object-fit: contain; background: #f5f5f5; border-radius: 8px; flex-shrink: 0; padding: 4px; }
.ranking-section .section-title-icon span { font-size: 16px; font-weight: 700; }
.ranking-row { margin-bottom: 16px; }
.ranking-row:last-child { margin-bottom: 0; }
.ranking-row p { font-size: 13px; color: #444; line-height: 1.6; margin: 0 0 8px; }
.ranking-note p { font-size: 12px; color: #888; font-style: italic; }
.ranking-row img { width: 100%; border-radius: 8px; display: block; }

/* Manual product (named products) */
.manual-product { margin-bottom: 20px; }
.manual-product:last-child { margin-bottom: 0; }
.manual-product-info { padding: 10px 2px 0; }
.manual-product-title { font-size: 14px; font-weight: 700; color: #222; line-height: 1.4; margin-bottom: 4px; }
.manual-product-price { margin-bottom: 4px; }
.manual-product-price .old-price { text-decoration: line-through; color: #999; font-size: 13px; margin-right: 6px; }
.manual-product-price .new-price { color: var(--accent); font-weight: 700; font-size: 16px; }
.manual-product-size { font-size: 12px; color: #777; margin-bottom: 4px; }
.manual-product-desc { font-size: 12px; color: #555; line-height: 1.5; }
.manual-product-video { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden; background: #000; }
.manual-product-video video { width: 100%; max-height: 520px; display: block; object-fit: cover; }

/* Add-to-home steps section */
.add-home-heading { font-style: italic; text-decoration: underline; font-size: 13px; color: #333; margin: 14px 0 6px; }
.add-home-platform { font-weight: 700; font-size: 13px; margin: 0 0 6px; }
.add-home-steps { margin: 0 0 4px; padding-left: 20px; font-size: 13px; color: #444; line-height: 1.7; }
.add-home-steps li { margin-bottom: 2px; }

/* Generic section card */
.mc-section { background: #fff; border-radius: 0; padding: 14px 12px; margin-top: 8px; }
.mc-section-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.mc-section-sub { font-size: 12px; color: #888; margin-top: 2px; font-weight: 400; }

/* VIP grid */
.vip-section { background: linear-gradient(135deg, #171717, #3a3a3a); color: #fff; padding: 14px 12px; margin-top: 8px; }
.vip-section h2 { font-size: 16px; margin: 0 0 5px; color: #fff; }
.vip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 10px; }
.vip-level { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 7px; text-align: center; }
.vip-level b { display: block; color: #ffd66b; }
.vip-level span { display: block; font-size: 11px; margin-top: 4px; }

/* Policy grid */
.policy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 4px; }
.policy { background: #fff; border-radius: 6px; padding: 10px; text-align: center; border: 1px solid var(--line); display: block; }
.policy-icon { font-size: 20px; color: var(--accent); }
.policy b { display: block; font-size: 12px; margin-top: 3px; }
.policy span { font-size: 10px; color: #888; }

/* Review grid */
.review-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.review-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.review-body { padding: 7px; }
.stars { color: #f5b400; letter-spacing: 1px; }
.review-body p { margin: 4px 0 0; font-size: 12px; color: #555; }

/* ============================= */
/* TABLET (≥ 600px)              */
/* ============================= */
@media (min-width: 600px) {
    .site-main { padding-bottom: 30px; }
    .bottom-nav { display: none; }
    .brand { text-align: left; }
    .header-inner { height: 60px; }
    /* Show nav links in header on tablet+ */
    .mobile-menu { display: block !important; padding: 0; }
    .mobile-menu nav { display: flex; gap: 18px; max-width: 1200px; margin: auto; padding: 0 12px; }
    .mobile-menu a { border: 0; padding: 10px 0; font-size: 13px; }
    .mc-products-grid { grid-template-columns: repeat(3, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
    .mc-cat-item { min-width: 80px; }
    .mc-cat-item img { width: 58px; height: 58px; }
    .mc-cat-item span { font-size: 12px; }
    .mc-trust-item { font-size: 14px; padding: 12px 16px; }
    .review-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================= */
/* DESKTOP (≥ 960px)             */
/* ============================= */
@media (min-width: 960px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 0 24px; }
    .mc-products-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 12px !important; }
    .mc-cat-item { min-width: 90px; }
    .mc-products-section { padding: 16px 24px; }
    .mc-section { padding: 18px 24px; }
    .mc-section-title { font-size: 18px; }
    .review-grid { grid-template-columns: repeat(4, 1fr); }
    .mc-two-banner img { }
    /* Hero image: wider landscape ratio on desktop */
    .mc-hero-slide img { aspect-ratio: 16/6; object-fit: cover; }
    /* Trust row bigger */
    .mc-trust-item { padding: 14px 24px; font-size: 15px; }
}

@media (min-width: 1200px) {
    .mc-products-grid { grid-template-columns: repeat(5, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(5, minmax(0,1fr)) !important; }
}

.mc-cats {
    background: #f0f0f0 !important;
    padding: 12px 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}
.mc-cats::-webkit-scrollbar { display: none !important; }
.mc-cats-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 8px !important;
    width: max-content !important;
}
.mc-cat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 6px !important;
    min-width: unset !important;
    width: 75px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    height: auto !important;
}
.mc-cat-item img {

    object-fit: cover !important;
    background: #fff !important;
    padding: 0 !important;
}
.mc-cat-item span {
    display: none !important;
}

.mc-cat-item img { width: 100%!important; height: 100%!important; }


.mc-quickview-btn {
    background: rgba(30,30,30,0.85) !important;
    width: 36px !important;
    height: 36px !important;
    bottom: 10px !important;
    right: 10px !important;
}
.mc-quickview-btn svg {
    stroke: #fff !important;
    width: 22px !important;
    height: 22px !important;
}
.mc-quickview-btn:hover {
    background: rgba(0,0,0,1) !important;
}

.mc-two-banner img {
    width: 100%;
    display: block;
    height: 100%!important;
    object-fit: cover;
    border-radius: 6px;
}

.woocommerce ul.products::before{
    display: none!important
}
@media screen and (min-width:999px){

.mc-two-banner img {
    width: 100%;
    display: block;
    height: 100%!important;
    object-fit: cover;
    border-radius: 6px;
}

.mc-cat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 6px !important;
    min-width: 24% !important;
        height: 100% !important;
    width: 20% !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
}

.mc-cats-inner {
        width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 8px !important;
    width: max-content !important;
}

}
.mc-cats-inner {

    background: #fff !important;
}