/* Mapple Studios - Main Stylesheet */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

:root {
    --primary-color: #2F82C3;
    --secondary-color: #ED3237;
    --text-color: #333;
    --light-gray: #9FA0A0;
    --bg-light: #ffffff;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Poppins', 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.15s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.25s;
}

.product-card:nth-child(5) {
    animation-delay: 0.3s;
}

.product-card:nth-child(6) {
    animation-delay: 0.35s;
}

.product-card:nth-child(7) {
    animation-delay: 0.4s;
}

.product-card:nth-child(8) {
    animation-delay: 0.45s;
}

.container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

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

.nav-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-icons a:hover {
    color: var(--primary-color);
}

/* Auth Dropdown */
.auth-dropdown {
    position: relative;
    display: inline-block;
}

.auth-icon-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.auth-icon-btn:hover,
.auth-icon-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 130, 195, 0.3);
}

.auth-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Arrow */
.auth-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-item.user-info {
    flex-direction: row;
    cursor: default;
    background: #f8f9fa;
    margin-bottom: 5px;
}

.dropdown-item.user-info:hover {
    background: #f8f9fa;
}

.dropdown-item.user-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.dropdown-item.user-info div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.dropdown-item.user-info strong {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 5px 0;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--light-gray);
    transition: color 0.2s;
}

.dropdown-item:hover {
    background: #f0f7ff;
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
    padding-left: 15px;
    border-left: 1px solid #e0e0e0;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn .fi {
    font-size: 24px;
    width: 32px;
    height: 24px;
    display: inline-block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.15);
}

.lang-btn.active {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.mobile-user-menu {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-user-menu h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-user-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.mobile-user-info i {
    font-size: 2rem;
    color: var(--primary-color);
}

.mobile-user-info div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.mobile-user-info strong {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.mobile-user-links a:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.mobile-language-switcher {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-language-switcher h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-lang-buttons {
    display: flex;
    gap: 0.5rem;
}

.mobile-lang-buttons .lang-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-lang-buttons .lang-btn.active {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.mobile-lang-buttons .lang-btn .fi {
    font-size: 24px;
    width: 32px;
    height: 24px;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(0deg, #023a5a 0%, #176599 49%, #023a5a 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Valentine's Day Special Slide */
.hero-slide.valentine-slide {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 30%, #880e4f 70%, #4a0028 100%);
}

.hero-slide.valentine-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 105, 135, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 182, 193, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255, 105, 135, 0.15) 0%, transparent 30%);
    pointer-events: none;
}

.hero-slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 80px;
}

.hero-text {
    flex: 1;
    color: var(--white);
    max-width: 500px;
}

.hero-logo-box {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
    display: inline-block;
    padding: 12px 30px;
    margin-bottom: 25px;
    position: relative;
}

.hero-logo-box::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 180px;
    height: 2px;
    background-color: var(--white);
}

.hero-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.5;
    margin: 0;
    position: relative;
    max-width: 480px;
}

.hero-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 2px;
    background-color: var(--white);
    margin-top: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--white);
    margin-top: 15px;
    max-width: 480px;
    line-height: 1.4;
}

.hero-coupon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--white);
    font-size: 1.1rem;
}

.hero-coupon strong {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.hero-image {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    position: relative;
}



.hero-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    z-index: 0;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--white);
    border-color: var(--white);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Custom Design CTA Section */
.custom-design-cta {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #c41e3a;
    color: var(--white);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* Featured Products Section */
.featured-products {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* About Mapple Studios Section - New Design */
.about-mapple-new {
    background-color: var(--white);
    padding: 0;
    width: 100%;
}

.about-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 420px;
}

.about-text-side {
    flex: 0 0 42%;
    padding: 50px 50px 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-logo-new {
    width: 240px;
    margin-bottom: 25px;
    height: auto;
}

.about-description-new {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    text-align: left;
}

.about-description-new strong {
    color: #c41e3a;
}

.about-buttons-new {
    display: flex;
    gap: 15px;
}

.btn-explore,
.btn-contact-us {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    color: var(--white);
    border: none;
}

.btn-explore {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}

.btn-explore:hover {
    background: linear-gradient(135deg, #a01729 0%, #8b1428 100%);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.35);
    transform: translateY(-2px);
}

.btn-contact-us {
    background: linear-gradient(135deg, #0d5a8f 0%, #084164 100%);
    box-shadow: 0 4px 12px rgba(13, 90, 143, 0.25);
}

.btn-contact-us:hover {
    background: linear-gradient(135deg, #084164 0%, #052d45 100%);
    box-shadow: 0 6px 18px rgba(13, 90, 143, 0.35);
    transform: translateY(-2px);
}

.about-mapple-new .about-image-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.about-mapple-new .about-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.about-mapple-new .about-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* Legacy styles for other pages */
.about-mapple {
    background-color: var(--white);
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-logo {
    width: 220px;
    margin-bottom: 25px;
    height: auto;
}

.about-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: justify;
}

.about-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Clients Carousel Section */
.clients-section {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.trust-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 50px;
}

.clients-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
}

.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel-wrapper::before {
    left: 0;

}

.clients-carousel-wrapper::after {
    right: 0;

}

.clients-carousel {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
    will-change: transform;
}

.clients-carousel:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;

    transition: all 0.4s ease;
    min-width: 220px;
    height: 140px;
}

.client-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    max-width: 180px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.85);
    transition: all 0.4s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-33.333%));
    }
}

/* Responsive Clients Carousel */
@media (max-width: 768px) {
    .clients-section {
        padding: 40px 0;
    }

    .trust-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .clients-carousel {
        gap: 50px;
    }

    .client-logo {
        min-width: 160px;
        height: 100px;
        padding: 20px 25px;
    }

    .client-logo img {
        max-width: 130px;
        max-height: 65px;
    }

    .clients-carousel-wrapper::before,
    .clients-carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .clients-section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    .trust-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .clients-carousel {
        gap: 40px;
    }

    .client-logo {
        min-width: 140px;
        height: 90px;
        padding: 15px 20px;
    }

    .client-logo img {
        max-width: 110px;
        max-height: 55px;
    }

    .clients-carousel-wrapper::before,
    .clients-carousel-wrapper::after {
        width: 30px;
    }
}

/* Responsive About Section */
@media (max-width: 1600px) {
    .about-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 1400px) {
    .about-text-side {
        flex: 0 0 45%;
        padding: 40px 40px 40px 60px;
    }

    .about-logo-new {
        width: 200px;
    }

    .about-description-new {
        font-size: 1.05rem;
    }
}

@media (max-width: 1024px) {
    .about-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .about-text-side {
        flex: 1;
        padding: 50px 40px;
        text-align: center;
        align-items: center;
    }

    .about-logo-new {
        margin-left: auto;
        margin-right: auto;
    }

    .about-mapple-new .about-image-side {
        flex: 1;
        min-height: 350px;
    }

    .about-mapple-new .about-image-side::before {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .about-text-side {
        padding: 40px 25px;
        text-align: center;
        align-items: center;
    }

    .about-logo-new {
        width: 180px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-description-new {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-buttons-new {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .btn-explore,
    .btn-contact-us {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 30px;
        font-size: 1rem;
    }

    .about-mapple-new .about-image-side {
        min-height: 280px;
    }

    .about-mapple-new .about-image-side::before {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .about-text-side {
        padding: 30px 20px;
        text-align: center;
        align-items: center;
    }

    .about-logo-new {
        width: 160px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-description-new {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .about-buttons-new {
        align-items: center;
        gap: 12px;
    }

    .btn-explore,
    .btn-contact-us {
        padding: 12px 24px;
        font-size: 0.95rem;
        max-width: 280px;
    }

    .about-mapple-new .about-image-side {
        min-height: 250px;
    }

    .about-mapple-new .about-image-side::before {
        width: 120px;
    }
}

/* Location Section */
.location-section {
    background-color: var(--white);
    padding: 60px 0;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c72a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 50, 55, 0.3);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: #7a7b7b;
}

.btn-view-details {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 130, 195, 0.3);
}

.quick-view-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.quick-view-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.btn-add-cart {
    background: #2F82C3;
    color: var(--white);
    font-size: 1.1rem;
    padding: 14px 30px;
}

.btn-add-cart:hover {
    background: #256fa8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 130, 195, 0.35);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 20px;
    background: var(--bg-light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e8e8e8;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 30px 20px;
    border-bottom: 1px solid #f5f5f5;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.product-badge.featured {
    background: #ffa726;
    box-shadow: 0 2px 6px rgba(255, 167, 38, 0.3);
}

.product-badge.new {
    background: #66bb6a;
    box-shadow: 0 2px 6px rgba(102, 187, 106, 0.3);
}

.product-card .quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    z-index: 10;
}

.product-card:hover .quick-view-btn {
    bottom: 20px;
    opacity: 1;
}

.product-card .quick-view-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 130, 195, 0.3);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: transparent;
    transition: transform 0.3s ease;
    padding: 0;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.product-name {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #111;
}

.product-description {
    display: none;
    /* Ocultar descripción en vista de cuadrícula */
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.product-price .compare-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.product-price .discount-badge {
    font-size: 0.75rem;
    color: #ff6b6b;
    font-weight: 600;
    background: #fff0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.product-card:hover .add-to-cart-btn {
    display: flex;
}

.add-to-cart-btn:hover {
    background: #1a5a8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 130, 195, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.pagination button,
.pagination a {
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    min-width: 50px;
    text-align: center;
    font-size: 0.95rem;
}

.pagination button:hover,
.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(47, 130, 195, 0.2);
    background: linear-gradient(135deg, #f8fcff 0%, #ffffff 100%);
}

.pagination button.active,
.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5a8f 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(47, 130, 195, 0.35);
    transform: scale(1.1);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
}

/* Categories Section */
.categories {
    padding: 80px 20px;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste para pantallas medianas (1366px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        max-width: 1200px;
    }

    .category-card {
        max-width: 280px;
    }
}

/* Limitar a máximo 4 columnas en pantallas muy grandes */
@media (min-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    max-width: 400px;
    margin: 0 auto;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 4rem;
    color: var(--primary-color);
    padding: 50px 20px;
    display: block;
    background: #fff;
}

.category-card .category-image {
    width: 100%;
    /*height: 220px;*/
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 0px;
}

.category-card .category-info {
    padding: 0;
}

.category-card .category-code {
    font-size: 0.75rem;
    color: #999;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.category-card .category-title {
    padding: 0;
    margin: 0;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.category-card h3 {
    padding: 16px 20px;
    margin: 0;
    background: #0d5a8f;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: background 0.3s ease;
}

.category-card:hover h3 {
    background: var(--primary-color);
}

.category-card a {
    display: none;
}

.category-placeholder {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-placeholder i {
    font-size: 4rem;
    color: #ddd;
    padding: 0;
    background: transparent;
}

/* Footer */
.footer {
    background: linear-gradient(0deg, #023a5a 0%, #176599 49%, #023a5a 100%);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Modal */
.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: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-gray);
}

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

.modal-content h2 {
    margin-bottom: 30px;
    color: var(--text-color);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bank Transfer Confirmation Modal */
.bank-transfer-confirmation {
    text-align: center;
    max-width: 600px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bank-transfer-confirmation .modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.bank-transfer-confirmation h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.order-number-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.order-number-display span {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.order-number-display strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.modal-message {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-message p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.modal-actions {
    margin-top: 20px;
}

.modal-actions .btn {
    min-width: 200px;
    padding: 12px 30px;
    font-size: 1rem;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .bank-transfer-confirmation {
        margin: 20% auto;
        padding: 30px 20px;
    }

    .bank-transfer-confirmation .modal-icon {
        font-size: 3rem;
    }

    .bank-transfer-confirmation h2 {
        font-size: 1.4rem;
    }

    .order-number-display strong {
        font-size: 1.2rem;
    }

    .modal-actions .btn {
        min-width: 100%;
    }
}

/* Create Account Modal (Post-Purchase) */
.create-account-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    margin: 5% auto;
}

.modal-icon-secondary {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.quick-register-form {
    text-align: left;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

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

.toggle-password i {
    font-size: 1rem;
}

.benefits-list {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.benefits-list h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 15px;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-color);
}

.benefits-list li i {
    color: #28a745;
    font-size: 1rem;
}

.modal-actions-double {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions-double .btn {
    width: 100%;
    padding: 12px 30px;
}

.modal-actions-double .btn-secondary {
    background-color: transparent;
    border: 2px solid #ddd;
    color: #6c757d;
}

.modal-actions-double .btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Responsive for Create Account Modal */
@media (max-width: 768px) {
    .create-account-modal {
        margin: 15% auto;
        padding: 25px 20px;
    }

    .modal-icon-secondary {
        font-size: 3rem;
    }

    .benefits-list {
        padding: 15px;
    }
}

/* Search Input in Sidebar */
.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.search-input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), #1a5a8f);
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(47, 130, 195, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.mobile-filter-toggle i {
    font-size: 1.1rem;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 130, 195, 0.4);
}

.mobile-filter-toggle:active {
    transform: translateY(0);
}

.filter-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.filter-header-mobile h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.close-filters-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-filters-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* Quick View Modal */
.quick-view-modal .modal-content {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
}

.quick-view-body {
    display: flex;
    flex-wrap: wrap;
}

.quick-view-image {
    flex: 1;
    min-width: 300px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.quick-view-details {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.quick-view-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.quick-view-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

/* Skeleton Loader */
.skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-card.skeleton-card {
    pointer-events: none;
}

.skeleton-image {
    height: 250px;
    width: 100%;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

/* Responsive Hero Slider */
@media (max-width: 992px) {
    .hero-slider {
        height: 600px;
    }

    .hero-slide {
        align-items: flex-start;
    }

    .hero-slide-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 60px 20px 30px;
        align-items: center;
        height: 100%;
        justify-content: flex-start;
    }

    .hero-text {
        max-width: 100%;
        display: block !important;
        visibility: visible !important;
        z-index: 10;
        order: 1;
    }

    .hero-logo-box {
        margin: 0 auto 20px;
        display: inline-block !important;
        visibility: visible !important;
        background: transparent !important;
        padding: 0 !important;
        backdrop-filter: none !important;
    }

    .hero-logo-box::before {
        display: none !important;
    }

    .hero-brand {
        font-size: 2rem;
        display: block !important;
        visibility: visible !important;
        color: #fff !important;
    }

    .hero-title {
        font-size: 2.2rem;
        display: block !important;
        visibility: visible !important;
        color: #fff !important;
    }

    .hero-title::after {
        margin: 15px auto 0;
        display: block;
    }

    .hero-image {
        max-width: 100%;
        order: 2;
    }

    .hero-image img {
        max-height: 280px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 580px;
    }

    .hero-slide {
        align-items: flex-start;
    }

    .hero-slide-content {
        flex-direction: column;
        gap: 20px;
        padding: 60px 20px 30px;
        align-items: center;
        height: 100%;
        justify-content: flex-start;
    }

    .hero-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100%;
        text-align: center;
        z-index: 10;
        order: 1;
    }

    .hero-logo-box {
        padding: 0 !important;
        margin: 0 auto 20px;
        background: transparent !important;
        backdrop-filter: none !important;
        display: inline-block !important;
        visibility: visible !important;
    }

    .hero-logo-box::before {
        display: none !important;
    }

    .hero-brand {
        font-size: 1.9rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        display: block !important;
        visibility: visible !important;
        color: #fff !important;
    }

    .hero-title {
        font-size: 1.8rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        font-weight: 400;
        display: block !important;
        visibility: visible !important;
        color: #fff !important;
    }

    .hero-title::after {
        width: 140px;
        margin: 15px auto 0;
        height: 3px;
        display: block;
    }

    .hero-image {
        max-width: 100%;
        order: 2;
    }

    .hero-image img {
        max-height: 220px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 550px;
    }

    .hero-slide {
        align-items: flex-start;
    }

    .hero-slide-content {
        flex-direction: column;
        gap: 15px;
        padding: 60px 15px 30px;
        align-items: center;
        height: 100%;
        justify-content: flex-start;
    }

    .hero-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100%;
        text-align: center;
        z-index: 10;
        position: relative;
        order: 1;
    }

    .hero-logo-box {
        padding: 0 !important;
        margin: 0 auto 15px;
        background: transparent !important;
        backdrop-filter: none !important;
        display: inline-block !important;
        visibility: visible !important;
    }

    .hero-logo-box::before {
        display: none !important;
    }

    .hero-brand {
        font-size: 1.5rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
        display: none !important;
        visibility: visible !important;
        color: #fff !important;
    }

    .hero-title {
        font-size: 1.4rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
        font-weight: 400;
        line-height: 1.3;
        display: block !important;
        visibility: visible !important;
        color: #fff !important;
    }

    .hero-title::after {
        width: 100px;
        margin: 12px auto 0;
        height: 2px;
        display: block;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
        margin-top: 10px;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    }

    .hero-coupon {
        font-size: 0.9rem;
        padding: 8px 14px;
        margin-top: 10px;
    }

    .hero-coupon strong {
        font-size: 1.05rem;
    }

    .hero-image {
        max-width: 100%;
        order: 2;
    }

    .hero-image img {
        max-height: 180px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    .slider-indicators {
        bottom: 15px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Responsive Filters */
@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        background: var(--white);
        z-index: 1001;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .filters-sidebar.active {
        left: 0;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .filter-header-mobile {
        display: flex;
    }

    .products-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Search Modal */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.search-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 90%;
    max-width: 600px;
    background: var(--white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.search-modal.active {
    transform: translateX(-50%) translateY(0);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.search-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.search-modal-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-modal-close:hover {
    color: var(--secondary-color);
}

.search-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.search-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit-btn:hover {
    background: #1e5a8a;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.search-result-item:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-placeholder {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.search-result-category {
    font-size: 0.85rem;
    color: var(--light-gray);
}

.search-result-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-gray);
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 1rem;
}

/* Responsive Search Modal */
@media (max-width: 768px) {
    .search-modal {
        width: 95%;
        max-width: none;
    }

    .search-modal-header {
        padding: 16px 20px;
    }

    .search-modal-title {
        font-size: 1rem;
    }

    .search-modal-body {
        padding: 20px;
        max-height: 60vh;
    }

    .search-input-container {
        flex-direction: column;
    }

    .search-submit-btn {
        width: 100%;
    }
}

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

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

.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

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

.side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-cart-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-cart-header h2 span {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.close-side-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-side-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

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

.side-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.side-cart-empty i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.side-cart-empty p {
    font-size: 1rem;
    color: #666;
}

.side-cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.side-cart-item:first-child {
    padding-top: 0;
}

.side-cart-item:last-child {
    border-bottom: none;
}

.side-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 8px;
    flex-shrink: 0;
}

.side-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin: 0;
}

.side-cart-item-colors {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
    font-weight: 600;
}

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

.side-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.side-qty-input {
    width: 45px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
}

.side-cart-item-subtotal {
    margin-left: auto;
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.side-cart-remove {
    position: absolute;
    top: 20px;
    right: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.side-cart-remove:hover {
    background: #fee;
    color: #e74c3c;
}

.side-cart-footer {
    padding: 20px 24px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.side-cart-promo {
    margin-bottom: 20px;
}

.promo-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.promo-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 130, 195, 0.1);
}

.promo-input-group i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.promo-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #333;
}

.promo-input::placeholder {
    text-transform: none;
    font-weight: 400;
    color: #999;
}

.promo-input:disabled {
    background: transparent;
    color: var(--primary-color);
}

.promo-apply-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-apply-btn:hover {
    background: #1a5a8f;
    transform: translateY(-1px);
}

.promo-apply-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.promo-remove-btn {
    background: #fee;
    color: #e74c3c;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.promo-remove-btn:hover {
    background: #e74c3c;
    color: var(--white);
}

.promo-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.promo-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.promo-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.side-cart-totals {
    margin-bottom: 20px;
}

.side-cart-subtotal,
.side-cart-discount,
.side-cart-itbis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.side-cart-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.side-cart-amount {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.discount-amount {
    color: #27ae60;
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 2px solid #e0e0e0;
}

.side-cart-total-label {
    font-size: 1rem;
    color: #333;
    font-weight: 700;
}

.side-cart-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.side-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-cart-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.side-cart-btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.side-cart-btn-primary:hover {
    background: #1a5a8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 130, 195, 0.3);
}

.side-cart-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.side-cart-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Side Cart */
@media (max-width: 480px) {
    .side-cart {
        width: 100%;
        right: -100%;
    }

    .side-cart-header {
        padding: 16px 20px;
    }

    .side-cart-body {
        padding: 16px;
    }

    .side-cart-footer {
        padding: 16px 20px;
    }
}

/* Admin Color Palette */
.color-input-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.2s;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #aaa;
}

.color-swatch.selected {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(47, 130, 195, 0.3);
}

.color-swatch.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-swatch.custom-swatch {
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch.custom-swatch i {
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-details {
    display: flex;
    gap: 10px;
    align-items: center;
}



.modal-content p {
    text-align: center;
    margin-top: 20px;
}

.modal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2F82C3 0%, #1a5a8f 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Products Page */
.products-section {
    padding: 40px 20px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.filters-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
    border: 1px solid #e8e8e8;
    position: sticky;
    top: 90px;
    transition: all 0.3s ease;
}

.filters-sidebar:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.filter-group {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 2px solid #f5f5f5;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    border: 1px solid transparent;
}

.filter-options label:hover {
    background-color: #f0f7ff;
    color: var(--primary-color);
    border-color: #e0efff;
    transform: translateX(4px);
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: transform 0.2s ease;
}

.filter-options input[type="checkbox"]:checked,
.filter-options input[type="radio"]:checked {
    transform: scale(1.1);
}

/* Category filter items */
.category-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.category-filter-item:hover {
    background-color: #f8f9fa;
    padding-left: 5px;
}

/* Category group (parent + children) */
.category-group {
    margin: 5px 0;
}

/* Parent category with toggle */
.category-parent {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--primary-color);
}

.category-parent:hover {
    background-color: #f0f7ff;
    padding-left: 5px;
    border-radius: 4px;
}

.category-parent label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.category-parent .toggle-icon {
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    min-width: 12px;
}

.category-parent .toggle-icon.fa-chevron-up {
    transform: rotate(180deg);
}

/* Children container */
.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
    margin-left: 8px;
    border-left: 2px solid #e8f0fe;
}

.category-children.expanded {
    max-height: 1000px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Child category items */
.category-child {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 0;
    padding-left: 8px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s ease;
}

.category-child:hover {
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding-left: 12px;
    border-radius: 4px;
}

.category-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--light-gray);
    font-weight: normal;
}

.filter-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.filter-group select:hover {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(47, 130, 195, 0.1);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 130, 195, 0.15);
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 6px 14px 4px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    color: #2c3e50;
    font-weight: 500;
}

.search-input-wrapper input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 130, 195, 0.15);
}

.search-input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus+i {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--white);
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
    flex-wrap: wrap;
    gap: 15px;
}

.products-header p {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

#productCount {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: var(--primary-color);
    background: rgba(47, 130, 195, 0.08);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Cart Page */
.cart-section {
    padding: 60px 20px;
    min-height: 60vh;
    background: #f8f9fa;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-items {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-items-header {
    background: linear-gradient(135deg, var(--primary-color), #1a5a8f);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.clear-cart-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cart-items-body {
    padding: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cart-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.cart-item-sku {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.cart-item-subtotal {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.remove-btn {
    background: #fee;
    border: 1px solid #fcc;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-btn:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.cart-summary {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.cart-summary-header {
    background: linear-gradient(135deg, #1a5a8f, var(--primary-color));
    color: white;
    padding: 20px 25px;
}

.cart-summary-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.cart-summary-body {
    padding: 25px;
}

.promo-code-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px dashed #e0e0e0;
}

.promo-code-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-code-section h3 i {
    color: var(--primary-color);
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 130, 195, 0.1);
}

.promo-input-group button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-input-group button:hover {
    background: #1a5a8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 130, 195, 0.3);
}

.promo-input-group button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.promo-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.promo-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.promo-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #333;
}

.summary-row.discount {
    color: #28a745;
}

.summary-row.discount span:last-child {
    color: #28a745;
    font-weight: 700;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    margin-top: 15px;
}

.cart-summary hr {
    margin: 20px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

.cart-summary .btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-summary .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a5a8f);
    box-shadow: 0 4px 15px rgba(47, 130, 195, 0.3);
}

.cart-summary .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 130, 195, 0.4);
}

.cart-summary .btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cart-summary .btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-cart i {
    font-size: 6rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    display: block;
}

.empty-cart h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 2rem;
}

.empty-cart p {
    color: #999;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.empty-cart .btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Product Detail Page */
.product-detail-section {
    padding: 60px 20px;
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--light-gray);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* En pantallas muy grandes, limitar el ancho de la imagen */
@media (min-width: 1600px) {
    .product-detail {
        max-width: 1200px;
        gap: 80px;
    }
}

.product-detail-image-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-image-gallery {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.gallery-arrow-left {
    left: 10px;
}

.gallery-arrow-right {
    right: 10px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    transition: opacity 0.3s;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.product-thumbnails img:hover {
    opacity: 0.9;
}

.product-thumbnails img.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.product-detail-image {
    width: 100%;
    border-radius: 10px;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail-stock {
    margin-bottom: 20px;
    font-weight: 600;
}

.in-stock {
    color: var(--success-color);
}

.out-of-stock {
    color: var(--danger-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #eaf2fb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #d4e6f6;
}

.qty-btn-minus {
    color: #d9534f;
}

.qty-btn-plus {
    color: var(--primary-color);
}

.qty-value {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid #dde2e8;
    border-right: 1px solid #dde2e8;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}

.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Floating Cart Pill */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 12px 8px 8px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.floating-cart-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cart-bar .floating-thumb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.floating-cart-bar .floating-info {
    flex: 1;
    min-width: 0;
}

.floating-cart-bar .floating-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
    max-width: 150px;
}

.floating-cart-bar .floating-price {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.85rem;
}

.floating-cart-bar .floating-cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2F82C3;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.2s;
}

.floating-cart-bar .floating-cart-btn:hover {
    background: #256fa8;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .floating-cart-bar {
        left: 10px;
        bottom: 12px;
        max-width: 280px;
    }
}

/* Cart Added Toast */
.cart-added-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 340px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.35s ease;
    pointer-events: none;
}

.cart-added-toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.cart-added-toast .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-added-toast .toast-header span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.cart-added-toast .toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.cart-added-toast .toast-close:hover {
    color: #333;
}

.cart-added-toast .toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.cart-added-toast .toast-body img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.cart-added-toast .toast-product-info {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.cart-added-toast .toast-product-price {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.cart-added-toast .toast-footer {
    padding: 0 16px 14px;
}

.cart-added-toast .toast-footer button {
    width: 100%;
    padding: 11px;
    background: #2F82C3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-added-toast .toast-footer button:hover {
    background: #256fa8;
}

@media (max-width: 480px) {
    .cart-added-toast {
        right: 10px;
        left: 10px;
        width: auto;
        top: 70px;
    }
}

.related-products {
    padding: 60px 20px;
    background: var(--bg-light);
}

/* Checkout Page */
.checkout-section {
    padding: 60px 20px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Category select with hierarchy */
.form-group select#productCategory option {
    padding: 8px;
}

.form-group select#productCategory option[style*="font-weight: 600"] {
    background-color: #f0f7ff;
    font-weight: 600;
    color: #1e40af;
}

.form-group select#productCategory option[style*="color: #666"] {
    padding-left: 20px;
    color: #666;
    font-size: 0.95em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: 600;
}

.order-summary {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.order-summary h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.checkout-item-quantity {
    color: var(--light-gray);
    font-size: 0.85rem;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.summary-totals {
    margin-top: 15px;
}

/* Progress Steps */
.checkout-progress {
    background: var(--white);
    padding: 40px 20px;
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--light-gray);
    transition: all 0.3s ease;
    z-index: 2;
}

.progress-step.active .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.step-label {
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--light-gray);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--text-color);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 10px;
    position: relative;
    top: -20px;
}

.progress-line.active {
    background: var(--primary-color);
}

/* Section Headers with Icons */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Form Field Error Styling */
.field-error {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Delivery Methods */
.delivery-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.delivery-option {
    position: relative;
    cursor: pointer;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.delivery-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.delivery-option span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.delivery-option span i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.delivery-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.delivery-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.delivery-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.delivery-option:hover span {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.delivery-option:hover span i {
    transform: scale(1.1);
}

.delivery-option input[type="radio"]:checked+span {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
}

.delivery-option input[type="radio"]:checked+span::before {
    transform: scaleX(1);
}

.delivery-option input[type="radio"]:checked+span i {
    transform: scale(1.15);
    color: var(--primary-dark);
}

.delivery-option input[type="radio"]:checked+span .delivery-price {
    color: var(--primary-dark);
}

/* Payment Methods Enhanced */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 18px 24px;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 500;
}

.payment-option span::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.payment-option span::before {
    content: '✓';
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: white;
    font-weight: bold;
    font-size: 14px;
    z-index: 1;
    transition: transform 0.3s ease 0.1s;
}

.payment-option span i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.payment-option:hover span {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.payment-option:hover span i {
    transform: scale(1.1);
}

.payment-option input[type="radio"]:checked+span {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
    padding-right: 60px;
}

.payment-option input[type="radio"]:checked+span::after,
.payment-option input[type="radio"]:checked+span::before {
    transform: translateY(-50%) scale(1);
}

.payment-option input[type="radio"]:checked+span i {
    color: var(--primary-dark);
    transform: scale(1.15);
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.checkout-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
}

/* Order Summary Enhancements */
.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.summary-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.summary-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.checkout-items-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Summary Sections */
.summary-section {
    margin: 15px 0;
    padding: 0;
    border-bottom: none;
}

.summary-section:last-of-type {
    border-bottom: none;
}

.summary-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.summary-section-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Compact Delivery Methods */
.delivery-methods-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-option-compact {
    cursor: pointer;
    display: block;
}

.delivery-option-compact input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.delivery-option-compact span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    background: var(--white);
}

.delivery-option-compact span i {
    font-size: 1rem;
    color: var(--light-gray);
    min-width: 18px;
}

.delivery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.delivery-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
}

.delivery-cost {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-gray);
}

.delivery-option-compact:hover span {
    border-color: var(--primary-color);
}

.delivery-option-compact input[type="radio"]:checked+span {
    border-color: var(--primary-color);
    background: var(--white);
}

.delivery-option-compact input[type="radio"]:checked+span i {
    color: var(--primary-color);
}

.delivery-option-compact input[type="radio"]:checked+span .delivery-name {
    font-weight: 500;
    color: var(--primary-color);
}

.delivery-option-compact input[type="radio"]:checked+span .delivery-cost {
    color: var(--primary-color);
}

/* Compact Payment Methods */
.payment-methods-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-option-compact {
    cursor: pointer;
    display: block;
}

.payment-option-compact input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option-compact span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 400;
}

.payment-option-compact span i {
    font-size: 1rem;
    color: var(--light-gray);
    min-width: 18px;
}

.payment-option-compact:hover span {
    border-color: var(--primary-color);
}

.payment-option-compact input[type="radio"]:checked+span {
    border-color: var(--primary-color);
    background: var(--white);
    font-weight: 500;
    color: var(--primary-color);
}

.payment-option-compact input[type="radio"]:checked+span i {
    color: var(--primary-color);
}

/* Promo Section in Checkout */
.promo-section {
    margin: 15px 0;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.promo-input-group {
    display: flex;
    gap: 8px;
}

.promo-input-group input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.85rem;
}

.btn-apply-promo {
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.btn-apply-promo:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-apply-promo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.promo-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    display: none;
}

.promo-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.promo-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Summary Discount Row */
.summary-row.discount {
    color: #28a745;
}

.discount-amount {
    color: #28a745;
    font-weight: 600;
}

/* Shipping Info */
.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 5px;
    margin: 10px 0;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.shipping-info i {
    font-size: 1rem;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.security-badges .badge {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--light-gray);
}

.security-badges .badge i {
    color: #28a745;
    font-size: 1.2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

/* Responsive Checkout */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .progress-line {
        display: none;
    }

    .delivery-methods {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column-reverse;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Auth Pages */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 200px 1fr;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .nav-icons>a#searchBtn,
    .auth-buttons,
    .nav-icons .language-switcher {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .nav-icons {
        gap: 1rem;
    }

    .logo img {
        height: 35px;
    }

    .nav-wrapper {
        padding: 0.75rem 0;
    }

    .container {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        color: var(--text-color);
        padding: 0.5rem;
    }

    .nav-icons a {
        font-size: 1.3rem;
    }

    #cartBtn {
        position: relative;
    }

    .cart-count {
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }

    /* Hero Slider Responsive */
    .hero-slider {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-content .btn {
        font-size: 1rem;
        padding: 10px 25px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 240px;
        padding: 10px;
    }

    .cart-layout {
        gap: 20px;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
        padding: 15px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-details h3 {
        font-size: 1rem;
    }

    .cart-item-price {
        font-size: 1.1rem;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
        margin-top: 10px;
    }

    .cart-item-subtotal {
        font-size: 1.2rem;
    }

    .promo-input-group {
        flex-direction: column;
    }

    .promo-input-group button {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .empty-cart {
        padding: 60px 20px;
    }

    .empty-cart i {
        font-size: 4rem;
    }

    .empty-cart h2 {
        font-size: 1.5rem;
    }

    .empty-cart p {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 12px;
        align-items: start;
    }

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

    .cart-item-details {
        align-items: flex-start;
    }

    .cart-item-details h3 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .cart-item-details .cart-item-sku {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .cart-item-details .cart-item-price {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .cart-item-quantity {
        justify-content: flex-start;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .qty-value {
        min-width: 35px;
        font-size: 1rem;
    }

    .cart-items-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cart-summary-header h2 {
        font-size: 1.2rem;
    }

    .cart-summary-body {
        padding: 20px;
    }

    .summary-row {
        font-size: 0.95rem;
    }

    .summary-row.total {
        font-size: 1.4rem;
    }
}

/* Responsive grid for products - 3 columns on medium screens */
@media (max-width: 1400px) {
    .products-layout {
        grid-template-columns: 280px 1fr;
        gap: 25px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    .product-image {
        height: 220px;
    }
}

@media (max-width: 1200px) {
    .products-layout {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .product-image {
        height: 200px;
    }
}

/* Tablets - 2 columns */
@media (max-width: 900px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .products-header {
        padding: 16px 18px;
        gap: 10px;
    }

    #productCount {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 0.95rem;
        min-height: 2.6rem;
    }

    .product-price {
        font-size: 1.3rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .products-section {
        padding: 30px 15px 60px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-card .product-image-wrapper {
        padding: 20px 15px;
        border-radius: 10px 10px 0 0;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.85rem;
        min-height: 2.4rem;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-price .compare-price {
        font-size: 0.85rem;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }

    .view-toggle {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 140px;
    }

    .product-card .product-image-wrapper {
        padding: 15px 10px;
    }

    .footer {
        padding: 40px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .footer-section ul {
        padding: 0;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section a {
        font-size: 0.85rem;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 10px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 400px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }

    body {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-muted {
    color: var(--light-gray);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* List View Styles */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    height: auto;
    align-items: center;
}

.products-grid.list-view .product-image-wrapper {
    width: 300px;
    flex-shrink: 0;
}

.products-grid.list-view .product-image {
    height: 200px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px;
}

/* Mostrar descripción solo en vista de lista */
.products-grid.list-view .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.products-grid.list-view .add-to-cart-btn {
    width: auto;
    align-self: flex-start;
    margin-top: 15px;
    padding: 10px 30px;
}

@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .products-grid.list-view .product-image-wrapper {
        width: 100%;
    }

    .products-grid.list-view .add-to-cart-btn {
        width: 100%;
    }
}

/* Categories Section */
/* Responsive adjustments for categories grid */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 35px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section a {
        font-size: 0.8rem;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .categories {
        padding: 60px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    .category-card .category-image {
        height: 180px;
        padding: 20px;
    }

    .category-card h3 {
        font-size: 0.9rem;
        padding: 16px 18px;
    }

    .category-placeholder {
        height: 180px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero Slider Responsive */
    .hero-slider {
        height: auto;
        min-height: 400px;
    }

    .hero-slide-content {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 30px 0 20px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        z-index: 2;
        position: relative;
    }

    .hero-logo-box {
        padding: 12px 28px;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(5px);
        margin: 0 auto 20px;
        display: inline-block;
    }

    .hero-logo-box::before {
        width: 120px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-brand {
        font-size: 1.6rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    }

    .hero-title {
        font-size: 1.9rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
        line-height: 1.3;
    }

    .hero-title::after {
        width: 120px;
        margin: 15px auto 0;
        height: 3px;
    }

    .hero-image {
        max-width: 100%;
        order: -1;
    }

    .hero-image img {
        max-height: 180px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    /* Slider Arrows Responsive */
    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .slider-arrow-next {
        right: 10px;
    }

    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }

    /* CTA Section Responsive */
    .cta-title {
        font-size: 2rem;
    }

    /* About Section New Responsive */
    .about-wrapper {
        flex-direction: column;
    }

    .about-text-side {
        flex: 1;
        padding: 40px 20px;
    }

    .about-image-side {
        flex: 1;
        min-height: 300px;
    }

    .about-logo-new {
        width: 160px;
    }

    .about-buttons-new {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
    }

    .about-buttons-new .btn-explore,
    .about-buttons-new .btn-contact-us {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* About Section Legacy Responsive */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-logo {
        width: 150px;
    }

    .about-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-explore,
    .btn-contact-us {
        width: 100%;
        text-align: center;
    }

    /* Badges Grid Responsive */
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .badge-item img {
        max-width: 100px;
    }
}

/* ============================================
   CATEGORIES PAGE STYLES
   ============================================ */

.categories-page {
    padding: 60px 20px;
    background: #fafbfc;
    min-height: 100vh;
}

.categories-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Ajuste para pantallas medianas (1366px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .categories-grid-full {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 1200px;
    }

    .category-card-full {
        padding: 25px;
        gap: 18px;
    }

    .category-image-wrapper,
    .category-icon-wrapper {
        width: 200px;
        height: 200px;
    }

    .category-icon-wrapper i {
        font-size: 4rem;
    }
}

/* Limitar a máximo 4 columnas en pantallas muy grandes */
@media (min-width: 1600px) {
    .categories-grid-full {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
    }
}

.category-card-full {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #f5f5f5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    min-height: 380px;
    max-width: 450px;
    margin: 0 auto;
}

.category-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), #1a5a8f);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card-full:hover::before {
    opacity: 1;
}

.category-card-full:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 130, 195, 0.2);
    border-color: var(--primary-color);
}

.category-image-wrapper {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.category-card-full:hover .category-image-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(47, 130, 195, 0.15);
}

.category-card-full:hover .category-image-wrapper img {
    transform: scale(1.15);
}

.category-icon-wrapper {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), #1a5a8f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(47, 130, 195, 0.3);
}

.category-icon-wrapper i {
    font-size: 6rem;
    color: var(--white);
    transition: transform 0.4s ease;
}

.category-card-full:hover .category-icon-wrapper {
    box-shadow: 0 12px 35px rgba(47, 130, 195, 0.4);
}

.category-card-full:hover .category-icon-wrapper i {
    transform: scale(1.2) rotate(8deg);
}

.category-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-full:hover .category-name {
    color: var(--primary-color);
}

.category-count {
    font-size: 1.1rem;
    color: #888;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
}

.category-arrow {
    display: none;
}

/* Loading Spinner for Categories */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--light-gray);
}

.loading-spinner i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Responsive Categories Page */
@media (max-width: 768px) {
    .categories-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .category-card-full {
        padding: 25px;
        gap: 15px;
        min-height: 340px;
    }

    .category-image-wrapper,
    .category-icon-wrapper {
        width: 200px;
        height: 200px;
    }

    .category-icon-wrapper i {
        font-size: 4.5rem;
    }

    .category-name {
        font-size: 1.3rem;
        min-height: 35px;
    }

    .category-count {
        font-size: 1rem;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .categories-grid-full {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card-full {
        padding: 20px;
        min-height: 320px;
    }

    .category-image-wrapper,
    .category-icon-wrapper {
        width: 180px;
        height: 180px;
    }

    .category-icon-wrapper i {
        font-size: 4rem;
    }

    .category-name {
        font-size: 1.2rem;
        min-height: 30px;
    }

    .category-count {
        font-size: 0.95rem;
        padding: 5px 14px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 12px 12px;
    }

    .footer-content {
        gap: 18px;
    }

    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .footer-section p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .footer-section ul li {
        margin-bottom: 5px;
    }

    .footer-section a {
        font-size: 0.75rem;
    }

    .social-links {
        gap: 10px;
        margin-top: 8px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .footer-bottom {
        padding-top: 15px;
        margin-top: 8px;
    }

    .footer-bottom p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .categories {
        padding: 50px 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 25px;
    }

    .category-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .category-card .category-image {
        height: 200px;
        padding: 25px;
    }

    .category-card h3 {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .category-placeholder {
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Checkout Wizard & Multi-step Improvement */
.checkout-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.checkout-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Delivery & Payment Selection Cards - Functional Style */
.delivery-methods-selection,
.payment-methods-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.delivery-option-card,
.payment-option-card {
    display: block;
    position: relative;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    transition: all 0.2s ease;
    background: #fff;
    width: 100%;
}

.delivery-option-card:hover,
.payment-option-card:hover {
    border-color: #b0b0b0;
    background-color: #fcfcfc;
}

.delivery-option-card input,
.payment-option-card input {
    position: absolute;
    opacity: 0;
}

/* Selected State */
.delivery-option-card:has(input:checked),
.payment-option-card:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.delivery-option-card:has(input:checked) .option-icon,
.payment-option-card:has(input:checked) .option-icon {
    color: var(--primary-color);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.option-icon {
    font-size: 1.2rem;
    color: #999;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.option-details {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Chip Style text */
.option-chip {
    font-weight: 500;
    color: #444;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: inline-block;
}

.option-price-chip {
    font-weight: 600;
    color: #888;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

/* Selected specific styles */
.delivery-option-card:has(input:checked) .option-chip,
.payment-option-card:has(input:checked) .option-chip {
    color: var(--primary-color);
    background-color: #f0f7ff;
    border-color: rgba(47, 130, 195, 0.2);
}

.delivery-option-card:has(input:checked) .option-price-chip {
    color: var(--primary-color);
    border-color: rgba(47, 130, 195, 0.2);
    font-weight: 700;
}


/* Form Groups Layout Fixes */
.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.section-header h2 {
    font-size: 1.4rem;
    margin: 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        margin-top: 30px;
    }
}

/* New Cart Summary Design */
.cart-summary-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.cart-summary-header-blue {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
}

.cart-summary-header-blue h2 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-summary-header-blue i {
    color: #fff;
}

.cart-summary-body {
    padding: 20px;
}

.summary-subtitle {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-subtitle i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.delivery-select-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.delivery-radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.delivery-radio-option:hover {
    background-color: #f8f9fa;
}

.delivery-radio-option input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.delivery-radio-option input:checked+.radio-custom {
    border-color: var(--primary-color);
}

.delivery-radio-option input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.radio-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
}

.price-badge {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.price-badge.free {
    color: #28a745;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.summary-divider.dashed {
    border-top-style: dashed;
}

.full-width {
    width: 100%;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Fix Cart Layout alignment */
.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Bank Transfer Details */
.bank-details-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    display: none;
    /* Hidden by default */
}

.bank-details-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* PayPal Details Container (Step 2 info) */
.paypal-details-container {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 1px solid #0070ba33;
}

.paypal-details-container .instruction-text {
    color: #0070ba;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* PayPal Checkout Container (Step 3) */
.paypal-checkout-section {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 12px;
    border: 2px solid #0070ba33;
    animation: fadeIn 0.3s ease;
}

.paypal-checkout-info {
    text-align: center;
}

.paypal-checkout-info .instruction-text {
    color: #0070ba;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.paypal-checkout-info .instruction-text i {
    font-size: 1.3rem;
}

#paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

.instruction-text {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.bank-account-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.bank-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bank-info strong {
    color: #333;
    font-size: 1rem;
}

.bank-info span {
    font-size: 0.85rem;
    color: #666;
}

/* Voucher Upload */
.voucher-upload-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 2px dashed #1976d2;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    color: #1976d2;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-label:hover {
    background: #e3f2fd;
}

.file-input {
    display: none;
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #00c853;
    text-align: center;
    font-weight: 500;
}

/* Items Accordion */
.items-accordion {
    margin-bottom: 20px;
    border-bottom: 1px dashed #e1e1e1;
    padding-bottom: 15px;
}

.items-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    color: #1976d2;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.items-accordion-toggle:hover {
    color: #1565c0;
}

.items-accordion-toggle i {
    margin-right: 8px;
}

.items-accordion-toggle .transition-icon {
    margin-right: 0;
    transition: transform 0.3s ease;
}

.items-accordion-toggle.active .transition-icon {
    transform: rotate(180deg);
}

.items-accordion-content {
    display: none;
    /* Hidden by default */
    padding-top: 10px;
}

.items-accordion-content.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ORDER HISTORY PAGE STYLES
   ============================================ */

/* Order History Section */
.order-history-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* Order Search Card */
.order-search-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-search-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-order-form {
    display: flex;
    gap: 15px;
}

.search-order-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-order-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 130, 195, 0.1);
}

.search-order-form .btn {
    padding: 14px 30px;
    white-space: nowrap;
}

/* Orders Container */
.orders-container {
    position: relative;
    min-height: 400px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--primary-color);
}

.loading-state i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loading-state p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 60px 30px;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 20px;
}

/* Order Card */
.order-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--border-color);
}

.order-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.order-number i {
    font-size: 1.2rem;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.order-status i {
    font-size: 0.6rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-card-body {
    padding: 25px;
}

.order-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.order-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.order-info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.order-info-item>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
}

.order-items-preview {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.items-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.items-count i {
    color: var(--primary-color);
}

.order-card-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background-color: #fafafa;
}

.order-card-footer .btn {
    flex: 1;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Order Details Modal */
.order-details-modal {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 3% auto;
    padding: 30px;
}

.order-details-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.order-details-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.order-number-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.order-details-body {
    margin-top: 30px;
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.address-display {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.address-display p {
    margin: 5px 0;
    color: var(--text-color);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-weight: 600;
    color: var(--text-color);
}

.item-quantity {
    font-size: 0.9rem;
    color: #6c757d;
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.item-price span {
    font-size: 0.9rem;
    color: #6c757d;
}

.item-price strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cost-summary {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-row.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-notes {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-history-section {
        padding: 40px 0;
    }

    .order-search-card {
        padding: 20px;
    }

    .search-order-form {
        flex-direction: column;
    }

    .search-order-form .btn {
        width: 100%;
    }

    .order-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .order-info-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .order-card-footer {
        flex-direction: column;
    }

    .order-card-footer .btn {
        width: 100%;
    }

    .order-details-modal {
        margin: 2% auto;
        padding: 20px;
        max-height: 95vh;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .order-item-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .item-price {
        align-items: flex-start;
        width: 100%;
    }
}

/* ====================================
   Profile Page Styles
   ==================================== */

.profile-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Profile Sidebar */
.profile-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.profile-avatar-section {
    text-align: center;
    padding: 40px 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-change {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.profile-avatar-change:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.profile-avatar-section h2 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.profile-email {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.profile-menu {
    padding: 10px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: 5px;
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
    color: #999;
    transition: color 0.2s;
}

.profile-menu-item:hover {
    background: #f5f8ff;
    color: var(--primary-color);
}

.profile-menu-item:hover i {
    color: var(--primary-color);
}

.profile-menu-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
}

.profile-menu-item.active i {
    color: var(--white);
}

/* Profile Main Content */
.profile-main {
    min-height: 400px;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
}

.profile-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-header h3 i {
    color: var(--primary-color);
}

.profile-card-body {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .profile-card-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Auth Section (Enhanced UX/UI) */
.auth-section {
    padding: 80px 0;
    background-color: #f7f9fc;
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.auth-box h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Softer corners */
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 130, 195, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-link {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link a:hover {
    color: #1a5c8e;
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 576px) {
    .auth-box {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-box h1 {
        font-size: 1.75rem;
    }
}