/* ============================================
   AAA Replica Watches - 1:1 Flatsome Clone
   Source: aaawatches.cc (Flatsome theme)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700&display=swap');

:root {
    --aaa-primary: #1e73be;
    --aaa-nav-bg: #1e73be;
    --aaa-nav-hover: #dd3333;
    --aaa-text: #333333;
    --aaa-text-muted: #666666;
    --aaa-footer-bg: #777777;
    --aaa-footer-bottom-bg: #4c4c4c;
    --aaa-topbar-bg: #333333;
    --aaa-logo-red: #cc0000;
    --aaa-sale-badge: #D37353;
}

/* Reset & Base */
.aaa-body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--aaa-text);
    background: #fff;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* 手机端 */
@media (max-width: 768px) {
    .aaa-body {
        background: #fff;
    }
    .aaa-main {
        background: #fff;
        margin: 0;
        padding-top: 16px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .aaa-category-section:first-child .aaa-brand-banner {
        margin-top: 0;
        padding-top: 12px;
    }
}


/* Top Bar - 已取消，不再显示 */
.aaa-top-bar {
    display: none;
}

.aaa-top-bar-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.aaa-top-bar-inner {
    justify-content: space-between;
}

.aaa-top-bar-inner > a:first-child {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.aaa-top-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.aaa-top-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.aaa-top-links a:hover {
    opacity: 1;
}

/* 隐藏右上角购物车标志 */
.aaa-top-links a:last-child,
.mobile-nav .cart-item,
.aaa-header-right .aaa-cart-link {
    display: none !important;
}

/* Main Header - 白色背景，logo + 搜索 + 登录 + 购物车 */
.aaa-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
}

.aaa-header-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aaa-logo {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
}

.aaa-logo:hover {
    color: var(--aaa-primary);
}

/* 移动端 Logo：时钟图标 + AAA红 + Watch wholesaler 黑 */
.aaa-logo-wrap {
    display: none;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #000;
}
.aaa-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.aaa-logo-icon svg {
    width: 100%;
    height: 100%;
}
.aaa-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.aaa-logo-red {
    color: var(--aaa-logo-red);
}

/* 主导航区：搜索+登录+购物车 */
.aaa-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aaa-header-search {
    display: flex;
    align-items: center;
}

.aaa-header-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 13px;
    width: 180px;
    font-family: inherit;
}

.aaa-header-search button {
    padding: 8px 12px;
    background: var(--aaa-topbar-bg);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.aaa-header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.aaa-header-right a {
    color: var(--aaa-text);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.aaa-header-right a:hover {
    color: var(--aaa-primary);
}

.aaa-cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 15px;
    border-left: 1px solid #e5e5e5;
}

.aaa-cart-count-num {
    background: var(--aaa-primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.aaa-cart-mobile {
    display: none; /* 仅移动端显示 */
}

/* 购物车图标 - 源站结构 mobile-nav */
.mobile-nav.nav.nav-right {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 商品列表页 Header - 汉堡左 | Logo居中 | 购物车右 */
.aaa-header-product-list .aaa-header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    align-items: center;
    justify-items: center;
}
.aaa-header-product-list .aaa-mobile-toggle {
    justify-self: start;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.aaa-header-product-list .aaa-mobile-toggle .aaa-ham {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}
.aaa-header-product-list .aaa-logo-wrap {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
}
.aaa-header-product-list .aaa-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.aaa-header-product-list .aaa-logo-icon svg {
    width: 100%;
    height: 100%;
}
.aaa-header-product-list .aaa-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.aaa-header-product-list .aaa-header-cart-icon {
    justify-self: end;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #334e6f;
    text-decoration: none;
}
.aaa-header-product-list .aaa-header-cart-icon .aaa-cart-icon {
    width: 28px;
    height: 28px;
}
.aaa-header-product-list .aaa-header-cart-icon .aaa-cart-count-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-20%, -60%);
    font-size: 12px;
    font-weight: 600;
    color: #334e6f;
}

/* 分类面包屑 - 居中展示 */
.aaa-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 16px;
}
.aaa-breadcrumb-inner {
    max-width: 1170px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.aaa-breadcrumb-home {
    color: #9ca3af;
    text-decoration: none;
}
.aaa-breadcrumb-home:hover {
    color: #6b7280;
}
.aaa-breadcrumb-sep {
    color: #9ca3af;
    margin: 0 6px;
}
.aaa-breadcrumb-current {
    color: #111827;
    font-weight: 700;
}

/* Header notice - Cash on Delivery */
.aaa-header-notice {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 15px;
    text-align: center;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.aaa-header-notice strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}
.aaa-header-notice span {
    display: block;
    max-width: 640px;
    margin: 0 auto;
}

/* 蓝色导航栏 - 源站 header-bottom */
.aaa-nav-bar {
    background: var(--aaa-nav-bg);
    min-height: 55px;
}

.aaa-nav-bar-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.aaa-nav-bar .aaa-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aaa-nav-bar .aaa-nav-links a {
    color: #fff !important;
    padding: 18px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aaa-nav-bar .aaa-nav-links a:hover {
    color: var(--aaa-nav-hover) !important;
}

/* Main Content */
.aaa-main {
    max-width: 1170px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* 移除自定义 Banner - 源站直接显示产品 */
.aaa-banner {
    display: none;
}

/* Category Section */
.aaa-category-section {
    margin-bottom: 40px;
}

.aaa-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    font-family: 'Lato', sans-serif;
}

/* Product Grid - WooCommerce columns-4 */
.aaa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .aaa-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .aaa-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Product List Wrap - 商品列表 + 分页 */
.aaa-product-list-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding: 24px 15px 40px;
}

/* Pagination - 圆形按钮分页 */
.aaa-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.aaa-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #1e73be;
    background: #fff;
    border: 1px solid #d1d5db;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.aaa-pagination-btn:hover {
    border-color: #1e73be;
    color: #1e73be;
}

.aaa-pagination-btn.aaa-pagination-active {
    background: #334e6f;
    color: #fff;
    border-color: #334e6f;
}

.aaa-pagination-btn.aaa-pagination-active:hover {
    background: #2a4059;
    color: #fff;
    border-color: #2a4059;
}

.aaa-pagination-btn.aaa-pagination-ellipsis {
    cursor: default;
    color: #9ca3af;
    border-color: #e5e7eb;
}

.aaa-pagination-btn.aaa-pagination-ellipsis:hover {
    border-color: #e5e7eb;
    color: #9ca3af;
}

.aaa-pagination-btn.aaa-pagination-prev,
.aaa-pagination-btn.aaa-pagination-next {
    font-size: 18px;
    font-weight: 600;
    background: #334e6f;
    color: #fff;
    border-color: #334e6f;
}

.aaa-pagination-btn.aaa-pagination-prev:hover,
.aaa-pagination-btn.aaa-pagination-next:hover {
    background: #2a4059;
    color: #fff;
    border-color: #2a4059;
}

/* Product Card - Flatsome product-small */
.aaa-product-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.aaa-product-card:hover {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.aaa-product-card a {
    text-decoration: none;
    color: inherit;
}

.aaa-product-image-wrap {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.aaa-product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.aaa-product-card:hover .aaa-product-image-wrap img {
    transform: scale(1.05);
}

/* Sale Badge - 红橙色圆形 */
.aaa-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aaa-sale-badge);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    z-index: 2;
}

/* Quick View - 源站有，悬浮显示 */
.aaa-quick-view {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.aaa-product-card:hover .aaa-quick-view {
    opacity: 1;
}

.aaa-quick-view:hover {
    background: #000;
}

/* Product Info - box-text-products */
.aaa-product-info {
    padding: 15px 0 0 0;
}

.aaa-product-category {
    font-size: 11px;
    color: var(--aaa-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    opacity: 0.7;
}

.aaa-product-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--aaa-text);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aaa-product-title:hover {
    color: var(--aaa-primary);
}

/* 列表/首页卡片：COD + 手续费（与目标稿一致） */
.aaa-product-cod-block {
    margin-top: 4px;
}
.aaa-product-cod-line {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    line-height: 1.35;
    letter-spacing: -0.02em;
}
.aaa-product-handling-fee {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    line-height: 1.3;
}

/* Price - WooCommerce del + ins */
.aaa-product-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aaa-product-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.aaa-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* 产品卡片：价格行 + USD 按钮 + 加购 (+) 按钮 */
.aaa-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.aaa-product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.aaa-currency-btn {
    background: var(--aaa-logo-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.aaa-add-cart-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: #bbb;
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.aaa-add-cart-btn:hover {
    background: #999;
}

/* 品牌区：上下灰线 + 居中大标题 */
.aaa-brand-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px 0;
}
.aaa-brand-line {
    flex: 1;
    height: 1px;
    background: #ddd;
}
.aaa-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0;
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Footer - 源站深色页脚 */
.aaa-footer {
    background: var(--aaa-footer-bg);
    color: rgba(255,255,255,0.9);
    padding: 40px 15px 30px;
    margin-top: 50px;
}

.aaa-footer-inner {
    max-width: 1170px;
    margin: 0 auto;
}

/* LUXURY WATCHES TOP QUALITY */
.aaa-footer-top {
    margin-bottom: 36px;
}
.aaa-footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.aaa-footer-heading-line {
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.aaa-footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 600px;
}

/* 三列网格：NEW WATCHES | COMPANY INFO | MY ACCOUNT */
.aaa-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.aaa-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.aaa-footer-title-line {
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.aaa-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aaa-footer-links li {
    margin-bottom: 10px;
}
.aaa-footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
}
.aaa-footer-links a:hover {
    color: #fff;
}

/* NEW WATCHES 产品列表 */
.aaa-footer-product-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.aaa-footer-product-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    color: inherit;
}
.aaa-footer-product-item:last-child {
    border-bottom: none;
}
.aaa-footer-product-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
}
.aaa-footer-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aaa-footer-product-info {
    flex: 1;
    min-width: 0;
}
.aaa-footer-product-name {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aaa-footer-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}
.aaa-footer-cod-line {
    font-weight: 700;
    color: rgba(255,255,255,0.92);
}
.aaa-footer-handling-fee {
    font-size: 11px;
    font-weight: 500;
    color: #60a5fa;
}
.aaa-footer-price-old {
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    margin-right: 6px;
}
.aaa-footer-price-now {
    color: #5cb85c;
    font-weight: 600;
}
.aaa-footer-loading,
.aaa-footer-empty {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    padding: 10px 0;
}

/* 支付方式 + 版权 */
.aaa-footer-bottom {
    background: var(--aaa-footer-bottom-bg);
    padding-top: 16px;
    padding-bottom: 8px;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: -30px;
    padding-left: 15px;
    padding-right: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.aaa-payment-icons,
.payment-icons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
}
.aaa-payment-icon,
.payment-icon {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    padding: 6px 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-icon svg {
    width: 100%;
    max-width: 48px;
    height: 20px;
    display: block;
    fill: currentColor;
}
.payment-icon {
    color: rgba(255,255,255,0.9);
}
.aaa-copyright {
    font-size: 18px;
    color: #B0B0B0;
    margin: 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.5;
}
.aaa-copyright-symbol {
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Mobile menu toggle - 桌面端隐藏 */
.aaa-mobile-toggle {
    display: none;
}

/* 桌面端隐藏移动端抽屉 */
@media (min-width: 769px) {
    .aaa-mobile-nav {
        display: none !important;
    }
}

/* 移动端侧边菜单 - 抽屉式 */
.aaa-mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.aaa-mobile-nav.aaa-mobile-nav-open {
    pointer-events: auto;
    visibility: visible;
}

.aaa-mobile-nav.aaa-mobile-nav-open::before {
    opacity: 1;
}

.aaa-mobile-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aaa-mobile-nav-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 270px;
    max-width: 76.5%;
    height: 100%;
    background: #fafafa;
    padding: 16px 12px 20px 12px;
    text-align: left;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aaa-mobile-nav.aaa-mobile-nav-open .aaa-mobile-nav-inner {
    transform: translateX(0);
}

.aaa-mobile-nav-header {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.aaa-mobile-close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
}

.aaa-mobile-close:hover {
    color: rgba(255,255,255,0.9);
}

.aaa-mobile-nav-header .aaa-mobile-search {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    text-align: left;
    border: none;
    box-sizing: border-box;
}

.aaa-mobile-nav-inner .aaa-mobile-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 0;
    font-size: 15px;
    background: #fff;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
    text-align: left;
}

.aaa-mobile-search-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    background: #D2691E;
    color: #fff;
    border: 1px solid #D2691E;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aaa-mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.aaa-mobile-nav-links a {
    display: block;
    padding: 20px 20px 20px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.aaa-mobile-nav-links a:hover {
    background: #f0f0f0;
    color: var(--aaa-nav-bg);
}

.aaa-mobile-nav-newsletter {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.aaa-mobile-nav-newsletter .aaa-nav-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.aaa-mobile-nav-social {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 20px 20px 20px 0;
    margin-left: -12px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.aaa-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.aaa-social-icon:hover {
    color: #333;
}

.aaa-social-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Mobile First - 手机端优先样式
   ============================================ */

/* 默认按手机端布局，769px+ 才显示桌面样式 */
@media (max-width: 768px) {
    .aaa-top-bar {
        display: none;
    }

    .aaa-header {
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

    .aaa-header-inner {
        position: relative;
        padding: 12px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        min-height: 52px;
        align-items: center;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        gap: 8px;
    }

    .aaa-mobile-toggle {
        grid-column: 1;
        justify-self: start;
        background: transparent !important;
        color: #000 !important;
    }

    .aaa-logo-wrap {
        display: flex !important;
        grid-column: 2;
        justify-self: center;
    }

    .aaa-logo-desktop {
        display: none !important;
    }

    .aaa-nav {
        position: absolute;
        right: max(16px, env(safe-area-inset-right));
        left: calc(58% + 24.9%);
        top: calc(50% - 1%);
        transform: translateY(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .aaa-logo {
        font-size: 17px;
        font-weight: 700;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .aaa-nav {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .aaa-header-search {
        display: none;
    }

    .aaa-header-right {
        display: none;
    }

    .mobile-nav.nav.nav-right {
        display: flex !important;
        align-items: center;
    }
    .cart-item.has-icon {
        list-style: none;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        margin-top: -6px;
    }
    .header-cart-link.off-canvas-toggle.nav-top-link.is-small {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        min-width: 40px;
        padding: 4px;
        color: #333;
        text-decoration: none;
        font-size: 0.8em;
    }
    .header-cart-link .cart-icon.image-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
    }
    .header-cart-link .aaa-cart-icon {
        width: 38px;
        height: 38px;
        position: absolute;
        top: 0;
        left: 0;
        color: #334e6f;
        stroke-width: 1.25;
    }
    .header-cart-link .aaa-cart-count-num {
        position: absolute;
        top: 68%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 12px;
        font-weight: 300;
        color: #334e6f;
        line-height: 1;
        background: none;
        padding: 0;
        border-radius: 0;
    }

    .aaa-mobile-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: #000;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .aaa-ham {
        display: block;
        width: 20px;
        height: 2px;
        background: #000;
        border-radius: 1px;
    }

    .aaa-nav-bar {
        display: none;
    }

    .aaa-cart-link {
        padding-left: 0;
        border-left: none;
    }

    .aaa-main {
        padding: 16px 12px 24px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .aaa-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .aaa-product-card {
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #eee;
    }

    .aaa-product-image-wrap {
        padding-top: 100%;
    }

    .aaa-product-info {
        padding: 10px 8px 12px;
    }

    .aaa-product-category {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .aaa-product-title {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }

    .aaa-product-cod-line {
        font-size: 13px;
    }
    .aaa-product-handling-fee {
        font-size: 12px;
        margin-top: 3px;
    }

    .aaa-product-price-wrap {
        gap: 6px;
    }

    .aaa-product-price {
        font-size: 15px;
    }

    .aaa-product-price-old {
        font-size: 11px;
    }

    .aaa-sale-badge {
        top: 8px;
        left: 8px;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .aaa-quick-view {
        display: none;
    }

    .aaa-category-section {
        margin-bottom: 24px;
    }

    .aaa-category-title {
        font-size: 17px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .aaa-footer {
        padding: 30px 16px 24px;
        margin-top: 30px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .aaa-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .aaa-footer-top {
        margin-bottom: 24px;
    }
    .aaa-footer-heading {
        font-size: 15px;
    }
    .aaa-footer-desc {
        font-size: 14px;
    }

    .aaa-footer-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .aaa-footer-links a {
        font-size: 14px;
    }

    .aaa-footer-product-item {
        padding: 12px 0;
    }
    .aaa-footer-product-img {
        width: 56px;
        height: 56px;
    }
    .aaa-footer-product-name {
        font-size: 12px;
    }
    .aaa-footer-price-now {
        font-size: 13px;
    }

    .aaa-payment-icons {
        gap: 4px;
        margin-top: 6px;
        margin-bottom: 6px;
    }
    .aaa-payment-icon {
        font-size: 10px;
    }

    .aaa-copyright {
        padding-top: 4px;
        font-size: 18px;
    }
}

/* 移动端侧边菜单 - 增强 */
@media (max-width: 768px) {
    .aaa-mobile-nav {
        padding-top: env(safe-area-inset-top);
    }

    .aaa-mobile-nav-inner {
        width: min(270px, 76.5vw);
        padding: max(16px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom)) 12px;
    }

    .aaa-mobile-nav-header .aaa-mobile-search input {
        padding: 12px 16px;
        font-size: 16px;
        height: 44px;
    }

    .aaa-mobile-nav-links a {
        padding: 22px 20px 22px 12px;
        font-size: 15px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
    }

    .aaa-mobile-close {
        width: 44px;
        height: 44px;
        font-size: 22px;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 小屏手机 (≤375px) */
@media (max-width: 375px) {
    .aaa-header-inner {
        padding: 10px 12px;
    }

    .aaa-logo {
        font-size: 15px;
        max-width: 120px;
    }

    .aaa-main {
        padding: 12px 10px 20px;
    }

    .aaa-products-grid {
        gap: 8px;
    }

    .aaa-product-info {
        padding: 8px 6px 10px;
    }

    .aaa-product-title {
        font-size: 11px;
    }

    .aaa-product-price {
        font-size: 14px;
    }

    .aaa-product-price-old {
        font-size: 10px;
    }

    .aaa-sale-badge {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .aaa-quick-view {
        font-size: 10px;
        padding: 8px 12px;
    }
}

/* 购物车抽屉 - 手机端优化 */
@media (max-width: 768px) {
    .cart-drawer-content {
        max-width: 100% !important;
        padding-right: env(safe-area-inset-right);
    }

    .cart-drawer-header,
    .cart-drawer-footer {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .cart-drawer-body .cart-item-image {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px;
    }

    .cart-drawer-body .cart-item {
        padding: 14px 16px !important;
    }
}
