/* Variables & Reset */
:root {
    --primary: #0f4c81;
    --primary-dark: #0a365a;
    --primary-light: #eaf3fb;
    --secondary: #1e2a3a;
    --accent: #4ea8de;
    --success: #1b8f6a;
    --danger: #d5485f;
    --warning: #f0a33b;
    --text: #253244;
    --text-light: #63748b;
    --bg: #f4f8fc;
    --white: #ffffff;
    --border: #d8e3ef;
    --shadow: 0 10px 32px rgba(15, 76, 129, 0.08);
    --shadow-lg: 0 18px 44px rgba(15, 76, 129, 0.15);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);

}

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

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: #73bdee;
    border-color: #73bdee;
}

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

.btn-google {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.btn-block {
    width: 100%;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.18);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-add-cart.disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(15, 76, 129, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 76px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.07);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    height: 48px;
}

.logo img {
    height: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    max-height: 400px;
    overflow-y: auto;
}

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

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--primary-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: var(--text);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* Hero */
.hero {
    margin-top: 72px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="60" r="30" fill="rgba(255,255,255,0.08)"/><circle cx="90" cy="80" r="20" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.product-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(15, 76, 129, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 76, 129, 0.16);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.product-image-plain {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f0ff 100%);
}

.product-icon-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.1);
}

.product-detail-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
    font-size: 4rem;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.12);
}

.product-code {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-out {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 6px 0;
    line-height: 1.35;
    min-height: 2.8em;
}

.product-subname {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.product-presentation {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    min-height: 2.7em;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.42rem;
    font-weight: 800;
    color: var(--primary);
}

.sale-grid .product-card {
    border: 1px solid rgba(213, 72, 95, 0.14);
}

.price-current {
    font-size: 1.48rem;
    color: var(--danger);
    font-weight: 800;
}

.price-old {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-left: 8px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.products-actions {
    text-align: center;
    margin-top: 40px;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: var(--white);
}

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

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: var(--transition);
}

.category-card:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.category-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.category-arrow {
    color: var(--text-light);
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 1101;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}

.cart-close:hover {
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

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

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cart-total span:last-child {
    color: var(--primary);
}

/* Chatbot */
.chatbot-section {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,102,204,0.4);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0,102,204,0.5);
}

.chatbot-toggle i {
    font-size: 1.2rem;
}

.chatbot-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
}

.chatbot-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    height: 320px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bot-message {
    background: var(--primary-light);
    color: var(--text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-message {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chatbot-input {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

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

.chatbot-input button {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #10253a 0%, #1f3850 100%);
    color: rgba(255,255,255,0.84);
    padding-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.82);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        max-height: 400px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .chatbot-section {
        bottom: 16px;
        right: 16px;
    }
    
    .chatbot-toggle span {
        display: none;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.4s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }

/* Categories Page */
.products-main {
    margin-top: 72px;
    padding: 40px 0 60px;
    min-height: calc(100vh - 72px);
}

.page-header-category {
    margin-bottom: 40px;
}

.page-header-category h1 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.page-header-category p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    gap: 12px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: var(--transition);
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* =========================================================
   2026 PROFESSIONAL THEME SYSTEM + RESPONSIVE OVERRIDES
   ========================================================= */
html[data-theme="dark"] {
    --primary: #69b7f0;
    --primary-dark: #3f9ad8;
    --primary-light: rgba(105,183,240,.12);
    --secondary: #e9f1f8;
    --accent: #75c9f5;
    --text: #edf4fa;
    --text-light: #9fb0c0;
    --bg: #0d141b;
    --white: #141e28;
    --border: #263746;
    --shadow: 0 12px 34px rgba(0,0,0,.28);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.42);
}
html[data-theme="dark"] body { background:var(--bg); color:var(--text); }
html[data-theme="dark"] .header { background:rgba(20,30,40,.95); border-color:var(--border); }
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .user-dropdown,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .cart-sidebar,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .search-results,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .order-item { background:var(--white); color:var(--text); border-color:var(--border); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background:#0f1922; color:var(--text); border-color:var(--border); }
html[data-theme="dark"] .footer { background:#081018; }

.theme-toggle {
    width:42px;height:42px;border-radius:12px;border:1px solid var(--border);background:var(--white);color:var(--text);
    display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s ease;flex:0 0 auto;
}
.theme-toggle:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-1px); }

/* Tablet */
@media (max-width: 1100px) {
    .header { height:auto; min-height:74px; }
    .header-container { min-height:74px; flex-wrap:wrap; gap:12px; padding:10px 20px; }
    .search-bar { order:4; width:100%; max-width:none; }
    .hero-container { grid-template-columns:1fr !important; gap:32px !important; }
    .hero-visual { min-height:300px; }
    .products-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
    .categories-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

/* Real mobile navigation */
@media (max-width: 780px) {
    html, body { width:100%; max-width:100%; overflow-x:hidden; }
    body { padding-top:76px; }
    .header { height:76px; overflow:visible; }
    .header-container { height:76px; min-height:76px; padding:10px 14px; flex-wrap:nowrap; gap:9px; }
    .logo { height:42px; flex:0 0 auto; }
    .logo img { max-width:112px; }
    .menu-toggle { display:inline-flex !important; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid var(--border); border-radius:12px; background:var(--white); color:var(--text); order:2; }
    .header-actions { margin-left:auto; gap:7px; order:3; }
    .header-actions .btn-google { width:42px;height:42px;padding:0;font-size:0; }
    .header-actions .btn-google i { font-size:17px; }
    .user-name { display:none; }
    .user-btn { padding:4px !important; width:42px;height:42px;justify-content:center; }
    .cart-btn, .theme-toggle { width:42px;height:42px; }
    .search-bar { position:absolute; left:12px; right:12px; top:86px; width:auto; order:unset; box-shadow:var(--shadow); border-radius:14px; z-index:1003; }
    .nav { position:fixed !important; left:12px !important; right:12px !important; top:142px !important; width:auto !important; max-height:calc(100dvh - 160px); overflow:auto; padding:12px !important; border:1px solid var(--border); border-radius:18px; background:var(--white) !important; box-shadow:var(--shadow-lg); transform:translateY(-12px) scale(.98) !important; opacity:0; visibility:hidden; align-items:stretch !important; gap:4px !important; z-index:1002; }
    .nav.active { transform:translateY(0) scale(1) !important; opacity:1; visibility:visible; }
    .nav-link,.dropdown-trigger { width:100%; min-height:46px; justify-content:space-between; padding:12px 14px !important; text-align:left; }
    .dropdown-menu { position:static !important; width:100%; min-width:0; max-height:none !important; box-shadow:none !important; border:0; background:var(--bg); margin-top:4px; opacity:1 !important; visibility:visible !important; transform:none !important; display:none; }
    .nav-dropdown.open .dropdown-menu { display:block; }
    .categories-menu { grid-template-columns:1fr !important; padding:10px !important; }
    .hero { min-height:auto !important; padding:100px 0 46px !important; }
    .hero-container { padding:0 16px !important; }
    .hero-title { font-size:clamp(2rem,9vw,3rem) !important; line-height:1.06 !important; }
    .hero-subtitle { font-size:1rem !important; }
    .hero-stats { display:grid !important; grid-template-columns:repeat(3,1fr); gap:8px !important; }
    .hero-stat { min-width:0; }
    .hero-buttons { display:grid !important; grid-template-columns:1fr; }
    .hero-buttons .btn { width:100%; min-height:50px; }
    .hero-visual { display:none !important; }
    .container { width:100%; padding-left:16px !important; padding-right:16px !important; }
    section { scroll-margin-top:155px; }
    .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; }
    .product-card { border-radius:16px !important; min-width:0; }
    .product-info { padding:13px !important; }
    .product-name { font-size:.93rem !important; }
    .product-description { font-size:.8rem !important; }
    .product-footer { gap:8px; align-items:flex-end; }
    .btn-add-cart { min-height:42px; padding:8px 10px; font-size:.82rem; }
    .categories-grid { grid-template-columns:1fr !important; gap:12px !important; }
    .footer-main { grid-template-columns:1fr !important; padding-left:16px; padding-right:16px; }
    .cart-sidebar { width:min(100%,430px) !important; max-width:100vw; }
    .modal { padding:10px !important; }
    .modal-content { width:100% !important; max-height:92dvh; overflow:auto; border-radius:18px !important; }
    input,select,textarea,button { font-size:16px; }
    .table-container { overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
    table { min-width:680px; }
}

@media (max-width: 520px) {
    .products-grid { grid-template-columns:1fr !important; }
    .hero-stats { grid-template-columns:1fr !important; }
    .hero-stat { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border:1px solid var(--border); border-radius:12px; }
    .section-header { flex-direction:column; align-items:flex-start !important; gap:10px; }
    .btn { min-height:46px; }
    .chatbot-section { left:10px; right:10px; bottom:10px; }
    .chatbot-window { width:100% !important; max-width:none !important; height:min(72dvh,620px) !important; }
}

/* COVEGUSA 2026 accessibility polish */
:where(a,button,input,select,textarea,[tabindex]):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}
button,.btn,a.cart-btn,.menu-toggle { touch-action: manipulation; }
button:disabled,.btn:disabled { cursor: not-allowed; opacity: .62; }
img { max-width: 100%; }
.search-results:empty { display: none; }
@media (max-width: 760px) {
    input,select,textarea { font-size: 16px; }
    .btn,button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
