/* Hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 52vw, 640px);
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    background: var(--color-bg);
}

.slider-container {
    position: relative;
    width: 100%;
    height: clamp(320px, 52vw, 640px);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-media {
    position: absolute;
    inset: 0;
}

.hero-slider .slide-image-wrap,
.hero-slider .slide img,
.hero-slider .slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide.active .slide-media img,
.slide.active .slide-media .slide-video {
    animation: heroMediaIn 8s ease-out both;
}

.slide-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(12 24 23 / 0.72) 0%, rgb(12 24 23 / 0.42) 42%, rgb(12 24 23 / 0.12) 72%, transparent 100%),
        linear-gradient(180deg, transparent 55%, rgb(12 24 23 / 0.35) 100%);
    pointer-events: none;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.slide-content-inner {
    max-width: min(36rem, 92vw);
    color: #fff;
    padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

.slide-content-inner > * {
    opacity: 0;
    transform: translateY(1.1rem);
}

.slide:not(.active) .slide-content-inner > * {
    animation: none;
    opacity: 0;
    transform: translateY(1.1rem);
}

.slide.active .slide-content-inner > * {
    animation: heroCopyIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.active .slide-content-inner > *:nth-child(1) { animation-delay: 0.12s; }
.slide.active .slide-content-inner > *:nth-child(2) { animation-delay: 0.28s; }
.slide.active .slide-content-inner > *:nth-child(3) { animation-delay: 0.42s; }

.slide-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(2rem, 5.2vw, 3.65rem);
    font-weight: 600;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 0 0 0.65rem;
    max-width: 14ch;
    text-wrap: balance;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

.slide-title::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.85rem;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-accent), rgb(196 165 116 / 0.15));
}

.slide-desc {
    font-family: var(--font-sans);
    font-size: clamp(0.98rem, 1.55vw, 1.175rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: rgb(255 255 255 / 0.88);
    margin: 0 0 1.5rem;
    max-width: 28rem;
    text-wrap: pretty;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.45rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 28px rgb(0 0 0 / 0.22);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgb(0 0 0 / 0.28);
}

@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translateY(1.1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroMediaIn {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .slide.active .slide-media img,
    .slide.active .slide-media .slide-video,
    .slide.active .slide-content-inner > * {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

.hero-slider .slide-fallback,
.slide-fallback.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section--surface {
    background: var(--color-surface-elevated);
}

.section--parallax {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.section-parallax-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -70%;
    height: 240%;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    backface-visibility: hidden;
}

.section-parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-surface-elevated) 78%, transparent);
}

.section--parallax > .container {
    position: relative;
    z-index: 1;
}

.section--muted {
    background: var(--color-bg);
}

/* Anasayfa özellik section (görsel + maddeler) */
.home-feature {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 5rem);
}

.home-feature__container {
    position: relative;
    z-index: 1;
}

.home-feature-bg {
    position: absolute;
    inset: -8% 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.home-feature-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-surface-elevated) 82%, transparent);
}

.home-feature--parallax .section-parallax-bg::after {
    background: color-mix(in srgb, var(--color-surface-elevated) 72%, transparent);
}

.section--stars,
.home-feature--stars {
    background: var(--theme-stars-bg, #0a2a2c);
    color: #fff;
}

.section-stars-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.section-stars-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.home-feature--stars .home-feature-title,
.home-feature--stars .home-feature-list li {
    color: #fff;
}

.home-feature--stars .home-feature-lead {
    color: rgb(255 255 255 / 0.78);
}

.home-feature--stars .home-feature-list li::before {
    background: color-mix(in srgb, var(--color-accent) 70%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.home-feature--stars .home-feature-media {
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.28);
    border: 1px solid rgb(255 255 255 / 0.12);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

.home-feature-grid--right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.home-feature-grid--right .home-feature-media {
    order: 2;
}

.home-feature-grid--right .home-feature-copy {
    order: 1;
}

.home-feature-media {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-bg);
    aspect-ratio: 5 / 4;
    transform: translateZ(0);
}

.home-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-feature:hover .home-feature-media img {
    transform: scale(1.03);
}

.home-feature-placeholder {
    min-height: 100%;
    aspect-ratio: 5 / 4;
}

.home-feature-copy {
    padding: clamp(0.25rem, 1.5vw, 0.75rem);
}

.home-feature-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 0.9rem;
    color: var(--color-text);
    line-height: 1.15;
}

.home-feature-lead {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.4rem;
    max-width: 36rem;
}

.home-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.home-feature-list li {
    position: relative;
    padding: 0.7rem 0.85rem 0.7rem 2.1rem;
    color: var(--color-text);
    line-height: 1.45;
    font-weight: 500;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
}

.home-feature--stars .home-feature-list li {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.1);
}

.home-feature-list li::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}

/* Slogan carousel bar — sağa hizalı: sabit bold | çizgi | kayan slogan */
.home-carousel-bar {
    background: var(--primary-dark);
    color: #fff;
    min-height: clamp(6.5rem, 12vw, 8.5rem);
    display: flex;
    align-items: stretch;
    margin: 0;
}

.home-carousel-bar-inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    padding-block: clamp(1.35rem, 3vw, 2rem);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-carousel-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem 1.25rem;
    max-width: min(100%, 56rem);
    text-align: right;
}

.home-carousel-fixed {
    flex: 0 1 auto;
    max-width: 12rem;
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: #fff;
    white-space: normal;
    text-wrap: balance;
}

.home-carousel-divider {
    flex: 0 0 auto;
    align-self: stretch;
    width: 1px;
    min-height: 2.75rem;
    background: rgb(255 255 255 / 0.35);
}

.home-carousel-track {
    position: relative;
    flex: 1 1 auto;
    min-width: min(100%, 16rem);
    display: grid;
    align-items: center;
    text-align: left;
    overflow: visible;
}

.home-carousel-item {
    grid-area: 1 / 1;
    margin: 0;
    font-family: var(--font-carousel);
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
    font-weight: 600;
    font-optical-sizing: auto;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.45rem);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
    pointer-events: none;
    text-wrap: balance;
}

.home-carousel-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 1rem;
}

.product-gallery-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    aspect-ratio: 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-gallery-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--color-primary);
}

.product-detail-info h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.product-detail-info .product-sku {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product-detail input,
.product-detail textarea,
.product-page .contact-form input,
.product-page .contact-form textarea,
.contact-page .contact-form input,
.contact-page .contact-form textarea {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-elevated);
    padding: 0.75rem 1rem;
}

.product-detail input:focus,
.product-detail textarea:focus,
.product-page .contact-form input:focus,
.product-page .contact-form textarea:focus,
.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* Category / subcategory listing */
.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.category-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.subcategory-list a {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.subcategory-list a:hover,
.subcategory-list a.active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-text-muted);
}

.info-page-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-sm);
    line-height: 1.75;
}

.info-page-content h2,
.info-page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    box-shadow: var(--shadow-sm);
}

.blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg);
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
}

.blog-card__date {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.blog-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.blog-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-primary);
}

.blog-card__excerpt {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-home-section__more {
    margin-top: 2rem;
    text-align: center;
}

.blog-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
}

.blog-detail__inner {
    max-width: 760px;
}

.blog-detail__back {
    margin-bottom: 1rem;
}

.blog-detail__back a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.blog-detail__date {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.blog-detail__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.blog-detail__excerpt {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.blog-detail__cover {
    margin: 0 0 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.blog-detail__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail__content {
    line-height: 1.8;
    color: var(--color-text);
}

.blog-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.blog-detail__content h2,
.blog-detail__content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-detail__content p {
    margin-bottom: 1rem;
}

.blog-detail__content ul,
.blog-detail__content ol {
    margin: 0 0 1rem 1.25rem;
}

.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h1 {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
