/* ==============================
   BASE STYLES
   ============================== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==============================
   HEADER
   ============================== */
header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cart-pulse {
    animation: pulse 0.5s ease-in-out;
}

/* ==============================
   SWIPER NAV BUTTONS
   ============================== */
.swiper-button-next,
.swiper-button-prev {
    color: #10B981;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.9);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

/* ==============================
   CART POPUP
   ============================== */
.cart-price-display { font-size: 0.8rem; color: #4B5563; margin-left: 4px; }
.mobile-cart-price-display { font-size: 0.7rem; color: #4B5563; margin-left: 2px; }

#cart-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#cart-popup-overlay.active { opacity: 1; visibility: visible; }

#cart-popup {
    position: fixed;
    top: 0; right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease-in-out;
}
#cart-popup.active { right: 0; }

.cart-popup-header, .cart-popup-footer {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-popup-body { flex-grow: 1; overflow-y: auto; padding: 1rem; }

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.cart-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.cart-item-image {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-right: 1rem;
    flex-shrink: 0;
}
.cart-item-details { flex-grow: 1; margin-right: 1rem; }
.cart-item-name { font-weight: 600; color: #1f2937; margin-bottom: 0.25rem; font-size: 0.9rem; }
.cart-item-price { color: #4b5563; font-size: 0.85rem; }

.quantity-controls button {
    background-color: #e5e7eb;
    border: none;
    color: #374151;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.quantity-controls button:hover { background-color: #d1d5db; }
.quantity-controls span { margin: 0 0.5rem; min-width: 20px; text-align: center; font-weight: 500; }

.remove-item-btn {
    background: none; border: none;
    color: #ef4444;
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.remove-item-btn:hover { color: #dc2626; }

.cart-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.cart-summary div span:first-child { color: #4b5563; }
.cart-summary div span:last-child { font-weight: 600; color: #1f2937; }

.cart-summary .total {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #d1d5db;
}

.cart-popup-actions button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.checkout-btn { background-color: #10b981; color: white; margin-bottom: 0.75rem; }
.checkout-btn:hover { background-color: #059669; }
.continue-shopping-btn { background-color: #e5e7eb; color: #374151; }
.continue-shopping-btn:hover { background-color: #d1d5db; }
.empty-cart-message { text-align: center; color: #6b7280; padding: 2rem 0; }

/* ==============================
   FOOTER
   ============================== */
footer {
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Top Footer */
.footer-top {
    background-color: #232F3E;
    padding: 40px 20px;
    text-align: center;
}
.footer-top .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}
.footer-top h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}
.footer-top p,
.footer-top li {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
}
.footer-top a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-top a:hover { color: #ff9900; }
.footer-top ul { list-style: none; padding-left: 0; }

/* Bottom Footer */
.footer-bottom {
    background-color: #1a2230;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* ==============================
   RESPONSIVE MEDIA QUERIES
   ============================== */
@media (max-width: 1024px) {
    .footer-top .container { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    .footer-top .container { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; }
    .footer-top h3 { font-size: 16px; }
}

@media (max-width: 480px) {
    .footer-top { padding: 30px 10px; }
    .footer-top h3 { font-size: 15px; }
    .footer-top p,
    .footer-top li { font-size: 13px; }
}
