/**
 * BoomerangPetshop - Modern Theme
 * Version: 2.0.0
 */

/* Local fonts (self-hosted). Add font files to public/assets/fonts/plus-jakarta/*.woff2 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/public/assets/fonts/plus-jakarta/plus-jakarta-regular.woff2') format('woff2');
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0;
}

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

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

/* ===== Buttons ===== */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

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

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

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--gray-900);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--gradient-dark);
    color: var(--white);
    font-size: 0.8125rem;
    padding: 0.75rem 0;
}

.top-bar-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.top-bar-link {
    color: rgba(255,255,255,0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.top-bar-link:hover { color: var(--white); }

/* ===== Main Header ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-900);
}

.header-logo img {
    max-height: 48px;
    height: 48px;
    width: auto;
    display: block;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 0 0.5rem;
    transition: var(--transition);
}

.header-search:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.header-search .search-icon {
    padding: 0 1rem;
    color: var(--gray-400);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    outline: none;
}

.header-search .search-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.header-search .search-btn:hover {
    transform: scale(1.05);
}

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

.header-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    transition: var(--transition);
}

.header-action:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.action-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.header-action:hover .action-icon {
    background: var(--primary);
    color: var(--white);
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.action-text small {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

.action-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-action .action-icon {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Search */
.mobile-search {
    padding: 0.75rem 0 1rem;
}

.mobile-search form {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 0 1rem;
}

.mobile-search i { color: var(--gray-400); }

.mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    outline: none;
}

/* ===== Main Navigation ===== */
.main-nav {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.categories-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.categories-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.categories-menu {
    min-width: 280px;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.categories-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: var(--transition);
}

.categories-menu .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.categories-menu .dropdown-item i:first-child {
    width: 24px;
    text-align: center;
    color: var(--gray-500);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .nav-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu .nav-link:hover {
    color: var(--primary);
}

.nav-menu .nav-link.sale {
    color: var(--danger);
    font-weight: 600;
}

.nav-support {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding: 0.5rem 0;
    color: var(--gray-700);
}

.nav-support i {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-support small {
    display: block;
    font-size: 0.6875rem;
    color: var(--gray-500);
}

.nav-support strong {
    font-size: 0.9375rem;
}

/* ===== Dropdown Menu ===== */
.modern-dropdown {
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.modern-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: var(--transition);
}

.modern-dropdown .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.modern-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ===== Mobile Offcanvas ===== */
.modern-offcanvas {
    width: 320px !important;
}

.modern-offcanvas .offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.offcanvas-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.offcanvas-logo i { color: var(--primary); }
.offcanvas-logo strong { color: var(--primary); }

.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
}

.modern-offcanvas .offcanvas-body {
    padding: 1.5rem;
}

.user-card-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-list li a:hover { color: var(--primary); }

.mobile-nav-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
}

/* ===== Toast Notifications ===== */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform var(--transition-slow);
}

.toast-notification.show { transform: translateX(0); }
.toast-notification.hide { transform: translateX(120%); }

.toast-notification.success .toast-icon { color: var(--success); }
.toast-notification.error .toast-icon { color: var(--danger); }

.toast-icon { font-size: 1.5rem; }
.toast-content { font-weight: 500; color: var(--gray-700); }

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    padding: 5rem 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.hero-stats .stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.hero-stats .stat span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; left: 10%; }
.shape-3 { width: 200px; height: 200px; top: 50%; right: 20%; }

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Section Styles ===== */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header.centered {
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-badge.sale {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--danger);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
}

.section-header:not(.centered) {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 5rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition);
}

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

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.category-count {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.category-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary);
    color: var(--white);
}

/* ===== Products Section ===== */
.products-section {
    padding: 5rem 0;
}

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

.products-section.sale-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-badges .badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.new { background: var(--success); color: var(--white); }
.badge.sale { background: var(--danger); color: var(--white); }
.badge.bestseller { background: var(--warning); color: var(--gray-900); }

.product-quick-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.quick-action:hover {
    background: var(--primary);
    color: var(--white);
}

.out-of-stock {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.out-of-stock span {
    background: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray-700);
}

.product-info {
    padding: 1.25rem;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.375rem;
}

.product-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--gray-900);
}

.product-title a:hover { color: var(--primary); }

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
    color: var(--warning);
    font-size: 0.8125rem;
}

.product-rating .count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.price-old {
    font-size: 0.9375rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-actions { margin-top: auto; }

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-add-cart.options {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-add-cart.options:hover {
    background: var(--gray-200);
    box-shadow: none;
    transform: none;
}

.btn-add-cart.notify {
    background: var(--gray-800);
}

/* ===== Promo Section ===== */
.promo-section {
    padding: 5rem 0;
}

.promo-card {
    position: relative;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: var(--white);
    overflow: hidden;
}

.promo-content { position: relative; z-index: 2; max-width: 500px; }

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.promo-description {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.promo-code {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.promo-decoration {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10rem;
    opacity: 0.1;
}

/* ===== Brands Section ===== */
.brands-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    min-width: 150px;
    transition: var(--transition);
}

.brand-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-item img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 5rem 0;
}

.newsletter-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
}

.newsletter-content i {
    font-size: 3rem;
    opacity: 0.8;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.newsletter-content p {
    opacity: 0.7;
    margin: 0;
}

.newsletter-form-inline {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    max-width: 450px;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
}

.newsletter-form-inline button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.newsletter-form-inline button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ===== Footer ===== */
.modern-footer {
    background: var(--gray-900);
    color: var(--white);
}

.footer-features {
    background: var(--gray-800);
    padding: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
}

.feature-text strong {
    display: block;
    font-size: 0.9375rem;
}

.feature-text span {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i { color: var(--primary-light); }
.footer-logo strong { color: var(--primary-light); }

.footer-about p {
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.25rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.contact-list li i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.contact-list a {
    color: rgba(255,255,255,0.7);
}

.contact-list a:hover { color: var(--white); }

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-form button {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover { transform: scale(1.05); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-methods, .cargo-partners {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-methods span, .cargo-partners span {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.payment-icons, .cargo-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icons img, .cargo-icons img {
    height: 24px;
    opacity: 0.7;
}

.copyright {
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* ===== Chat Widget ===== */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    transition: var(--transition);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-status {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
}

.message-content {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    max-width: 80%;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    outline: none;
}

.chat-input input:focus { border-color: var(--primary); }

.chat-input button {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover { transform: scale(1.05); }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 7rem;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .header-inner { gap: 1rem; }
    .action-text { display: none !important; }
}

@media (max-width: 991px) {
    .header-search { display: none !important; }
    .nav-inner { flex-wrap: wrap; padding: 0.75rem 0; }
    .nav-support { width: 100%; justify-content: center; margin: 0.5rem 0 0; }
    .hero-title { font-size: 2.25rem; }
    .hero-stats { gap: 2rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-card { text-align: center; justify-content: center; }
    .newsletter-content { flex-direction: column; }
    .newsletter-form-inline { width: 100%; max-width: none; }
}

@media (max-width: 767px) {
    .hero-section { padding: 3rem 0; min-height: auto; }
    .hero-title { font-size: 1.75rem; }
    .hero-stats { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .section-title { font-size: 1.5rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .promo-card { padding: 2rem; }
    .promo-title { font-size: 1.5rem; }
    .promo-decoration { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo, .social-links { justify-content: center; }
    .bottom-content { flex-direction: column; text-align: center; }
    .chat-box { width: 300px; right: -1rem; }
}

@media (max-width: 575px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { padding: 1.25rem; }
    .category-icon { width: 48px; height: 48px; font-size: 1.25rem; }
    .product-info { padding: 1rem; }
    .price-current { font-size: 1rem; }
}
/* ===== Quantity Input ===== */
.input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.input-group .btn {
    flex-shrink: 0;
    z-index: 1;
    padding: 0.5rem 0.85rem;
}

.input-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control {
    border-radius: 0;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group .form-control:focus {
    z-index: 2;
}

.qty-minus,
.qty-plus {
    min-width: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.qty-minus:hover,
.qty-plus:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.input-group input[type="number"] {
    -moz-appearance: textfield;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-left: none;
    border-right: none;
}

.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Product Detail Buttons ===== */
.add-to-cart-btn {
    min-height: 54px;
}

.btn-outline-secondary.btn-lg {
    min-width: 54px;
    min-height: 54px;
    padding: 0.75rem;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

.toast.text-bg-success { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; }
.toast.text-bg-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; }
.toast.text-bg-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }
.toast.text-bg-info { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important; }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Cart Count Badge ===== */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.action-icon {
    position: relative;
}

/* ===== Checkout Sidebar Sticky Adjustment ===== */
.checkout-page .sidebar-summary.sticky-top {
    top: 90px !important; /* sit below header (header z-index:1000) */
    z-index: 999; /* lower than header so header stays above */
}

@media (max-width: 991px) {
    /* Disable sticky behaviour on smaller screens to avoid overlap and layout issues */
    .checkout-page .sidebar-summary.sticky-top {
        position: static !important;
        top: auto !important;
    }
}
