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

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #1f2937;
    --accent: #ff6b35;
    --dark: #333;
    --light: #f5f5f5;
    --white: #fff;
    --gray: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8px 20px;
}

.top-bar a {
    color: var(--white);
    font-weight: 500;
}

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

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo img {
    height: 120px;
}

.main-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-links a {
    color: var(--dark);
    font-size: 14px;
}

.cart-link {
    background: var(--accent);
    color: var(--white) !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('images/hero-bed.webp') center/cover;
    padding: 100px 20px;
    color: var(--white);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    margin: 0;
    text-align: left;
}

.sale-badge {
    background: linear-gradient(to right, #dc2626, #ef4444);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), #dc2626);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(to right, #b91c1c, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: #333;
}

.hero-features {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.categories {
    padding: 60px 20px;
    background: var(--light);
}

.categories h2 {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.categories h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.12);
}

.sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.85rem;
}

.category-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
}

.category-card .price {
    display: block;
    padding: 5px 15px;
    color: #dc2626;
    font-weight: 700;
}

.btn-shop {
    display: block;
    padding: 12px 15px;
    text-align: center;
    background: transparent;
    color: #dc2626;
    font-weight: 800;
    margin: 10px 15px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid #dc2626;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-card:hover .btn-shop {
    background: #dc2626;
    color: white;
}

.category-card:hover .btn-shop {
    background: var(--secondary);
}

.view-all {
    display: block;
    text-align: center;
    background: var(--dark);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    margin: 20px auto 0;
    width: fit-content;
    font-weight: 600;
    transition: background 0.3s;
}

.view-all:hover {
    background: var(--primary);
}

.testimonials {
    padding: 60px 20px;
    background: var(--white);
}

.testimonials h2 {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.testimonials h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.trustpilot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.trustpilot img {
    height: 30px;
}

.rating {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00b67a;
}

.trusted-text {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.review-card {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.initials {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.name {
    font-weight: 600;
}

.locations {
    padding: 60px 20px;
    background: var(--light);
}

.locations h2 {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.locations h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.locations > .container > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.location-grid a {
    background: var(--white);
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.location-grid a:hover {
    background: var(--primary);
    color: var(--white);
}

.location-note, .type-note {
    text-align: center;
    color: var(--gray);
    margin: 20px 0;
}

.why-choose {
    padding: 60px 20px;
    background: var(--white);
}

.why-choose h2 {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.why-choose h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.why-choose > .container > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.feature-card a {
    color: var(--accent);
    font-weight: 600;
}

.shop-by-type {
    padding: 60px 20px;
    background: var(--light);
}

.shop-by-type h2 {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.shop-by-type h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.shop-by-type > .container > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.type-grid a {
    background: var(--white);
    padding: 15px 20px;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.type-grid a:hover {
    background: var(--primary);
    color: var(--white);
}

.faq {
    padding: 60px 20px;
    background: var(--white);
}

.faq h2 {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.faq h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.faq > .container > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.faq-item {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.7;
}

.contact-btn {
    display: block;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    margin: 20px auto 0;
    width: fit-content;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: var(--secondary);
}

footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
    max-width: 400px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-social a {
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

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

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

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: #aaa;
    padding: 5px 0;
    transition: color 0.3s;
}

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

.footer-column address {
    color: #aaa;
    font-style: normal;
    line-height: 1.8;
}

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

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: var(--white);
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
    }

    .header-links {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

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

    .stats {
        gap: 30px;
    }

    .reviews, .features-grid, .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .location-grid, .type-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 50px 20px;
    }

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

.page-header {
    background: linear-gradient(rgba(26, 92, 135, 0.9), rgba(26, 92, 135, 0.8)), url('images/hero-bed.webp') center/cover;
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.products-page {
    padding: 40px 20px;
    background: var(--light);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-tabs a {
    padding: 10px 20px;
    background: var(--light);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tabs a:hover,
.category-tabs a.active {
    background: var(--primary);
    color: var(--white);
}

.product-section {
    margin-bottom: 50px;
}

.product-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-section > p {
    color: var(--gray);
    margin-bottom: 25px;
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
}

.product-card .price {
    display: block;
    padding: 5px 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.cta-section {
    background: var(--primary);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.about-content {
    padding: 60px 20px;
    background: var(--white);
}

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

.about-text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 40px 0;
    margin-bottom: 50px;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
}

.stat-box {
    text-align: center;
}

.stat-box .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .stat-label {
    color: var(--gray);
}

.features-section {
    margin-bottom: 50px;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

.testimonial-section {
    margin-bottom: 50px;
}

.testimonial-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.7;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary);
}

.certifications h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cert-item {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.cert-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.cert-item p {
    color: var(--gray);
}

.contact-content {
    padding: 60px 20px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--dark);
    font-weight: 500;
}

.contact-item address {
    color: var(--dark);
    font-style: normal;
    line-height: 1.6;
}

.opening-hours {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
}

.opening-hours h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.opening-hours p {
    margin-bottom: 8px;
    color: var(--gray);
}

.contact-form-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-form {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
}

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

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

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

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

.contact-form .btn {
    width: 100%;
    text-align: center;
}

.map-section {
    margin-bottom: 50px;
}

.map-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.map-placeholder {
    background: var(--light);
    padding: 50px;
    text-align: center;
    border-radius: 10px;
}

.map-placeholder p {
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--dark);
}

.faq-preview {
    margin-bottom: 30px;
}

.faq-preview h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        gap: 30px;
    }

    .product-grid,
    .testimonial-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    background: var(--light);
    padding: 15px 20px;
}

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

.breadcrumb span {
    color: var(--gray);
}

.product-detail {
    padding: 40px 20px;
    background: var(--white);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.badge-new, .badge-sale {
    position: absolute;
    top: 15px;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}

.badge-new {
    left: 15px;
    background: var(--primary);
    color: var(--white);
}

.badge-sale {
    right: 15px;
    background: var(--accent);
    color: var(--white);
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
}

.thumbnail-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-grid img.active,
.thumbnail-grid img:hover {
    border-color: var(--primary);
}

.product-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-badges span {
    background: var(--light);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-info h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sku {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.stock-info {
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-block;
}

.delivery-info {
    background: var(--light);
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 10px;
}

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

.assembly-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.assembly-option:has(input:checked) {
    border-color: var(--primary);
    background: #f0f7ff;
}

.assembly-option input {
    margin-right: 12px;
}

.assembly-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.assembly-name {
    font-weight: 600;
    color: var(--dark);
}

.assembly-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

.assembly-price {
    font-weight: 600;
    color: var(--primary);
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.payment-option:hover,
.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: #f0f7ff;
}

.btn-ask-question {
    width: 100%;
    padding: 14px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.btn-ask-question:hover {
    background: var(--primary);
    color: var(--white);
}

.trust-badge {
    display: flex;
    align-items: center;
    background: #00b67a;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

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

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--gray);
}

.save-badge {
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
}

.stock-info {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 20px;
}

.product-form {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
}

.product-form .form-group {
    margin-bottom: 25px;
}

.product-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--white);
}

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

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover,
.radio-option:has(input:checked) {
    background: var(--primary);
    color: var(--white);
}

.radio-option input {
    margin: 0;
}

.mattress-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.mattress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.mattress-card:hover {
    border-color: var(--primary);
}

.mattress-card.selected {
    border-color: var(--primary);
    background: #f0f7ff;
}

.mattress-card input {
    display: none;
}

.mattress-img-wrap {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--light);
}

.mattress-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-mattress-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}

.mattress-info {
    text-align: center;
}

.mattress-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.mattress-price {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 5px;
}

.mattress-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 3px;
}
    object-fit: cover;
    border-radius: 3px;
}

.mattress-content > div {
    flex: 1;
}

.mattress-name {
    font-weight: 600;
    display: block;
}

.mattress-desc {
    font-size: 0.9rem;
    color: var(--gray);
}

.mattress-price {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.fabric-selector {
    background: var(--white);
    padding: 15px;
    border-radius: 5px;
}

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

.fabric-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fabric-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.fabric-option:hover,
.fabric-option:has(input:checked) {
    background: var(--light);
    border-color: var(--primary);
}

.fabric-option input {
    display: none;
}

.fabric-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.fabric-name {
    font-size: 0.75rem;
    text-align: center;
    max-width: 60px;
}

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

.quantity-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-control button:hover {
    background: var(--light);
}

.quantity-control input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
}

.btn-add-cart {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 15px;
}

.btn-add-cart:hover {
    background: #e55a2b;
}

.product-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.product-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray);
}

.viewers {
    color: #e74c3c;
    font-size: 0.9rem;
}

.product-tabs {
    margin-top: 50px;
}

.tab-content {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light);
    border-radius: 10px;
}

.tab-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tab-content h3 {
    margin: 20px 0 10px;
    color: var(--dark);
}

.tab-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-content li {
    margin-bottom: 10px;
}

.dimension-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dimension-table th,
.dimension-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dimension-table th {
    background: var(--primary);
    color: var(--white);
}

.reviews-section {
    margin-top: 20px;
}

.review-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-header .stars {
    color: #ffc107;
}

.review-header .date {
    color: var(--gray);
    font-size: 0.9rem;
}

.review-item h4 {
    margin-bottom: 10px;
}

.review-item .author {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

.related-products {
    margin-top: 50px;
}

.related-products h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

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

.category-products {
    padding: 40px 20px;
    background: var(--white);
}

.category-info {
    margin-bottom: 30px;
    text-align: center;
}

.category-info p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray);
}

.product-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--light);
    border-radius: 5px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--white);
}

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

.product-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item a {
    display: block;
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    transition: transform 0.4s ease;
}

.product-item:hover img {
    transform: scale(1.15);
}

.product-item .badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-item h3 {
    padding: 15px 15px 5px;
    font-size: 1rem;
    line-height: 1.4;
}

.product-item .price {
    padding: 5px 15px;
    font-weight: 700;
    color: #dc2626;
}

.product-item .old-price {
    text-decoration: line-through;
    color: #000000;
    font-weight: 600;
    margin-right: 10px;
}

.product-item .price span:last-child {
    color: #dc2626;
    font-size: 1.1rem;
}

.view-btn {
    display: block;
    padding: 12px 15px;
    text-align: center;
    background: transparent;
    color: #dc2626;
    margin: 10px 15px 15px;
    border-radius: 5px;
    font-weight: 800;
    border: 2px solid #dc2626;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-btn:hover {
    background: #dc2626;
    color: white;
}

.features-info {
    padding: 50px 20px;
    background: var(--light);
}

.features-info h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

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

.feature-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.feature-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

.faq-section {
    padding: 50px 20px;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

/* --- Our Collection Dropdown --- */
.nav-item-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-item-dropdown > a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.nav-item-dropdown > a:hover {
    color: var(--primary);
}

.arrow-down {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: 3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

.nav-item-dropdown.active .arrow-down {
    transform: rotate(180deg);
}

.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 260px;
    z-index: 9999;
    margin-top: 8px;
    padding: 8px 0;
    border: 1px solid #f0f0f0;
}

.nav-item-dropdown.active .mega-dropdown {
    display: block;
}

.view-all-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 6px;
    margin: 0 4px;
}

.view-all-link:hover {
    background: #fef2f2;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 12px;
}

.dropdown-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding: 4px 0;
}

.mega-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-radius: 6px;
    margin: 0 4px;
}

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

.mega-dropdown-item img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.mega-dropdown-item span {
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-sort {
        flex-direction: column;
        gap: 15px;
    }
}

@keyframes rainbowBlink {
    0% { color: #ff0000; }
    12% { color: #ff8800; }
    25% { color: #ffff00; }
    37% { color: #00ff00; }
    50% { color: #0088ff; }
    62% { color: #0000ff; }
    75% { color: #8800ff; }
    87% { color: #ff00ff; }
    100% { color: #ff0000; }
}
.rainbow-blink {
    animation: rainbowBlink 1.5s infinite;
    font-weight: bold;
}