/* =========================================================
   RESET & TEMEL AYARLAR
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-primary-bg);
    font-size: 1rem;
    line-height: 1.6;
    /* Icerik az oldugunda footer ekranin ortasinda kalmasin diye:
       body dikey flex yapilip footer en alta itiliyor. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 16px;
    line-height: 1.25;
    font-weight: 700;
}

p { margin: 0 0 16px; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* =========================================================
   CONTAINER
   ========================================================= */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* =========================================================
   BUTONLAR
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.btn-dark:hover {
    background-color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

/* =========================================================
   SECTION GENEL
   ========================================================= */
.section {
    padding: 8em 0;
}

.section-title {
    font-family: 'Cormorant', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1em;
}

/* =========================================================
   URUN KARTI (site genelinde kullanilir: section1, section3,
   arsiv sayfasi, ilgili urunler vb.)
   ========================================================= */
.product-card {
    text-align: center;
    margin-bottom: 2em;
}

.product-card__image-wrap {
    position: relative;
    width: 100%;
    /* 2:3 aspect ratio (genislik:yukseklik) - urun resimleri her yerde bu oranda */
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary);
    margin-bottom: 16px;
}

.product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

/* Hover: %5 zoom in-out efekti */
.product-card:hover .product-card__image-wrap img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 1em;
    color: var(--color-text-dark);
}

.product-card__price {
    font-size: 15px;
    color: var(--color-text-muted);
}

.product-card__price del {
    opacity: 0.6;
    margin-right: 6px;
}

.product-card__price ins {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 600;
}

/* =========================================================
   YARDIMCI SINIFLAR
   ========================================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================================
   LAZY LOADING GORUNURLUK ANIMASYONU
   (site geneli - ana sayfa, urun sayfasi, urun listeleme sayfasi vb.)
   ========================================================= */
[data-lazy-section] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

[data-lazy-section].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE - Temel breakpointler
   ========================================================= */
@media (max-width: 1024px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .section { padding: 44px 0; }
    .section-title { font-size: 26px; margin-bottom: 28px; }
}

@media (max-width: 480px) {
    .btn { padding: 12px 24px; font-size: 12px; }
}
