


.messages-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
}

.alert {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-right: 5px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    animation: slideInDown 0.4s ease-out;
    pointer-events: all;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.alert.removing {
    animation: slideOutUp 0.3s ease-out forwards;
}



.alert-success {
    border-right-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.alert-error,
.alert-danger {
    border-right-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.alert-warning {
    border-right-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.alert-info {
    border-right-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}



.alert i:first-child {
    font-size: 1.5rem;
    line-height: 1 !important;
}

.alert-success i:first-child {
    color: #10b981;
}

.alert-error i:first-child,
.alert-danger i:first-child {
    color: #ef4444;
}

.alert-warning i:first-child {
    color: #f59e0b;
}

.alert-info i:first-child {
    color: #3b82f6;
}



.alert p {
    margin: 0 !important;
    flex: 1;
    text-align: center !important;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5 !important;
    color: #1f2937;
}



.alert-close {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #1f2937;
}

.alert-close i {
    font-size: 0.875rem;
    line-height: 1 !important;
}



.alert-timer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.alert-timer-bar {
    height: 100%;
    background: currentColor;
    animation: timerProgress 5s linear forwards;
}

.alert-success .alert-timer-bar {
    background: #10b981;
}

.alert-error .alert-timer-bar,
.alert-danger .alert-timer-bar {
    background: #ef4444;
}

.alert-warning .alert-timer-bar {
    background: #f59e0b;
}

.alert-info .alert-timer-bar {
    background: #3b82f6;
}

@keyframes timerProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}



.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #1f2937;
    position: relative;
    z-index: 1;
}

.category-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.6 !important;
    position: relative;
    z-index: 1;
}

.category-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    color: white;
    transition: transform 0.4s;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-arrow {
    transform: translateX(-5px);
}

.category-arrow i {
    font-size: 1rem;
    line-height: 1 !important;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    line-height: 1 !important;
}

.navbar-menu a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1 !important;
}

.navbar-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-menu a i {
    font-size: 1.1rem;
    line-height: 1 !important;
}



.cart-badge {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}



.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.4 !important;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
    margin: auto 0 1rem 0;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-add-cart i {
    line-height: 1 !important;
}



.products-swiper {
    padding: 2rem 0;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #667eea !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: 900;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #667eea;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}



@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #667eea, #764ba2);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 2rem 0;
        transition: right 0.4s;
        z-index: 999;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    }
    .navbar-menu.active {
        right: 0;
    }
    .navbar-menu li {
        width: 100%;
    }
    .navbar-menu a {
        width: 100%;
        padding: 1.25rem 2rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .category-card {
        padding: 1.5rem 1rem;
    }
    .category-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    .messages-container {
        top: 70px;
        width: 95%;
    }
    .alert {
        padding: 1rem 3rem 1rem 1rem;
    }
    .alert p {
        font-size: 0.9rem;
    }
}



.btn-add-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-add-cart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.3 !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6 !important;
}



.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}



.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.navbar-overlay.active {
    opacity: 1;
    pointer-events: all;
}
