/**
 * Pickemart - Professional E-commerce Marketplace
 * Main Stylesheet
 * Minimal, clean design for modern marketplace
 */

/* ============================================
   CSS Variables & Design Tokens - Minimal Design
   ============================================ */
:root {
    /* Primary Colors - Professional Blue/Teal */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    /* Accent Colors - Subtle & Professional */
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;

    /* Neutral Colors - Clean Grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Background - Minimal & Clean */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;

    /* Borders - Subtle */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;

    /* Shadows - Minimal & Subtle */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Gradients - Minimal Use */
    --gradient-primary: var(--primary-600);
    --gradient-accent: var(--accent-orange);
    --gradient-success: var(--success);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius - Subtle */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Typography - Professional */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-800);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-md) * -0.5);
}

.col {
    flex: 1;
    padding: 0 calc(var(--spacing-md) * 0.5);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ============================================
   Header & Navigation - Minimal Design
   ============================================ */
.top-bar {
    background: var(--gray-900);
    color: var(--text-inverse);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--text-inverse);
    margin-left: var(--spacing-md);
}

.top-bar a:hover {
    opacity: 0.9;
}

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.header-main {
    padding: var(--spacing-md) 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-form {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary-600);
    background: var(--bg-primary);
    outline: none;
}

.search-btn {
    padding: 0.75rem 1.75rem;
    background: var(--primary-600);
    color: var(--text-inverse);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-700);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.header-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.header-action:hover {
    color: var(--primary-600);
}

.header-action i {
    font-size: 1.5rem;
}

.header-action span {
    font-size: 0.75rem;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: var(--text-inverse);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

/* Main Navigation - Minimal */
.main-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-600);
    background: transparent;
}

.nav-link i {
    font-size: 1.125rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    background: var(--gradient-primary);
    color: var(--text-inverse);
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-inverse);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-search {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-2xl);
}

/* ============================================
   Buttons - Minimal & Professional
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-600);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--primary-700);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: var(--text-inverse);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--text-inverse);
}

.btn-danger {
    background: var(--error);
    color: var(--text-inverse);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Cards - Minimal Design
   ============================================ */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-sm);
}

.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--gray-100);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.card:hover .card-img img {
    opacity: 0.95;
}

.card-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--accent-red);
    color: var(--text-inverse);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.card-actions {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.card-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.card-action-btn:hover {
    background: var(--primary-600);
    color: var(--text-inverse);
    transform: scale(1.1);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.card-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.price-original {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-discount {
    background: var(--accent-red);
    color: var(--text-inverse);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   Product Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* ============================================
   Star Rating
   ============================================ */
.star-rating {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.875rem;
    color: var(--accent-yellow);
}

.star-rating .far {
    color: var(--gray-300);
}

.rating-number {
    margin-left: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-500);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* ============================================
   Alerts & Messages
   ============================================ */
.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--info);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-3xl);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--gray-800);
}

.footer-widget h4 {
    color: var(--text-inverse);
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-600);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.p-1 {
    padding: var(--spacing-sm);
}

.p-2 {
    padding: var(--spacing-md);
}

.p-3 {
    padding: var(--spacing-lg);
}

.p-4 {
    padding: var(--spacing-xl);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 {
    gap: var(--spacing-sm);
}

.gap-2 {
    gap: var(--spacing-md);
}

.gap-3 {
    gap: var(--spacing-lg);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 8px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid var(--border-light);
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .header-actions {
        margin-left: auto;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-img-wrapper {
        height: 200px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.125rem;
    }

    /* Slider adjustments */
    .slider-container {
        min-height: 250px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9375rem;
    }

    /* Category grid */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Section spacing */
    section {
        padding: 30px 0;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Tables - make scrollable on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-img-wrapper {
        height: 180px;
    }

    .product-title {
        font-size: 0.875rem;
        line-height: 1.4;
        height: 2.8em;
        overflow: hidden;
    }

    .product-price {
        font-size: 0.875rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 8px;
    }

    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
        padding: 10px;
        font-size: 0.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Header improvements */
    .header-top {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    .header-main {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action {
        padding: 8px;
        font-size: 1.125rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 12px;
        font-size: 0.9375rem;
    }

    /* Tables */
    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    /* Cards */
    .card-body {
        padding: 15px;
    }

    /* Hero section */
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Product detail page */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

.animate-slide-in {
    animation: slideIn var(--transition-base) ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Display Utilities */
@media (min-width: 576px) {
    .d-sm-none {
        display: none !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .d-sm-flex {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }

    .d-xl-block {
        display: block !important;
    }

    .d-xl-flex {
        display: flex !important;
    }
}

/* ============================================
   Premium Redesign Styles (Appended)
   ============================================ */

/* Hero Section Redesign */
.hero-section {
    padding: 30px 0;
    background: var(--bg-secondary);
}

.hero-wrapper {
    display: flex;
    gap: 20px;
}

.hero-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: none;
}

@media (min-width: 992px) {}

.promo-banner.orange {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.promo-banner.orange:hover {
    background: var(--accent-orange);
    color: white;
}

/* Feature Bar - Minimal */
.feature-bar {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--primary-600);
    font-size: 1.2rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--primary-600);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-link {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Premium Product Card */
.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.badge-sale {
    background: #ff4757;
}

.badge-new {
    background: #2ed573;
}

.badge-hot {
    background: #ffa502;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: -40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: right 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    right: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--primary-600);
    color: white;
}

.product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--primary-600);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #ffa502;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.new-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-700);
}

.old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.product-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-add-cart {
    background: #e8f5e9;
    color: var(--primary-700);
    border: 1px solid #c8e6c9;
    font-size: 0.85rem;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.btn-buy-now {
    background: #ff6f00 !important;
    background-color: #ff6f00 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.85rem;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.btn-buy-now:hover {
    background: #e65100 !important;
    background-color: #e65100 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

.btn-buy-now:visited,
.btn-buy-now:active,
.btn-buy-now:link {
    color: #ffffff !important;
    background: #ff6f00 !important;
    background-color: #ff6f00 !important;
}

/* Order Now Button (Checkout Page) */
.btn-order {
    width: 100%;
    padding: 15px 20px;
    background: #ff6f00 !important;
    background-color: #ff6f00 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-order:hover {
    background: #e65100 !important;
    background-color: #e65100 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.4);
}

.btn-order:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 111, 0, 0.3);
}

.btn-order:disabled {
    background: #cccccc !important;
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}