/* Egepack - Yedek Parca Eticaret stillleri */

:root {
    --et-primary: #0f202d;
    --et-primary-light: #1a3344;
    --et-accent: #cf080d;
    --et-accent-dark: #a51b20;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 720px;
    overflow: hidden;
    background: #0f202d;
    margin-top: 92px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .hero-slider { margin-top: 78px; }
}

@media (max-width: 768px) {
    .hero-slider { margin-top: 72px; }
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

.slide-align-center { text-align: center; }
.slide-align-right  { text-align: right; }
.slide-align-left   { text-align: left; }

.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    margin-bottom: 2rem;
    max-width: 640px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.slide-align-center .slide-subtitle { margin-left: auto; margin-right: auto; }

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 32px;
    background: var(--et-accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 18px rgba(202, 33, 39, 0.35);
}

.slide-btn:hover {
    background: var(--et-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(202, 33, 39, 0.45);
    color: #fff;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--et-accent);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: 0;
        max-height: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .slider-container {
        height: auto;
        aspect-ratio: 22 / 10;
        min-height: 200px;
    }

    .slider-dots {
        display: none;
    }

    .slide {
        overflow: hidden;
    }
    .slide-content {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .slide-title {
        overflow-wrap: anywhere;
    }
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }
    .slider-nav { display: none; }
}

/* ============ HOMEPAGE SECTIONS ============ */
.hp-products-section,
.hp-machines-section,
.hp-features-section {
    padding: 70px 0;
}

.hp-products-section { background: #fff; }
.hp-machines-section { background: #fff; }
.hp-features-section { background: #f7f7f7; color: #fff; }

.hp-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.hp-section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--et-primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.hp-features-section .hp-section-header h2 { color: #fff; }

.hp-section-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 920px;
    margin: 0 auto;
    line-height: 1.5;
}

.hp-features-section .hp-section-header p { color: rgba(255, 255, 255, 0.8); }

.hp-section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ============ PRODUCTS GRID ============ */
.hp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.hp-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 32, 45, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: default;
    flex-direction: column;
}

.hp-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(15, 32, 45, 0.12);
}

.hp-product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}

.hp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.hp-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
}

.hp-stock-badge.in-stock { background: #dcfce7; color: #15803d; }
.hp-stock-badge.out-of-stock { background: #fee2e2; color: #b91c1c; }

.hp-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.hp-product-actions .hp-act-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
    box-shadow: 0 2px 6px rgba(15, 32, 45, 0.1);
    font-size: .82rem;
    text-decoration: none;
    padding: 0;
    line-height: 1;
}
.hp-product-actions .hp-act-btn:hover {
    color: #cf080d;
    transform: translateY(-1px);
    border-color: #fecaca;
}
.hp-product-actions .hp-act-btn.is-fav {
    background: #cf080d;
    border-color: #cf080d;
    color: #ffffff;
}
.hp-product-actions .hp-act-btn.is-fav:hover {
    color: #ffffff;
    background: #b00609;
    border-color: #b00609;
}
.hp-product-actions .hp-act-btn.cap-pop {
    animation: capPopAnim .35s ease;
}
@keyframes capPopAnim {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.hp-product-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.hp-product-brand {
    font-size: 0.7rem;
    color: var(--et-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.hp-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--et-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.hp-product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.hp-product-sku {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-product-price {
    margin-top: auto;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--et-accent);
    padding-top: 8px;
}

.hp-product-bottom {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.hp-product-bottom .hp-product-price {
    margin: 0;
    padding: 0;
    font-size: 1.15rem;
}
.hp-product-bottom .hp-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--et-accent);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(207, 8, 13, 0.18);
}
.hp-product-bottom .hp-cart-btn:hover {
    background: var(--et-accent-dark, #a51b20);
    transform: translateY(-1px);
}
.hp-product-bottom .hp-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.hp-product-bottom .hp-cart-btn i {
    font-size: 0.9rem;
}
@media (max-width: 380px) {
    .hp-product-bottom .hp-cart-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .hp-product-bottom .hp-product-price {
        font-size: 1rem;
    }
}

.hp-product-img-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

/* ============ MACHINES GRID ============ */
.hp-machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.hp-machine-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-machine-card:hover {
    border-color: var(--et-accent);
    box-shadow: 0 10px 28px rgba(15, 32, 45, 0.1);
    transform: translateY(-4px);
}

.hp-machine-img {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.hp-machine-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hp-machine-info {
    padding: 14px 18px 18px;
    text-align: center;
}

.hp-machine-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--et-primary);
    font-weight: 700;
}

.hp-machine-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.hp-machine-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 22px;
    background: #ffffff;
    color: var(--et-accent);
    border: 1.5px solid var(--et-accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hp-machine-cta i {
    font-size: 0.78rem;
    transition: transform 0.18s ease;
}
.hp-machine-card:hover .hp-machine-cta {
    background: var(--et-accent);
    color: #ffffff;
}
.hp-machine-card:hover .hp-machine-cta i {
    transform: translateX(3px);
}

/* ============ FEATURES ============ */
.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.hp-feature-card {
    text-align: center;
    padding: 22px 16px;
    background: #0f202d;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hp-feature-card:hover {
    background: #0f202ded;
    transform: translateY(-4px);
}

.hp-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--et-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
}

.hp-feature-card h3 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.hp-feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

/* ============ CTA ============ */
.cta {
    padding: 80px 0;
    background: #f7f7f7;
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
    font-weight: 800;
    color: #0f202d;
}

.cta p {
    color: rgb(22 44 60);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    justify-content: center;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--et-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--et-accent-dark);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #2c3e50;
    border-color: #2c3e50;
}

.btn-outline:hover {
    background: #fff;
    color: var(--et-primary);
}

.hp-products-section .btn-outline,
.hp-machines-section .btn-outline {
    color: var(--et-primary);
    border-color: var(--et-primary);
}

.hp-products-section .btn-outline:hover,
.hp-machines-section .btn-outline:hover {
    background: var(--et-primary);
    color: #fff;
}

/* ============ PRODUCT DETAIL PAGE ============ */
.product-detail-section {
    padding: 40px 0 80px;
    background: #f8fafc;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #64748b;
}

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

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(15, 32, 45, 0.06);
}

@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 24px; padding: 18px; }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-main-img {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.product-thumb {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    padding: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.active {
    border-color: var(--et-accent);
}

.product-info-col h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--et-primary);
    margin: 0 0 12px;
    line-height: 1.2;
}

.product-brand-tag {
    display: inline-block;
    background: var(--et-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.product-sku-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

.product-sku-row strong { color: var(--et-primary); margin-right: 6px; }

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.product-price {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--et-accent);
}

.product-stock-info {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-stock-info.in-stock { background: #dcfce7; color: #15803d; }
.product-stock-info.out-of-stock { background: #fee2e2; color: #b91c1c; }

.product-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qty-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: #f8fafc;
    border: none;
    color: var(--et-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.qty-btn:hover { background: #e2e8f0; }

.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
}

.qty-input:focus { outline: none; }

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-add-cart {
    flex: 1;
    min-width: 180px;
    padding: 14px 24px;
    background: var(--et-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--et-accent-dark);
    transform: translateY(-2px);
}

.btn-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-fav {
    width: 52px;
    height: 52px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #cf080d;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-fav:hover { border-color: var(--et-accent); background: #fff5f5; }
.btn-fav.active i { font-weight: 900; }

.product-desc-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(15, 32, 45, 0.06);
}

.product-desc-section h2 {
    color: var(--et-primary);
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.product-desc-section p {
    color: #475569;
    line-height: 1.7;
}

/* ============ MACHINE EXPLODED VIEW ============ */
.machine-view-section {
    padding: 30px 0 80px;
    background: #f8fafc;
}

.machine-header {
    margin-bottom: 28px;
    text-align: center;
}

.machine-header h1 {
    color: var(--et-primary);
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.machine-image-wrap {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(15, 32, 45, 0.06);
    margin-bottom: 30px;
    overflow: hidden;
}

.machine-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
    transition: transform 0.3s ease;
    transform-origin: center center;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .machine-image-container:hover {
        transform: scale(1.5);
    }
}

.machine-image-container img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.machine-hotspot {
    position: absolute;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    background: var(--et-accent);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(202, 33, 39, 0.5);
    animation: hotspotPulse 2s infinite;
    z-index: 10;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
    .machine-hotspot:hover {
        transform: scale(1.4);
        animation: none;
    }
}

.machine-hotspot.selected {
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.3);
}

@keyframes hotspotPulse {
    0% { box-shadow: 0 0 0 0 rgba(202, 33, 39, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(202, 33, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(202, 33, 39, 0); }
}

@keyframes hotspotPulseMobile {
    0% { box-shadow: 0 0 0 0 rgba(202, 33, 39, 0.5); }
    70% { box-shadow: 0 0 0 4px rgba(202, 33, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(202, 33, 39, 0); }
}

.machine-parts-table {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(15, 32, 45, 0.06);
}

.machine-parts-table h2 {
    color: var(--et-primary);
    margin: 0 0 18px;
    font-size: 1.3rem;
}

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

.parts-table thead th {
    text-align: center;
    padding: 12px 14px;
    background: #f1f5f9;
    color: var(--et-primary);
    font-weight: 700;
    font-size: 0.92rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.parts-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
    vertical-align: middle;
    text-align: center;
}

.parts-table tbody tr:hover { background: #fafbfc; }
.parts-table tbody tr.selected { background: #fffbeb; }

.part-number-cell {
    font-weight: 700;
    color: var(--et-primary);
    white-space: nowrap;
    text-align: center;
}

.part-qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.part-add-btn {
    padding: 7px 10px;
    background: var(--et-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.part-add-btn:hover { background: var(--et-primary-light); }
.part-add-btn:disabled { background: #94a3b8; cursor: not-allowed; }

.part-img-cell {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    padding: 4px;
}
.part-img-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.part-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
    min-width: 110px;
    max-width: 130px;
    margin: 0 auto;
}

.part-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.part-wa-btn:hover {
    background: #1fb855;
    color: #fff;
}
.part-wa-btn i { font-size: 1rem; }

.fancybox__backdrop {
    background: rgba(15, 32, 45, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

@media (max-width: 640px) {
    .parts-table { font-size: 0.85rem; }
    .parts-table thead th, .parts-table tbody td { padding: 8px 6px; }
}

@media (max-width: 768px) {
    .machine-hotspot {
        width: 6px;
        height: 6px;
        margin-left: -3px;
        margin-top: -3px;
        font-size: 4px;
        font-weight: 700;
        border-width: 1px;
        animation-name: hotspotPulseMobile;
    }
    .machine-hotspot.selected {
        box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.26);
    }
}

@media (max-width: 380px) {
    .machine-hotspot {
        width: 5px;
        height: 5px;
        margin-left: -2.5px;
        margin-top: -2.5px;
        font-size: 3px;
    }
}

/* ============ PRODUCT LISTING GRID ============ */
.products-listing-section {
    padding: 30px 0 60px;
    background: #f8fafc;
    min-height: 60vh;
}

.products-filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 2px 8px rgba(15, 32, 45, 0.04);
}

.products-search-input {
    flex: 1;
    min-width: 240px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.products-search-input:focus {
    outline: none;
    border-color: var(--et-accent);
}

.products-sort-select,
.products-cat-select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.products-results-count {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 0.95rem;
}

.products-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.products-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.products-empty h3 {
    color: var(--et-primary);
    margin: 0 0 8px;
}

/* ============ MACHINES LIST PAGE ============ */
.machines-list-section {
    padding: 40px 0 80px;
    background: #f8fafc;
    min-height: 60vh;
}

.machines-list-header {
    text-align: center;
    margin-bottom: 36px;
}

.machines-list-header h1 {
    color: var(--et-primary);
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.machines-list-header p {
    color: #64748b;
    margin: 0;
}

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 768px) {
    .hp-products-section,
    .hp-machines-section {
        padding: 48px 0;
    }
    .hp-features-section {
        display: none;
    }
    .hp-reviews-head {
        flex-direction: column;
        align-items: center;
    }
    .hp-section-header h2 {
        font-size: 1.2rem;
    }
    .hp-section-header p {
        font-size: 0.85rem;
    }
    .hp-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .hp-product-info { padding: 12px 14px 16px; }
    .hp-product-name { font-size: 0.92rem; min-height: 2.6em; }
    .hp-product-price { font-size: 1.05rem; }
    .products-listing-section .hp-cart-btn-txt {
        display: none;
    }
    .products-listing-section .hp-product-bottom .hp-product-price {
        white-space: nowrap;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    .products-listing-section .hp-product-bottom .hp-cart-btn {
        padding: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        gap: 0;
        flex-shrink: 0;
    }
    .products-listing-section .hp-product-bottom .hp-cart-btn i {
        font-size: 1rem;
        margin: 0;
    }
    .hp-products-section .hp-cart-btn-txt {
        display: none;
    }
    .hp-products-section .hp-product-bottom .hp-product-price {
        white-space: nowrap;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    .hp-products-section .hp-product-bottom .hp-cart-btn {
        padding: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        gap: 0;
        flex-shrink: 0;
    }
    .hp-products-section .hp-product-bottom .hp-cart-btn i {
        font-size: 1rem;
        margin: 0;
    }
    .favorites-page .hp-cart-btn-txt {
        display: none;
    }
    .favorites-page .hp-product-bottom .hp-product-price {
        white-space: nowrap;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    .favorites-page .hp-product-bottom .hp-cart-btn {
        padding: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        gap: 0;
        flex-shrink: 0;
    }
    .favorites-page .hp-product-bottom .hp-cart-btn i {
        font-size: 1rem;
        margin: 0;
    }
    .hp-machines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .product-detail-section,
    .machine-view-section { padding: 24px 0 60px; }
    .product-actions { flex-direction: column; }
    .btn-add-cart { width: 100%; }
    .btn-fav { width: 100%; height: 48px; }
    .product-qty-row { gap: 12px; }
    .products-filter-bar { padding: 14px; }
    .products-search-input,
    .products-sort-select,
    .products-cat-select { width: 100%; }
    .products-filter-bar > .btn.btn-primary {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    .machine-image-wrap { padding: 8px; }
    .product-thumbs { grid-template-columns: repeat(4, 1fr); }
    .cta {
        padding: 60px 0;
        text-align: center;
    }
    .cta .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cta h2 {
        font-size: 1.2rem;
    }
    .cta p {
        font-size: 0.85rem;
    }
    .cta-buttons {
        justify-content: center;
        width: 100%;
    }
    .cta-buttons .btn {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hp-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hp-product-img { aspect-ratio: 4 / 3; }
    .hp-machines-grid { grid-template-columns: 1fr; }
    .product-thumbs { grid-template-columns: repeat(3, 1fr); }
    .slide-title { font-size: 1.6rem; }
    .slide-subtitle { font-size: 0.95rem; margin-bottom: 1rem; }
    .slide-btn { padding: 11px 22px; font-size: 0.95rem; }
}

/* Genel touch target accessibility */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .slide-btn,
    .btn-add-cart,
    .qty-btn,
    .part-add-btn {
        min-height: 44px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .machine-hotspot,
    .hp-product-card,
    .hp-machine-card,
    .btn,
    .btn-add-cart,
    .slide-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   Google Reviews Section
   ========================================================================== */
.hp-reviews-section {
    padding: 60px 0;
    background: #f8fafc;
}

.hp-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hp-reviews-head h2 {
    margin: 0 0 6px;
    color: #0f202d;
}

.hp-reviews-head p {
    margin: 0;
    color: #64748b;
}

.hp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hp-reviews-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 32, 45, 0.06);
}

.hp-rating-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f202d;
    line-height: 1;
}

.hp-rating-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    display: flex;
    gap: 2px;
}

.hp-rating-total {
    color: #64748b;
    font-size: 0.82rem;
}

.hp-reviews-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hp-reviews-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: hpReviewsScroll var(--gr-duration, 30s) linear infinite;
    will-change: transform;
}

.hp-reviews-marquee:hover .hp-reviews-track {
    animation-play-state: paused;
}

@keyframes hpReviewsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hp-review-card {
    flex: 0 0 320px;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 32, 45, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 32, 45, 0.1);
}

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

.hp-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.hp-review-avatar-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f202d, #1e3a5f);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.hp-review-author {
    flex: 1;
    min-width: 0;
}

.hp-review-author strong {
    display: block;
    color: #0f202d;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-review-author span {
    color: #94a3b8;
    font-size: 0.78rem;
}

.hp-review-source {
    color: #4285f4;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hp-review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.hp-review-text {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hp-rating-value { font-size: 1.6rem; }
    .hp-review-card { flex: 0 0 280px; width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-reviews-track { animation: none; }
    .hp-reviews-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ============ HORIZONTAL CAROUSEL (machines & products) ============ */
.hp-carousel {
    position: relative;
    padding: 0 56px;
}

.hp-machines-grid.is-carousel,
.hp-products-grid.is-carousel {
    display: flex !important;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 14px;
    margin: 0 -2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.hp-machines-grid.is-carousel::-webkit-scrollbar,
.hp-products-grid.is-carousel::-webkit-scrollbar {
    height: 8px;
}
.hp-machines-grid.is-carousel::-webkit-scrollbar-thumb,
.hp-products-grid.is-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.hp-machines-grid.is-carousel::-webkit-scrollbar-track,
.hp-products-grid.is-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.hp-machines-grid.is-carousel > .hp-machine-card,
.hp-products-grid.is-carousel > .hp-product-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .hp-machines-grid.is-carousel > .hp-machine-card,
    .hp-products-grid.is-carousel > .hp-product-card {
        flex-basis: calc((100% - 40px) / 3);
    }
}
@media (max-width: 820px) {
    .hp-carousel { padding: 0 44px; }
    .hp-machines-grid.is-carousel > .hp-machine-card,
    .hp-products-grid.is-carousel > .hp-product-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}
@media (max-width: 540px) {
    .hp-carousel { padding: 0 38px; }
    .hp-machines-grid.is-carousel > .hp-machine-card,
    .hp-products-grid.is-carousel > .hp-product-card {
        flex-basis: 80%;
    }
}

.hp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f202d;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 32, 45, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}
.hp-carousel-arrow:hover {
    background: #cf080d;
    color: #ffffff;
    border-color: #cf080d;
    transform: translateY(-50%) scale(1.05);
}
.hp-carousel-arrow:disabled,
.hp-carousel-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.hp-carousel-arrow:disabled:hover,
.hp-carousel-arrow.is-disabled:hover {
    background: #ffffff;
    color: #0f202d;
    border-color: #e2e8f0;
    transform: translateY(-50%);
}
.hp-carousel-prev { left: 0; }
.hp-carousel-next { right: 0; }
.hp-carousel-arrow i { font-size: 1rem; }

@media (max-width: 540px) {
    .hp-carousel-arrow { width: 36px; height: 36px; }
}

.page-about-section {
    padding: 60px 0;
    box-sizing: border-box;
}
.page-about-section--white {
    background: #fff;
}
.page-about-section--muted {
    background: #f8fafc;
}
.page-about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.page-about-intro-text {
    min-width: 0;
}
.page-about-heading {
    color: #0f202d;
    margin: 0 0 16px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.25;
}
.page-about-lead {
    color: #475569;
    line-height: 1.8;
    margin: 0 0 14px;
}
.page-about-lead:last-child {
    margin-bottom: 0;
}
.page-about-intro-aside {
    background: #f8fafc;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    min-width: 0;
}
.page-about-intro-aside h3 {
    color: #0f202d;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.page-about-intro-icon {
    font-size: 5rem;
    color: #cf080d;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}
.page-about-features-head {
    text-align: center;
    margin-bottom: 40px;
}
.page-about-features-head h2 {
    color: #0f202d;
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 700;
}
.page-about-features-head p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}
.page-about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}
.page-about-feature {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    min-width: 0;
}
.page-about-section--muted .page-about-feature {
    border: 1px solid #e2e8f0;
}
.page-about-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #cf080d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
}
.page-about-feature h3 {
    color: #0f202d;
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}
.page-about-feature p {
    color: #64748b;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}
.page-about-mission {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.page-about-mission h2 {
    color: #0f202d;
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 700;
}
.page-about-mission p {
    color: #475569;
    margin: 0;
    line-height: 1.85;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .page-about-section {
        padding: 36px 0;
    }
    .page-about-intro-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .page-about-intro-aside {
        padding: 22px 18px;
    }
    .page-about-intro-icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    .page-about-intro-aside h3 {
        font-size: 1.1rem;
    }
    .page-about-features-head {
        margin-bottom: 26px;
    }
    .page-about-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .page-about-feature {
        padding: 20px 16px;
    }
    .page-about-mission {
        text-align: left;
        max-width: none;
    }
    .page-about-mission p {
        line-height: 1.92;
        font-size: 0.98rem;
    }
}
