/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Kredivaa Marketplace — Astra Child Theme with custom WooCommerce & Dokan design
Author:       Kredivaa
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* Modern CSS Reset & Variables */
:root {
    --primary: #0d1b2a;
    --accent: #00a859;
    --accent-hover: #008f4c;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-focus: #cbd5e1;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
}

/* Layout & Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* OVERRIDE ASTRA DEFAULT CONTAINER — nuclear specificity */
body .ast-container,
body .site-content>.ast-container,
body.ast-page-builder-template .site-content>.ast-container,
body.ast-plain-container .site-content>.ast-container,
body .ast-container.ast-container,
.ast-page-builder-template .ast-container,
.ast-plain-container .ast-container,
.ast-separate-container .ast-container,
.site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
}

body #primary,
body .site-main,
body #content.site-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent Astra from adding side padding to the content area */
.ast-separate-container #primary,
.ast-page-builder-template #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Forms & Buttons */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg);
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* Navigation */
.promo-bar {
    background: #0c1a2c;
    color: #e8edf5;
    padding: 0.55rem 0;
    font-size: 0.84rem;
    text-align: center;
    font-weight: 600;
}

.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-top {
    padding: 1.05rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    flex-shrink: 0;
}

.search-container {
    flex-grow: 1;
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.95rem 1.5rem;
    border: 1px solid #d9e2ef;
    border-radius: 999px 0 0 999px;
    font-size: 0.95rem;
    background: #f7f9fc;
    transition: var(--transition);
}

.search-input:focus {
    background: #fff;
    border-color: #c5d4eb;
    outline: none;
}

.search-btn {
    padding: 0 1.6rem;
    background: #0aa357;
    color: white;
    border: 1px solid #0aa357;
    border-radius: 0 999px 999px 0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #0a8c4c;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    color: var(--accent);
}

.action-icon {
    font-size: 1.5rem;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

.nav-bottom {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.main-menu {
    display: flex;
    gap: 1.7rem;
    padding: 0.9rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-menu::-webkit-scrollbar {
    display: none;
}

.menu-link {
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
    position: relative;
    padding-bottom: 0.25rem;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.menu-link:hover::after,
.menu-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* Components: Product Card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    border-color: #d9dde5;
}

.product-badge {
    display: none;
}

.product-img-wrap {
    padding-top: 100%;
    position: relative;
    background: #f7f9fc;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.35rem;
}

.product-info {
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    display: none;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating-stars {
    color: #f59e0b;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.add-to-cart-btn {
    background: #fff;
    color: var(--primary);
    border: 1px solid #e6edf6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: #f0fdf4;
    color: #0aa357;
    border-color: #0aa357;
    transform: translateY(-1px);
}

/* Components: Store Card */
.store-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.store-banner {
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: white;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

.store-info {
    padding: 3.5rem 1.5rem 1.5rem;
    text-align: center;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.store-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Views System */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View: Home specific */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e2e8f0 100%);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    margin-top: 2rem;
    min-height: 400px;
}

.hero-content {
    max-width: 500px;
    z-index: 2;
}

.hero-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 50%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23cbd5e1" width="100" height="100"/></svg>') center/cover;
    opacity: 0.5;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.features {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    background: white;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.feature-text p {
    font-size: 0.8rem;
    margin: 0;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.category-pill:hover {
    background: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2.5rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

/* View: Layouts */
.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.product-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Panels & Cards */
.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Filter Sidebar */
.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-list input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Product Gallery */
.gallery-main {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    background: var(--bg-alt);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

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

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-item-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    object-fit: cover;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-light);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    pointer-events: none;
}

/* Footer */
.footer {
    background: #0c1a2c;
    color: #d8e2f0;
    padding: 4.5rem 0 2.2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.2rem;
    margin-bottom: 3.2rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #aebcd3;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9fb1c9;
    font-size: 0.82rem;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .sidebar-layout,
    .product-single-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-img {
        display: none;
    }

    .hero {
        padding: 3rem 2rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-top {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 0;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .header-bottom {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        padding: 1rem 5%;
    }

    .header-bottom.show {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .product-single-layout {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .cart-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: right;
    }

    .cart-item-flex {
        text-align: left;
    }

    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-light);
        text-transform: uppercase;
        font-size: 0.75rem;
    }
}

/* Styles from about.html */
.page-hero {
    background-color: var(--bg-alt);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 800;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    padding: 80px 0;
}

.about-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-img {
    flex: 1;
    height: 400px;
    background-color: #e2e8f0;
    border-radius: var(--radius-lg);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 16px;
}

.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 32px;
}

.stat-num {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
}

.mission-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
    text-align: center;
}

.mission-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.mission-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .about-layout {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Styles from account.html */
.account-header {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: white;
    margin-bottom: 40px;
}

.account-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.account-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.account-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

.account-sidebar {
    width: 250px;
}

.nav-list {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.nav-item {
    display: block;
    padding: 16px 20px;
    color: var(--text-main);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    background-color: var(--bg-alt);
}

.nav-item.active {
    background-color: var(--bg-alt);
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 17px;
}

.account-content {
    flex: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.dash-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.dash-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.dash-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.dash-value {
    font-size: 24px;
    font-weight: 800;
}

.recent-orders {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.recent-orders h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    text-align: left;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}

.order-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.order-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.s-delivered {
    background-color: #dcfce7;
    color: #166534;
}

.s-processing {
    background-color: #fef9c3;
    color: #854d0e;
}

@media (max-width: 992px) {
    .account-layout {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles from contact.html */
.page-hero {
    background-color: var(--bg-alt);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 800;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: flex;
    gap: 60px;
}

.contact-info {
    width: 400px;
}

.info-card {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.ic-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.ic-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.ic-text {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 992px) {
    .contact-layout {
        flex-direction: column-reverse;
    }

    .contact-info {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Styles from faq.html */
.page-hero {
    background-color: var(--bg-alt);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 800;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-cats {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cat {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.faq-cat.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.faq-cat:hover:not(.active) {
    background-color: var(--bg-alt);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    background-color: white;
    overflow: hidden;
}

.faq-q {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::after {
    content: '+';
    font-size: 24px;
    color: var(--text-light);
}

.faq-item.active .faq-q::after {
    content: '−';
}

.faq-a {
    padding: 0 24px 24px;
    color: var(--text-main);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-a {
    display: block;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 0;
}

.still-help {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.still-help h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* Styles from offers.html */
.deals-hero {
    background-color: #ff3b30;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.deals-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.deals-nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.deal-tab {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.deal-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.deal-tab:hover:not(.active) {
    background-color: var(--bg-alt);
}

.big-offer-banner {
    background-color: #fef08a;
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    border: 1px solid #fde047;
}

.bo-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: #854d0e;
    margin-bottom: 16px;
}

.bo-content p {
    color: #a16207;
    font-size: 18px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .big-offer-banner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
}

/* Styles from stores.html */
.stores-header {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stores-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.stores-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.stores-search {
    margin-top: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.stores-search input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.stores-search button {
    padding: 0 24px;
    background-color: var(--accent-color);
    border: none;
    color: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    cursor: pointer;
}

.stores-grid {
    padding: 60px 0;
}

.vendor-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 per row for stores page */
}

@media (max-width: 992px) {
    .vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .vendor-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles from track.html */
.page-header {
    background-color: var(--bg-alt);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-light);
    margin-top: 8px;
}

.track-box {
    max-width: 600px;
    margin: 0 auto 80px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-color);
}

.btn-track {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* Fake timeline for demonstration if an order was "found" */
.tracking-result {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    /* display: none; */
}

.tr-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.tr-id {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.tr-eta {
    color: var(--accent-color);
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.tl-item {
    position: relative;
    margin-bottom: 32px;
}

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

.tl-dot {
    position: absolute;
    left: -30px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e5e7eb;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.tl-item.active .tl-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.tl-item.completed .tl-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.tl-item.completed~.tl-item::before {
    /* Hack to color line */
}

.tl-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.tl-date {
    font-size: 13px;
    color: var(--text-light);
}

/* Styles from vendor.html */
.vendor-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.vendor-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.vendor-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

.benefits-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.b-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.b-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.b-desc {
    color: var(--text-light);
    line-height: 1.6;
}

.onboarding-section {
    padding: 80px 0;
}

.onboarding-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.steps {
    flex: 1;
}

.step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.step-num {
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.registration-form {
    flex: 1;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.registration-form h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-color);
}

@media (max-width: 992px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .onboarding-layout {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES
   ═══════════════════════════════════════════════════ */

/* ─── Shop Page ─────────────────────────────────── */
.shop-top-area {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.shop-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 90px;
}

.shop-sidebar .filter-block {
    margin-bottom: 1.5rem;
}

.shop-sidebar .filter-list {
    list-style: none;
    padding: 0;
}

.shop-sidebar .filter-list li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.mobile-filter-btn {
    display: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
}

.sort-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.result-info-bar {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.breadcrumb-nav .woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb-nav .woocommerce-breadcrumb a {
    color: var(--accent);
}

/* ─── Pagination ─────────────────────────────────── */
.woocommerce-pagination ul,
.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.woocommerce-pagination ul li .current,
.page-link.active,
.woocommerce-pagination ul li a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ─── Cart Page ──────────────────────────────────── */
.page-header {
    background: var(--bg-alt);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary);
}

.cart-layout {
    display: flex;
    gap: 2.5rem;
    align-items: start;
}

.cart-items {
    flex: 1;
    min-width: 0;
}

.cart-summary {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-row {
    border-bottom: 1px solid var(--border);
}

.cart-row td {
    padding: 1.5rem 0;
    vertical-align: middle;
}

.c-product {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.c-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}

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

.c-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.c-vendor {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.c-price {
    font-weight: 700;
    font-size: 1.125rem;
}

.c-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    text-decoration: underline;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1rem;
}

/* ─── Checkout Page ──────────────────────────────── */
.checkout-layout {
    display: flex;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 5rem;
}

.checkout-form {
    flex: 1;
    min-width: 0;
}

.checkout-sidebar {
    width: 420px;
    flex-shrink: 0;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

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

.s-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}

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

.s-details {
    flex: 1;
    font-size: 0.875rem;
}

.s-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.s-price {
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.totals-row.final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ─── Product Page Extras ───────────────────────── */
.product-page {
    padding: 2.5rem 0;
}

.product-layout {
    display: flex;
    gap: 3.5rem;
    align-items: start;
}

.product-gallery {
    width: 50%;
}

.product-info.product-info {
    width: 50%;
}

.p-extras {
    background: var(--bg-alt);
}

.p-extras-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.product-tabs {
    margin-top: 4rem;
}

.tab-headers {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.tab-btn {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 1rem;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* ─── WooCommerce Overrides ─────────────────────── */
.woocommerce-cart-form .qty-control,
.woocommerce-cart-form .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: fit-content;
}

.woocommerce-cart-form .qty {
    width: 50px;
    text-align: center;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
    outline: none;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order {
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    padding: 0.875rem 1.75rem;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #place_order:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

.woocommerce ul.products li.product .price {
    color: var(--primary);
    font-weight: 700;
}

.wc-block-components-checkout-order-summary {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* ─── Header Helpers ────────────────────────────── */
.header-bottom.show {
    display: block !important;
}

.hide-mobile {
    display: inline;
}

/* ─── Mobile Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: none;
    }

    .shop-sidebar.open {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .mobile-toggle {
        display: block !important;
    }

    .header-bottom {
        display: none;
    }

    .cart-layout {
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
        position: static;
    }

    .checkout-layout {
        flex-direction: column;
    }

    .checkout-sidebar {
        width: 100%;
    }

    .product-layout {
        flex-direction: column;
    }

    .product-gallery,
    .product-info.product-info {
        width: 100%;
    }

    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .nav-top {
        gap: 1rem;
    }

    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ─── WOOCOMMERCE MY ACCOUNT LAYOUT FIX ─── */
.kredivaa-account-wrap.is-guest {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.kredivaa-account-wrap.is-authenticated .woocommerce {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
}

.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    width: 280px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--bg-alt);
    color: var(--primary);
    border-left: 3px solid var(--accent);
}

.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Resolve Dokan overlaps and clear floats */
.dokan-dashboard-wrap,
.wcfm-membership-wrapper {
    clear: both;
}

@media (max-width: 768px) {
    .kredivaa-account-wrap.is-authenticated .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
        flex: none;
    }
}

/* =========================================================
   HOME V2 (pixel-match hero/category/promo/trending layout)
   ========================================================= */

.home-v2 .container {
    max-width: 1250px;
}

.hero-banner {
    background: #ffffff;
    padding: 58px 0 42px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    margin: 10px 0 14px;
}

.hero-copy p {
    font-size: 1rem;
    max-width: 460px;
}

.text-accent {
    color: #00a859;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.btn.lg {
    padding: 1rem 2.4rem;
    font-size: 1.05rem;
}

.btn-ghost {
    background: #eef1f7;
    color: var(--primary);
    border: 2px solid #eef1f7;
}

.btn-ghost:hover {
    background: #e1e7f2;
    border-color: #e1e7f2;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.pill-light {
    background: #e9f7ef;
    color: #00a859;
}

.pill-green {
    background: #e8f5e9;
    color: #0f9b55;
}

.pill-purple {
    background: #f1e9ff;
    color: #7b3ef7;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-img-frame {
    position: relative;
    background: #f4f6f8;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(12, 26, 44, 0.12);
    max-width: 480px;
}

.hero-img-frame img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #11c26f;
    color: #fff;
    padding: 11px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 10px 22px rgba(0, 168, 89, 0.25);
}

.trust-ribbon {
    margin-top: -26px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    padding: 18px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.ti-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.home-section {
    padding: 64px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.pill-link {
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
}

.pill-link:hover {
    border-color: #cbd5e1;
}

.pill-link.light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.cat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    justify-items: center;
}

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 10px 14px;
    border-radius: 16px;
    transition: var(--transition);
    width: 100%;
    max-width: 140px;
    background: #ffffff;
    border: 1px solid #eef1f5;
}

.cat-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.cat-thumb {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f8ff, #e8eef8);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border: 2px solid #eef2fa;
}

.cat-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    text-align: center;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.promo-card {
    position: relative;
    border-radius: 12px;
    padding: 26px 24px;
    overflow: hidden;
    min-height: 200px;
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.promo-card h3 {
    font-size: 1.5rem;
    margin: 12px 0 8px;
}

.promo-card p {
    max-width: 260px;
}

.promo-card .promo-img {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 42%;
    max-width: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.promo-left {
    background: linear-gradient(120deg, #e6f5ee 0%, #ffffff 40%);
}

.promo-right {
    background: linear-gradient(120deg, #f8f0ff 0%, #fff5e8 60%);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 700;
    color: var(--primary);
}

.link-arrow::after {
    content: "→";
    font-weight: 800;
}

.section-alt {
    background: #f7f9fc;
}

/* WooCommerce product cards override (trending) */
.trending-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px !important;
}

.trending-grid ul.products li.product {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    padding: 0 0 14px;
    transition: var(--transition);
}

.trending-grid ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.trending-grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    padding: 0 16px;
    min-height: 48px;
}

.trending-grid ul.products li.product .price {
    padding: 0 16px;
    font-size: 1.08rem;
    font-weight: 800;
}

.trending-grid ul.products li.product .star-rating {
    margin: 0 16px 6px;
}

.trending-grid ul.products li.product a img {
    padding: 18px;
    background: #f7f9fc;
}

.trending-grid ul.products li.product .button {
    margin: 12px 16px 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e6edf6;
    background: #fff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

.trending-grid ul.products li.product .button:hover {
    border-color: #0aa357;
    color: #0aa357;
    background: #f0fdf4;
}

.store-grid.home-stores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.store-card-wide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 24px rgba(12, 26, 44, 0.14);
    border: 1px solid #e6e9f0;
}

.store-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.25) 0%, rgba(12, 18, 32, 0.65) 90%);
    color: #fff;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.store-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.store-icon {
    background: rgba(255, 255, 255, 0.16);
    padding: 7px 12px;
    border-radius: 999px;
}

.store-name {
    font-size: 1.08rem;
    font-weight: 800;
}

.cta-vendor {
    background: #0b1424;
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: center;
}

.cta-copy h2 {
    color: #fff;
    margin: 10px 0 12px;
}

.cta-copy p {
    color: #cbd5e1;
    max-width: 520px;
}

.cta-rocket {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
}

.rocket-shape {
    width: 160px;
    height: 220px;
    background: radial-gradient(circle at 50% 25%, #21d37b 35%, #0ca85d 70%, #0f1626 71%);
    clip-path: polygon(50% 0, 70% 28%, 70% 70%, 50% 100%, 30% 70%, 30% 28%);
    position: relative;
    box-shadow: 0 0 60px rgba(33, 211, 123, 0.35);
}

.rocket-shape::after {
    content: "";
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: #ffb703;
    border-radius: 50%;
    filter: blur(10px);
}

@media (max-width: 768px) {
    .trust-ribbon {
        margin-top: -12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cat-row {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Extra mobile polish for home layout */
@media (max-width: 768px) {
    .home-v2 .container {
        padding: 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-actions {
        align-items: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-img-frame {
        max-width: 360px;
    }

    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        row-gap: 14px;
    }

    .cat-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 14px;
    }

    .cat-chip {
        max-width: 120px;
        padding: 10px 8px 12px;
    }

    .cat-thumb {
        width: 86px;
        height: 86px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-card {
        min-height: 170px;
        padding: 22px 20px;
    }

    .promo-card .promo-img {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 12px;
        display: block;
    }

    .trending-grid ul.products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }

    .trending-grid ul.products li.product {
        max-width: 100%;
    }
}