/* Global Vars - Preserving previous modern theme */
:root {
    --bg-color: #0d0d10;
    --card-bg: #1a1a20;
    --text-main: #ffffff;
    --text-muted: #a0a0cb;
    --accent: #5d3fd3;
    --accent-light: #8c52ff;
    --success: #00ff88;
    --gradient: linear-gradient(135deg, #5d3fd3 0%, #00c6ff 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Utilities */
.section {
    padding: 80px 10%;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
    transform: skewX(-15deg);
}

.btn:hover::before {
    width: 150%;
}

.btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(93, 63, 211, 0.6), 0 0 20px rgba(140, 82, 255, 0.4);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(93, 63, 211, 0.3);
    transform: translateY(-3px);
}

.btn.white {
    background: white;
    color: black;
    font-weight: 800;
}

.btn.white:hover {
    background: #eee;
    transform: translateY(-2px);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(13, 13, 16, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo i {
    color: var(--accent-light);
    font-size: 1.8rem;
}

.search-bar {
    display: flex;
    background: var(--card-bg);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--border);
    width: 40%;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

.search-bar button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-wrapper {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
}

.icon-wrapper:hover {
    color: var(--accent-light);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #15151a;
    z-index: 1002;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 10px;
    background: var(--glass);
    padding: 10px;
    border-radius: 10px;
    align-items: center;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.item-details p {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.qty-btn {
    background: var(--border);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #1a1a20;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
}

.remove-btn {
    color: #ff4757;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
}

/* Product Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.product-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1e1e24;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: 0.3s;
    border: 1px solid var(--border);
}

.product-modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
    flex-direction: row;
}

.modal-img {
    flex: 1;
    height: 400px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-info .price {
    font-size: 2rem;
    color: var(--accent-light);
    display: block;
    margin-bottom: 20px;
}

.modal-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-info .cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-info .cta-group .btn {
    flex: 1;
    min-width: 120px;
}

#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    opacity: 0;
    transition: 0.5s;
    z-index: 3000;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    min-height: 80vh;
    position: relative;
}

.hero-content {
    max-width: 600px;
    animation: slideRight 1s ease;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin: 20px 0;
    line-height: 1.1;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    z-index: 2;
    animation: float 6s infinite ease-in-out;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.circle-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

/* Float Cards */
.float-card {
    position: absolute;
    background: rgba(26, 26, 32, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    box-shadow: var(--shadow);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.float-card i {
    font-size: 1.4rem;
    color: var(--accent-light);
}

.card-1 {
    top: 10%;
    left: -40px;
    animation: float 5s infinite reverse ease-in-out;
}

.card-2 {
    bottom: 20%;
    right: -30px;
    animation: float 7s infinite ease-in-out 1s;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
}

.cat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.cat-card i {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 15px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent);
}

/* Products */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.product-img-box {
    height: 250px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    background: #222;
}

/* Dark bg fallback */
.product-card:hover img {
    transform: scale(1.1);
}

.add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
    transform: scale(0);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .add-btn {
    transform: scale(1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.price {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Offer Banner */
.offer-banner {
    margin: 80px 0;
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.offer-content {
    z-index: 2;
    max-width: 50%;
}

.offer-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.offer-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.offer-img {
    position: absolute;
    right: 0;
    top: -50px;
    height: 150%;
    z-index: 1;
    transform: rotate(-10deg);
    opacity: 0.9;
}

/* Responsive */
@media(max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        width: 100%;
        height: 350px;
        margin-top: 40px;
    }

    .float-card {
        display: none;
    }

    /* Hide float cards on mobile to avoid clutter */

    .offer-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .offer-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .offer-img {
        position: relative;
        height: 200px;
        transform: rotate(0);
        top: 0;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-img {
        height: 250px;
    }

    .cart-sidebar {
        width: 300px;
    }

    .search-bar {
        width: 100%;
        position: fixed;
        top: 70px;
        left: 0;
        border-radius: 0;
        z-index: 999;
        padding: 15px;
        display: none;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Light Mode Override */
body.light-mode {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #555;
    --accent: #5d3fd3;
    --glass: rgba(0, 0, 0, 0.05);
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .section-title,
body.light-mode h2,
body.light-mode h3 {
    color: #000;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .product-card,
body.light-mode .cart-sidebar,
body.light-mode .modal-content {
    background: #fff;
    border-color: #e5e5e5;
}

body.light-mode .btn.secondary {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

body.light-mode .btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3);
}

body.light-mode .btn.primary:hover {
    box-shadow: 0 6px 20px rgba(93, 63, 211, 0.4);
}

/* Scroll Animations */
.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Image Hover Animations */
.product-img-box img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img-box img {
    transform: scale(1.08) rotate(2deg);
}

/* Offer Banner Animation */
/* Offer Banner Animation */
.offer-banner {
    transition: transform 0.5s ease;
}

.offer-banner:hover {
    transform: scale(1.02);
}

/* Responsive Footer */
@media(max-width: 991px) {
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media(max-width: 600px) {
    .footer-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
}

/* New Footer Styles */
.footer {
    background: #111;
    color: #fff;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--accent);
}

.footer-desc {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Links Columns */
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

/* Newsletter */
.newsletter p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--accent-light);
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: #fff;
}

/* Light Mode Footer Override */
body.light-mode .footer {
    background: #fff;
    color: #1a1a1a;
    border-top: 1px solid #eee;
}

body.light-mode .footer-desc,
body.light-mode .footer-col ul li a,
body.light-mode .newsletter p,
body.light-mode .footer-bottom {
    color: #666;
}

body.light-mode .social-icon {
    background: #f0f0f0;
    color: #333;
}

body.light-mode .social-icon:hover {
    color: #fff;
    background: var(--accent);
}

body.light-mode .newsletter-form input {
    background: #f0f0f0;
    border-color: #ddd;
    color: #333;
}

/* Theme Toggle Icon Customization */
.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent-light);
}

/* Light Mode Cart & Badge Fixes */
body.light-mode .cart-badge {
    background: #ff4757;
    color: white !important;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
}

body.light-mode .cart-sidebar {
    background: #ffffff;
    border-left: 1px solid #e9ecef;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .cart-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

body.light-mode .cart-items {
    background: #ffffff;
}

body.light-mode .cart-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

body.light-mode .total-row,
body.light-mode .empty-cart-msg {
    color: #1a1a1a;
}

body.light-mode #cartTotal {
    color: #1a1a1a !important;
    font-weight: 700;
}

body.light-mode .total-row span:first-child {
    color: #1a1a1a !important;
}

body.light-mode .cart-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-mode .close-cart {
    color: #6c757d;
}

body.light-mode .close-cart:hover {
    color: #495057;
}

body.light-mode .remove-btn:hover {
    color: #dc3545;
}

body.light-mode .qty-btn {
    background: #eee;
    color: #333;
}

body.light-mode .item-details p {
    color: var(--accent);
}

.qty-controls span {
    color: var(--text-main);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

body.light-mode .qty-controls span {
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: 80px 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .circle-bg {
        width: 250px;
        height: 250px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 700px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-img {
        width: 100%;
        height: 300px;
        border-radius: 20px 20px 0 0;
    }

    .modal-img img {
        border-radius: 20px 20px 0 0;
    }

    .modal-info {
        padding: 30px;
        text-align: center;
    }

    .modal-info h2 {
        font-size: 1.8rem;
    }

    .modal-info .price {
        font-size: 1.8rem;
    }

    .modal-info .cta-group {
        justify-content: center;
        flex-direction: row;
    }

    .modal-info .cta-group .btn {
        flex: none;
        width: 150px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Navbar */
    .navbar {
        padding: 15px 5%;
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
    }

    .logo {
        font-size: 1.3rem;
        order: 1;
    }

    .search-bar {
        width: 100%;
        order: 3;
        flex: 1;
        margin-top: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    .nav-icons {
        order: 2;
        gap: 12px;
    }

    .user-profile img {
        width: 35px;
        height: 35px;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        width: 250px;
        height: 250px;
    }

    .circle-bg {
        width: 200px;
        height: 200px;
    }

    .float-card {
        display: none;
        /* Hide floating cards on mobile */
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cat-card {
        padding: 20px 15px;
    }

    .cat-card .icon {
        font-size: 2rem;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-img-box {
        height: 200px;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        top: 0;
        height: 100vh;
        z-index: 1003;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-overlay.active {
        display: block;
    }

    .cart-item {
        padding: 12px;
        gap: 12px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .item-details h4 {
        font-size: 0.95rem;
    }

    .qty-controls {
        gap: 10px;
    }

    .qty-btn {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
        max-height: none;
    }

    .modal-img {
        width: 100%;
        height: 250px;
        border-radius: 20px 20px 0 0;
    }

    .modal-img img {
        border-radius: 20px 20px 0 0;
    }

    .modal-info {
        padding: 20px;
        text-align: center;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-info .price {
        font-size: 1.5rem;
    }

    .modal-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn {
        width: 100%;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-img {
        width: 100%;
        height: 250px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .payment-icons {
        justify-content: center;
    }

    /* Buttons */
    .cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 5%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Navbar */
    .navbar {
        padding: 10px 5%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .nav-icons {
        gap: 10px;
    }

    .icon-wrapper {
        font-size: 1rem;
    }

    .user-profile img {
        width: 30px;
        height: 30px;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .circle-bg {
        width: 150px;
        height: 150px;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cat-card {
        padding: 15px;
        text-align: center;
    }

    .cat-card .icon {
        font-size: 1.8rem;
    }

    .cat-card h3 {
        font-size: 0.9rem;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-img-box {
        height: 180px;
    }

    /* Modal */
    .modal-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-img {
        height: 200px;
    }

    .modal-info {
        padding: 15px;
    }

    .modal-info h2 {
        font-size: 1.3rem;
    }

    .modal-info .price {
        font-size: 1.3rem;
    }

    .close-modal {
        font-size: 1.5rem;
        top: 10px;
        right: 15px;
    }

    /* Cart */
    .cart-header {
        padding: 15px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-footer {
        padding: 15px;
    }

    .cart-item {
        padding: 10px;
    }

    .cart-item img {
        width: 50px;
        height: 50px;
    }

    /* Footer */
    .newsletter-form input {
        padding: 10px 12px;
    }

    .newsletter-form button {
        width: 30px;
        height: 30px;
        right: 3px;
        top: 3px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }
}