/* ============================================================
   MILLZOO — Design System
   Premium Multi-Vendor Marketplace
   ============================================================ */

/* ============================================================
   IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Brand Colors */
    --color-primary: #1a1a2e;
    --color-primary-light: #2d2d4a;
    --color-primary-dark: #0f0f1e;
    --color-accent: #e94560;
    --color-accent-light: #ff6b81;
    --color-accent-dark: #c73a52;
    --color-secondary: #f5a623;
    --color-secondary-light: #ffbd45;
    --color-secondary-dark: #d48f1a;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #868e96;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-black: #111111;

    /* Semantic Colors */
    --color-success: #20c997;
    --color-success-bg: #d3f9ee;
    --color-warning: #f5a623;
    --color-warning-bg: #fff3cd;
    --color-danger: #e94560;
    --color-danger-bg: #fde8ec;
    --color-info: #339af0;
    --color-info-bg: #d0ebff;

    /* Star Rating */
    --color-star: #f5a623;
    --color-star-empty: #dee2e6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-xs: 0.6875rem;    /* 11px */
    --text-sm: 0.8125rem;    /* 13px */
    --text-base: 0.9375rem;  /* 15px */
    --text-md: 1rem;         /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */

    /* Font Weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-dropdown: 0 10px 40px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Layout */
    --container-max: 1320px;
    --container-narrow: 960px;
    --header-height: 54px;
    --sidebar-width: 260px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: #f1f3f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-accent-dark);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

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

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    color: var(--color-gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gray-200), transparent);
}

.section-title .view-all {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-accent);
    white-space: nowrap;
    font-family: var(--font-primary);
}

.section-title .view-all:hover {
    text-decoration: underline;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1.4;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

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

.btn-secondary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

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

.btn-outline-dark {
    background: transparent;
    color: var(--color-gray-700);
    border-color: var(--color-gray-300);
}

.btn-outline-dark:hover {
    background: var(--color-gray-900);
    border-color: var(--color-gray-900);
    color: var(--color-white);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-white);
    border-color: var(--color-success);
}

.btn-warning {
    background: var(--color-warning);
    color: var(--color-white);
    border-color: var(--color-warning);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
    border-color: var(--color-danger);
}

.btn-ghost {
    background: transparent;
    color: var(--color-gray-700);
    border: none;
    padding: var(--space-2) var(--space-3);
}

.btn-ghost:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--text-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

.btn[disabled], .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.form-label .required {
    color: var(--color-danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: var(--text-base);
    color: var(--color-gray-900);
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.form-control::placeholder {
    color: var(--color-gray-400);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-text {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.checkbox-group, .radio-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.checkbox-group input, .radio-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-body {
    padding: var(--space-5);
}

.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: var(--text-lg);
    margin: 0;
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-gray-100);
    background: var(--color-gray-50);
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    row-gap: 20px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.36), 0 1.5px 3px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.product-card .product-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 6:4 Aspect Ratio */
    overflow: hidden;
    background: #ffffff;
}

.product-card .product-image-track {
    position: absolute;
    inset: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

.product-card .product-image-track::-webkit-scrollbar {
    display: none;
}

.product-card .product-image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

.product-card .product-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-card .product-image > .product-slide-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-card .product-image img,
.product-card .product-image-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
}

/* Slider Navigation Arrows */
.product-card .card-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 11px;
    outline: none;
    padding: 0;
}

.product-card:hover .card-slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.product-card .card-slider-prev {
    left: 6px;
}

.product-card .card-slider-next {
    right: 6px;
}

.product-card .card-slider-arrow:hover {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
}

@media (hover: none) {
    .product-card .card-slider-arrow {
        opacity: 0.85;
        pointer-events: auto;
    }
}

/* Segmented Image Indicator Bar (Full Width Divided by Image Count) */
.product-card .card-slider-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3.5px;
    display: flex;
    align-items: stretch;
    gap: 3px;
    z-index: 6;
    padding: 0 4px 1px 4px;
    background: transparent;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.product-card .card-slider-dot {
    flex: 1;
    height: 3.5px;
    border-radius: 2px;
    background: #e2e8f0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
    outline: none;
    width: auto;
    min-width: 0;
}

.product-card .card-slider-dot.active {
    background: #2563eb;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.45);
}

.product-card .card-slider-dot:hover {
    background: #93c5fd;
}

.product-card .product-badges {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    z-index: 2;
}

.product-card .product-wishlist {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition-fast);
    border: none;
    color: #64748b;
    padding: 0;
}

.product-card .product-wishlist i {
    font-size: 14px;
    line-height: 1;
    display: block;
    transition: transform 0.15s ease, color 0.15s ease;
}

.product-card .product-wishlist:hover {
    color: #ef4444;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.product-card .product-wishlist:hover i {
    transform: scale(1.1);
}

.product-card .product-wishlist.active {
    color: #ef4444;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.2);
}

.product-card .product-wishlist.active i {
    color: #ef4444;
}

.product-card .product-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.product-card .product-badges .badge {
    font-size: 9.5px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.product-card .product-info {
    padding: 9px 10px 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-brand {
    font-size: 10.5px;
    color: var(--color-gray-500);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.product-card .product-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.product-card .product-name a {
    color: inherit;
}

.product-card .product-name a:hover {
    color: var(--color-accent);
}

.product-card .product-rating {
    margin-bottom: 4px;
}

.product-card .product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.product-card .price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.product-card .price-original {
    font-size: 11.5px;
    color: var(--color-gray-500);
    text-decoration: line-through;
}

.product-card .price-discount {
    font-size: 10.5px;
    font-weight: var(--weight-semibold);
    color: var(--color-success);
}

.product-card .product-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 6px;
    width: 100%;
}

.product-card .product-seller {
    font-size: 10.5px;
    color: var(--color-gray-500);
    margin-top: 4px;
}

.product-card .product-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    text-decoration: none;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    transition: all 0.15s ease;
}

.product-card .product-card-topbar .product-rating {
    margin-bottom: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.product-card .rating-badge {
    background: #16a34a;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    line-height: 1.2;
}

.product-card .rating-badge i {
    font-size: 8.5px;
}

.product-card .rating-count-pill {
    font-size: 10.5px;
    color: var(--color-gray-500);
    font-weight: 600;
}

.product-card .product-seller-badge:hover {
    color: #0f172a;
}

.product-card .product-seller-badge:hover .seller-name-text {
    color: #2563eb;
    text-decoration: underline;
}

.product-card .seller-avatar-mini {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.product-card .product-seller-badge:hover .seller-avatar-mini {
    transform: scale(1.08);
    border-color: #cbd5e1;
}

.product-card .seller-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .seller-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-card .seller-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.product-card .seller-verified-tick {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.product-card .seller-verified-tick svg {
    display: block;
    width: 13px;
    height: 13px;
}

.product-card .product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 10px;
    margin-top: auto;
}

.product-card .btn-card-action,
.product-card .btn-add-cart,
.product-card .btn-buy-now,
.product-card .btn-out-of-stock {
    height: 32px;
    font-size: 11.5px;
    font-weight: var(--weight-bold);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

/* Icon-Only Cart Button with Plus Badge */
.product-card .btn-cart-icon-only {
    flex: 0 0 34px;
    width: 34px;
    padding: 0;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    position: relative;
}

.product-card .btn-cart-icon-only:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.product-card .cart-icon-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.product-card .cart-icon-box i {
    font-size: 13.5px;
    color: #1e293b;
}

.product-card .cart-plus-corner {
    position: absolute;
    top: -4px;
    right: -5px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    color: #e94560;
    background: #ffffff;
    border: 1px solid rgba(233, 69, 96, 0.4);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Black Buy Now Button */
.product-card .btn-buy-now {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.product-card .btn-buy-now:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.product-card .btn-buy-now i {
    font-size: 11px;
}

.product-card .btn-out-of-stock {
    flex: 1;
    width: 100%;
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    cursor: not-allowed;
    border: 1px solid var(--color-gray-300);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-sm);
    line-height: 1.4;
    white-space: nowrap;
}

.badge-primary { background: var(--color-accent); color: var(--color-white); }
.badge-secondary { background: var(--color-primary); color: var(--color-white); }
.badge-success { background: var(--color-success-bg); color: #0a6640; }
.badge-warning { background: var(--color-warning-bg); color: #856404; }
.badge-danger { background: var(--color-danger-bg); color: var(--color-accent-dark); }
.badge-info { background: var(--color-info-bg); color: #1864ab; }
.badge-discount { background: var(--color-success); color: var(--color-white); font-weight: var(--weight-bold); }
.badge-trending { background: linear-gradient(135deg, #e94560, #f5a623); color: var(--color-white); font-weight: var(--weight-bold); }
.badge-bestseller { background: #0F172A; color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.3); font-weight: var(--weight-bold); }
.badge-featured { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #ffffff; font-weight: var(--weight-bold); }


/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--color-star);
    font-size: var(--text-xs);
}

.star-rating .far {
    color: var(--color-star-empty);
}

.star-rating .rating-count {
    margin-left: var(--space-1);
    color: var(--color-gray-500);
    font-size: var(--text-xs);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: var(--color-success);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    border-radius: var(--radius-sm);
}

.rating-badge i {
    font-size: 9px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: #0a6640;
}

.alert-error, .alert-danger {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-accent-dark);
}

.alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning);
    color: #856404;
}

.alert-info {
    background: var(--color-info-bg);
    border-color: var(--color-info);
    color: #1864ab;
}

.alert-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    font-size: var(--text-lg);
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: var(--weight-semibold);
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    border-bottom: 2px solid var(--color-gray-200);
    white-space: nowrap;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: middle;
    color: var(--color-gray-700);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--color-gray-50);
}

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

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-gray-200);
    gap: var(--space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab-item:hover {
    color: var(--color-gray-700);
}

.tab-item.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

.tab-content {
    display: none;
    padding: var(--space-5) 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    padding: var(--space-4) 0;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--color-gray-500);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .separator {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
}

.breadcrumbs .current {
    color: var(--color-gray-700);
    font-weight: var(--weight-medium);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav {
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-gray-600);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
    border-color: var(--color-gray-300);
}

.page-link.active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.page-dots {
    padding: 0 var(--space-2);
    color: var(--color-gray-400);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-gray-100);
}

.modal-header h3 {
    font-size: var(--text-lg);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-gray-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    font-size: var(--text-lg);
}

.modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.modal-body {
    padding: var(--space-5);
}

.modal-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ============================================================
   LOADER / SPINNER
   ============================================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    backdrop-filter: blur(2px);
}

.skeleton {
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--color-gray-300);
    margin-bottom: var(--space-6);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.empty-state-text {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    max-width: 360px;
    margin: 0 auto var(--space-6);
    line-height: 1.6;
}

/* ============================================================
   RIGHT-SIDE SLIDE-IN TOAST / FLASH NOTIFICATION SYSTEM
   ============================================================ */
.mz-flash-toast-container,
.toast-container {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.mz-flash-toast,
.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px 16px 16px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-left: 5px solid #10B981;
    overflow: hidden;
    pointer-events: auto;
    animation: mzSlideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mz-flash-toast.slide-out,
.toast.slide-out {
    animation: mzSlideOutRight 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes mzSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(120%) scale(0.95);
    }
    70% {
        opacity: 1;
        transform: translateX(-8px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes mzSlideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(120%) scale(0.9);
    }
}

/* Specific Types */
.mz-flash-toast-success,
.toast-success {
    border-left-color: #10B981;
}

.mz-flash-toast-success .mz-flash-toast-icon,
.toast-success .toast-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.mz-flash-toast-error, .mz-flash-toast-danger,
.toast-error, .toast-danger {
    border-left-color: #EF4444;
}

.mz-flash-toast-error .mz-flash-toast-icon,
.mz-flash-toast-danger .mz-flash-toast-icon,
.toast-error .toast-icon,
.toast-danger .toast-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.mz-flash-toast-warning,
.toast-warning {
    border-left-color: #F59E0B;
}

.mz-flash-toast-warning .mz-flash-toast-icon,
.toast-warning .toast-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.mz-flash-toast-info,
.toast-info {
    border-left-color: #3B82F6;
}

.mz-flash-toast-info .mz-flash-toast-icon,
.toast-info .toast-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Icon Badge */
.mz-flash-toast-icon,
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Content */
.mz-flash-toast-content,
.toast-content {
    flex: 1;
    min-width: 0;
}

.mz-flash-toast-title,
.toast-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.mz-flash-toast-msg,
.toast-msg {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
    word-break: break-word;
}

/* Close Button */
.mz-flash-toast-close,
.toast-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.mz-flash-toast-close:hover,
.toast-close:hover {
    color: #0F172A;
    transform: scale(1.15);
}

/* Progress bar animation */
.mz-flash-toast-progress,
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(16, 185, 129, 0.5);
    animation: mzToastProgress 4.5s linear forwards;
}

.mz-flash-toast-error .mz-flash-toast-progress,
.mz-flash-toast-danger .mz-flash-toast-progress,
.toast-error .toast-progress,
.toast-danger .toast-progress {
    background: rgba(239, 68, 68, 0.5);
}

.mz-flash-toast-warning .mz-flash-toast-progress,
.toast-warning .toast-progress {
    background: rgba(245, 158, 11, 0.5);
}

.mz-flash-toast-info .mz-flash-toast-progress,
.toast-info .toast-progress {
    background: rgba(59, 130, 246, 0.5);
}

@keyframes mzToastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

@media (max-width: 640px) {
    .mz-flash-toast-container,
    .toast-container {
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-gray-500); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-primary { color: var(--color-accent); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.fw-medium { font-weight: var(--weight-medium); }
.fw-semibold { font-weight: var(--weight-semibold); }
.fw-bold { font-weight: var(--weight-bold); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
    .d-none-mobile { display: none !important; }
    .d-block-mobile { display: block !important; }
    .form-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; row-gap: 18px; }
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-lg); }
    .container { padding: 0 var(--space-3); }
}

@media (min-width: 1200px) {
    .d-none-desktop { display: none !important; }
    .d-block-desktop { display: block !important; }
    .product-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; row-gap: 20px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .d-none-desktop { display: none !important; }
    .d-block-desktop { display: block !important; }
    .product-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; row-gap: 20px; }
}

@media (min-width: 769px) and (max-width: 991px) {
    .d-none-desktop { display: none !important; }
    .d-block-desktop { display: block !important; }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; row-gap: 18px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; row-gap: 18px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; row-gap: 16px; }
    .product-card .product-info { padding: 6px; }
    .product-card .price-current { font-size: 13px; }
}

/* ============================================================
   DASHBOARD STATS (Admin/Seller)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: box-shadow var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--color-info-bg); color: var(--color-info); }
.stat-icon.green { background: var(--color-success-bg); color: var(--color-success); }
.stat-icon.orange { background: var(--color-warning-bg); color: var(--color-warning); }
.stat-icon.red { background: var(--color-danger-bg); color: var(--color-danger); }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }

.stat-info h4 {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    font-family: var(--font-display);
}

.stat-change {
    font-size: var(--text-xs);
    margin-top: var(--space-1);
}

.stat-change.positive { color: var(--color-success); }
.stat-change.negative { color: var(--color-danger); }

/* ============================================================
   ORDER STATUS TIMELINE
   ============================================================ */
.order-timeline {
    display: flex;
    justify-content: space-between;
    padding: var(--space-6) 0;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gray-200);
    transform: translateY(-15px);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    font-size: var(--text-xs);
    margin-bottom: var(--space-2);
    transition: all var(--transition-base);
}

.timeline-step.completed .timeline-dot {
    background: var(--color-success);
    color: var(--color-white);
}

.timeline-step.current .timeline-dot {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(233, 69, 96, 0.1); }
}

.timeline-label {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-align: center;
    font-weight: var(--weight-medium);
}

.timeline-step.completed .timeline-label {
    color: var(--color-success);
}

.timeline-step.current .timeline-label {
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

/* ============================================================
   PLACEHOLDER SVG
   ============================================================ */
.placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-size: var(--text-3xl);
}

/* ============================================================
   VERIFIED BLUE TICK BADGE (MODERN ROSETTE SVG)
   ============================================================ */
.mz-verified-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 132, 255, 0.35));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    cursor: default;
}

.mz-verified-badge:hover {
    transform: scale(1.15);
}

.mz-verified-badge svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.mz-badge-xs { width: 14px !important; height: 14px !important; margin-left: 2px; }
.mz-badge-sm { width: 18px !important; height: 18px !important; margin-left: 3px; }
.mz-badge-md { width: 20px !important; height: 20px !important; margin-left: 4px; }
.mz-badge-lg { width: 24px !important; height: 24px !important; margin-left: 5px; }
.mz-badge-avatar {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    padding: 1px !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    z-index: 5;
}
.mz-badge-avatar:hover {
    transform: scale(1.12);
}

/* ============================================================
   INSTAGRAM / CREATOR AVATAR RING BORDER
   ============================================================ */
.insta-avatar-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 8px rgba(220, 39, 67, 0.22);
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    box-sizing: border-box;
}

.insta-avatar-ring:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
}

.insta-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff !important;
    object-fit: cover;
    background: #ffffff;
    display: block;
    box-sizing: border-box;
}
