/* =====================================================
   FOOD CITY - PREMIUM BLUE & WHITE E-COMMERCE UI
   Mobile-app inspired, fully responsive
   ===================================================== */

:root {
    --primary: #0a4d8c;
    --primary-dark: #063a6b;
    --primary-light: #1e6bb8;
    --accent: #22d3ee;
    --accent-dark: #0ea5e9;
    --white: #ffffff;
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --card-shadow: 0 4px 20px -2px rgb(0 0 0 / 0.06), 0 2px 8px -2px rgb(0 0 0 / 0.03);
    --card-shadow-hover: 0 12px 30px -4px rgb(10 77 140 / 0.12), 0 4px 12px -2px rgb(0 0 0 / 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

/* Layout */
.main-content {
    min-height: 100vh;
    padding-bottom: 72px; /* space for professional bottom nav */
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 420px;
}

.search-form {
    position: relative;
    display: flex;
}

.search-input, .search-form input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.95rem;
    background: var(--bg-soft);
    transition: var(--transition);
    outline: none;
}

.search-input:focus, .search-form input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 77, 140, 0.08);
}

.search-btn, .search-form button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
}

.header-icon-link:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: none;
    padding: 6px 12px 6px 6px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow-hover);
    min-width: 180px;
    padding: 6px 0;
    display: none;
    z-index: 200;
}

.user-menu.show {
    display: block;
}

.user-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.user-menu a:hover {
    background: var(--bg-soft);
}

.menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

/* Top Navigation */
.top-nav {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 28px;
}

.top-nav a {
    padding: 14px 0;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
    position: relative;
    transition: color 0.2s ease;
}

.top-nav a.active,
.top-nav a:hover {
    color: #0a4d8c;
}

.top-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #0a4d8c;
    border-radius: 3px;
}

.admin-link {
    margin-left: auto;
    font-size: 0.85rem !important;
    color: var(--accent-dark) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

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

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

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

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

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
    border-color: #e0f2fe;
}

.product-image {
    position: relative;
    aspect-ratio: 1.15 / 1;
    background: #f1f5f9;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 9999px;
}

.product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.stock-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.68rem;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.stock-badge.in {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.stock-badge.low {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.stock-badge.out {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.product-info {
    padding: 13px 14px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
}

.product-actions .btn {
    flex: 1;
    padding: 9px 0;
    font-size: 0.82rem;
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 20px;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 2.1rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 26px;
}

.hero .btn {
    background: white;
    color: var(--primary);
    box-shadow: 0 6px 18px -4px rgb(0 0 0 / 0.2);
}

/* Category Grid */
.section {
    padding: 26px 20px 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.section-header a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 14px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: #e0f2fe;
}

.category-card .icon {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    color: #0a4d8c;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.2s ease;
}

.category-card .name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Filters */
.filters {
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filters select, .filters input {
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg);
}

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

/* Product Details */
.product-detail {
    display: grid;
    gap: 28px;
    padding: 20px;
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-image {
    background: #f8fafc;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.detail-image img {
    width: 100%;
    display: block;
}

.detail-info h1 {
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.detail-desc {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.qty-selector button {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 1.3rem;
    border-radius: 50%;
    cursor: pointer;
}

.qty-selector input {
    width: 56px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px;
    font-size: 1.05rem;
}

/* Cart */
.cart-item {
    display: flex;
    gap: 14px;
    background: white;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
}

.cart-item-image {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
}

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

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

.cart-item-name {
    font-weight: 600;
    line-height: 1.2;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    margin: 3px 0 8px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 1.1rem;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    position: sticky;
    bottom: 80px;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
    background: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.08);
    outline: none;
}

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

/* =====================================================
   PROFESSIONAL MOBILE BOTTOM NAVIGATION
   Clean, trustworthy, high-quality app style
   ===================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 6px;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
    height: 62px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 8px;
    position: relative;
    min-width: 52px;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item.active {
    color: #0a4d8c;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item svg {
    width: 23px;
    height: 23px;
    transition: transform 0.2s ease;
}

.mobile-bottom-nav .nav-item.active svg {
    transform: translateY(-1px);
}

/* Professional active indicator */
.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: #0a4d8c;
    border-radius: 3px;
}

.mobile-bottom-nav .nav-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    background: #22d3ee;
    color: #0a4d8c;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0 4px;
    border: 1.5px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 340px;
}

.toast {
    background: #0f172a;
    color: white;
    padding: 13px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.2s ease forwards;
}

.toast.success { background: #0f172a; border-left: 4px solid var(--success); }
.toast.error { background: #0f172a; border-left: 4px solid var(--danger); }

@keyframes slideUp {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Loading */
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Flash Messages */
.flash-message {
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 0 20px;
}

.flash-content {
    padding: 13px 18px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #0f766e;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-content button {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

/* Admin */
.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: var(--bg-soft);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

tr:hover {
    background: #f8fafc;
}

/* Responsive */
.desktop-only { display: none !important; }
.mobile-only { display: block !important; }

@media (min-width: 768px) {
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
    
    .main-content {
        padding-bottom: 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 22px;
    }
    
    .hero {
        padding: 68px 40px;
        border-radius: 0 0 40px 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 30px 40px 40px;
    }
}

/* Utility */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 6px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* Small tweaks */
input[type="number"] {
    -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =====================================================
   MODERN ANIMATIONS & POLISH ENHANCEMENTS
   ===================================================== */

/* Smooth page load */
body {
    animation: fadeInPage 0.4s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Card - Premium hover & animation */
.product-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -6px rgb(10 77 140 / 0.12), 0 6px 12px -3px rgb(0 0 0 / 0.06);
}

.product-card .product-image img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Category Cards - Nice scale + lift */
.category-card {
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), 
                box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.category-card .icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--primary);
}

.category-card:hover .icon {
    transform: scale(1.08);
    background: #e0f2fe;
}

/* Button micro animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn:active::after {
    width: 300px;
    height: 300px;
    transition: 0s;
}

/* Add to cart success pulse */
.btn-primary.added {
    background: #10b981 !important;
    animation: cartSuccess 0.6s ease;
}

@keyframes cartSuccess {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cart count badge animation */
.icon-badge, .nav-badge {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-updated .icon-badge,
.cart-updated .nav-badge {
    transform: scale(1.4);
}

/* Hero subtle animation */
.hero {
    animation: heroSlide 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Professional Toast Animation */
.toast {
    animation: toastSlide 0.25s ease-out forwards;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translate(-50%, 18px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Form inputs focus glow */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 4px rgba(10, 77, 140, 0.1);
    border-color: var(--primary-light);
}

/* Section headers with subtle underline animation */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.section-header:hover h2:after {
    width: 100%;
}

/* Order cards and wishlist nice lift */
.cart-item, .profile-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    transform: translateX(4px);
}

/* Removed playful nav animation for professional feel */

/* Product detail page polish */
.detail-image {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-image:hover {
    transform: scale(1.015);
}

/* Empty state subtle icon animation (professional) */
.empty-state svg {
    transition: transform 0.3s ease;
}

.empty-state:hover svg {
    transform: scale(1.03);
}

/* Admin table hover polish */
table tbody tr {
    transition: background 0.1s ease;
}

table tbody tr:hover {
    background: #f8fafc;
}

/* Quantity selector buttons */
.qty-selector button {
    transition: all 0.15s ease;
}

.qty-selector button:active {
    transform: scale(0.85);
    background: #e0f2fe;
}