/* Storefront - style.css */

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --border-color: #f0f0f0;
    --hover-color: #e5e5e5;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

* {
    font-style: normal !important;
}

a {
    text-decoration: none !important;
}

header {
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000;
}

.btn-black {
    background-color: #000;
    color: #fff;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-black:hover {
    background-color: #333;
}

/* Auth forms (login, register) */
.form-input {
    width: 100%;
    border: 1px solid #e5e5e5;
    padding: 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #000;
}

.form-input.border-red-400 {
    border-color: #f87171;
}

.err-msg {
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
}

/* Cart Drawer & Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 100;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: white;
    z-index: 101;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

body.cart-open {
    overflow: hidden;
}

body.cart-open .cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.cart-open .cart-drawer {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: #f9f9f9;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[x-cloak] {
    display: none !important;
}

/* Sayfa içeriği (editördeki HTML yapısıyla uyumlu) */
.page-content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #1f2937;
    max-width: none;
}

.page-content h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.25;
    color: #111827;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.page-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content strong {
    font-weight: 700;
}

.page-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.page-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.page-content li {
    margin-bottom: 0.35rem;
}

.page-content a {
    color: #2563eb;
    text-decoration: underline;
}

.page-content a:hover {
    color: #1d4ed8;
}

/* Hero slider */
.hero-slider {
    width: 100%;
    height: 75vh;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #000;
    opacity: 0.3;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Ürün kartı */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-image {
    aspect-ratio: 3/4;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.product-image > a:first-of-type,
.product-image > a:first-child {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

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

.product-image .add-to-cart {
    display: none !important;
}

.product-image .fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
    opacity: 0;
    border: none;
    cursor: pointer;
}

.product-card:hover .product-image .fav-btn {
    opacity: 1;
}

.product-image .fav-btn:hover {
    color: #dc2626;
    transform: scale(1.08);
}

.product-image .fav-btn.active,
.product-image .fav-btn.favorited {
    color: #dc2626;
    opacity: 1;
}

/* Ürün detay galeri ve thumbs */
.product-gallery-slide {
    overflow: hidden;
    cursor: crosshair;
}

.product-gallery-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbs-slider {
    margin-top: 12px;
}

.thumbs-slider .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
}

.thumbs-slider .swiper-slide img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 2px;
}

/* Ürün detay beden/özellik butonları */
.size-btn {
    border: 1px solid #e5e5e5;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Fırsat ürünleri & Benzer ürünler slider */
.firsat-slider .swiper-slide,
.similar-products-slider .swiper-slide {
    height: auto;
}

/* Yatay kayan menü (mobil header) */
.scrollbar-hide {
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
