/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #A81818;
    --primary-dark: #501010;
    --primary-light: #601010;
    --secondary-color: #d4a574;
    --accent-color: #f5d4a0;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #faf8f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(80, 16, 16, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(80, 16, 16, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(80, 16, 16, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(80, 16, 16, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #A81818 0%, #601010 100%);
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #faf8f6;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #A81818 0%, #601010 100%);
    border-radius: 6px;
    border: 2px solid #faf8f6;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #601010 0%, #501010 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #A81818 #faf8f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Reset link color for specific elements */
.product-content h3 a,
.product-detail-info a:not(.btn),
.product-long-desc a,
.breadcrumb a,
.specs-table a {
    color: var(--primary-color);
}

.product-content h3 a:hover,
.product-detail-info a:not(.btn):hover,
.product-long-desc a:hover,
.breadcrumb a:hover {
    color: var(--primary-dark);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(80, 16, 16, 0.55) 0%, rgba(168, 24, 24, 0.45) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.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: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-content>p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-top: auto;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Certificates Section */
.certificates-section {
    background: var(--bg-white);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.certificate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.certificate-card:hover {
    color: var(--primary-color);
    border-color: rgba(168, 24, 24, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.certificate-name {
    font-weight: 600;
}

.certificate-file {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(168, 24, 24, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

/* About Section */
.about-section {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: var(--bg-white);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.team-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.team-card:hover::before {
    opacity: 1;
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
        var(--gradient-primary) border-box;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.team-card:hover .team-photo {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.expertise-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.team-card:hover .expertise-tag {
    background: rgba(168, 24, 24, 0.06);
    color: var(--primary-color);
    border-color: rgba(168, 24, 24, 0.15);
}

.team-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.team-desc-truncated {
    margin: 0;
}

.team-desc-full {
    display: none;
    margin: 0;
}

.team-description.expanded .team-desc-truncated {
    display: none;
}

.team-description.expanded .team-desc-full {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0;
    margin-top: 0.4rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Button Outline Style */
.btn-outline {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.875rem;
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

/* Product Card Link Styles */
.product-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.product-content h3 a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-whatsapp:hover {
    background: #25D366;
}

.social-linkedin:hover {
    background: #0A66C2;
}

.social-facebook:hover {
    background: #1877F2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Map Section */
.map-section {
    padding: 0;
    background: var(--bg-white);
}

.map-container {
    width: 100%;
    overflow: hidden;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* Get Directions Button */
.btn-directions {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-directions:hover {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        width: 110px;
        height: 110px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .product-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Product Detail Page Styles */
.product-hero {
    padding: 7rem 0 1rem;
    background: var(--bg-light);
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-section {
    padding: 3rem 0 5rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 100%;
    aspect-ratio: 4/3;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-short-desc {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-long-desc {
    margin-bottom: 2rem;
}

.product-long-desc h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.product-long-desc h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
}

.product-long-desc p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-long-desc ul {
    list-style: none;
    padding: 0;
}

.product-long-desc li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.product-long-desc li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.product-long-desc li strong {
    color: var(--text-dark);
}

.product-features-detail {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.product-features-detail h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.feature-icon {
    color: var(--secondary-color);
    font-weight: bold;
}

.product-features-detail .certificate-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.product-features-detail .certificate-link:hover {
    color: var(--primary-color);
    border-color: rgba(168, 24, 24, 0.3);
    box-shadow: var(--shadow-md);
}

.product-features-detail .certificate-link .certificate-name {
    font-weight: 500;
}

.product-features-detail .certificate-link .certificate-file {
    margin-inline-start: auto;
}

.product-specs {
    margin: 2rem 0;
}

.product-specs h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table th,
.specs-table td {
    padding: 0.875rem 0;
    text-align: left;
}

.specs-table th {
    font-weight: 600;
    color: var(--text-dark);
    width: 35%;
}

.specs-table td {
    color: var(--text-light);
}

.product-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-products {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.related-card {
    display: block;
    text-decoration: none;
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.related-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: center;
    display: block;
}

.related-card h3 {
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: center;
}

/* Logo Link Styles */
a.logo {
    text-decoration: none;
}

/* Product Detail Page Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-image {
        max-width: 100%;
        aspect-ratio: 16/10;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-image {
        aspect-ratio: 16/9;
        border-radius: 0.75rem;
    }

    .product-detail-info h1 {
        font-size: 1.75rem;
    }

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

    .product-cta {
        flex-direction: column;
    }

    .product-cta .btn {
        width: 100%;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .related-card img {
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio on mobile */
    }

    .product-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .product-detail-image {
        aspect-ratio: 4/3;
        border-radius: 0.5rem;
    }

    .product-detail-info h1 {
        font-size: 1.5rem;
    }

    .product-short-desc {
        font-size: 1rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 0.625rem 0;
        font-size: 0.875rem;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    color: var(--text-dark);
}

.lang-arrow {
    font-size: 0.625rem;
    color: var(--text-light);
    transition: var(--transition);
}

.language-switcher:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    margin-top: 0.5rem;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-option .lang-flag {
    font-size: 1.25rem;
}

.lang-option .lang-name {
    font-weight: 500;
}

/* RTL Support Overrides */
[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .product-features li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .product-features li::before {
    left: auto;
    right: 0;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lang-dropdown {
        right: 0;
        left: auto;
    }

    [dir="rtl"] .language-switcher {
        right: auto;
        left: 60px;
    }
}
/* Blog Styles */
.blog-hero,
.blog-post-hero {
    padding: 7rem 0 3rem;
    background: linear-gradient(135deg, rgba(168, 24, 24, 0.08) 0%, rgba(212, 165, 116, 0.1) 100%);
}

.blog-hero-content,
.blog-post-headline {
    max-width: 860px;
}

.blog-hero h1,
.blog-post-headline h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-hero p,
.blog-post-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 760px;
}

.blog-post-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.blog-post-meta-row,
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.blog-translation-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-translation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.blog-translation-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.blog-translation-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.blog-index-section {
    padding: 1rem 0 5rem;
    background: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(168, 24, 24, 0.2);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0.75rem 0;
    line-height: 1.35;
}

.blog-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.blog-post-section {
    padding: 2rem 0 5rem;
    background: var(--bg-white);
}

.blog-post-article {
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-white);
}

.blog-post-cover {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.75rem;
}

.blog-post-cover img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.blog-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tag-list-inline {
    margin-bottom: 1.5rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(168, 24, 24, 0.08);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-post-content {
    color: var(--text-dark);
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: var(--text-dark);
    margin: 1.6rem 0 0.8rem;
    line-height: 1.3;
}

.blog-post-content h2 {
    font-size: 1.6rem;
}

.blog-post-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.blog-post-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0.5rem 0 1rem 1.25rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.blog-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    background: var(--bg-light);
    padding: 1rem 1.2rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.blog-post-content pre {
    background: #111827;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.blog-post-content code {
    background: rgba(31, 41, 55, 0.08);
    color: #111827;
    border-radius: 0.3rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.9em;
}

.blog-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-post-cta {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--bg-light);
}

.blog-post-cta h3 {
    margin-bottom: 0.5rem;
}

.blog-post-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.related-blog-posts {
    margin-top: 4rem;
}

.related-blog-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-empty {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .blog-hero,
    .blog-post-hero {
        padding-top: 6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-blog-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .blog-post-meta-row,
    .blog-card-meta {
        flex-wrap: wrap;
    }

    .blog-post-content h2 {
        font-size: 1.35rem;
    }

    .blog-post-content h3 {
        font-size: 1.15rem;
    }
}

@media (min-width: 769px) and (max-width: 1150px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
