/* ============================================
   BALEJO CREATIVE REDESIGN - ENHANCEMENTS
   Strategic spacing reduction + Visual hierarchy + Innovative layouts
   ============================================ */

/* ============================================
   SPACING OPTIMIZATION
   ============================================ */
:root {
    /* Reduced spacing for tighter, more efficient layouts */
    --spacing-xs: 0.375rem;  /* 6px - reduced from 8px */
    --spacing-sm: 0.75rem;   /* 12px - reduced from 16px */
    --spacing-md: 1.25rem;   /* 20px - reduced from 24px */
    --spacing-lg: 1.75rem;   /* 28px - reduced from 32px */
    --spacing-xl: 2.5rem;    /* 40px - reduced from 48px */
    
    /* Enhanced shadows for better depth perception */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 8px 24px rgba(254, 107, 64, 0.15), 0 4px 12px rgba(111, 156, 61, 0.1);
    --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
    
    /* Enhanced gradients */
    --gradient-card: linear-gradient(135deg, rgba(254, 107, 64, 0.05) 0%, rgba(111, 156, 61, 0.05) 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    --gradient-text: linear-gradient(135deg, #fe6b40 0%, #6f9c3d 100%);
    
    /* Animation timings */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   CONTAINER & LAYOUT OPTIMIZATION
   ============================================ */
.container {
    padding: 0 var(--spacing-md);
    max-width: 1400px; /* Slightly wider for better use of space */
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

.main-content {
    padding: var(--spacing-md) 0 var(--spacing-lg); /* Reduced top padding */
    min-height: calc(100vh - 180px);
}

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */
.header {
    padding: var(--spacing-sm) 0; /* Reduced padding */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-top {
    padding: var(--spacing-sm) 0; /* Reduced padding */
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-section {
    margin: var(--spacing-sm) 0; /* Reduced margin */
}

/* ============================================
   PRODUCT CARDS - INNOVATIVE DESIGN
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md); /* Tighter gap */
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.product-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(254, 107, 64, 0.08);
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Creative overlay effect */
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(254, 107, 64, 0.2);
}

.product-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(111, 156, 61, 0.03) 100%);
}

.product-card.featured::after {
    content: '⭐';
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    font-size: 1.25rem;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.product-card .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}

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

.product-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: var(--spacing-xs);
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin: var(--spacing-xs) 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.product-meta {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-meta span {
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Badge enhancements */
.featured-badge,
.new-badge,
.discount-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.featured-badge {
    background: var(--gradient-primary);
    color: white;
}

.new-badge {
    background: var(--secondary-color);
    color: white;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
}

/* ============================================
   CATEGORY CARDS - CREATIVE DESIGN
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.category-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: 140px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition-smooth);
}

.category-card:hover::before {
    opacity: 1;
}

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

.category-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-bounce);
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

.category-new-badge {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

/* ============================================
   SECTION HEADERS - ENHANCED HIERARCHY
   ============================================ */
.section-header,
.categories-section-header {
    margin-bottom: var(--spacing-md); /* Reduced margin */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.section-header h2,
.categories-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-header h2,
    .categories-section-header h2 {
        font-size: 1.5rem;
    }
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(254, 107, 64, 0.08);
}

.view-all-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(4px);
}

/* ============================================
   BANNER SECTION - DYNAMIC DESIGN
   ============================================ */
.banner-section {
    margin-bottom: var(--spacing-lg); /* Reduced margin */
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.banner-item {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.banner-item:hover .banner-image {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: var(--gradient-overlay);
    color: white;
    z-index: 2;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.banner-cta {
    display: inline-block;
    margin-top: var(--spacing-sm);
}

/* ============================================
   BUTTONS - ENHANCED WITH ANIMATIONS
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    min-height: 44px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 107, 64, 0.4);
}

.btn-secondary {
    background: var(--gradient-primary-reverse);
    color: white;
    box-shadow: 0 4px 12px rgba(111, 156, 61, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 156, 61, 0.4);
}

.add-listing-btn-header {
    background: var(--gradient-primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.25);
    transition: var(--transition-smooth);
}

.add-listing-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 107, 64, 0.35);
}

/* ============================================
   TRENDING TAGS - CREATIVE CHIPS
   ============================================ */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    background: var(--bg-color);
    border: 2px solid rgba(254, 107, 64, 0.15);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tag-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.tag-badge:hover::before {
    left: 0;
}

.tag-badge:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.tag-count {
    background: rgba(254, 107, 64, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-badge:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ============================================
   PRODUCTS PAGE - OPTIMIZED LAYOUT
   ============================================ */
.products-layout {
    gap: var(--spacing-md); /* Reduced gap */
}

.filters-sidebar {
    padding: var(--spacing-md); /* Reduced padding */
    border-radius: var(--radius-lg);
    top: calc(var(--spacing-md) + 80px);
    max-height: calc(100vh - 100px);
}

.results-header {
    padding: var(--spacing-md); /* Reduced padding */
    margin-bottom: var(--spacing-md); /* Reduced margin */
    border-radius: var(--radius-lg);
}

.results-title {
    font-size: 1.5rem; /* Slightly smaller */
    margin-bottom: var(--spacing-xs);
}

.filter-chips {
    gap: var(--spacing-xs); /* Tighter gap */
    margin-top: var(--spacing-sm);
}

.filter-chip {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
}

/* ============================================
   CARDS & SECTIONS - TIGHTER SPACING
   ============================================ */
.card,
.dashboard-section,
.product-detail {
    padding: var(--spacing-md); /* Reduced padding */
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md); /* Reduced margin */
}

.section-header {
    margin-bottom: var(--spacing-md); /* Reduced margin */
}

/* ============================================
   FORMS - OPTIMIZED SPACING
   ============================================ */
.auth-container {
    padding: var(--spacing-lg); /* Reduced padding */
    margin: var(--spacing-lg) auto;
}

.form-group {
    margin-bottom: var(--spacing-md); /* Reduced margin */
}

/* ============================================
   FOOTER - COMPACT DESIGN
   ============================================ */
.footer {
    padding: var(--spacing-lg) 0 var(--spacing-md); /* Reduced padding */
    margin-top: var(--spacing-xl);
}

.footer-content {
    padding: var(--spacing-md) 0;
}

/* ============================================
   BOTTOM NAV - ENHANCED DESIGN
   ============================================ */
.bottom-nav {
    padding: var(--spacing-sm) 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.bottom-nav-link {
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.bottom-nav-link.active {
    background: var(--gradient-card);
    color: var(--primary-color);
}

.bottom-nav-add-btn {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.3);
    transition: var(--transition-bounce);
}

.bottom-nav-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(254, 107, 64, 0.4);
}

/* ============================================
   RESPONSIVE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-content {
        padding: var(--spacing-md);
    }
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   MASONRY-STYLE GRID (Alternative Layout)
   ============================================ */
.products-grid.masonry {
    column-count: 3;
    column-gap: var(--spacing-md);
    column-fill: balance;
}

.products-grid.masonry .product-card {
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    width: 100%;
}

@media (max-width: 1024px) {
    .products-grid.masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .products-grid.masonry {
        column-count: 1;
    }
}

/* ============================================
   OVERLAPPING CARD EFFECTS
   ============================================ */
.featured-products-section .products-grid {
    position: relative;
}

.featured-products-section .product-card:nth-child(2) {
    transform: translateY(8px);
    z-index: 1;
}

.featured-products-section .product-card:nth-child(3) {
    transform: translateY(16px);
    z-index: 2;
}

.featured-products-section .product-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    z-index: 10;
}

/* ============================================
   CREATIVE IMAGE OVERLAYS
   ============================================ */
.product-card {
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::after {
    opacity: 0.1;
}

/* ============================================
   ENHANCED SEARCH SECTION
   ============================================ */
.search-section {
    margin: var(--spacing-md) 0;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: var(--bg-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.search-input {
    border: none;
    background: transparent;
    padding: var(--spacing-md);
    font-size: 1rem;
    width: 100%;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    position: absolute;
    right: var(--spacing-xs);
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.3);
}

/* ============================================
   STICKY SECTION HEADERS
   ============================================ */
.section-header {
    position: sticky;
    top: 80px;
    background: var(--bg-secondary);
    padding: var(--spacing-sm) 0;
    z-index: 100;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(254, 107, 64, 0.1);
}

@media (max-width: 768px) {
    .section-header {
        position: static;
    }
}

/* ============================================
   ENHANCED PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 44px;
    min-height: 44px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    background: var(--bg-color);
    border: 2px solid rgba(254, 107, 64, 0.15);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
}

/* ============================================
   ENHANCED FILTER CHIPS
   ============================================ */
.filter-chip {
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.filter-chip:hover::before {
    left: 100%;
}

/* ============================================
   PRODUCT DETAIL PAGE ENHANCEMENTS
   ============================================ */
.product-detail-content {
    gap: var(--spacing-md); /* Reduced gap */
}

.product-image-section {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.product-info-section {
    padding: var(--spacing-md);
}

.product-info-section h1 {
    font-size: 1.75rem; /* Slightly smaller */
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-large {
    font-size: 2rem; /* Slightly smaller */
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   DASHBOARD ENHANCEMENTS
   ============================================ */
.dashboard-content {
    gap: var(--spacing-md); /* Reduced gap */
}

.dashboard-section {
    padding: var(--spacing-md); /* Reduced padding */
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(254, 107, 64, 0.1);
}

/* ============================================
   FLASH MESSAGES ENHANCEMENTS
   ============================================ */
.flash-message {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    animation: slideInDown 0.4s ease-out;
}

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

.flash-success {
    background: linear-gradient(135deg, rgba(111, 156, 61, 0.1) 0%, rgba(111, 156, 61, 0.05) 100%);
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.05) 100%);
    border-left: 4px solid var(--danger-color);
}

/* ============================================
   TABLES ENHANCEMENTS
   ============================================ */
.products-table table,
.admin-table table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.products-table tr,
.admin-table tr {
    transition: var(--transition);
}

.products-table tr:hover,
.admin-table tr:hover {
    background: var(--gradient-card);
    transform: scale(1.01);
}

/* ============================================
   STAT CARDS (if used)
   ============================================ */
.stat-card {
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

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

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card,
    .category-card,
    .card {
        border-width: 2px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .bottom-nav,
    .floating-menu-btn {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .product-card,
    .category-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

