/* ═══════════════════════════════════════════════════
   Black Fox — Main Stylesheet
   Color Palette: #F0F5F9, #C9D6DF, #52616B, #1E2022
   ═══════════════════════════════════════════════════ */

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

:root {
    --bg-primary: #F0F5F9;
    --bg-secondary: #C9D6DF;
    --accent: #52616B;
    --text-dark: #1E2022;
    --white: #ffffff;
    --surface: #e2e9ee;
    --surface-light: #eaf0f4;
    --accent-light: #7a8e99;
    --accent-dark: #3d4a52;
    --error: #b31b25;
    --success: #2e7d32;
    --shadow-sm: 0 1px 3px rgba(30,32,34,0.06);
    --shadow-md: 0 4px 12px rgba(30,32,34,0.08);
    --shadow-lg: 0 8px 32px rgba(30,32,34,0.12);
    --shadow-xl: 0 16px 48px rgba(30,32,34,0.16);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { opacity: 0.8; }

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

/* ── Top Navigation ── */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201,214,223,0.4);
    box-shadow: var(--shadow-sm);
}

.top-nav .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: none;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--accent);
    letter-spacing: -0.02em;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
    border-bottom-color: var(--accent);
    opacity: 1;
}

.nav-search {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    flex: 1;
    max-width: 320px;
}
.nav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    width: 100%;
    color: var(--text-dark);
    font-family: 'Be Vietnam Pro', sans-serif;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-icons a, .nav-icons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-size: 1.1rem;
}
.nav-icons a:hover, .nav-icons button:hover {
    background: var(--bg-secondary);
    opacity: 1;
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--error);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Hero Section ── */
.hero {
    margin-top: 60px;
    padding: 1rem;
}
.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,32,34,0.85) 0%, rgba(30,32,34,0.3) 60%, transparent 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 1.5rem;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
}
.btn-secondary:hover { background: #b8c7d2; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-white {
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
}
.btn-white:hover { background: var(--white); }

.btn-lg { padding: 1.125rem 2.5rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 0.75rem; }

/* ── Section Layouts ── */
.section {
    padding: 2.5rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.5rem;
    color: var(--text-dark);
}
.section-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card .card-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
    background: var(--surface-light);
}
.product-card .card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-image img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-discount {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.card-body {
    padding: 0.75rem;
}
.card-body .brand {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}
.card-body .product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body .price-row {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.price-current {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
}
.price-mrp {
    font-size: 0.75rem;
    color: var(--accent-light);
    text-decoration: line-through;
}
.price-off {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.375rem;
    font-size: 0.7rem;
    color: var(--accent-light);
}
.card-rating .stars {
    color: #f59e0b;
    font-size: 0.8rem;
}

/* ── Category Scroll ── */
.category-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-card {
    flex-shrink: 0;
    width: 140px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); opacity: 1; }
.category-card .cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}
.category-card .cat-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ── Footer ── */
.site-footer {
    background: var(--text-dark);
    color: var(--bg-secondary);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 2rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    color: var(--bg-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
    border-top: 1px solid rgba(201,214,223,0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-light);
}

/* ── Bottom Nav (Mobile) ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(201,214,223,0.3);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    opacity: 0.7;
}
.bottom-nav a.active {
    background: var(--bg-secondary);
    color: var(--text-dark);
    opacity: 1;
}
.bottom-nav a .material-symbols-outlined {
    font-size: 1.375rem;
}

/* ── PDP Styles ── */
.pdp-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.pdp-gallery img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.pdp-info { padding: 1.5rem; }
.pdp-info .pdp-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.pdp-info .pdp-name {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}
.pdp-info .pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.pdp-info .pdp-price {
    font-size: 2rem;
    font-weight: 800;
}
.pdp-info .pdp-mrp {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--accent-light);
}
.pdp-info .pdp-discount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success);
}
.size-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.size-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-secondary);
    background: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.size-btn:hover, .size-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82,97,107,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Cards / Panels ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-pad { padding: 1.25rem; }

/* ── Alerts ── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #fde8e8; color: #b31b25; }
.alert-info { background: #e3f2fd; color: #1565c0; }

/* ── Contact Page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-card h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.85rem; color: var(--accent-light); }

/* ── Store Locator ── */
.store-list { display: flex; flex-direction: column; gap: 1rem; }
.store-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.store-card:hover { box-shadow: var(--shadow-md); }
.store-card h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.store-card p { font-size: 0.85rem; color: var(--accent-light); margin-bottom: 0.5rem; }
.store-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--accent); }
.store-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ── Cart ── */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}
.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.cart-item-info .cart-price { font-weight: 800; font-size: 1rem; }
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 0.5rem;
}
.qty-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
}
.qty-control span {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state .icon { font-size: 4rem; color: var(--bg-secondary); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--accent-light); margin-bottom: 1.5rem; }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.page-pad { padding-top: 80px; padding-bottom: 100px; }

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 1.25rem;
    vertical-align: middle;
}

/* ── Responsive ── */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .nav-links { display: flex; }
    .nav-search { display: flex; }
    .hero-card { min-height: 500px; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content { padding: 3rem; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .section { padding: 3rem 2rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .page-pad { padding-bottom: 2rem; }
    body { padding-bottom: 0; }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-content h1 { font-size: 4rem; }
}

/* Body bottom padding for mobile nav */
@media (max-width: 767px) {
    body { padding-bottom: 70px; }
}
