/* ============================================
   ITALIAN MARKET - Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2d5016;
    --primary-light: #4a7a2e;
    --primary-dark: #1e3a0e;
    --accent: #c7a97b;
    --accent-light: #ddc8a4;
    --accent-dark: #a88a5e;
    --gold: #d4a853;
    --red: #8b2635;
    --red-light: #c73e4f;
    --bg: #faf8f5;
    --bg-alt: #f0ede8;
    --bg-dark: #1a1a1a;
    --bg-card: #ffffff;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --text-muted: #9b9b9b;
    --border: #e5e0d8;
    --border-light: #f0ede8;
    --success: #2d7a3a;
    --warning: #d4a020;
    --danger: #c73e4f;
    --info: #2a6cb6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 1280px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a:hover {
    color: var(--primary-light);
}

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

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--text);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #a8303f;
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 700;
}

.logo-text span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--bg-alt);
}

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

.header-search {
    position: relative;
    width: 240px;
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
    font-size: 0.85rem;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text);
}

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

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    z-index: 100;
}

.user-dropdown.show {
    display: block;
    animation: fadeDown 0.2s ease;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.user-dropdown a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.user-dropdown a:last-child {
    border: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

.mobile-nav {
    display: none;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a3a1e 50%, var(--primary-dark) 100%);
    padding: 36px 0 32px;
    position: relative;
    overflow: hidden;
}

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

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-slider-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.hero-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(199, 169, 123, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(199, 169, 123, 0.2);
    border: 1px solid rgba(199, 169, 123, 0.3);
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
}

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

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-light);
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.section-header .section-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

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

.product-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sale {
    background: var(--red);
    color: #fff;
}

.badge-featured {
    background: var(--gold);
    color: #fff;
}

.badge-new {
    background: var(--primary);
    color: #fff;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--text-muted);
}

.product-wishlist:hover {
    background: var(--red);
    color: #fff;
    transform: scale(1.1);
}

.product-card-body {
    padding: 18px;
}

.product-vendor {
    font-size: 0.75rem;
    color: var(--accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.product-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-card-body h3 a {
    color: var(--text);
}

.product-card-body h3 a:hover {
    color: var(--primary);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 6px;
    font-weight: 400;
}

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

.add-to-cart-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   VENDOR CARDS
   ============================================ */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vendor-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.vendor-card-header {
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-alt), #fff);
}

.vendor-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 14px;
}

.vendor-card-header h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.vendor-card-header p {
    font-size: 0.82rem;
    color: var(--text-light);
}

.vendor-card-body {
    padding: 18px 24px;
}

.vendor-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vendor-card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: #fff;
}

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

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b6b6b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 480px;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-footer a {
    font-weight: 600;
}

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

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.product-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 1;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.product-info .vendor-link {
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: var(--gold);
}

.product-price-large {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-price-large .original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.product-meta-item {
    font-size: 0.85rem;
}

.product-meta-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.qty-btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-input {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.add-to-cart-large {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.product-description {
    line-height: 1.8;
    color: var(--text-light);
}

.product-description h3 {
    margin: 24px 0 12px;
    color: var(--text);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
    padding: 40px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-vendor-group {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.cart-vendor-header {
    padding: 14px 20px;
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border: none;
}

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

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

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-info .item-price {
    color: var(--primary);
    font-weight: 600;
}

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

.cart-item-total {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.remove-item:hover {
    color: var(--danger);
}

.cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.cart-summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
}

.cart-summary-card h3 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.summary-row.total .total-amount {
    color: var(--primary);
    font-family: var(--font-heading);
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

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

.checkout-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.filters-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: start;
}

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

.filter-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.shop-toolbar .result-count {
    font-size: 0.88rem;
    color: var(--text-light);
}

.shop-toolbar select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: #fff;
}

/* ============================================
   VENDOR STORE PAGE
   ============================================ */
.vendor-store-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
    padding: 60px 0;
    color: #fff;
}

.vendor-store-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.vendor-store-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.vendor-store-details h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 6px;
}

.vendor-store-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ============================================
   DASHBOARD (VENDOR & ADMIN)
   ============================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
    background: var(--bg-dark);
    padding: 24px 0;
}

.dashboard-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dashboard-sidebar .sidebar-nav a:hover,
.dashboard-sidebar .sidebar-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent);
}

.dashboard-content {
    padding: 32px;
    background: var(--bg);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.dash-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.dash-card h3 {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
}

.dash-card .dash-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* ============================================
   TABLES
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.data-table thead {
    background: var(--bg-alt);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-top: 1px solid var(--border-light);
}

.data-table tr:hover {
    background: var(--bg-alt);
}

.status-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pending {
    background: #fef3cd;
    color: #856404;
}

.status-approved,
.status-processing,
.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #e2e3f1;
    color: #383d6e;
}

.status-delivered,
.status-paid,
.status-active {
    background: #d4edda;
    color: #155724;
}

.status-cancelled,
.status-rejected,
.status-suspended {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   ALERTS / FLASH
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

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

.footer-brand h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* ============================================
   ACCOUNT PAGES
   ============================================ */
.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.account-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.account-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 4px;
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--bg-alt);
    color: var(--primary);
    font-weight: 600;
}

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

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .dashboard-sidebar {
        display: none;
    }

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

    .filters-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 32px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-header p {
        font-size: 0.85rem;
    }

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

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

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

    /* Product cards compact */
    .product-card-img {
        height: 140px;
    }

    .product-card-body {
        padding: 10px 12px 6px;
    }

    .product-card-body h3 {
        font-size: 0.8rem;
    }

    .product-card-body h3 a {
        line-height: 1.3;
    }

    .product-desc {
        font-size: 0.7rem;
        display: none;
    }

    .product-vendor {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .product-card-footer {
        padding: 6px 12px 10px;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-price .original {
        font-size: 0.7rem;
    }

    .add-to-cart-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .main-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Compact mobile header */
    .site-header {
        height: 56px;
    }

    .header-inner {
        height: 56px;
        gap: 8px;
    }

    .logo {
        gap: 6px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .header-actions {
        gap: 4px;
    }

    /* Uniform icon buttons */
    .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        background: none;
        border-radius: 50%;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: 0;
        right: 0;
    }

    .user-menu-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        background: none;
    }

    .user-menu-btn span {
        display: none;
    }

    .user-menu-btn i.fa-chevron-down {
        display: none;
    }

    .btn-sm.btn-outline {
        width: 36px;
        height: 36px;
        padding: 0;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        background: none;
        color: var(--text);
    }

    .btn-sm.btn-outline::before {
        content: "\f2f6";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 1.1rem;
    }

    .mobile-toggle {
        width: 36px;
        height: 36px;
        padding: 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-nav.show {
        display: block;
    }

    .mobile-nav-inner {
        background: #fff;
        width: 280px;
        height: 100%;
        padding: 24px;
        animation: slideIn 0.3s ease;
        overflow-y: auto;
    }

    .mobile-nav-inner a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
        color: var(--text);
    }

    @keyframes slideIn {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }

    /* Hero compact mobile */
    .hero {
        padding: 24px 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-slider {
        display: none;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 24px;
        margin-top: 16px;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    /* Category cards compact */
    .category-card {
        padding: 16px 10px;
    }

    .category-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }

    .category-card p {
        font-size: 0.7rem;
    }

    /* Product cards compact */
    .product-card-body h3 {
        font-size: 0.85rem;
    }

    .product-desc {
        font-size: 0.75rem;
    }

    .product-vendor {
        font-size: 0.7rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-gallery {
        position: static;
    }

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

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

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

    .account-sidebar {
        position: static;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

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

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

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

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .hero-stats {
        gap: 16px;
    }

    .product-card-img {
        height: 120px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.hidden {
    display: none !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    box-shadow: var(--shadow-lg);
    animation: fadeDown 0.3s ease, fadeOut 0.3s ease 2.7s;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toast-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Data table responsive */
.data-table {
    display: block;
    overflow-x: auto;
}

.data-table table,
.data-table thead,
.data-table tbody,
.data-table tr {
    width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}