/* ============================================================
   ArkPaw — Shared Stylesheet
   Design system: navy #2c3e50 + warm orange #e67e22
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #e67e22;
    --accent-dark: #d35400;
    --accent-soft: #fff5ed;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --success: #27ae60;
    --danger: #e74c3c;
    --text: #2c3e50;
    --muted: #95a5a6;
    --footer-text: #bdc3c7;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
    color: var(--text);
    line-height: 1.6;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #fff;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }

.btn-block { display: block; width: 100%; }

.btn-outline {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------------- Announcement bar ---------------- */
.site-notice {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px 8%;
    font-size: 14px;
    font-weight: 500;
}

/* ---------------- Navbar ---------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 200;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}
.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.cart-link { position: relative; }
.cart-badge {
    display: none;
    position: absolute;
    top: -8px; right: -12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}
.cart-badge.show { display: inline-block; }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--primary); }

/* desktop dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { font-size: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:hover { background: var(--light); color: var(--accent); }
.nav-dropdown-menu a.active { color: var(--accent); }
.nav-dropdown-menu a.active::after { display: none; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: 90px 8%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    overflow: hidden;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-text h1 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--primary);
}
.hero-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Features strip ---------------- */
.features {
    padding: 60px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    background: #fff;
}
.feature-item { text-align: center; padding: 20px; }
.feature-icon { font-size: 34px; margin-bottom: 12px; }
.feature-item h3 { margin-bottom: 8px; font-size: 17px; color: var(--primary); }
.feature-item p { color: var(--gray); font-size: 14px; }

/* ---------------- Section titles ---------------- */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 14px;
    color: var(--primary);
}
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 50px; }

/* ---------------- Product grid & cards ---------------- */
.products-section { padding: 60px 8%; background: var(--light); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img {
    width: 100%;
    height: 260px;
    background: var(--light);
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-info { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.product-desc { color: var(--gray); font-size: 13px; margin-bottom: 14px; line-height: 1.5; flex: 1; }
.product-price { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.product-card .btn { width: 100%; }

/* ---------------- Best Sellers (homepage carousel) ---------------- */
.bestseller-section {
    padding: 30px 8%;
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--light) 100%);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}
.bestseller-head { text-align: center; margin-bottom: 40px; }
.bestseller-kicker {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .4px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
}
/* 轮播：单张爆款占据最大视觉焦点 */
.bs-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.bs-track {
    display: flex;
    transition: transform .55s cubic-bezier(.5,.1,.3,1);
}
.bs-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
    min-height: 540px;
}
.bs-media {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.bs-media img { max-width: 100%; max-height: 480px; object-fit: contain; }
.bs-content {
    padding: 56px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, var(--light) 100%);
    position: relative;
    text-align: left;
}
.bs-badge {
    align-self: flex-start;
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, var(--accent) 100%);
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    letter-spacing: .3px;
}
.bs-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.2;
    font-weight: 700;
}
.bs-desc {
    color: var(--gray);
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.7;
}
.bs-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
}
.bs-content .btn { align-self: flex-start; padding: 14px 32px; font-size: 16px; }

.bs-prev, .bs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--primary);
    box-shadow: var(--shadow);
    z-index: 3;
    transition: transform .2s, background .2s, color .2s;
}
.bs-prev:hover, .bs-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    color: var(--accent);
}
.bs-prev { left: 16px; }
.bs-next { right: 16px; }

.bs-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.bs-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(44,62,80,0.25);
    border: none;
    cursor: pointer;
    transition: background .25s, transform .25s, width .25s, border-radius .25s;
    padding: 0;
}
.bs-dot.active {
    background: var(--accent);
    transform: scale(1.4);
    width: 28px;
    border-radius: 6px;
}

/* 计数：当前 / 总数 */
.bs-counter {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 3;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    letter-spacing: .5px;
}
.bs-total {
    position: absolute;
    top: 18px; left: 56px;
    z-index: 3;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: .5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

@media (max-width: 820px) {
    .bs-slide { grid-template-columns: 1fr; min-height: 0; }
    .bs-media { padding: 18px; }
    .bs-media img { max-height: 260px; }
    .bs-content { padding: 28px 24px 40px; }
    .bs-title { font-size: 22px; }
    .bs-desc { font-size: 15px; margin-bottom: 18px; }
    .bs-price { font-size: 24px; margin-bottom: 18px; }
    .bs-prev, .bs-next { width: 42px; height: 42px; font-size: 22px; }
}

/* ---------------- Category header ---------------- */
.category-header { padding: 50px 8% 10px; background: #fff; text-align: center; }
.category-header h1 { font-size: 34px; margin-bottom: 10px; color: var(--primary); }
.category-header p { color: var(--gray); font-size: 16px; }
.category-tabs {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 20px 8% 0;
}
.category-tabs a {
    padding: 8px 20px; border: 1px solid var(--border); border-radius: 30px;
    text-decoration: none; color: var(--gray); font-size: 14px; transition: all 0.3s;
}
.category-tabs a:hover, .category-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.products-container { max-width: 1200px; margin: 0 auto; padding: 40px 8% 60px; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
    padding: 18px 8%;
    font-size: 14px;
    color: var(--gray);
    background: var(--light);
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------------- Product detail ---------------- */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.product-gallery .main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.thumb-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.thumb-item {
    aspect-ratio: 1 / 1;
    background: var(--light);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray); font-size: 12px; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.3s; overflow: hidden;
}
.thumb-item img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.thumb-item:hover, .thumb-item.active { border-color: var(--accent); }

.product-info h1 { font-size: 28px; margin-bottom: 10px; line-height: 1.3; color: var(--primary); }
.product-price { font-size: 36px; font-weight: 700; color: var(--accent); margin: 15px 0 25px; }
.info-block { margin-bottom: 22px; }
.info-block h4 { font-size: 15px; margin-bottom: 8px; color: var(--primary); }
.variant-select {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 15px; background: #fff; cursor: pointer;
}
.quantity-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-btn {
    width: 42px; height: 42px; border: none; background: #fff; cursor: pointer;
    font-size: 18px; color: var(--primary); transition: background 0.3s;
}
.qty-btn:hover { background: var(--light); }
.qty-input {
    width: 52px; height: 42px; border: none;
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    text-align: center; font-size: 16px; outline: none;
}
.service-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--border);
}
.service-item { font-size: 14px; color: var(--gray); display: flex; align-items: center; gap: 8px; }

.product-detail-section { max-width: 1200px; margin: 0 auto; padding: 0 8% 60px; }
.detail-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 30px; gap: 40px; flex-wrap: wrap; }
.tab-item {
    padding: 15px 0; cursor: pointer; font-weight: 500; color: var(--gray);
    border-bottom: 2px solid transparent; transition: all 0.3s;
}
.tab-item.active { color: var(--primary); border-bottom-color: var(--accent); }
.tab-content h3 { margin-bottom: 15px; font-size: 20px; color: var(--primary); }
.tab-content ul { list-style: none; margin-bottom: 20px; }
.tab-content li { padding: 6px 0 6px 24px; position: relative; color: var(--gray); }
.tab-content li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.spec-table td { padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table td:first-child { width: 32%; color: var(--gray); background: var(--light); }

/* related products */
.related-section { padding: 40px 8% 70px; background: var(--light); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }

/* ---------------- Cart ---------------- */
.page-title { max-width: 1200px; margin: 0 auto; padding: 40px 8% 10px; }
.page-title h1 { font-size: 32px; color: var(--primary); }
.cart-container {
    max-width: 1200px; margin: 0 auto; padding: 20px 8% 60px;
    display: grid; grid-template-columns: 2fr 1fr; gap: 30px;
}
.cart-items { background: #fff; border-radius: var(--radius); padding: 10px 25px; box-shadow: var(--shadow); }
.cart-item {
    display: grid; grid-template-columns: 100px 1fr auto auto; gap: 20px;
    align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.item-img { width: 100px; height: 100px; background: var(--light); border-radius: 6px; overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.item-info h4 { font-size: 16px; margin-bottom: 5px; }
.item-info h4 a { color: inherit; text-decoration: none; }
.item-info h4 a:hover { color: var(--accent); }
.item-variant { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.item-price { font-weight: 700; font-size: 18px; color: var(--accent); min-width: 80px; text-align: right; }
.remove-btn {
    background: none; border: none; color: var(--danger); cursor: pointer;
    font-size: 13px; margin-top: 8px; text-align: right; display: block; margin-left: auto;
}
.remove-btn:hover { text-decoration: underline; }
.order-summary {
    background: #fff; border-radius: var(--radius); padding: 25px;
    height: fit-content; position: sticky; top: 90px; box-shadow: var(--shadow);
}
.order-summary h3 { font-size: 20px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); color: var(--primary); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.summary-row.total { font-size: 20px; font-weight: 700; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--border); }
.summary-row.total .price { color: var(--accent); }
.shipping-note { font-size: 12px; color: var(--gray); margin: 10px 0 20px; padding: 10px; background: var(--light); border-radius: 6px; }
.empty-cart { background: #fff; border-radius: var(--radius); padding: 60px 20px; text-align: center; grid-column: 1 / -1; box-shadow: var(--shadow); }
.empty-cart h3 { font-size: 22px; margin-bottom: 10px; color: var(--primary); }
.empty-cart p { color: var(--gray); margin-bottom: 25px; }

/* ---------------- Checkout ---------------- */
.checkout-container {
    max-width: 1200px; margin: 0 auto; padding: 0 8% 60px;
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px;
}
.checkout-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-section { margin-bottom: 30px; }
.form-section h3 { font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.3s;
    font-family: inherit;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { min-height: 120px; resize: vertical; }
.payment-methods { margin: 10px 0; }
.payment-option {
    padding: 12px; border: 1px solid var(--border); border-radius: 6px;
    margin-bottom: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.payment-option:hover { border-color: var(--accent); }
.secure-note { font-size: 12px; color: var(--gray); text-align: center; margin-top: 15px; }
.order-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.checkout-success {
    max-width: 600px; margin: 60px auto; text-align: center; padding: 40px 20px;
}
.checkout-success .check-icon { font-size: 64px; color: var(--success); margin-bottom: 20px; }
.checkout-success h1 { font-size: 30px; margin-bottom: 14px; color: var(--primary); }

/* ---------------- Generic content / policy pages ---------------- */
.page-header { padding: 60px 8%; background: var(--light); text-align: center; }
.page-header h1 { font-size: 36px; margin-bottom: 10px; color: var(--primary); }
.page-header p { color: var(--gray); font-size: 18px; }
.content-container { max-width: 920px; margin: 0 auto; padding: 60px 8%; }
.content-container h2 { font-size: 24px; margin: 34px 0 14px; color: var(--primary); }
.content-container h2:first-child { margin-top: 0; }
.content-container h3 { font-size: 18px; margin: 20px 0 10px; color: var(--primary); }
.content-container p { color: var(--gray); margin-bottom: 12px; font-size: 15px; }
.content-container ul { margin-left: 20px; margin-bottom: 15px; color: var(--gray); }
.content-container li { margin-bottom: 8px; }
.last-updated { color: var(--gray); font-size: 13px; margin-bottom: 20px; font-style: italic; }
.highlight-box { padding: 20px; background: #fff8f0; border-left: 4px solid var(--accent); border-radius: 4px; margin: 20px 0; }
.highlight-box.green { background: #f0f9f4; border-left-color: var(--success); }
.highlight-box p { margin-bottom: 0; }
.shipping-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.shipping-table th, .shipping-table td { padding: 12px 15px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.shipping-table th { background: var(--light); font-weight: 600; color: var(--primary); }

/* ---------------- About page ---------------- */
.about-hero { padding: 70px 8%; background: linear-gradient(135deg, #f5f7fa, #e4e8ec); text-align: center; }
.about-hero h1 { font-size: 40px; color: var(--primary); margin-bottom: 16px; }
.about-hero p { font-size: 18px; color: var(--gray); max-width: 640px; margin: 0 auto; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; padding: 50px 8%; }
.about-stat { text-align: center; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-stat .num { font-size: 36px; font-weight: 700; color: var(--accent); }
.about-stat .label { color: var(--gray); font-size: 14px; margin-top: 6px; }
.about-values { max-width: 1000px; margin: 0 auto; padding: 0 8% 70px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.value-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.value-card h3 { color: var(--primary); margin-bottom: 10px; }
.value-card p { color: var(--gray); font-size: 14px; }

/* ---------------- Contact ---------------- */
.contact-grid { max-width: 1000px; margin: 0 auto; padding: 60px 8%; display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info h3 { font-size: 22px; margin-bottom: 20px; color: var(--primary); }
.info-item { margin-bottom: 25px; }
.info-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.info-item p { color: var(--gray); font-size: 15px; }
.contact-form { background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; padding: 50px 8% 70px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.faq-q { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-q .toggle { color: var(--accent); font-size: 20px; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; color: var(--gray); font-size: 15px; }
.faq-item.open .faq-a { padding: 0 22px 18px; max-height: 400px; }

/* ---------------- 404 ---------------- */
.error-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 80px 8%; text-align: center; }
.error-content h1 { font-size: 120px; color: var(--accent); line-height: 1; margin-bottom: 20px; }
.error-content h2 { font-size: 28px; margin-bottom: 15px; color: var(--primary); }
.error-content p { color: var(--gray); font-size: 16px; margin-bottom: 30px; max-width: 500px; }

/* ---------------- Footer ---------------- */
footer { background: var(--primary); color: #fff; padding: 50px 8% 30px; margin-top: 40px; }
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { font-size: 22px; margin-bottom: 15px; }
.footer-brand p { color: var(--footer-text); font-size: 14px; line-height: 1.7; }
.footer-column h4 { font-size: 16px; margin-bottom: 18px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: var(--footer-text); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-column a:hover { color: #fff; }
.footer-social { margin-top: 16px; display: flex; gap: 12px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.copyright { text-align: center; color: var(--muted); font-size: 13px; padding-top: 30px; border-top: 1px solid #34495e; }

/* ---------------- Subscribe popup ---------------- */
.subscribe-popup {
    position: fixed; bottom: 30px; left: 30px; background: #fff;
    padding: 26px; border-radius: 12px; box-shadow: var(--shadow-lg);
    max-width: 320px; z-index: 999; display: none;
}
.subscribe-popup h4 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.subscribe-popup p { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.subscribe-popup input {
    width: 100%; padding: 10px; border: 1px solid var(--border);
    border-radius: 6px; margin-bottom: 10px; font-size: 14px; outline: none;
}
.subscribe-popup input:focus { border-color: var(--accent); }
.subscribe-popup button.sub-btn {
    width: 100%; padding: 10px; background: var(--accent); color: #fff;
    border: none; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.subscribe-popup button.sub-btn:hover { background: var(--accent-dark); }
.subscribe-close {
    position: absolute; top: 10px; right: 12px; background: none; border: none;
    font-size: 18px; cursor: pointer; color: var(--gray); width: auto; padding: 0;
}

/* ---------------- Toast ---------------- */
.toast {
    position: fixed; bottom: 30px; right: 30px; background: var(--primary);
    color: #fff; padding: 14px 22px; border-radius: 8px; box-shadow: var(--shadow-lg);
    font-size: 14px; z-index: 1000; opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .nav-menu.open {
        display: flex; flex-direction: column; gap: 16px;
        position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; padding: 20px 8%; border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: block; }
    /* mobile dropdown: inline, no absolute, no hover */
    .nav-dropdown { width: 100%; }
    .nav-dropdown > a { justify-content: space-between; width: 100%; }
    .nav-dropdown-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
        min-width: 0;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a { padding: 8px 0; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 32px; }
    .hero-image { order: -1; }
    .product-container { grid-template-columns: 1fr; gap: 40px; }
    .cart-container { grid-template-columns: 1fr; }
    .checkout-container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .order-summary { position: static; }
    .service-list { grid-template-columns: 1fr; }
    .section-title { font-size: 26px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
    .error-content h1 { font-size: 80px; }
}
@media (max-width: 560px) {
    .cart-item { grid-template-columns: 70px 1fr; gap: 14px; }
    .cart-item .quantity-control, .cart-item .item-price { grid-column: 2; }
    .item-price { text-align: left; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .product-info h1 { font-size: 24px; }
    .product-price { font-size: 30px; }
}

/* ---------- Email verification at checkout ---------- */
.email-verify { margin-top: 10px; }
.verify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.code-input { flex: 1 1 120px; min-width: 110px; letter-spacing: 3px; text-align: center; }
.btn-verify {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
}
.btn-verify:hover:not(:disabled) { background: var(--accent); }
.btn-verify:disabled { opacity: .45; cursor: not-allowed; }
.email-status { display: block; margin-top: 8px; font-size: 13px; min-height: 18px; }
.email-status.ok { color: var(--success); }
.email-status.err { color: var(--danger); }
.email-status.info { color: var(--gray); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
