/* Machine Detail Page - Kronen.eu Inspired Modern Design */

:root {
    /* Modern Color Palette - Kronen.eu Style */
    --primary-color: hsl(313, 26%, 45%);
    --primary-light:  hsl(313, 26%, 55%);
    --secondary-color: hsl(313, 26%, 55%);
    --accent-color: hsl(313, 35%, 25%);
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Border & Shadows */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --max-width: 1280px;
    --section-padding: 6rem 0;
    --container-padding: 2rem;
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
.machine-detail-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    
    /* Kronen style indicator */
    border-top: 5px solid var(--secondary-color) !important;
}

.machine-detail-content * {
    box-sizing: border-box;
}

/* Container */
.machine-detail-content .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* General Button Styles */
.mgnt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    background: none;
}

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

.mgnt-btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.mgnt-btn-outline {
    border-color: white;
    color: white;
    background: transparent;
}

.mgnt-btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mgnt-btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.mgnt-btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Machine Hero Section */
.mgnt-machine-hero {
    padding-top: var(--header-height);
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Machine Header - Enhanced Hero Style */
.mgnt-machine-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.mgnt-machine-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,200 1000,1000 0,800"/></svg>');
    z-index: 1;
}

.mgnt-machine-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mgnt-header-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mgnt-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mgnt-category-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.4;
}

.mgnt-machine-header h1 {
    font-size: 3rem;
    margin: 0;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mgnt-machine-description {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.mgnt-machine-description p {
    margin: 0;
}

.mgnt-key-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.mgnt-spec-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mgnt-spec-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
}

.mgnt-spec-unit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.2rem;
}

.mgnt-spec-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 500;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.mgnt-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.mgnt-header-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.1);
}

.mgnt-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mgnt-header-image:hover img {
    transform: scale(1.02);
}

.mgnt-image-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.mgnt-zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mgnt-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Machine Tabs - Enhanced Modern Design */
.machine-tabs {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.tabs-navigation {
    display: flex;
    overflow-x: auto;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    padding: 0.5rem;
    gap: 0.5rem;
}

.mgnt-tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 0.75rem;
    position: relative;
}

.mgnt-tab-btn:hover {
    color: var(--secondary-color);
    background: var(--bg-tertiary);
}

.mgnt-tab-btn.active {
    color: white;
    background: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.tabs-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.tab-panel h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Benefits Grid - Enhanced Cards */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

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

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.benefit-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Portrait Content - Enhanced Layout */
.portrait-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.portrait-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.portrait-text h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.portrait-text ul {
    margin-left: 2rem;
    color: var(--text-secondary);
}

.portrait-text li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
}

.portrait-text li::before {
    content: "→";
    color: var(--secondary-color);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.portrait-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portrait-images img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portrait-images img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Videos Grid - Enhanced Cards */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.video-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.video-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-btn:hover {
    background: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: white;
}

.video-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.video-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features List - Enhanced Cards */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-category {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-tertiary);
}

.feature-category ul {
    list-style: none;
    padding: 0;
}

.feature-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-category li:last-child {
    border-bottom: none;
}

.feature-category li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Technical Specs Table - Enhanced Design */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.specs-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.specs-table tr:hover {
    background: var(--bg-tertiary);
}

.specs-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
    background: var(--bg-tertiary);
}

.specs-table td:last-child {
    color: var(--text-secondary);
}

/* Downloads List - Enhanced Cards */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.download-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 1rem;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.download-info p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.download-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Accessories Grid - Enhanced Cards */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.accessory-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.accessory-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.accessory-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.accessory-item:hover img {
    transform: scale(1.05);
}

.accessory-item h3 {
    padding: 1.5rem 1.5rem 0.75rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.accessory-item p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.accessory-item .btn {
    margin: 0 1.5rem 1.5rem;
}

/* Related Products - Enhanced Section */
.related-products {
    padding: var(--section-padding);
    background: white;
}

.related-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

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

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.75rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.product-card p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-card .btn {
    margin: 0 1.5rem 1.5rem;
}

/* Contact CTA - Enhanced Design */
.contact-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,0 0,200"/></svg>');
    z-index: 1;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-actions .btn-primary:hover {
    background: var(--bg-secondary);
}

.cta-actions .btn-outline {
    color: white;
    border-color: white;
}

.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Modal Styles - Enhanced Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 1.5rem 1.5rem 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .mgnt-machine-header {
        padding: 5rem 0 3rem;
    }

    .mgnt-machine-header .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mgnt-header-content {
        order: 2;
        text-align: center;
        align-items: center;
    }
    
    .mgnt-header-image {
        order: 1;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .mgnt-header-actions {
        justify-content: center;
    }

    .mgnt-key-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .accessories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .mgnt-machine-header {
        padding: 4rem 0 2rem;
    }
    
    .mgnt-machine-header h1 {
        font-size: 2.25rem;
    }
    
    .mgnt-machine-description {
        font-size: 1rem;
    }
    
    .mgnt-key-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .mgnt-spec-item {
        padding: 0.75rem;
    }
    
    .mgnt-spec-value {
        font-size: 1.25rem;
    }
    
    .mgnt-spec-unit {
        font-size: 0.75rem;
    }
    
    .mgnt-spec-label {
        font-size: 0.8rem;
    }
    
    .mgnt-header-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .mgnt-header-actions .btn {
        width: 100%;
    }

    .mgnt-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

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

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

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

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

@media (max-width: 576px) {
    .mgnt-machine-header {
        padding: 3rem 0 2rem;
    }
    
    .mgnt-machine-header h1 {
        font-size: 1.75rem;
    }
    
    .mgnt-category-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .mgnt-machine-description {
        font-size: 0.95rem;
    }
    
    .mgnt-key-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .mgnt-spec-item {
        padding: 0.75rem;
    }
    
    .mgnt-spec-value {
        font-size: 1.1rem;
    }
    
    .mgnt-spec-unit {
        font-size: 0.7rem;
    }
    
    .mgnt-spec-label {
        font-size: 0.75rem;
    }
    
    .mgnt-header-image {
        border-radius: 1rem;
    }
    
    .mgnt-zoom-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .mgnt-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .benefits-grid {
        gap: 0.75rem;
    }

    .videos-grid {
        gap: 0.75rem;
    }

    .accessories-grid {
        gap: 0.75rem;
    }

    .products-grid {
        gap: 0.75rem;
    }
} 

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: transparent;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    color: #ddd;
}

/* Video thumbnail and play button */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.play-btn i {
    margin-left: 5px; /* Slight offset for play icon */
}

/* Video grid layout */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.video-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
} 