/* =========================
   Teknosoft3D – Global Styles
========================= */
:root {
    --brand: #ff6f61;
    /* ana vurgu rengi */
    --ink: #1d2430;
    /* koyu metin */
    --muted: #56657a;
    /* ikincil metin */
    --bg: #ffffff;
    /* zemin */
    --bgSoft: #fafbff;
    /* yumuşak arkaplan */
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

section {
    padding: 60px 0;
    scroll-margin-top: 90px;
}

/* =========================
   Navbar
========================= */
.navbar-pro {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #eceff4;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 800;
    letter-spacing: .2px;
}

.nav-links a {
    margin: 0 10px;
    text-decoration: none;
    font-weight: 600;
    color: #1d2430;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand);
}

.nav-cta {
    margin-left: 0;
}

/* Header’da yan yana boşluk: sadece ardışık butonlar arasında */
.nav-cta+.nav-cta {
    margin-left: 8px;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, background .2s, border-color .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    filter: saturate(1.05) brightness(.98);
}

.btn-whatsapp {
    background: #25D366;
    /* WhatsApp green */
    color: #fff !important;
    border: none;
}

.btn-whatsapp:hover {
    filter: saturate(1.05) brightness(.98);
}

.btn-instagram {
    /* Instagram gradient */
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #fff !important;
    border: none;
}

.btn-instagram:hover {
    filter: saturate(1.05) brightness(.98);
}

/* =========================
   Hero
========================= */
.hero-pro {
    padding: 90px 0 80px;
    background: radial-gradient(1200px 400px at 20% -10%, #ffe2de 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(1200px 400px at 100% 10%, #e7f0ff 0%, rgba(255, 255, 255, 0) 60%),
        #ffffff;
}

.hero-content {
    text-align: center;
}

.hero-pro h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #1d2430;
}

.hero-pro p {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================
   Features
========================= */
.features-pro {
    background: #fff;
}

.features-pro h2 {
    text-align: center;
    font-size: 30px;
    color: #222;
    margin: 0 0 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(23, 33, 54, .06);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-card h3 {
    margin: 6px 0 8px;
    color: #1d2430;
}

.feature-card p {
    color: #56657a;
    font-size: 15px;
}

/* =========================
   Filaments Grid & Cards
========================= */
.filaments-pro {
    background: var(--bgSoft);
}

.filaments-pro h2 {
    text-align: center;
    font-size: 30px;
    color: #222;
    margin: 0 0 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(23, 33, 54, .06);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(23, 33, 54, .12);
    border-color: #e6ebf5;
}

.product-card h3 {
    margin: 6px 0;
    color: #1d2430;
}

.product-card p {
    color: #56657a;
    font-size: 15px;
    margin-bottom: 12px;
}

/* =========================
   Product Details (Expand)
========================= */
.hidden {
    display: none !important;
}

.product-details {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(23, 33, 54, .06);
    padding: 20px;
    position: relative;
    animation: detailsIn .25s ease-out;
}

@keyframes detailsIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.details-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f2f4f8;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.details-close:hover {
    background: #e9edf3;
    color: #1f2937;
}

.details-body {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.details-image {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-image img {
    width: 360px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.details-info h3 {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--ink);
}

.details-desc {
    color: var(--muted);
    margin: 0 0 10px;
}

.details-specs {
    list-style: disc;
    padding-left: 18px;
    color: #5a6b7b;
    margin: 10px 0 16px;
}

.details-actions .btn-whatsapp {
    font-size: 16px;
}

.selected-color {
    font-size: .95rem;
    color: var(--muted);
}

/* Swatches */
.details-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sw, #ddd);
    border: 2px solid var(--sw-border, #e6ebf5);
    cursor: pointer;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.swatch:hover {
    transform: translateY(-1px);
}

.swatch.active {
    box-shadow: 0 0 0 3px rgba(255, 111, 97, .35);
    border-color: var(--brand);
}

.swatch:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* =========================
   About / Contact
========================= */
.about-pro .about-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 24px;
    align-items: center;
}

.about-text h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.about-text p {
    margin: 0 0 10px;
    color: var(--muted);
}

.about-highlights {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #5a6b7b;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(23, 33, 54, .06);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
}

.stat-label {
    color: #5a6b7b;
}

.contact-pro h2 {
    text-align: center;
    font-size: 30px;
    margin: 0 0 8px;
}

.contact-subtitle {
    text-align: center;
    color: var(--muted);
    margin: 0 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 10px 26px rgba(23, 33, 54, .06);
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 10px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #5a6b7b;
}

.contact-info a {
    color: var(--brand);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* =========================
   Footer
========================= */
footer {
    text-align: center;
    color: #6b7280;
    padding: 30px 0;
    border-top: 1px solid #eceff4;
}

/* =========================
   A11y & Motion
========================= */
.nav-links a:focus-visible,
.btn:focus-visible,
.details-close:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero-pro h1 {
        font-size: 30px;
    }

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

/* === Product Details: modal overlay (override) === */
.product-details {
    position: fixed;
    inset: 0;
    /* top/right/bottom/left = 0 */
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    /* hidden by default */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    animation: none;
    /* override previous animation */
}

.product-details:not(.hidden) {
    display: grid;
    /* center card on desktop */
    place-items: center;
}

.product-details .details-body {
    position: relative;
    width: min(960px, 92vw);
    max-height: 92dvh;
    /* keep within viewport */
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f6;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(23, 33, 54, .25);
}

.product-details .details-close {
    /* keep existing look, ensure visible over content */
    z-index: 1;
}

@media (max-width: 768px) {

    /* bottom sheet feel on mobile */
    .product-details:not(.hidden) {
        place-items: end center;
    }

    .product-details .details-body {
        width: 100vw;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        padding-bottom: 24px;
        /* safe area */
    }
}

/* lock page scroll while modal is open */
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* === Price UI === */
.details-price {
    margin: 8px 0 12px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-weight: 800;
    font-size: 20px;
    color: #1d2430;
}

.price-old {
    text-decoration: line-through;
    color: #9aa3af;
}

.price-badge {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.categories {
    margin: 40px 0;
}

.category-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
}

.category-card {
    min-width: 150px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.category-card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.category-card p {
    margin: 10px 0;
    font-weight: bold;
}