/* Design System */
:root {
    --primary-color: #8a2336;
    /* Vibrant Pink/Red */
    --secondary-color: #feeaee;
    /* Soft Pink */
    --bg-color: #ffe5f1;
    /* Very Light Pink/White */
    --text-color: #590d22;
    /* Dark Rose */
    --text-light: #8e445a;
    /* Muted Pink-Brown */
    --accent-color: #faf0f2;
    /* Lighter Pink */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --header-height: 60px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-soft: 0 10px 30px rgba(255, 77, 109, 0.1);
    --glass-bg: rgba(255, 245, 247, 0.85);
    --glass-border: rgba(255, 77, 109, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--text-color);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}


.btn-alt {
    background-color: #ffffff;
}

.btn-alt:hover {
    transform: translateY(-2px);
}

/* Promo Bar */
.promo-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Header */
header {
    height: var(--header-height);
    background-color: rgba(253, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    box-shadow: var(--shadow-soft);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-link {
    background-color: transparent;
    border: 1px solid var(--text-color);
    padding: 8px 16px;
    border-radius: 50px;
}

.cart-link:hover {
    background-color: var(--text-color);
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 40px;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.mobile-menu-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-nav-links a {
    color: #fff;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    display: block;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

/* Carousel Section */
.carousel {
    height: 85vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 1;
    background-color: #110709;
    /* Dark background to blend with images */
}

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

.carousel-slide img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows the whole image without cropping */
    z-index: 0;
}

.carousel-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-slide .hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(30px);
    transition: transform 0.8s ease-out;
}

.carousel-slide.active .hero-content {
    transform: translateY(0);
}

.carousel-slide h1 {
    font-size: 4rem;
    letter-spacing: 12px;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-slide p {
    font-size: 1.4rem;
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

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

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-slide h1 {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .carousel-slide p {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .carousel-control {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }
}

/* Intro Section */
.intro {
    padding: 100px 0;
    text-align: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-text p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Shop Section */
.shop {
    padding-bottom: 100px;
}

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

.section-header h3 {
    font-size: 2rem;
}

.filter-bar span {
    margin-left: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.filter-bar span.active,
.filter-bar span:hover {
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 4/5;
    border-radius: 12px;
}

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

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--text-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.badge.promo {
    background-color: var(--primary-color);
}

.add-to-cart {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-card:hover .add-to-cart {
    bottom: 0px;
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.price {
    font-weight: 600;
    color: var(--text-light);
}

.old-price {
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Mega Promo */
.mega-promo {
    background: linear-gradient(rgba(121, 26, 38, 0.8), rgba(121, 26, 38, 0.8)), url('../images/hero.jpg') center/cover fixed;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}

.promo-content h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.promo-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* About Section */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
}

.about-image img {
    height: 500px;
    object-fit: cover;
    width: 100%;
    box-shadow: 20px 20px 0 var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #fff;
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background-color: var(--primary-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col ul a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.4s ease-out;
}

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

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

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

.modal-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(121, 26, 38, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Quiz CTA */
.quiz-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 40px;
    border-radius: 20px;
    margin-top: 80px;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-cta-content {
    position: relative;
    z-index: 1;
}

.quiz-text h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.quiz-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Quiz Modal */
.quiz-modal-content {
    max-width: 600px;
    padding: 60px;
    border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    margin-bottom: 40px;
    border-radius: 2px;
}

.progress {
    width: 33%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.quiz-option {
    padding: 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.quiz-option:hover,
.quiz-option.selected {
    border-color: var(--accent-color);
    background: var(--bg-color);
    color: var(--primary-color);
}

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

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

/* Floating Hearts Styles */
.heart {
    position: fixed;
    font-size: 20px;
    color: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    animation: floatHeart 4s linear forwards;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50vh) scale(1.2) rotate(45deg);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) scale(1) rotate(90deg);
        opacity: 0;
    }
}

/* Heart Pulse for Buttons */
@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn:hover {
    animation: heartPulse 0.6s infinite ease-in-out;
}

/* Product Recommendation Styling */
#quiz-recommendation {
    margin: 40px 0;
    text-align: center;
}

.rec-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.rec-card img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.rec-card .add-to-cart {
    position: relative;
    bottom: auto !important;
    left: auto;
    width: 100%;
    margin-top: 15px;
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* Enhanced Buttons */
.btn-alt {
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 700;
}

/* Removed background and color change on hover */

/* Product Card Improvements */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
}

.product-image {
    border-radius: 10px;
}


/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablet and Below (992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .intro {
        padding: 60px 0;
    }

    .intro-text h2 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .shop {
        padding-bottom: 60px;
    }

    .section-header h3 {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }

    .mega-promo {
        padding: 80px 0;
    }

    .promo-content h3 {
        font-size: 2.2rem;
    }

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

    .about {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-content h3 {
        font-size: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: auto 1fr;
        gap: 30px;
    }

    .quiz-cta {
        padding: 60px 30px;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .quiz-text h2 {
        font-size: 2.2rem;
    }

    .quiz-text p {
        font-size: 1rem;
    }
}

/* Mobile and Tablet (768px) */
@media (max-width: 768px) {

    /* Header */
    .header-content {
        gap: 10px;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .icon-link {
        display: none;
    }

    .cart-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

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

    /* Carousel */
    .carousel {
        height: 50vh;
    }

    .carousel-slide h1 {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .carousel-slide p {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .carousel-control {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

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

    .indicator.active {
        width: 25px;
    }

    /* Intro Section */
    .intro {
        padding: 50px 0;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 0.95rem;
    }

    /* Shop Section */
    .shop {
        padding-top: 10px;
        /* Reduced from default padding */
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h3 {
        font-size: 1.4rem;
    }

    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .filter-bar span {
        margin-left: 0;
        font-size: 0.75rem;
    }

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

    .product-info h4 {
        font-size: 0.95rem;
    }

    .price {
        font-size: 0.9rem;
    }



    .product-card {
        padding-bottom: 0;
        /* Adjust if needed */
        overflow: hidden;
    }

    /* Mega Promo */
    .mega-promo {
        padding: 60px 20px;
    }

    .promo-content h3 {
        font-size: 1.8rem;
    }

    .promo-content p {
        font-size: 0.95rem;
    }

    /* About Section */
    .about {
        padding: 50px 0;
    }

    .about-grid {
        gap: 40px;
        padding: 0 10px;
    }

    .about-content {
        text-align: center;
        padding: 0 10px;
    }

    .about-content h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 15px;
        text-align: center;
    }

    .about-image {
        width: 100%;
        padding: 0 10px;
    }

    .about-image img {
        height: auto;
        min-height: 280px;
        max-height: 350px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 12px 12px 0 var(--primary-color);
        margin: 0 auto;
        display: block;
    }

    /* Footer */
    footer {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    /* Modal */
    .modal-content {
        padding: 30px;
        width: 95%;
    }

    .modal-content h3 {
        font-size: 1.6rem;
    }

    /* Quiz */
    .quiz-cta {
        padding: 50px 20px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .quiz-text h2 {
        font-size: 1.8rem;
    }

    .quiz-text p {
        font-size: 0.95rem;
    }

    .quiz-modal-content {
        padding: 40px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quiz-option {
        padding: 15px;
    }

    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    /* Mobile Nav Links */
    .mobile-nav-links a {
        font-size: 1.5rem;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {

    /* Header */
    .logo a {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .cart-link {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* Carousel */
    .carousel {
        height: 40vh;
    }

    .carousel-slide h1 {
        font-size: 1.8rem;
        letter-spacing: 4px;
        margin-bottom: 5px;
    }

    .carousel-slide p {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .carousel-control {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .carousel-control.prev {
        left: 2px;
    }

    .carousel-control.next {
        right: 2px;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

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

    .indicator.active {
        width: 12px;
    }

    /* Intro */
    .intro {
        padding: 40px 0;
    }

    .intro-text h2 {
        font-size: 1.5rem;
    }

    .intro-text p {
        font-size: 0.9rem;
    }

    /* Shop */
    .section-header h3 {
        font-size: 1.2rem;
    }

    .filter-bar span {
        font-size: 0.7rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Make Add to Cart visible and clickable on mobile */
    .add-to-cart {
        bottom: 0 !important;
        z-index: 10;
    }

    /* Mega Promo */
    .promo-content h3 {
        font-size: 1.5rem;
    }

    .promo-content p {
        font-size: 0.9rem;
    }

    /* About Section - Small Mobile */
    .about {
        padding: 40px 0;
    }

    .about-grid {
        gap: 30px;
        padding: 0 15px;
    }

    .about-content {
        text-align: center;
        padding: 0;
    }

    .about-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 12px;
        text-align: center;
    }

    .about-image {
        padding: 0;
    }

    .about-image img {
        height: auto;
        min-height: 250px;
        max-height: 300px;
        border-radius: 6px;
        box-shadow: 8px 8px 0 var(--primary-color);
        margin: 0 auto;
        display: block;
    }

    /* Footer */
    .footer-col h5 {
        font-size: 1rem;
    }

    .footer-col ul a,
    .footer-col p {
        font-size: 0.85rem;
    }

    /* Modal */
    .modal-content {
        padding: 25px;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }

    .close-btn {
        font-size: 1.5rem;
        top: 15px;
        right: 20px;
    }

    /* Quiz */
    .quiz-text h2 {
        font-size: 1.5rem;
    }

    .quiz-modal-content {
        padding: 30px 20px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Mobile Nav */
    .mobile-nav-links a {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .mobile-nav-links {
        gap: 20px;
    }
}

/* Extra Small Mobile (320px) */
@media (max-width: 320px) {

    /* Carousel */
    .carousel {
        height: 35vh;
    }

    .carousel-slide h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .carousel-slide p {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .intro-text h2 {
        font-size: 1.3rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

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

    /* About Section - Extra Small */
    .about {
        padding: 30px 0;
    }

    .about-grid {
        gap: 25px;
        padding: 0 10px;
    }

    .about-content {
        text-align: center;
        padding: 0;
    }

    .about-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .about-content p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 10px;
        text-align: center;
    }

    .about-image {
        padding: 0;
    }

    .about-image img {
        min-height: 200px;
        max-height: 250px;
        border-radius: 4px;
        box-shadow: 6px 6px 0 var(--primary-color);
        margin: 0 auto;
        display: block;
    }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap target sizes for touch devices */
    .nav-links a,
    .mobile-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .carousel-control {
        min-width: 44px;
        min-height: 44px;
    }

    .indicator {
        min-width: 44px;
        min-height: 44px;
        border-radius: 22px;
    }

    /* Disable hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .product-card:hover .add-to-cart {
        bottom: -50px;
    }
}

/* Cart Modal Styles */
.cart-modal-content {
    max-width: 500px;
    padding: 30px;
}

.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding-right: 5px;
    /* For scrollbar */
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-color);
}

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

.remove-item-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #ff4d6d;
}

.cart-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

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

.empty-cart-msg {
    text-align: center;
    color: #888;
    padding: 30px 0;
}

/* Cart Quantity Controls */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s;
}

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

.qty-display {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Quiz Add to Cart visibility fix */
.rec-card .add-to-cart {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: 500;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

/* Custom Alert Toast */
#custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-alert {
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary-color);
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-alert.active {
    transform: translateX(0);
}

.custom-alert.error {
    border-left-color: #dc3545;
}

.custom-alert.success {
    border-left-color: #28a745;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        padding: 40px 20px 30px !important;
        margin: 10px !important;
    }

    .promo-content h3 {
        font-size: 2rem !important;
    }

    .promo-content p {
        font-size: 1rem !important;
    }

    #custom-alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: center;
    }

    .custom-alert {
        min-width: auto;
        width: 90%;
        margin: 0 auto;
    }

    .payment-instructions {
        font-size: 0.85rem;
    }

    #payment-section img {
        width: 120px !important;
    }
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding-top: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-col h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

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

/* Mobile Footer Fix - Side by Side */
@media (max-width: 768px) {
    footer {
        text-align: left;
        padding-top: 30px;
    }

    .footer-grid {
        grid-template-areas:
            'brand links'
            'contact contact';
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: start;
    }

    .footer-col.brand {
        grid-area: brand;
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-col:nth-child(2) {
        grid-area: links;
        border-bottom: none;
        padding-bottom: 0;
        text-align: center;
    }

    .footer-col:last-child {
        grid-area: contact;
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}


/* Mobile Menu Refinements */
/* Mobile Sidebar Refinements */
#mobile-menu {
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* Backdrop */
    display: none;
    justify-content: flex-end;
    /* Align sidebar to right */
    align-items: stretch;
    transition: opacity 0.3s ease;
}

#mobile-menu.active {
    display: flex;
}

.mobile-menu-content {
    background: var(--primary-color) !important;
    /* Dark Maroon */
    width: 280px;
    /* Sidebar width */
    height: 100%;
    text-align: left;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3) !important;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

#mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav-links {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin-top: 40px;
    /* Reduced space */
    align-items: flex-start;
}

.mobile-nav-links li {
    list-style: none;
    opacity: 0;
    width: 100%;
    animation: slideInRight 0.4s ease forwards;
}

.mobile-nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-links li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-links li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-links li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-links li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-links li:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav-links a {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.1rem !important;
    /* Reduced size */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 10px;
    border-bottom-color: var(--accent-color);
}

.mobile-menu-close {
    color: #ffffff !important;
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color) !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* Cart Item Styling */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

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

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

.cart-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-color);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

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

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
    margin-left: 10px;
}

.remove-btn:hover {
    color: var(--primary-color);
}

/* Cart Icon & Badge */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    /* Significantly larger */
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
}

.cart-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.cart-link svg {
    width: 30px;
    /* Much larger icon */
    height: 30px;
    stroke-width: 2.2;
    /* Balanced stroke */
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Cart Icon */
.mobile-cart {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-cart svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Mobile Cart Icon Sizing */
@media (max-width: 768px) {
    .cart-link {
        width: 38px;
        height: 38px;
    }

    .cart-link svg {
        width: 20px;
        height: 20px;

    }

    .cart-count {
        width: 16px;
        height: 16px;
        min-width: 16px;
        font-size: 0.7rem;
        top: -2px;
        right: -2px;
        border-width: 1.5px;
    }
}


/* Site Title Responsive */
.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1rem;
    }
}