/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-stamp {
    width: 45px;
    height: 45px;
    border: 3px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    transform: rotate(-10deg);
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Standard property for compatibility */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(191, 10, 48, 0.4);
}

/* Hero Section */
/* Hero Section (Carousel) */
.hero {
    height: 80vh;
    /* Slightly taller for impact */
    min-height: 500px;
    position: relative;
    color: white;
    padding-top: 80px;
    /* Navbar space */
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    /* Prevent clicking hidden slides */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: all;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
        /* Hide arrows on mobile for cleaner look, swipe could be added later */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

.text-gradient {
    /* For white text on dark/gradient background, we use a solid white or a very light gradient */
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow);
    border-color: rgba(191, 10, 48, 0.1);
}

.feature-card i {
    font-size: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 800;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.subcategory-filters {
    gap: 0.5rem;
    /* Botones más juntos */
}

.filter-btn,
.sub-filter-btn {
    padding: 10px 25px;
    background: white;
    border: 1px solid rgba(0, 40, 104, 0.1);
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sub-filter-btn {
    font-size: 0.70rem;
    /* Más pequeño aún */
    padding: 6px 16px;
    /* Márgenes internos reducidos también para acompañar la letra */
}

.filter-btn:hover,
.sub-filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 40, 104, 0.3);
}

.sub-filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 40, 104, 0.3);
}

.filter-divider {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
    align-self: center;
}

@media (max-width: 768px) {
    .filter-divider {
        display: none;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 40, 104, 0.15);
    border-color: rgba(191, 10, 48, 0.1);
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-subcategory {
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

.product-price {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-top: auto;
    margin-bottom: 1.2rem;
}

.add-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.add-cart-btn:hover {
    background-position: right center;
    box-shadow: 0 5px 15px rgba(191, 10, 48, 0.3);
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.pagination-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    color: var(--secondary-color);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-nav button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff5f6;
}

.pagination-nav button.active {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(191, 10, 48, 0.3);
}

.pagination-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .pagination-nav button {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 104, 0.4);
    /* Deep blue tint for overlay */
    backdrop-filter: blur(4px);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.cart-overlay.open {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar {
    position: absolute;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    z-index: 2001;
}

.cart-overlay.open .cart-sidebar {
    right: 0;
}

.cart-header {
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 5px;
    border-radius: 12px;
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.item-remove {
    margin-left: auto;
    color: #bbb;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px;
}

.item-remove:hover {
    color: var(--primary-color);
}

.cart-footer {
    padding: 2rem;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    box-shadow: 0 5px 20px rgba(191, 10, 48, 0.2);
}

.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(191, 10, 48, 0.3);
}

.empty-cart-msg {
    text-align: center;
    color: #999;
    margin-top: 3rem;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Checkout Modal Simulation */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 104, 0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.checkout-modal.active {
    visibility: visible;
    opacity: 1;
}

.checkout-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8);
    transition: var(--transition);
}

.checkout-modal.active .checkout-content {
    transform: scale(1);
}

.checkout-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.checkout-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.checkout-text {
    color: #666;
    margin-bottom: 2rem;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 40, 104, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-icon {
    color: #4CAF50;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.hidden {
    display: none;
}

/* Delivery Zone Check */
.delivery-zone {
    padding: 3rem 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
}

.delivery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.delivery-text h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.delivery-text p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
}

.delivery-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.delivery-form input {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.delivery-form input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

.delivery-result {
    width: 100%;
    margin-top: 1rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.delivery-result.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.delivery-result.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* User Modal */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 104, 0.7);
    backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.user-modal.active {
    visibility: visible;
    opacity: 1;
}

.user-modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: var(--transition);
}

.user-modal.active .user-modal-content {
    transform: translateY(0);
}

.close-user {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-user:hover {
    background: var(--primary-color);
    color: white;
}

.user-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-header i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.user-header h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.user-header p {
    color: #888;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Profile View Styles */
.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(191, 10, 48, 0.3);
}

.member-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.profile-details {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 3px;
}

.detail-item p {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.coverage-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Order History */
.order-history-section {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.order-history-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.orders-list {
    max-height: 200px;
    overflow-y: auto;
}

.order-card {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.order-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.order-date {
    color: #888;
    font-size: 0.8rem;
}

.order-total {
    color: var(--primary-color);
}

.order-items-list {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.no-orders {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Admin Styles */
#admin-link-li.hidden {
    display: none !important;
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 5000;
    padding: 2rem;
    overflow-y: auto;
    display: none;
}

.admin-modal.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: var(--secondary-color);
    color: white;
}

/* About Section Styles */
.about {
    padding: 8rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 800;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.about-stat h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.about-stat p {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Section Styles */
.contact {
    padding: 8rem 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(191, 10, 48, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(191, 10, 48, 0.1);
}


@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

}

/* Button States */
.add-cart-btn.out-of-stock {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.add-cart-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}


/* User Modal Styles */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.user-modal.active {
    display: flex;
}

.user-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-user {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}


/* Force Modal Visibility */
.user-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.user-modal-content {
    max-height: 85vh;
    /* Ensure modal fits in viewport */
    overflow-y: auto;
    /* Enable vertical scrolling */
}

.admin-modal.active {
    display: block !important;
}


/* Button Priority */
.close-user i {
    pointer-events: none;
}

.user-modal-content {
    z-index: 4001;
}

/* Account Management Specific Styles */
.account-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    min-height: 400px;
}

.account-sidebar {
    border-right: 1px solid #eee;
    padding-right: 1.5rem;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-nav-btn {
    background: none;
    border: none;
    padding: 12px 15px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.account-nav-btn i {
    width: 20px;
}

.account-nav-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.account-nav-btn.active {
    background: var(--primary-color);
    color: white;
}

.account-tab-content h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.account-main {
    padding-right: 10px;
}

@media (max-width: 600px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .account-nav-btn {
        white-space: nowrap;
    }
}

.close-user:active {
    transform: scale(0.9);
}


/* Universal Utilities */
.hidden {
    display: none !important;
}


/* Mobile Menu Fixes */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}