﻿/* ===== VARIABLES CSS ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #f093fb;
    --accent: #f5576c;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --dark: #1a202c;
    --gray-900: #2d3748;
    --gray-800: #4a5568;
    --gray-700: #718096;
    --gray-600: #a0aec0;
    --gray-500: #cbd5e0;
    --gray-400: #e2e8f0;
    --gray-300: #edf2f7;
    --gray-200: #f7fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-200);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header-top span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.search-box button:hover {
    opacity: 0.9;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-300);
    border-radius: 50%;
    color: var(--gray-800);
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-icon:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-link {
    background: var(--gray-800);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-800);
    font-size: 1.2rem;
}

.categories-nav {
    background: var(--gray-200);
    border-top: 1px solid var(--gray-400);
}

.categories-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    overflow-x: auto;
}

.category-link {
    padding: 8px 20px;
    background: var(--white);
    border-radius: var(--radius-full);
    color: var(--gray-800);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.category-link:hover,
.category-link.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== FEATURES ===== */
.features {
    padding: 60px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--gray-200);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

.products-filters {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: var(--gray-800);
}

.filter-group select {
    padding: 10px 20px;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--gray-300);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.product-badge.new {
    background: var(--primary);
    color: var(--white);
}

.product-badge.sale {
    background: var(--accent);
    color: var(--white);
}

.product-badge.hot {
    background: var(--warning);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.product-action-btn.in-wishlist {
    color: var(--accent);
}

.product-action-btn.in-wishlist i {
    font-weight: 900;
}

.quick-add-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-card:hover .quick-add-btn {
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gray-300);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 1rem;
    color: var(--gray-600);
    text-decoration: line-through;
}

.product-price .discount {
    padding: 3px 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-400);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-700);
}

.no-products i {
    font-size: 4rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 80px 0;
    background: var(--gradient-primary);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text {
    color: var(--white);
}

.newsletter-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-text p {
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: var(--radius-full);
    outline: none;
    font-size: 1rem;
}

.newsletter-form .btn {
    background: var(--white);
    color: var(--primary);
    box-shadow: none;
}

.newsletter-form .btn:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--gray-500);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 20px;
}

.payment-methods img {
    height: 30px;
    filter: grayscale(100%) brightness(200%);
}

.payment-qr {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 500;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: -450px;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    z-index: 1101;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--gradient-primary);
    color: var(--white);
}

.cart-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(255,255,255,0.3);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-400);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-item-meta {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    color: var(--gray-600);
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--gray-700);
}

.cart-empty i {
    font-size: 4rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cart-footer {
    padding: 20px 25px;
    background: var(--gray-200);
    border-top: 1px solid var(--gray-400);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-total span:last-child {
    color: var(--primary);
    font-size: 1.5rem;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1200;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    font-size: 1.1rem;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: var(--white);
}

/* Product Modal */
.product-modal-content {
    width: 100%;
    max-width: 1000px;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-modal-gallery {
    background: var(--gray-300);
}

.modal-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-modal-info {
    padding: 40px;
}

.product-modal-info .product-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gray-300);
    color: var(--gray-700);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.product-modal-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.product-price-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-price-modal .current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price-modal .original-price {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-decoration: line-through;
}

.product-price-modal .discount-badge {
    padding: 5px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.product-description {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-options {
    margin-bottom: 25px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.size-option:hover,
.size-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-option:hover,
.color-option.selected {
    border-color: var(--primary);
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-weight: 600;
}

.product-actions-modal {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.product-meta {
    padding-top: 20px;
    border-top: 1px solid var(--gray-400);
}

.product-meta p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-meta i {
    color: var(--success);
}

/* Checkout Modal */
.checkout-modal-content {
    width: 100%;
    max-width: 700px;
}

.checkout-container {
    padding: 40px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-header h2 i {
    color: var(--primary);
}

.checkout-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: var(--gray-400);
    border-radius: 50%;
    transition: var(--transition);
}

.step-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.step-dot.completed {
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--white);
    font-size: 0.7rem;
}

/* Checkout Form */
.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkout Summary */
.checkout-summary {
    background: var(--gray-200);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
}

.checkout-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

.summary-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-400);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-image {
    width: 50px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.summary-item-meta {
    font-size: 0.8rem;
    color: var(--gray-700);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary);
}

.summary-totals {
    border-top: 2px solid var(--gray-400);
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    padding-top: 10px;
    border-top: 1px solid var(--gray-400);
}

.summary-row.total span:last-child {
    color: var(--primary);
}

.shipping-summary {
    margin-top: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.shipping-summary p {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.shipping-summary strong {
    color: var(--dark);
}

/* Payment Section */
.payment-section {
    text-align: center;
}

.payment-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-section h3 i {
    color: var(--primary);
}

.payment-info {
    color: var(--gray-700);
    margin-bottom: 25px;
}

.payment-section .btn {
    margin-bottom: 15px;
}

/* QR Payment */
.qr-payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.qr-box {
    text-align: center;
    padding: 25px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

.qr-image {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image img {
    max-width: 180px;
}

.qr-loading {
    text-align: center;
    color: var(--gray-700);
}

.qr-amount {
    font-size: 1.1rem;
}

.qr-amount strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 5px;
}

.qr-instructions {
    text-align: left;
}

.qr-instructions h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.qr-instructions ol {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 25px;
}

.qr-instructions li {
    margin-bottom: 10px;
    color: var(--gray-800);
}

.payment-status {
    padding: 20px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

.status-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gray-800);
    font-weight: 500;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--warning);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Success Container */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 3rem;
    color: var(--white);
}

.success-container h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.success-container > p {
    color: var(--gray-700);
    margin-bottom: 25px;
}

.order-details {
    background: var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

.order-details p {
    margin-bottom: 8px;
    color: var(--gray-800);
}

.success-message {
    color: var(--gray-700);
    margin-bottom: 30px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.toast.success .toast-icon {
    background: var(--success);
}

.toast.error .toast-icon {
    background: var(--danger);
}

.toast.info .toast-icon {
    background: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.toast-close {
    color: var(--gray-600);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--dark);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-main-image {
        height: 350px;
    }
    
    .qr-payment-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        flex: 100%;
        max-width: none;
        margin-top: 15px;
    }
    
    .nav-actions {
        margin-left: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .categories-nav {
        display: none;
    }
    
    .categories-nav.active {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-modal-info {
        padding: 25px;
    }
    
    .checkout-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    
    .toast {
        min-width: auto;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        left: 15px;
        bottom: 15px;
    }
}
