/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* SweetAlert2 popup */
.swal2-container {
    z-index: 999999 !important;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.user-info a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
}

.logo-placeholder {
    background: #dc2c1d;
    color: white;
    padding: 15px 30px;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    letter-spacing: 2px;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #fae01a;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #fae01a;
    color: #333;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.search-btn:hover {
    background: #dc2c1d;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-section {
    display: flex;
    align-items: center;
}

.login-btn {
    background: #dc2c1d;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    font-weight: 600;
}

.login-btn:hover {
    background: #b52318;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.profile-section i {
    font-size: 24px;
    color: #dc2c1d;
}

.cart-icon {
    position: relative;
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #dc2c1d;
}

.cart-icon.active {
    color: #dc2c1d;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #dc2c1d;
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ==================== REPLACE EXISTING NAVIGATION STYLES WITH THIS ====================
   Find the "Navigation Styles" section in your style.css and replace it with this code
======================================================================================= */

/* Navigation Styles */
.navbar {
    background: #fae01a;
    padding: 0;
    position: relative;
}

.navbar>.container {
    display: block;
    position: relative;
    padding: 0 !important;
}

.menu-toggle {
    background: #fae01a !important;
    color: #333;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    display: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
}

/* Desktop Navigation Wrapper */
.nav-menu-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.nav-menu {
    list-style: none;
    display: flex;
    /* justify-content: center; */
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease;
}

.nav-menu li {
    margin: 0;
    flex-shrink: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #dc2c1d;
    color: white;
}

/* Navigation Arrows for Categories */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 44, 29, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #dc2c1d;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-arrow i {
    font-size: 16px;
}

.nav-arrow.prev {
    left: 10px;
}

.nav-arrow.next {
    right: 10px;
}

/* Show arrows when categories overflow */
.navbar.has-overflow .nav-arrow {
    display: flex;
}

/* ==================== UPDATE RESPONSIVE SECTION ====================
   Find the @media (max-width: 768px) section and UPDATE the navbar part with this
======================================================================================= */

@media (max-width: 768px) {

    /* ... keep existing header styles ... */
    .menu-toggle {
        display: block;
    }

    .nav-menu-wrapper {
        padding: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Hide arrows on mobile */
    .nav-arrow {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .nav-menu-wrapper {
        display: block !important;
    }
}

/* =========================
   BANNER IMAGE SLIDER
   ========================= */

.banner-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin-bottom: 50px;
}

/* Slider wrapper */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== BLURRED BACKGROUND IMAGE ===== */
.slide .blur-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills background */
    filter: blur(30px);
    transform: scale(1.1);
    /* avoids blur edges */
    opacity: 0.8;
}

/* ===== MAIN IMAGE ===== */
.slide .main-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* FULL image visible */
    display: block;
}

/* =========================
   NAVIGATION BUTTONS
   ========================= */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 20px;
    color: #dc2c1d;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #dc2c1d;
    color: #fff;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* =========================
   DOTS
   ========================= */

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    width: 28px;
    background: #fff;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

@media (max-width: 1024px) {
    .banner-slider {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slide .blur-bg {
        filter: blur(20px);
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 220px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .slider-dots {
        bottom: 12px;
    }
}


/* Products Section */
.products-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #fae01a;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
}

.see-all {
    color: #dc2c1d;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
    font-weight: 600;
}

.see-all:hover {
    gap: 12px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e0e0e0;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    cursor: pointer;
}

.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #dc2c1d;
    color: white;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
    letter-spacing: 1px;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: all 0.3s;
    z-index: 5;
}

.wishlist-btn:hover {
    color: #dc2c1d;
    border-color: #dc2c1d;
}

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-bottom: 2px solid #fae01a;
}

.img-placeholder {
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    min-height: 48px;
    font-weight: 600;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-size {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.product-pricing {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #dc2c1d;
}

.mrp {
    font-size: 14px;
    color: #999;
}

.mrp del {
    color: #999;
}

.discount {
    background: #fae01a;
    color: #333;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
}

.product-rating {
    margin-bottom: 15px;
    color: #fae01a;
    font-size: 14px;
}

.add-to-cart-btn {
    width: 100%;
    background: #fae01a;
    color: #333;
    border: 2px solid #fae01a;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background: #dc2c1d;
    color: white;
    border-color: #dc2c1d;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #dc2c1d;
    color: white;
    border: 3px solid #dc2c1d;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background: white;
    color: #dc2c1d;
}

.load-more-btn i {
    transition: transform 0.3s;
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}

/* Cart Page Styles */
.cart-section {
    min-height: 60vh;
    padding: 50px 0;
}

.cart-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
}

.empty-cart i {
    font-size: 100px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #fae01a;
    color: #333;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #fae01a;
}

.btn-primary:hover {
    background: #dc2c1d;
    color: white;
    border-color: #dc2c1d;
}

.cart-items {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-table-wrapper {
    background: white;
    overflow-x: auto;
    padding: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: #f8f9fa;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #fae01a;
}

.cart-table td {
    /* padding: 20px 15px; */
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-details p {
    font-size: 14px;
    color: #666;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #fae01a;
    border-color: #fae01a;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-btn {
    background: #dc2c1d;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.remove-btn:hover {
    background: #b52318;
}

.cart-summary {
    background: white;
    padding: 25px;
    position: sticky;
    top: 100px;
    border: 2px solid #fae01a;
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #fae01a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: bold;
    color: #dc2c1d;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.cart-summary hr {
    margin: 20px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

.checkout-btn {
    width: 100%;
    background: #dc2c1d;
    color: white;
    border: 2px solid #dc2c1d;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    background: white;
    color: #dc2c1d;
}

.continue-shopping {
    display: block;
    text-align: center;
    color: #fae01a;
    text-decoration: none;
    font-weight: 600;
}

.continue-shopping:hover {
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fae01a;
    padding-bottom: 10px;
    border-bottom: 2px solid #fae01a;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fae01a;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: #fae01a;
    color: #333;
    border-color: #fae01a;
}

.newsletter h5 {
    margin-bottom: 10px;
}

.newsletter input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    margin-bottom: 10px;
}

.newsletter button {
    width: 100%;
    background: #fae01a;
    color: #333;
    border: 2px solid #fae01a;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.newsletter button:hover {
    background: #dc2c1d;
    color: white;
    border-color: #dc2c1d;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 3px solid #fae01a;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #dc2c1d;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #fae01a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #fae01a;
}

#loginForm button[type="submit"] {
    width: 100%;
    background: #dc2c1d;
    color: white;
    border: 2px solid #dc2c1d;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

#loginForm button[type="submit"]:hover {
    background: white;
    color: #dc2c1d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cart-items {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .banner-slider {
        height: 400px;
    }

    .slide-text h1 {
        font-size: 48px;
    }

    .slide-text h2 {
        font-size: 24px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .cart-table-wrapper {
        overflow-x: scroll;
    }

    .cart-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .logo-placeholder {
        padding: 10px 20px;
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .banner-slider {
        height: 300px;
    }

    .slide-text h1 {
        font-size: 36px;
    }

    .slide-text h2 {
        font-size: 20px;
    }

    .slide-text p {
        font-size: 16px;
    }

    .sweets-list {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .load-more-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}


.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section .user-name {
    font-weight: 500;
    color: #333;
}

.profile-section .fa-user-circle {
    font-size: 24px;
    color: #dc2c1d;
}

#logoutBtn {
    background: #dc2c1d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#logoutBtn:hover {
    background: #b02418;
}

#logoutBtn i {
    font-size: 12px;
    color: white;
}

/* ==================== QUANTITY COUNTER STYLES ==================== */

.quantity-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    padding: 5px;
    border-radius: 4px;
    border: 2px solid #fae01a;
}

.quantity-counter button {
    width: 30px;
    height: 30px;
    background: #fae01a;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-counter button:hover {
    background: #dc2c1d;
    color: white;
}

.quantity-counter button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-counter span {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Product Card with Quantity Counter */
.product-card .quantity-counter {
    margin-top: 10px;
}

/* Added to Cart State */
.product-card.in-cart .add-to-cart-btn {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.product-card.in-cart .add-to-cart-btn:hover {
    background: #218838;
    border-color: #218838;
}

/* ==================== TOASTER NOTIFICATION STYLES ==================== */

.toaster-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toaster {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #28a745;
    min-width: 300px;
}

.toaster.success {
    border-left-color: #28a745;
}

.toaster.error {
    border-left-color: #dc2c1d;
}

.toaster.info {
    border-left-color: #fae01a;
}

.toaster.warning {
    border-left-color: #ff9800;
}

.toaster-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toaster.success .toaster-icon {
    color: #28a745;
}

.toaster.error .toaster-icon {
    color: #dc2c1d;
}

.toaster.info .toaster-icon {
    color: #fae01a;
}

.toaster.warning .toaster-icon {
    color: #ff9800;
}

.toaster-content {
    flex: 1;
}

.toaster-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    font-size: 14px;
}

.toaster-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.toaster-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toaster-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toaster.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* ==================== CART BADGE UPDATE ANIMATION ==================== */

.cart-count.updating {
    animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ==================== PRODUCT CARD HOVER EFFECTS ==================== */

.product-card {
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fae01a 0%, #dc2c1d 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::after {
    transform: scaleX(1);
}

/* ==================== LOADING STATES ==================== */

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== EMPTY STATE IMPROVEMENTS ==================== */

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fae01a 0%, #dc2c1d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon i {
    font-size: 60px;
    color: white;
}

/* ==================== RESPONSIVE TOASTER ==================== */

@media (max-width: 768px) {
    .toaster-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toaster {
        min-width: auto;
    }
}

/* ==================== LOGOUT BUTTON REFINEMENT ==================== */

#logoutBtn {
    background: #dc2c1d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
    /* Hidden by default, shown when user is logged in */
    align-items: center;
    gap: 8px;
}

#logoutBtn:hover {
    background: #b02418;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 44, 29, 0.3);
}

#logoutBtn i {
    font-size: 14px;
}

/* ==================== PRODUCT GRID IMPROVEMENTS ==================== */

.products-grid {
    position: relative;
}

.products-grid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ==================== BETTER FORM VALIDATION STYLES ==================== */

.form-group input.error {
    border-color: #dc2c1d;
    background-color: #fff5f5;
}

.form-group input.success {
    border-color: #28a745;
    background-color: #f0fff4;
}

.form-error {
    color: #dc2c1d;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

/* ==================== WISHLIST ACTIVE STATE ==================== */

.wishlist-btn.active {
    background: #dc2c1d;
    border-color: #dc2c1d;
    color: white;
}

.wishlist-btn.active i {
    color: white;
}

/* ==================== SKELETON LOADING FOR PRODUCTS ==================== */

.product-skeleton {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-image {
    height: 250px;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

/* ==================== PRICE HIGHLIGHT ANIMATION ==================== */

.price-highlight {
    animation: priceGlow 0.5s ease;
}

@keyframes priceGlow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        color: #28a745;
    }
}