:root {
    --primary: #0b7a5f;
    --primary-dark: #065a45;
    --primary-light: #0d9e7a;
    --accent: #ff6b2c;
    --accent-hover: #e55a1b;
    --bg: #f0f2f5;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 60px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background 0.2s;
}

.search-bar:focus-within {
    background: rgba(255,255,255,0.25);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.6);
}

#search-btn {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#search-btn:hover {
    background: var(--accent-hover);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.2rem 0.45rem;
    border-radius: 0.2rem;
    cursor: pointer;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    font-weight: 600;
}

.icon-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.2);
}

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

.cart-bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.3); }
    50%  { transform: scale(0.9); }
    75%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== CART DROPDOWN ===== */
.cart-wrapper {
    position: relative;
}

.cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.cart-dropdown.open {
    display: block;
}

.cart-dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.cart-dropdown-items {
    max-height: 260px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cart-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 1.5rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.15s;
}

.cart-item:hover {
    background: var(--bg);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-desc {
    font-size: 0.7rem;
    color: #999;
    margin-top: 1px;
}
.cart-item-price {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cart-item-qty button {
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 0.2rem;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.15s;
}

.cart-item-qty button:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-item-qty span {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.2rem;
    text-align: center;
    color: var(--text);
}

.cart-dropdown-footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.cart-total strong {
    color: var(--accent);
    font-size: 1.05rem;
}

.cart-order-btn {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.6rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.cart-order-btn:hover {
    background: var(--accent-hover);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    overflow: hidden;
}

.promo-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.promo-text {
    flex: 1;
    min-width: 0;
    position: relative;
}

.promo-text-track {
    position: relative;
    min-height: 160px;
}

.promo-text-slide {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.promo-text-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.promo-text-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.promo-text-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.promo-text-dot.active {
    background: var(--white);
    border-color: var(--white);
}

.promo-badge--gift {
    background: var(--white);
    color: var(--primary);
}

.promo-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.promo-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

.promo-cta {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.promo-visual {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.promo-carousel {
    position: relative;
    width: 300px;
    height: 300px;
}

.promo-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.promo-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.promo-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-lg);
}

.promo-discount-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0.4rem 0.7rem;
    border-radius: 2rem;
    box-shadow: 0 3px 10px rgba(255,107,44,0.4);
    z-index: 2;
    line-height: 1;
}

.promo-carousel-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.promo-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.promo-carousel-dot.active {
    background: var(--white);
    border-color: var(--white);
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: calc(100vh - 250px);
}

/* ===== CATEGORY SIDEBAR ===== */
.category-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.15s;
}

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

.category-link.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.category-link i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.sidebar-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.sidebar-info p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.sidebar-chat-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.sidebar-chat-btn:hover {
    background: var(--primary-dark);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    border-radius: var(--radius);
    transition: all 0.15s;
}

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

.sidebar-link i {
    width: 18px;
    text-align: center;
}

/* ===== PRODUCT AREA ===== */
.product-area {
    flex: 1;
    min-width: 0;
}

.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.product-area-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.product-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-sort select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--white);
    cursor: pointer;
    outline: none;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-card-discount {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    background: var(--bg);
}

.product-card-body {
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.product-card-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 0.6rem;
}

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

.product-old-price {
    font-size: 0.82rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-action {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.product-card-action:hover {
    background: var(--primary-dark);
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== FLOATING CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 380px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
}

.chat-widget.open {
    display: flex;
}

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

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-minimize {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.chat-minimize:hover {
    background: rgba(255,255,255,0.25);
}

.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    line-height: 1.4;
    font-size: 0.88rem;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background-color: var(--bg);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

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

.typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
}

.typing-text {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: var(--bg);
    padding: 0.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(11, 122, 95, 0.1);
}

#chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.4rem 0.5rem;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
}

#send-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

#send-btn:hover {
    background-color: var(--primary-dark);
}

#send-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* Chat FAB */
.chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 199;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-fab:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-fab.hidden {
    display: none;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 280px;
    background-color: rgba(30, 41, 59, 0.95);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-md);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    align-self: flex-end;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== SECURITY ALERT MODAL ===== */
.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.alert-overlay.active {
    display: flex;
}

.alert-modal {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

.alert-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.alert-modal h2 {
    font-size: 1.5rem;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.alert-modal h3 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.alert-modal > p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1rem;
}

.alert-list {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.alert-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-list li i {
    color: #ef4444;
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.alert-reassurance {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #166534;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: center !important;
}

.alert-cta-text {
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.alert-link {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: background 0.2s;
}

.alert-link:hover {
    background: var(--primary-dark);
}

.alert-close-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.alert-close-btn:hover {
    background: var(--accent-hover);
}

.alert-close-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== SUCCESS ALERT MODAL ===== */
.success-icon {
    color: #16a34a;
}

.success-modal h2 {
    color: #16a34a;
}

.success-list li i {
    color: #16a34a;
}

.success-reassurance {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.success-link {
    background: #16a34a;
}

.success-link:hover {
    background: #15803d;
}

.success-close-btn {
    background: #16a34a;
}

.success-close-btn:hover {
    background: #15803d;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .promo-title {
        font-size: 1.5rem;
    }
    .promo-carousel {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .category-sidebar {
        display: none;
    }

    .main-layout {
        padding: 1rem;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }

    .promo-carousel {
        width: 160px;
        height: 160px;
    }

    .promo-banner {
        padding: 1.25rem 1rem;
    }

    .promo-title {
        font-size: 1.3rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .chat-widget {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 1rem;
        height: 60vh;
    }
}
