/* CSS Variables & Theme */
:root {
    --primary-color: #4A0404; /* Deep Maroon / Monk's Robe */
    --accent-color: #D4AF37; /* Warm Gold */
    --accent-hover: #b8962e;
    --text-dark: #2C2C2C;
    --text-light: #F5F5F5;
    --bg-light: #FAF9F6; /* Off-white / Wool color */
    --bg-dark: #1a1a1a;
    --font-heading: 'Cinzel', serif; /* Elegant, classic */
    --font-body: 'Lato', sans-serif; /* Clean, readable */
    --font-accent: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section {
    padding: 80px 0;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 20px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(74, 4, 4, 0.95); /* Semi-transparent Maroon */
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 10px;
    color: var(--accent-color);
}

.logo-text {
    display: inline;
    color: var(--text-light);
    font-family: var(--font-heading);
}

.nav-links a {
    color: var(--text-light);
    margin-left: 30px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.btn-contact {
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-contact:hover {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1596236569689-0905536557dd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); /* Placeholder from Unsplash */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-family: var(--font-accent);
    font-style: italic;
}

/* Intro Section */
.intro .about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Sustainability Section */
.sustainability {
    background-color: #f0f4f0; /* Slight greenish tint */
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow);
    border-radius: 4px;
}

.subsection-title {
    font-size: 1.5rem;
    color: #556B2F; /* Hemp Green */
    margin-bottom: 15px;
    font-family: var(--font-accent);
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.feature-list li i {
    color: var(--accent-color);
    margin-right: 15px;
}

/* Weaving Types */
.card {
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* CTA */
.cta {
    background: linear-gradient(rgba(74,4,4,0.8), rgba(74,4,4,0.8)), url('https://images.unsplash.com/photo-1605806616949-1e87b487bc2a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.relative-z { position: relative; z-index: 2; }

/* Footer */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #555;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.footer-links li, .contact-list li {
    margin-bottom: 12px;
}

.contact-list li i {
    width: 20px;
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add JS to toggle */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* Featured Products Section */
.featured-products {
    background-color: #fff;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 4, 4, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.rating i {
    color: var(--accent-color);
    margin-right: 3px;
}

.rating span {
    margin-left: 8px;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    padding: 12px;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f7f4;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

.testimonial-header h4 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-header p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

.testimonial-rating {
    display: flex;
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: var(--accent-color);
    margin-right: 5px;
}

.testimonial-text {
    color: #555;
    line-height: 1.7;
    font-style: italic;
}

/* Utility Classes */
.mt-40 { margin-top: 40px; }

/* CTA Section Enhanced */
.cta h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta .btn {
    margin: 10px 15px;
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(120, 3, 3, 0.98);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        flex: 0 1 60%;
        min-width: 0;
        gap: 4px;
    }
    
    .logo-icon {
        flex-shrink: 0;
        font-size: 1.2rem;
    }
    
    .logo-text {
        display: block !important;
        font-size: 0.65rem;
        white-space: normal;
        overflow: visible;
        color: var(--text-light);
        line-height: 1;
        font-family: var(--font-heading);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        margin: 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
}

/* About Page Styles */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/images/Wool-1920x1080.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    font-style: italic;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.process-step:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team & Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: #f9f7f4;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    background: #f0f4f0;
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.value-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-card p {
    color: #666;
    font-size: 0.95rem;
}

.team-member {
    text-align: center;
    padding: 20px;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.team-member h4 {
    margin: 15px 0 5px;
    color: var(--primary-color);
}

.team-member p {
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.05);
}

/* ===== PRODUCTS PAGE STYLES ===== */

.products-section {
    background-color: var(--bg-light);
}

/* Filter Container */
.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.filter-option:hover {
    color: var(--accent-color);
}

.filter-option span {
    user-select: none;
}

.btn-secondary {
    background-color: #E8E8E8;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background-color: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 4, 4, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn-sm {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-style {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
}

.badge-material {
    background-color: rgba(74, 4, 4, 0.1);
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.stars {
    display: flex;
    gap: 2px;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.rating-text {
    color: #666;
    font-size: 0.85rem;
}

.product-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #6a0505;
}

.btn-secondary {
    background-color: #E8E8E8;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #666;
}

/* Product Detail Page */
.product-detail-page {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-section {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    min-height: 500px;
}

.detail-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    max-height: 600px;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.2;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-rating .stars {
    font-size: 1.2rem;
    color: var(--accent-color);
    display: flex;
    gap: 3px;
}

.rating-count {
    color: #666;
    font-size: 0.95rem;
}

.quick-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--primary-color);
}

.info-item span {
    color: #555;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-large {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary.btn-large {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary.btn-large:hover {
    background-color: #6a0505;
}

.btn-secondary.btn-large {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary.btn-large:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary.btn-large.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Tabs */
.detail-tabs {
    margin-top: 30px;
    border-top: 2px solid #eee;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 0;
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tabs-content {
    padding: 30px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.design-story h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.design-story p {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 12px 0;
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
}

.spec-value {
    padding: 12px 0;
    color: #555;
}

.care-list {
    list-style: none;
    padding: 0;
}

.care-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.care-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Related Products */
.related-products-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.related-products-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.related-product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.related-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.related-product-card h4 {
    padding: 15px 15px 8px;
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.related-style {
    padding: 0 15px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
}

.related-material {
    padding: 0 15px 15px;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Modal (kept for backward compatibility) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    display: contents;
}

.modal-image-container {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 400px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    max-height: 500px;
}

.modal-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-rating {
    margin-bottom: 20px;
}

.modal-rating .stars {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.modal-details {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.detail-group {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.detail-group:last-child {
    border-bottom: none;
}

.detail-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.detail-group span {
    color: #555;
}

.modal-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.modal-actions .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.modal-actions .btn-primary:hover {
    background-color: #6a0505;
}

.modal-actions .btn-secondary {
    background-color: var(--accent-color);
    color: #fff;
}

.modal-actions .btn-secondary:hover {
    background-color: var(--accent-hover);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: #999;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta-section h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .modal-image-container {
        min-height: 300px;
    }

    .modal-info {
        max-height: 400px;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .product-card {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        padding: 20px;
    }

    .modal-content {
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-close {
        right: 10px;
        top: 10px;
        font-size: 24px;
    }

    .product-name {
        font-size: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    /* Product Detail Page Responsive */
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image-section {
        min-height: 300px;
    }

    .detail-main-image {
        max-height: 400px;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .detail-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-detail-container {
        padding: 0 20px;
    }

    .product-detail-content {
        padding: 25px;
    }
}
