:root {
    /* Modern Color Palette */
    --color-primary: #D4A373;
    --color-primary-light: #FAEDCD;
    --color-secondary: #CCD5AE;
    --color-secondary-dark: #6B705C;
    --color-bg: #f9f9f9;
    --color-card-bg: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    /* Warm Off-White */

    --color-text: #333333;
    --color-heading: #1A1A1A;
    --color-white: #ffffff;
    --color-grey-light: #f7f7f7;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    /* UI */
    --border-radius: 4px;
    /* Sharper, more premium look */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --color-bg: #1a1b16;
    /* Soft Dark with a hint of olive/gold */
    --color-card-bg: #24251f;
    --color-text: #e8e8e2;
    --color-heading: #ffffff;
    --color-primary-light: #2d2e27;
    --color-border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
    --color-grey-light: #2a2b24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), #b88a5d);
    color: var(--color-white);
    padding: 14px 35px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.5);
    filter: brightness(1.05);
}

.btn-primary-outline {
    border: 1px solid var(--color-heading);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-outline:hover {
    background-color: var(--color-heading);
    color: var(--color-white);
    transform: translateY(-2px);
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add,
.btn-buy {
    flex: 1;
    padding: 12px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-add {
    background-color: var(--color-card-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-add:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-buy {
    background: linear-gradient(135deg, var(--color-secondary-dark), #4a4d3f);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(107, 112, 92, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 112, 92, 0.5);
    filter: brightness(1.1);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    color: var(--color-text);
}

.icon-btn:hover {
    background: var(--color-grey-light);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* --- Cart Styles (Updated) --- */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.qty-btn {
    background: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-text);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.cart-controls span {
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: auto;
    /* Push to the right */
    text-decoration: underline;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-item:hover {
    color: #cc0000;
}

.item-total {
    font-size: 0.85rem;
    color: var(--color-secondary-dark);
    font-weight: bold;
    margin-top: 4px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-primary);
    color: var(--color-heading);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- Header --- */
.main-header {
    background-color: var(--color-card-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.logo {
    height: 55px;
    object-fit: contain;
    border-radius: 10px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.header-icons {
    display: flex;
    align-items: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-heading);
}

/* --- Hero Section --- */
.hero-section {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 50px 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

}

.hero-content .subtitle {
    display: block;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #111;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-style: italic;
    color: #000;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: #111;
}

/* --- Features Section --- */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 10%;
    background-color: var(--color-primary-light);
    text-align: center;
    border-radius: 0 0 50px 50px;
    /* Slight curve */
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Products Section --- */
.products-section {
    padding: var(--spacing-xl) 5%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

/* install btn */
.install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1b16;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.install-btn:hover {
    opacity: 0.9;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 10px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.product-card {
    background: var(--color-card-bg);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);

}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- Mobile Optimization (Daraz Style) --- */


.product-image {
    position: relative;
    aspect-ratio: 1/1.2;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-heading);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    color: #f57224;
}

.product-info .category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary-dark);
}

/* --- About Section (Redesigned) --- */
.about-section {
    padding: var(--spacing-xl) 5%;
    background-color: var(--color-bg);
    transition: background-color 0.4s ease;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-logo img {
    max-width: 300px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

.about-text {
    padding: 0.5rem;
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text .highlight {
    color: var(--color-primary);
    font-style: italic;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Customer Reviews Section --- */
.reviews-section {
    padding: 60px 5% 40px 5%;
    /* Explicit padding, reduced bottom */
    background-color: var(--color-primary-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Slightly smaller min-width for better fit */
    gap: 30px;
    margin-bottom: 30px;
    /* Reduced margin */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.review-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Optional: Add a subtle quote icon background */
.review-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: var(--color-primary-light);
    opacity: 0.5;
    font-family: serif;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .review-card::before {
    opacity: 0.1;
}

.stars {
    color: #FFD700;
    /* Gold color for stars */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.review-text {
    font-style: italic;
    color: #0a79e0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.reviewer-info {
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    position: relative;
    z-index: 1;
}

.reviewer-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: #0a79e9;
    margin-bottom: 4px;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #0a79e9;
    /* Facebook Blue */

    font-weight: 500;
}

.verified-tick {
    width: 20px;
    height: 20px;
}

.verified-tick path {
    stroke: #4267B2;
}

/* Ensure icon color adapts if needed, though FB blue is standard */


.reviews-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    /* Reduced top margin */
    text-align: center;
}

.reviews-footer p {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-facebook {
    display: inline-block;
    background-color: #4267B2;
    /* Facebook Blue */
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(66, 103, 178, 0.3);
    transition: var(--transition);
}

.btn-facebook:hover {
    background-color: #365899;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.4);
    color: white;
}

/* --- Contact & Social Icons --- */
.newsletter-section {
    padding: var(--spacing-xl) 20px;
    text-align: center;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-sub {
    margin-bottom: 40px;
    color: #666;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    border-radius: 12px;
    padding: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Brand Colors for Icons on Hover/Default */
.facebook {
    fill: #1877F2;
}

.whatsapp {
    fill: #25D366;
}

.instagram {
    fill: #E4405F;
}

.gmail {
    fill: #EA4335;
}


.contact-text-details p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

/* --- Minimal Footer --- */
.minimal-footer {
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    padding: 30px 5%;
    color: var(--color-text);
    transition: background-color 0.4s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Footer --- */
.main-footer {
    background-color: #222;
    color: #fff;
    padding: var(--spacing-lg) 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-col p {
    color: #aaa;
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* --- Cart Sidebar --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 1002;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.cart-item img {
    width: 60px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: #888;
}

.remove-item {
    color: red;
    font-size: 0.8rem;
    cursor: pointer;
    background: none;
    border: none;
    margin-top: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-footer .total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* --- Product Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 900px;
    max-width: 90%;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
}

.close-btn-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: white;
    border: none;
    font-size: 1.5rem;
    z-index: 10;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-image {
    width: 50%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-info .price {
    font-size: 1.5rem;
    color: var(--color-secondary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-info .desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Responsive & Mobile Nav --- */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: block;
        order: 1;
    }

    .logo-container {
        order: 2;
    }

    .logo {
        height: 50px;
    }

    .header-icons {
        order: 3;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        /* Header height approx */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        /* Hidden by default */
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-section {
        grid-template-columns: 1fr;
    }

    .modal-content {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-image,
    .modal-info {
        width: 100%;
    }

    .modal-image {
        height: 300px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 350px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on mobile */
        gap: 15px;
    }

    .product-actions {
        flex-direction: column;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .social-icons-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        /* Tighter gap */
        padding: 5px;
    }

    .product-card {
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        /* Subtle shadow */
        border: 1px solid #f0f0f0;
        /* Light border */
    }

    .product-card:hover {
        transform: none;
        /* Disable hover lift on mobile */
    }

    .product-card .product-image {
        aspect-ratio: 1/1.2;
        /* Slightly taller than square */
        height: 200px;
    }

    .product-info {
        padding: 8px;
    }

    .product-info h3 {
        font-size: 1rem;
        /* Slightly smaller */
        ;
        /* Tighter line height */
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.6em;
        /* Adjusted to show 2 lines */
        /* Reduced fixed height */
        margin-bottom: 1px;
        /* Reduced margin */
        line-height: 1;
    }

    .product-info .price {
        font-size: 0.95rem;
        color: #f57224;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1;

        /* Space before button */
    }

    .product-info .category {
        font-size: .6rem;
    }

    /* Mobile Buttons: Show only Buy Now */
    .product-actions {
        display: flex;
        flex-direction: row;
        gap: 0;
        background-color: #f57224;
        border-radius: 5px;
        margin-top: 0;
    }

    .product-card .btn-add {
        display: none;
        /* Hide Add to Cart on mobile card only */
    }

    .product-card .btn-buy {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 0.75rem;
        border-radius: 4px;
        background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
        color: white;
        text-align: center;
        border: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        font-weight: 600;
    }

    .product-card .btn-buy:hover {
        background-color: #ff6726cd;
        transition: all .3s ease-in-out;
    }
}

/* --- Floating Contact Button --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.main-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.main-fab svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.main-fab:hover {
    transform: scale(1.1);
    background-color: var(--color-secondary-dark);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-bottom: 10px;
}

/* Show options on hover (Desktop) or Active class (Mobile) */
.floating-contact:hover .contact-options,
.floating-contact.active .contact-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.contact-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    position: relative;
    padding: 10px;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.contact-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Brand Colors for Floating Icons */
.contact-btn.whatsapp {
    color: #25D366;
}

.contact-btn.instagram {
    color: #E4405F;
}

.contact-btn.facebook {
    color: #1877F2;
}

.contact-btn.gmail {
    color: #EA4335;
}

/* Tooltip on hover */
.contact-btn::after {
    content: attr(title);
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.contact-btn:hover::after {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        left: 20px;
    }

    .contact-btn::after {
        display: none;
        /* Hide tooltips on mobile */
    }
}

/* --- Multi-Image Carousel Styles --- */
.product-card .product-image {
    position: relative;
    overflow: hidden;
    /* height: 300px; */
    /* Ensure fixed height for stacking */
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    /* Smooth transition */
    z-index: 1;
}

.product-card .product-image img.active {
    opacity: 1;
    z-index: 2;
}

/* --- Modal Navigation Styles --- */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: var(--color-heading);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Removed empty ruleset */

.btn-buy {
    background: #f57224;
    color: white;
}

.product-card .price {
    color: #f57224;
}

.modal-nav-btn:hover {
    background: white;
    color: var(--color-primary);
}

.modal-nav-btn.prev {
    left: 10px;
}

.modal-nav-btn.next {
    right: 10px;
}

/* Ensure modal image area is relative for absolute buttons */
.modal-image {
    position: relative;
}



/* --- Mobile Modal Refinements --- */
@media (max-width: 768px) {
    .product-card .btn-add {
        display: none;
    }

    .modal-content {
        max-height: 95vh;
        /* Maximize space */
    }

    .modal-image {
        height: 55vh;
        /* Increased Text height */
        max-height: none;
        /* remove limit */
        width: 100%;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .modal-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .modal-info {
        padding: 20px;
        /* Reduced padding */
        justify-content: flex-start;
        /* Align to top */
    }

    .modal-info h2 {
        font-size: 1.4rem;
        /* Smaller title */
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .modal-info .price {
        font-size: 1.1rem;
        /* Smaller price */
        margin-bottom: 15px;
        color: var(--color-primary);
        /* Pop color */
    }

    .modal-info .desc {
        font-size: 0.9rem;
        /* Smaller desc */
        margin-bottom: 15px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-actions {
        gap: 10px;
    }

    .btn-buy,
    .btn-add {
        padding: 12px;
        font-size: 0.9rem;
    }
}

