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

html {
    overflow-x: hidden;
}

:root{
    --navy: #0D1A63;
    --orange: #F68048;
    --cream: #FAF3E1;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --success: #4CAF50;
    --danger: #f44336;
    --warning: #ff9800;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--dark-gray);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 6px;
    border: 3px solid var(--cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}

.nav-bar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navy);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.5s ease;
    height: var(--nav-height);
}

.nav-container{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo{
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--orange);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
    flex-shrink: 0;
}

.logo::after{
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}

.logo:hover::after{
    width: 100%;
}

.logo span{
    color: white;
    font-size: 0.65rem;
    margin-left: 2px;
    font-weight: 600;
    letter-spacing: 0.18em;
    font-family: 'Inter', sans-serif;
}

.search-container{
    flex: 1;
    max-width: 380px;
    position: relative;
}

.search-container input{
    width: 100%;
    padding: 10px 44px 10px 18px;
    border: none;
    border-radius: 40px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.search-container input::placeholder{
    color: rgba(255, 255, 255, 0.7);
}

.search-container input:focus{
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(246, 128, 72, 0.3);
}

.search-container i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-size: 1.2rem;
    cursor: pointer;
}

.search-results-dropdown{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    overflow: hidden;
    display: none;
}

.search-results-dropdown.visible{
    display: block;
}

.search-result-item{
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

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

.search-result-item:hover{
    background: var(--cream);
}

.search-result-item img{
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-item span{
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.search-no-result{
    padding: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.nav-links{
    display: flex;
    gap: 1.8rem;
    flex-shrink: 0;
}

.nav-links a{
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav-links a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}

.nav-links a:hover{
    color: var(--orange);
}

.nav-links a:hover::after{
    width: 100%;
}

.nav-icons{
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-shrink: 0;
}

.icon-wrapper{
    position: relative;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.icon-wrapper:hover{
    color: var(--orange);
    transform: translateY(-2px);
}

.badge{
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--navy);
}

.hamburger{
    display: none;
    font-size: 1.6rem;
    color: var(--orange);
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    transition: var(--transition);
    border-radius: 8px;
}

.hamburger:hover{
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mobile-menu{
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: min(280px, 90vw);
    height: calc(100dvh - var(--nav-height));
    background: var(--navy);
    z-index: 999;
    padding: 1.5rem 1rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

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

.mobile-menu a{
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.mobile-menu a:hover{
    background: var(--orange);
    color: var(--navy);
    transform: translateX(6px);
}

.mobile-menu a i{
    width: 22px;
    font-size: 1.1rem;
}

.mobile-divider{
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.badge-mobile{
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: auto;
}

.hero{
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    background: linear-gradient(135deg, rgba(13, 26, 99, 0.88) 0%, rgba(246, 128, 72, 0.75) 100%), url('https://images.pexels.com/photos/264636/pexels-photo-264636.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.hero::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: moveDots 35s linear infinite;
}

@keyframes moveDots{
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

.hero-content{
    max-width: 760px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    animation: fadeInUp 0.9s ease both;
    margin: 0 auto;
}

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

.hero h1{
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.15;
}

.hero p{
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.92;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-buttons{
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease 0.4s both;
}

.btn{
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary{
    background: var(--orange);
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(246, 128, 72, 0.45);
}

.btn-primary:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(246, 128, 72, 0.6);
}

.btn-outline{
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover{
    background: white;
    color: var(--navy);
    transform: translateY(-3px);
}

.features{
    padding: 5rem 2rem;
    background: white;
}

.features-grid{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card{
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--cream);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0);
}

.feature-card:hover::before{
    opacity: 0.1;
    transform: scale(1);
}

.feature-card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon{
    width: 80px;
    height: 80px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3{
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p{
    color: var(--dark-gray);
    line-height: 1.6;
}

.products{
    padding: 5rem 2rem;
    background: white;
}

.products-header{
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-buttons{
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.filter-btn{
    padding: 0.5rem 1.3rem;
    border: 2px solid transparent;
    background: var(--cream);
    color: var(--navy);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active{
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
}

.products-grid{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    gap: 1.8rem;
}

.no-results{
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-results i{
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #ddd;
}

.product-card{
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(13, 26, 99, 0.08);
}

.product-card:hover{
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge{
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--orange);
    color: white;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
    text-transform: capitalize;
}

@keyframes pulse{
    0%, 100% { transform: scale(1);}
    50% {transform: scale(1.05);}
}

.product-image{
    height: 230px;
    overflow: hidden;
    position: relative;
}

.product-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay{
    position: absolute;
    inset: 0;
    background: rgba(13, 26, 99, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: var(--orange);
    color: white;
}

.product-info {
    padding: 1.3rem;
}

.product-category {
    color: var(--orange);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.stars {
    color: #ffc107;
    font-size: 0.85rem;
}

.rating-count {
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.old-price {
    color: var(--dark-gray);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: var(--orange);
    color: var(--navy);
}

.promo-banner{
    background: linear-gradient(135deg, #e86835 0%, var(--orange) 50%, #ffb347 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.promo-content{
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.promo-content h2{
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.promo-content p{
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.countdown{
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item{
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.3rem 1rem;
    border-radius: 16px;
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number{
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-label{
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 4px;
}

.testimonials{
    padding: 5rem 2rem;
    background: var(--cream);
}

.testimonials .section-title{
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.testimonials .section-subtitle{
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.section-subtitle{
    color: var(--orange);
    font-size: 1rem;
}

.testimonials-grid{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.testimonial-card{
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover{
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.quote-icon{
    color: var(--orange);
    font-size: 1.8rem;
    opacity: 0.3;
    margin-bottom: 0.8rem;
}

.testimonial-text{
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
    color: var(--dark-gray);
}

.testimonial-author{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4{
    color: var(--navy);
    font-weight: 600;
}

.author-info p{
    color: var(--orange);
    font-size: 0.85rem;
}

.newsletter{
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a7a 100%);
    color: white;
    text-align: center;
}

.newsletter-container{
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2{
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.newsletter p{
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.88;
}

.newsletter-form{
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input{
    flex: 1;
    padding: 0.9rem 1.3rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    min-width: 0;
}

.newsletter-form input::placeholder{
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-form input:focus{
    outline: none;
}

.newsletter-form button{
    padding: 0.9rem 1.6rem;
    border: none;
    background: var(--orange);
    color: var(--navy);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.newsletter-form button:hover{
    background: white;
    transform: scale(1.03);
}

.footer{
    background: #0a1240;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.footer-section h3{
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-section h3::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange);
}

.footer-section p{
    line-height: 1.8;
    opacity: 0.78;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

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

.footer-links li{
    margin-bottom: 0.8rem;
}

.footer-links a{
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover{
    opacity: 1;
    color: var(--orange);
    transform: translateX(5px);
}

.social-links{
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a{
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-links a:hover{
    background: var(--orange);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-bottom{
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.88rem;
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transform: translateY(120px);
    transition: transform 0.35s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.cart-notification.show {
    transform: translateY(0);
}

.back-to-top{
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 46px;
    height: 46px;
    background: var(--orange);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    font-size: 1.1rem;
}

.back-to-top.show{
    opacity: 1;
    visibility: visible;
    color: white;
}

.back-to-top:hover{
    background: var(--navy);
    color: white;
    transform: translateY(-4px);
}

.cart-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.cart-modal-overlay.active{
    display: block;
}

.cart-modal{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-modal.active{
    display: block;
}

.cart-modal-header{
    background: var(--navy);
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-modal-header h3{
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.close-cart:hover{
    background: var(--orange);
}

.cart-items{
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image{
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details{
    flex: 1;
    min-width: 0;
}

.cart-item-title{
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price{
    color: var(--orange);
    font-weight: 600;
}

.cart-item-quantity{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.quantity-btn{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.quantity-btn:hover{
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.quantity-value{
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-total{
    font-weight: 700;
    color: var(--navy);
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.remove-item{
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    flex-shrink: 0;
}

.remove-item:hover{
    transform: scale(1.2);
}

.cart-summary{
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    border-top: 2px solid var(--orange);
}

.summary-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row.total{
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    border-top: 2px dashed #ddd;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.cart-actions{
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cart{
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-continue{
    background: var(--navy);
    color: white;
}

.btn-continue:hover{
    background: var(--orange);
    transform: translateY(-2px);
}

.btn-checkout{
    background: var(--orange);
    color: var(--navy);
}

.btn-checkout:hover{
    background: var(--navy);
    color: white;
    transform: translateY(-2px);
}

.btn-clear{
    background: #eee;
    color: var(--danger);
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-clear:hover{
    background: var(--danger);
    color: white;
}

.empty-cart{
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-cart i{
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.checkout-modal{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2002;
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-modal.active{
    display: block;
}

.checkout-header{
    background: var(--navy);
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.checkout-form{
    padding: 1.5rem;
}

.form-group{
    margin-bottom: 1.2rem;
}

.form-group label{
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy);
}

.form-group input, .form-group select, .form-group textarea{
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

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

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

.payment-methods{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.payment-method{
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover, .payment-method.selected{
    border-color: var(--orange);
    background: rgba(246,128,72,0.1);
}

.payment-method i{
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
    display: block;
}

.payment-method span{
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
}

.order-summary{
    background: var(--cream);
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.order-summary h4{
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.checkout-actions{
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-back{
    background: #eee;
    color: var(--dark-gray);
    flex: 1;
}

.btn-back:hover{
    background: #ddd;
}

.btn-place-order{
    background: var(--orange);
    color: var(--navy);
    flex: 2;
    font-weight: 700;
}

.btn-place-order:hover{
    background: var(--navy);
    color: white;
}

.success-modal{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2003;
    display: none;
    text-align: center;
    padding: 2rem;
}

.success-modal.active{
    display: block;
}

.success-icon{
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-modal h3{
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.success-modal p{
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-success{
    background: var(--orange);
    color: var(--navy);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-success:hover{
    background: var(--navy);
    color: white;
    transform: translateY(-2px);
}

/* Wishlist active state on overlay button */
.overlay-btn.wishlisted {
    background: var(--danger);
    color: var(--white);
}
.overlay-btn.wishlisted i {
    color: var(--white);
}


@media (max-width: 1024px) {
    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .search-container {
        max-width: 260px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-container {
        max-width: 200px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Make the div wrapping the filter buttons stretch full width */
    .products-header > div:last-child {
        width: 100%;
    }

    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        padding-right: 1.2rem; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -1.2rem;
        padding-left: 1.2rem;
        width: calc(100% + 1.2rem);
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-container {
        padding: 0 1.2rem;
        gap: 0.7rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Hide search bar on tablet/phone, show only hamburger & icons 
    .search-container {
        display: none;
    } */

    .nav-icons { 
        display: none;
    } 

    .hero {
        background-attachment: scroll;
        min-height: 85vh;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .products {
        padding: 3rem 1.2rem;
        overflow-x: hidden;
    }

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

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .old-price {
        font-size: 0.8rem;
    }

    /* to always show overlay buttons on touch */
    .product-overlay {
        opacity: 1;
        background: rgba(13, 26, 99, 0.35);
    }

    .overlay-btn {
        transform: translateY(0);
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Features */
    .features {
        padding: 3rem 1.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.4rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .promo-banner {
        padding: 3rem 1.2rem;
    }

    .countdown {
        gap: 0.8rem;
    }

    .countdown-item {
        min-width: 72px;
        padding: 1rem 0.7rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .testimonials {
        padding: 3rem 1.2rem;
    }

    .newsletter {
        padding: 3rem 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 16px;
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .newsletter-form input {
        padding: 0.85rem 1rem;
        border-radius: 10px;
        background: rgba(255,255,255,0.12);
    }

    .newsletter-form button {
        border-radius: 10px;
        justify-content: center;
        padding: 0.85rem;
    }

    .footer {
        padding: 3rem 1.2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-modal,
    .checkout-modal {
        width: 96%;
        max-height: 92vh;
    }

    .cart-modal-header h3,
    .checkout-header h3 {
        font-size: 1.1rem;
    }

    .cart-items {
        padding: 1rem;
        max-height: 50vh;
    }

    .cart-item {
        gap: 0.7rem;
        flex-wrap: wrap;
    }

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

    .cart-item-total {
        min-width: 55px;
        font-size: 0.9rem;
    }

    /* Wishlist modal: push "Add to Cart" button to its own row */
    #wishlistItems .cart-item .btn-cart {
        flex: unset;
        width: 100%;
        order: 4;
        margin-top: 0.2rem;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-cart {
        flex: unset;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .btn-place-order,
    .btn-back {
        flex: unset;
        width: 100%;
    }

    .cart-notification {
        right: 12px;
        bottom: 12px;
        font-size: 0.88rem;
        padding: 0.75rem 1.2rem;
        max-width: calc(100vw - 24px);
    }

    .back-to-top {
        left: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo span {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .nav-icons {
        gap: 0.7rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-inline: auto;
    }

    .product-image {
        height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-inline: auto;
    }

    .countdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 300px;
        margin-inline: auto;
        gap: 0.6rem;
    }

    .countdown-item {
        min-width: unset;
    }

    .promo-content h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .success-modal {
        padding: 1.5rem 1rem;
    }

    .success-icon {
        font-size: 3rem;
    }
}

@media (max-width: 360px) {
    :root {
        --nav-height: 58px;
    }

    .logo {
        font-size: 1rem;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .newsletter-form input {
        font-size: 0.85rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    /* to always show product overlay on touch devices */
    .product-overlay {
        opacity: 1;
        background: rgba(13, 26, 99, 0.3);
    }

    .overlay-btn {
        transform: translateY(0) !important;
    }

    .product-card:hover,
    .feature-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
    }
}