/* ========================================
   QUANAOONLINE - E-Commerce CSS System
   Modern, Clean, Professional Design
   ======================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f43f5e;
    --accent-dark: #e11d48;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --black: #000000;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.2s ease;
    --transition-fast: 0.15s ease;
    --transition-slow: 0.4s ease;
    /* Aliases */
    --color-primary: var(--primary);
    --color-secondary: var(--secondary);
    --color-accent: var(--accent);
    --color-accent-hover: var(--accent-dark);
    --color-bg: var(--gray-50);
    --color-white: var(--white);
    --color-text: var(--gray-900);
    --color-text-secondary: var(--gray-600);
    --color-text-muted: var(--gray-400);
    --color-border: var(--gray-200);
    --color-border-light: var(--gray-100);
    --font-display: var(--font-sans);
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

/* ---------- LAYOUT ---------- */
.wrap, .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    height: 64px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo strong {
    color: var(--accent);
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Nav */
.nav-menu {
    display: flex;
    gap: 0.25rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
    background: var(--gray-50);
}

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

/* Header Search - Icon inside input */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 240px;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--gray-50);
    transition: var(--transition);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search-input::placeholder {
    color: var(--gray-400);
}

.header-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.header-search-btn:hover {
    color: var(--primary);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 1rem;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--gray-100);
    color: var(--accent);
}

.cart-icon {
    position: relative;
}

.cart-num {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

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

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transform: translateX(-100%);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.mobile-nav-header span {
    font-weight: 700;
    font-size: 1.125rem;
}

.mobile-nav-header strong {
    color: var(--accent);
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-500);
}

.mobile-nav-close:hover {
    background: var(--gray-100);
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
}

.mobile-nav a:hover {
    background: var(--gray-50);
    color: var(--accent);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
    padding-top: 64px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 4rem 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

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

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

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.hero-stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-img {
    display: flex;
    justify-content: center;
}

.hero-img-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-box i {
    font-size: 6rem;
    color: rgba(255,255,255,0.1);
}

/* ========================================
   SECTION
   ======================================== */
.section {
    padding: 3rem 0;
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.section-link {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.section-link:hover {
    color: var(--accent-dark);
}

/* ========================================
   CATEGORIES
   ======================================== */
.cate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.cate-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.cate-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.cate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: var(--white);
}

.cate-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cate-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */
.prod-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.prod-card, .product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.prod-card:hover, .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.prod-img, .product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--gray-100);
    overflow: hidden;
}

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

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

.prod-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--white);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.badge-new {
    background: var(--success);
}

.badge-hot {
    background: var(--warning);
}

.badge-sale {
    background: var(--accent);
}

.prod-actions, .product-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(8px);
    transition: var(--transition);
}

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

.prod-action, .action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.prod-action:hover, .action-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.prod-quick, .product-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-800);
    color: var(--white);
    padding: 0.625rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: var(--transition);
}

.prod-card:hover .prod-quick,
.product-card:hover .product-quick-add {
    transform: translateY(0);
}

.prod-quick:hover,
.product-quick-add:hover {
    background: var(--accent);
}

.prod-info, .product-info {
    padding: 1rem;
}

.prod-cate, .product-category {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.prod-name, .product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

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

.prod-price, .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.prod-price-old {
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 0.375rem;
}

/* ========================================
   FILTERS
   ======================================== */
.filters-section {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    min-width: 140px;
    transition: var(--transition);
    background: var(--white);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--accent-dark);
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-500);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--gray-600);
}

/* ========================================
   PROMO BANNER
   ======================================== */
.promo {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: var(--white);
}

.promo-tag {
    display: inline-block;
    background: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.promo h2 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.promo h2 span {
    color: var(--warning);
}

.promo p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

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

.footer-logo i {
    font-size: 1.5rem;
    color: var(--accent);
}

.footer-logo strong {
    color: var(--accent);
}

.footer-about {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 0.125rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--gray-400);
}

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

/* ========================================
   BACK TO TOP
   ======================================== */
.back-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--gray-700);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: var(--accent);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 2.5rem;
}

.pagination li a,
.pagination li span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.pagination li a:hover {
    border-color: var(--gray-700);
    color: var(--gray-900);
}

.pagination li.active span {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
}

/* ========================================
   USER MENU
   ======================================== */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--gray-100);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--gray-50);
    color: var(--accent);
}

.user-dropdown i {
    width: 16px;
    color: var(--gray-400);
}

.user-dropdown a:hover i {
    color: var(--accent);
}

.user-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.25rem 0;
}

.user-dropdown .danger {
    color: var(--accent);
}

.user-dropdown .danger i {
    color: var(--accent);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    padding: 3rem 0;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

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

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ========================================
   RESULTS INFO
   ======================================== */
.results-info {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.results-info i {
    color: var(--success);
}

.results-info strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* ========================================
   PRODUCT IMAGE STYLES
   ======================================== */

/* Product Image Container */
.prod-img, .product-image, .card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

/* Image Zoom Effect */
.prod-img img, .product-image img, .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.prod-card:hover .prod-img img,
.product-card:hover .product-image img,
.related-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Image Overlay */
.prod-img::after, .product-image::after, .card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.prod-card:hover .prod-img::after,
.product-card:hover .product-image::after,
.related-card:hover .card-img-wrapper::after {
    opacity: 1;
}

/* Image Placeholder */
.no-image-placeholder, .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-400);
    gap: 0.5rem;
}

.no-image-placeholder i, .image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.no-image-placeholder span, .image-placeholder span {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Product Badge Improvements */
.prod-badge, .product-badge {
    position: absolute;
    z-index: 3;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.prod-badge {
    top: 0.75rem;
    left: 0.75rem;
}

.product-badge {
    display: inline-block;
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 3;
}

.badge-new {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.badge-hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-sale {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* Product Actions Improvements */
.prod-actions, .product-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(12px);
    transition: all 0.3s ease;
    z-index: 4;
}

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

.prod-action, .action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.prod-action:hover, .action-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.prod-action.active, .action-btn.active {
    background: var(--accent);
    color: var(--white);
}

/* Quick Add Button */
.prod-quick, .product-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prod-card:hover .prod-quick,
.product-card:hover .product-quick-add {
    transform: translateY(0);
}

.prod-quick:hover, .product-quick-add:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* Wishlist Heart Animation */
.prod-action.wishlist.active i,
.action-btn.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Product Image Skeleton Loading */
.image-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-img {
        display: none;
    }
    .hero-text {
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .cate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prod-grid, .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero {
        padding: 2.5rem 0;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .section {
        padding: 2rem 0;
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .prod-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .prod-actions, .product-actions {
        opacity: 1;
        transform: translateX(0);
    }
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    .filter-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
    .promo {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.625rem;
    }
    .hero-btns {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .hero-stats {
        gap: 1.25rem;
    }
    .hero-stat-num {
        font-size: 1.375rem;
    }
    .cate-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .prod-grid, .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }
    .section-title {
        font-size: 1.125rem;
    }
    .prod-quick, .product-quick-add {
        font-size: 0.6875rem;
        padding: 0.5rem;
    }
}
