/* assets/css/main.css - Soft Modern K-Beauty B2B Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --brand-pink: #ec4899;
    --brand-pink-hover: #db2777;
    --brand-pink-light: #fdf2f8;
    --brand-pink-subtle: #fce7f3;
    --brand-dark: #1e293b;
    
    --bg-gradient: linear-gradient(180deg, #fff5f8 0%, #f8fafc 300px, #f8fafc 100%);
    --card-bg: #ffffff;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --border-color: #f1f5f9;
    --border-pink: #fbcfe8;
    
    --radius-pill: 9999px;
    --radius-card: 20px;
    --radius-sm: 10px;

    --shadow-soft: 0 10px 25px -5px rgba(236, 72, 153, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 14px 30px rgba(236, 72, 153, 0.12);
}

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

body { 
    font-family: var(--font-sans); 
    background: var(--bg-gradient);
    color: var(--brand-dark); 
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for sticky order tracker */
}

/* Header & Top Navigation */
.gg-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(251, 207, 232, 0.5);
    padding: 12px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.gg-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.gg-logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gg-logo span { color: var(--brand-pink); }

/* Rounded Search Bar */
.gg-search-box {
    flex: 1;
    max-width: 550px;
    display: flex;
    background: #fff;
    border: 1.5px solid var(--border-pink);
    border-radius: var(--radius-pill);
    padding: 3px 3px 3px 18px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.04);
}
.gg-search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 13px;
}
.gg-search-box button {
    background: var(--brand-pink);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 22px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
}

/* Main Layout */
.gg-container {
    max-width: 1440px;
    margin: 24px auto;
    padding: 0 24px;
}

/* Q-Depot Style Brand Hero Banner */
.brand-hero-card {
    background: #fff;
    border: 1px solid var(--border-pink);
    border-radius: var(--radius-card);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: center;
}
.brand-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-country-badge {
    background: var(--brand-pink-light);
    color: var(--brand-pink);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.brand-desc {
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
}

.brand-promo-box {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    border: 1.5px solid var(--border-pink);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.promo-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-pink);
}

/* Stats Counter Bar */
.stats-bar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.stat-item { text-align: center; }
.stat-val { font-size: 18px; font-weight: 900; color: var(--brand-dark); }
.stat-lbl { font-size: 11px; color: #94a3b8; font-weight: 700; text-transform: uppercase; }

/* Filter Pill Buttons */
.category-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.cat-pill {
    background: #fff;
    border: 1px solid var(--border-color);
    color: #64748b;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cat-pill.active, .cat-pill:hover {
    background: var(--brand-pink-light);
    color: var(--brand-pink);
    border-color: var(--border-pink);
}

/* Product Cards Grid */
.gg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}
.gg-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}
.gg-card:hover {
    border-color: var(--border-pink);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.gg-card-img-wrap {
    width: 100%;
    height: 170px;
    background: #fafafa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.gg-card-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
.gg-brand-badge {
    font-size: 10px;
    font-weight: 900;
    color: var(--brand-pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gg-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    height: 36px;
    overflow: hidden;
    margin: 4px 0 8px 0;
}
.gg-box-badge {
    background: var(--brand-pink-light);
    color: var(--brand-pink);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 12px;
}

.gg-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
}
.gg-retail-price { font-size: 11px; color: #94a3b8; text-decoration: line-through; }
.gg-ws-price { font-size: 16px; font-weight: 900; color: var(--brand-dark); }

.gg-order-ctrl { display: flex; gap: 6px; }
.gg-order-ctrl input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 12px;
    outline: none;
    background: #f8fafc;
}
.gg-btn-add {
    flex: 1;
    background: var(--brand-pink);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 11px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.gg-btn-add:hover { background: var(--brand-pink-hover); }

/* Bottom Floating Minimum Order Tracker Bar */
.bottom-tracker-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    background: #fff;
    border: 1.5px solid var(--border-pink);
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
}
.progress-container {
    flex: 1;
    max-width: 400px;
    margin: 0 24px;
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f472b6, #ec4899);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

/* ==========================================
   SIDE CART DRAWER & OVERLAY STYLES
   ========================================== */

/* Dark background overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Slide-out Drawer Panel */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px; /* Hidden off-screen by default */
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    right: 0; /* Slides smoothly into view */
}