 :root {
     --primary-color: #2563eb;
     --text-dark: #1f2937;
     --bg-white: #ffffff;
     --bg-light: #f3f4f6;
     --transition-speed: 0.3s;
 }

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


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

 .site-header {
     background-color: var(--bg-white);
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
     position: sticky;
     top: 0;
     z-index: 1000;
 }

 .navbar {
     max-width: 1400px;
     width: 90%;
     margin: 0 auto;
     height: 90px;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .nav-links {
     display: flex;
     gap: 2rem;
     align-items: center;
     list-style: none;
 }

 .nav-item {
     position: relative;
     font-weight: 600;
     color: var(--text-dark);
     cursor: pointer;
 }

 .dropdown-menu {
     list-style: none;
 }

 .profile-icon {
     padding: 5px;
     font-weight: 600;
 }

 .nav-item.hover-underline {
     padding-top: 5px;
 }

 .nav-item.hover-underline::before {
     content: '';
     position: absolute;
     width: 100%;
     height: 3px;
     bottom: -4px;
     left: 0;
     background-color: var(--primary-color);
     visibility: hidden;
     transform: scaleX(0);
     transform-origin: left;
     transition: all var(--transition-speed) ease-in-out;
 }

 .nav-item.hover-underline:hover::before,
 .nav-item.hover-underline.active::before {
     visibility: visible;
     transform: scaleX(1);
 }


 .dropdown {
     position: relative;
     height: auto;
     display: flex;
     align-items: center;
 }

 /* .dropdown>a::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
} */

 .dropdown-menu {
     position: absolute;
     top: 140%;
     left: 50%;
     transform: translateX(-50%) translateY(10px);
     background: var(--bg-white);
     min-width: 180px;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
     border-radius: 8px;
     padding: 0.5rem 0;
     opacity: 0;
     visibility: hidden;
     transition: 0.3s;
     border: 1px solid #e5e7eb;
 }

 .dropdown:hover .dropdown-menu {
     opacity: 1;
     visibility: visible;
     transform: translateX(-50%) translateY(0);
 }

 .dropdown-item {
     display: block;
     padding: 0.75rem 1.5rem;
     transition: background 0.2s;
 }

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

 .nav-actions {
     display: flex;
     align-items: center;
     gap: 1.5rem;
 }

.search-container { 
    display: flex; 
    align-items: center; 
    border: 1px solid #a3a4a8;   
    border-radius: 20px;       
    background: var(--bg-light); 
    padding-right: 15px;       
    width: 200px; 
    transition: all 0.3s ease;
}

.search-input { 
    border: none; 
    background: transparent; 
    outline: none; 
    padding: 0.5rem 1rem; 
    width: 100%; 
    color: var(--text-dark); 
}

.search-icon { 
    color: #777; 
    cursor: pointer;
}

.search-container:focus-within { 
    border-color: var(--primary-color); 
    width: 240px; 
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

 .cart-icon-wrapper {
     cursor: pointer;
     position: relative;
     font-size: 1.4rem;
     color: var(--text-dark);
     transition: color 0.6s ease;
 }

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

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    height: 18px;
    width: auto;
    min-width: 18px;
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out;
    transform-origin: center; 
}

@keyframes cartBump {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.2) rotate(-8deg); }
    50%  { transform: scale(1.2) rotate(8deg); }
    75%  { transform: scale(1.1) rotate(-4deg); }
    100% { transform: scale(1); }
}

.cart-animating {
    animation: cartBump 0.4s ease-out;
}

.cart-flying-ghost {
    position: fixed;
    z-index: 9999; 
    pointer-events: none; 
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

 .menu-toggle {
     font-size: 1.5rem;
     color: var(--text-dark);
     cursor: pointer;
     transition: color 0.3s;
     display: none;
 }

 .menu-toggle:hover {
     color: var(--primary-color);
 }

 #close-menu-btn {
     display: none;
 }


 /* ===================navigation end==================== */


 /* ======================toast start====================== */
 
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); 
    z-index: 3000;
    display: flex;
    flex-direction: column-reverse; 
    gap: 10px;
    align-items: center; 
}

.toast {
    background: #ffffff;
    color: #333;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb; 
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    animation: riseUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.hide {
    animation: fadeDown 0.3s ease forwards;
}

@keyframes riseUp {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(40px);
    }
    70% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}


 /* ===============toast end================== */

 
 /* ================= Cart Sidebar Styles ================= */
 .cart-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     z-index: 1001;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
 }

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

 .cart-sidebar {
     position: fixed;
     top: 0;
     right: -600px;
     width: 350px;
     height: 100vh;
     background: #fff;
     z-index: 1002;
     box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
     transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
     display: flex;
     flex-direction: column;
 }

 .cart-sidebar.active {
     right: 0;
 }

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

 .cart-header h3 {
     font-size: 1.5rem;
     font-weight: 700;
 }

 .close-cart {
     cursor: pointer;
     font-size: 1.5rem;
     transition: color 0.3s;
 }

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

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

 .empty-cart-msg {
     text-align: center;
     color: #888;
     margin-top: 50px;
 }

 .cart-item {
     display: flex;
     gap: 15px;
     margin-bottom: 20px;
     padding-bottom: 15px;
     border-bottom: 1px solid #f0f0f0;
     animation: fadeIn 0.3s ease;
 }

 .cart-item img {
     width: 70px;
     height: 70px;
     object-fit: cover;
     border-radius: 8px;
 }

 .cart-item-details {
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

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

 .cart-item-price {
     color: var(--primary-color);
     font-weight: 700;
     font-size: 0.9rem;
 }

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

 .qty-btn {
     width: 20px;
     height: 20px;
     background: #eee;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
 }

 .remove-btn {
     color: #ff4d4d;
     cursor: pointer;
     align-self: flex-start;
     margin-top: 5px;
     font-size: 1.1rem;
 }

 .cart-footer {
     padding: 20px;
     border-top: 1px solid #eee;
     background: #f9f9f9;
 }

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

 .checkout-btn {
     width: 100%;
     padding: 12px;
     background: var(--cta-color);
     color: white;
     border: none;
     border-radius: 8px;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s;
 }

 .checkout-btn:hover {
     background: var(--cta-hover);
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }
/* =================cart end================== */



/* ================= Product Modal Styles ================= */
 .product-modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.6);
     z-index: 2000;
     display: flex;
     justify-content: center;
     align-items: center;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
     backdrop-filter: blur(5px);
 }

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

 .product-modal-content {
     background: white;
     width: 80%;
     height: 90vh;
     max-width: 900px;
     border-radius: 16px;
     position: relative;
     overflow: auto;
     -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
     box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
     transform: scale(0.9);
     transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 }

 .product-modal-overlay.active .product-modal-content {
     transform: scale(1);
 }

 .close-modal-btn {
     position: absolute;
     top: 15px;
     right: 15px;
     background: #f3f4f6;
     border: none;
     width: 36px;
     height: 36px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 1.2rem;
     color: #333;
     z-index: 10;
     transition: 0.2s;
 }

 .close-modal-btn:hover {
     background: #e5e7eb;
     transform: rotate(90deg);
 }

 .modal-body {
     display: flex;
     flex-direction: column;
 }


 .modal-image-container {
     flex: 1;
     width: 50%;
     height: 400px;
     background: #f9fafb;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
 }

 .modal-image-container img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     mix-blend-mode: multiply;
     border-radius: 16px;
 }

 .modal-info-container {
     flex: 1;
     padding: 40px;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .modal-category {
     color: var(--primary-color);
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
     font-size: 0.85rem;
     margin-bottom: 10px;
 }

 .modal-title {
     font-size: 2rem;
     line-height: 1.2;
     margin-bottom: 10px;
     color: var(--text-dark);
 }

 .modal-rating {
     color: #fbbf24;
     margin-bottom: 20px;
     font-size: 0.9rem;
 }

 .modal-description {
     color: #6b7280;
     line-height: 1.6;
     margin-bottom: 30px;
 }

 .modal-price {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--text-dark);
 }

 .modal-actions {
     display: flex;
     gap: 15px;
     margin-top: 20px;
 }

 .quantity-selector {
     display: flex;
     align-items: center;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     overflow: hidden;
 }

 .quantity-selector button {
     background: #f9fafb;
     border: none;
     width: 40px;
     height: 45px;
     cursor: pointer;
     font-size: 1.1rem;
     transition: 0.2s;
 }

 .quantity-selector button:hover {
     background: #e5e7eb;
 }

 .quantity-selector span {
     width: 40px;
     text-align: center;
     font-weight: 600;
 }

 .modal-btn {
     flex: 1;
     height: 45px;
 }


 /* ==================Popup END============================== */

/* =====================footer start====================== */

 :root {
     --footer-bg: #111111;
     --footer-text: #e0e0e0;
     --footer-heading: #ffffff;
     --footer-link: #a0a0a0;
     --footer-link-hover: #ffffff;
     --footer-border: #333333;
     --social-hover: #4a90e2;
     --container-width: 1200px;
 }

 .site-footer {
     background-color: var(--footer-bg);
     color: var(--footer-text);
     padding: 80px 0 0 0;
     font-size: 14px;
     line-height: 1.6;
     margin-top: 20px;
 }

 .footer-container {
     max-width: var(--container-width);
     margin: 0 auto;
     padding: 0 20px;
     display: grid;
     gap: 40px;
     grid-template-columns: 1fr;
 }

 @media (min-width: 768px) {
     .footer-container {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (min-width: 1024px) {
     .footer-container {
         grid-template-columns: repeat(4, 1fr);
         gap: 30px;
     }
 }

 .footer-col {
     display: flex;
     flex-direction: column;
 }

 .footer-col h3 {
     color: var(--footer-heading);
     font-size: 18px;
     font-weight: 700;
     margin-bottom: 25px;
     text-transform: uppercase;
     letter-spacing: 1px;
     position: relative;
 }

 .footer-col h3::after {
     content: '';
     display: block;
     width: 30px;
     height: 2px;
     background-color: var(--footer-heading);
     margin-top: 10px;
 }

 .footer-links {
     list-style: none;
 }

 .footer-links li {
     margin-bottom: 12px;
 }

 .footer-links a {
     color: var(--footer-link);
     text-decoration: none;
     transition: color 0.3s ease, padding-left 0.3s ease;
     display: inline-block;
 }

 .footer-links a:hover {
     color: var(--footer-link-hover);
     padding-left: 5px;
 }

 .contact-info p {
     margin-bottom: 15px;
     color: var(--footer-link);
     display: flex;
     align-items: flex-start;
 }

 .contact-icon {
     margin-right: 12px;
     flex-shrink: 0;
     margin-top: 3px;
 }

 .latin-text {
     font-style: italic;
     color: var(--footer-link);
     margin-bottom: 20px;
     border-left: 2px solid #333;
     padding-left: 15px;
 }

 .social-icons {
     display: flex;
     gap: 15px;
     margin-top: 10px;
 }

 .social-link {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     background-color: #222;
     border-radius: 50%;
     color: #fff;
     transition: all 0.3s ease;
     text-decoration: none;
 }

 .social-link:hover {
     background-color: var(--social-hover);
     transform: translateY(-3px);
 }

 .social-link svg {
     width: 18px;
     height: 18px;
     fill: currentColor;
 }

 .footer-bottom {
     background-color: #000000;
     color: #777;
     padding: 25px 0;
     margin-top: 60px;
     text-align: center;
     font-size: 13px;
     border-top: 1px solid var(--footer-border);
 }

 svg {
     display: block;
 }

 /* ======================FOOTER END============== */