/* ==========================================================================
   EXPORT IMPORT STORE - DESIGN SYSTEM & STYLESHEET
   Concept: commongoods.id (Dual Theme: Colorful & Monochrome)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Syne:wght@700;800&display=swap');

:root {
    /* Base Variables */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syne', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --container: 1240px;
}

/* ==========================================================================
   THEME PALETTES
   ========================================================================== */

/* 1. COLORFUL THEME (Vibrant, Energetic, Playful) */
[data-theme="colorful"] {
    --bg-primary: #faf9f6;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: #fff7ed;
    --accent-secondary: #06b6d4;
    --border: #e5e7eb;
    --border-focus: #f97316;
    --header-bg: rgba(255, 255, 255, 0.95);
    --brand-toggle-active: #f97316;
    --brand-toggle-text: #ffffff;
    --tag-bg: #fee2e2;
    --tag-text: #ef4444;
    --hero-gradient: linear-gradient(135deg, #fff1eb 0%, #ace0f9 100%);
    --badge-colorful: #ffefe5;
    --badge-colorful-text: #ea580c;
}

/* 2. MONOCHROME THEME (High-Fashion, Minimalist, Streetwear Black & White) */
[data-theme="monochrome"] {
    --bg-primary: #0f0f11;
    --bg-secondary: #18181b;
    --bg-card: #1c1c20;
    --bg-surface: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #ffffff;
    --accent-hover: #e4e4e7;
    --accent-light: rgba(255, 255, 255, 0.1);
    --accent-secondary: #a1a1aa;
    --border: #27272a;
    --border-focus: #ffffff;
    --header-bg: rgba(15, 15, 17, 0.92);
    --brand-toggle-active: #ffffff;
    --brand-toggle-text: #000000;
    --tag-bg: #27272a;
    --tag-text: #ffffff;
    --hero-gradient: linear-gradient(135deg, #18181b 0%, #000000 100%);
    --badge-colorful: #27272a;
    --badge-colorful-text: #fafafa;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   TOP-LEFT BRAND TAB BAR (Exact commongoods layout structure)
   ========================================================================== */
.brand-top-bar {
    background: #ffffff;
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: stretch;
    height: 40px;
    position: relative;
    z-index: 101;
}

[data-theme="monochrome"] .brand-top-bar {
    background: #121214;
    border-bottom: 1px solid #27272a;
}

.brand-tabs-list {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
}

.brand-tab-btn {
    height: 100%;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000;
    background: #ffffff;
    border: none;
    border-right: 1px solid #000000;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

[data-theme="monochrome"] .brand-tab-btn {
    background: #18181b;
    color: #a1a1aa;
    border-right: 1px solid #27272a;
}

.brand-tab-btn:hover {
    background: #f4f4f5;
    color: #000000;
}

[data-theme="monochrome"] .brand-tab-btn:hover {
    background: #27272a;
    color: #ffffff;
}

.brand-tab-btn.active {
    background: #000000 !important;
    color: #ffffff !important;
}

[data-theme="monochrome"] .brand-tab-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
}

.announcement-bar {
    background: #000000;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 8px 15px;
    text-transform: uppercase;
    border-bottom: 1px solid #27272a;
}

/* ==========================================================================
   MAIN HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.site-logo span.accent {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--bg-surface);
}

.badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

[data-theme="monochrome"] .badge-count {
    background: #ffffff;
    color: #000000;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 70px 0 80px;
    background: var(--hero-gradient);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    height: 480px;
    border: 1px solid var(--border);
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

[data-theme="monochrome"] .btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

[data-theme="monochrome"] .btn-primary:hover {
    background: #e4e4e7;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==========================================================================
   VALUE PROPOSITION / FEATURES
   ========================================================================== */
.features-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

[data-theme="monochrome"] .feature-icon {
    color: #ffffff;
}

.feature-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

.product-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 aspect ratio */
    background: var(--bg-surface);
    overflow: hidden;
}

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

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

.product-badge-group {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-tag {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: #ef4444;
    color: #ffffff;
}

.badge-brand-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.product-quick-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.price-active {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-strike {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--accent);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-price-box .price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.option-group {
    margin-bottom: 24px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.size-chart-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

.size-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 48px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

.size-btn:hover {
    border-color: var(--text-primary);
}

.size-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 50px;
    height: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

/* ==========================================================================
   CART SLIDE-OVER DRAWER
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.drawer-item-img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.drawer-item-info {
    flex-grow: 1;
}

.drawer-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.drawer-item-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.drawer-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    padding: 40px 0 80px;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.checkout-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.courier-option, .payment-option {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.courier-option:hover, .payment-option:hover {
    border-color: var(--text-primary);
}

.courier-option.selected, .payment-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

[data-theme="monochrome"] .courier-option.selected, 
[data-theme="monochrome"] .payment-option.selected {
    border-color: #ffffff;
    background: #27272a;
}

/* ==========================================================================
   SHOPEE-STYLE ORDER TRACKING PAGE
   ========================================================================== */
.tracking-hero {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.tracking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

/* Visual Progress Stepper */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0 50px;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--border);
    z-index: 1;
}

.stepper-progress-bar {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 4px;
    background: #10b981;
    z-index: 2;
    transition: width 0.6s ease;
}

.step-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.step-node.completed .step-icon {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.step-node.active .step-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.2);
    animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.step-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.step-node.completed .step-label, .step-node.active .step-label {
    color: var(--text-primary);
}

/* Timeline Log */
.timeline-list {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 9px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item.latest .timeline-dot {
    border-color: #10b981;
    background: #10b981;
}

.timeline-item.latest .timeline-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.timeline-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.timeline-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #111827;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   COLLECTION SHOWCASE CARDS
   ========================================================================== */
.collection-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.collection-card {
    display: block;
    border-radius: 20px;
    padding: 28px 24px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.collection-card--colorful {
    background: linear-gradient(145deg, #fff1eb 0%, #c8eefe 100%);
    color: #111827;
    border-color: #e2e8f0;
}
.collection-card--mono {
    background: #18181b;
    color: #fafafa;
    border-color: #27272a;
}

.collection-card__badge {
    display: inline-block;
    background: #f97316;
    color: #fff;
    padding: 3px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.collection-card__badge--mono {
    background: #ffffff;
    color: #000000;
}

.collection-card__icon {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1;
}

.collection-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: #111827;
}

.collection-card__desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 20px;
}

.collection-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(0,0,0,0.1);
    border: 1.5px solid rgba(0,0,0,0.15);
    color: #111827;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.collection-card--colorful:hover .collection-card__cta {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}
.collection-card--mono:hover .collection-card__cta {
    background: #ffffff;
    color: #000000;
}

/* ==========================================================================
   LOGO WRAP
   ========================================================================== */
.logo-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
}
.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET NAVIGATION (App Style)
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.mobile-menu-btn:hover {
    background: var(--bg-surface);
}

/* Overlay */
.mob-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mob-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Bottom Sheet */
.mob-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 82vh;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    z-index: 1250;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding-bottom: 24px;
}
.mob-sheet.open {
    transform: translateY(0);
}

/* Handle bar */
.mob-sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    cursor: pointer;
}
.mob-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
}

/* Brand chips row */
.mob-brand-row {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.mob-brand-chip {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-surface);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.mob-brand-chip.is-active,
.mob-brand-chip:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Nav grid (2x4 icon grid like Shopee) */
.mob-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px 12px;
}
.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    letter-spacing: 0.1px;
}
.mob-nav-item:hover,
.mob-nav-item.is-active {
    color: var(--accent);
    background: var(--bg-surface);
}
.mob-nav-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.mob-nav-item.is-active .mob-nav-icon,
.mob-nav-item:hover .mob-nav-icon {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}
[data-theme="monochrome"] .mob-nav-item.is-active .mob-nav-icon,
[data-theme="monochrome"] .mob-nav-item:hover .mob-nav-icon {
    background: #ffffff;
    color: #000000;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE VIEWPORT FIXES
   ========================================================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-wrapper { display: none; }
}

@media (max-width: 768px) {
    /* Prevent any horizontal overflow scroll on mobile */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }

    .container {
        padding: 0 14px;
    }

    /* Top Brand Tabs */
    .brand-top-bar {
        width: 100%;
        height: 38px;
    }
    .brand-tabs-list {
        width: 100%;
        display: flex;
    }
    .brand-tab-btn {
        flex: 1;
        padding: 0 4px;
        font-size: 0.68rem;
        letter-spacing: 0.3px;
        text-align: center;
        white-space: nowrap;
    }

    /* Announcement Bar */
    .announcement-bar {
        font-size: 0.68rem;
        padding: 6px 8px;
        line-height: 1.3;
    }

    /* Header */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .site-nav {
        display: none;
    }
    .header-inner {
        height: 58px;
    }
    .desktop-only {
        display: none !important;
    }
    .site-logo {
        font-size: 1.15rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 28px 0 36px;
    }
    .hero-title {
        font-size: 1.95rem;
        line-height: 1.15;
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-cta-group .btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .feature-item {
        gap: 10px;
    }
    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .feature-text h4 {
        font-size: 0.82rem;
    }
    .feature-text p {
        font-size: 0.72rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-info {
        padding: 12px;
    }
    .product-brand-label {
        font-size: 0.68rem;
    }
    .product-name {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    .price-active {
        font-size: 0.95rem;
    }
    .price-strike {
        font-size: 0.75rem;
    }
    .product-quick-actions {
        opacity: 1;
        transform: translateY(0);
        position: static;
        margin-top: 8px;
    }
    .product-quick-actions .btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        width: 100%;
    }
    .product-meta-row {
        font-size: 0.7rem;
        padding-top: 6px;
        margin-top: 6px;
    }

    /* Showcase Cards */
    .section-title {
        font-size: 1.5rem;
    }
    .section {
        padding: 36px 0;
    }

    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 0;
    }
    .gallery-main img {
        height: 380px;
    }
    .detail-title {
        font-size: 1.5rem;
    }
    .detail-price-box .price-current {
        font-size: 1.4rem;
    }

    /* Header logo: shrink to save space on mobile */
    .logo-main {
        font-size: 1.1rem;
    }
    .header-actions {
        gap: 8px;
    }
    .action-btn {
        padding: 6px;
        font-size: 1rem;
    }

    /* Collection cards: stack to 1 column on mobile */
    .collection-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .collection-card {
        padding: 22px 18px;
    }
    .collection-card__title {
        font-size: 1.8rem;
    }
    .collection-card__icon {
        font-size: 1.6rem;
    }
    .collection-card__desc {
        font-size: 0.83rem;
    }
    .collection-card__cta {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    /* Checkout & Cart */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 0 40px;
    }
    .checkout-card {
        padding: 18px;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Shopee Stepper */
    .stepper-wrapper {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 16px;
        gap: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        width: 100%;
    }
    .stepper-wrapper::before, .stepper-progress-bar {
        display: none;
    }
    .step-node {
        flex: 0 0 85px;
        scroll-snap-align: start;
        width: 85px;
    }
    .step-icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    .step-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    /* Tracking Content Grid */
    .tracking-content-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding-top: 20px !important;
    }

    /* Cart drawer full width on mobile */
    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .gallery-main img {
        height: 320px;
    }
    .modal-card {
        padding: 20px;
        width: 95%;
    }
    /* Bottom sheet even more compact on very small screens */
    .mob-nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        padding: 8px 8px;
    }
    .mob-nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .mob-nav-item {
        font-size: 0.66rem;
        padding: 10px 2px;
    }
}
