/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --black: #111111;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --border-width: 2px;
    --accent-font: 'Caveat', cursive;
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.nav-link,
.btn-custom,
.modal-title,
.offcanvas-title {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   2. HEADER & NAVIGASYON
   ========================================= */
.marquee-banner {
    background-color: var(--black);
    color: var(--white);
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: inline-block;
    padding: 0 3rem;
}

.marquee-item::before {
    content: "★";
    margin-right: 0.5rem;
    opacity: 0.7;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}

header {
    border-bottom: var(--border-width) solid var(--black);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--black);
    text-decoration: none;
}

.logo-sub {
    font-family: var(--accent-font);
    font-size: 1.1rem;
    text-transform: none;
    display: block;
    color: #555;
}

.nav-link {
    color: var(--black);
    font-size: 0.95rem;
    margin: 0 12px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--black);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   3. MODAL, OFFCANVAS & SEPET (YENİ EKLENENLER)
   ========================================= */

/* Köşeleri sivri yap ve fontları ayarla */
.modal-content,
.offcanvas {
    border-radius: 0 !important;
    font-family: var(--body-font);
    background-color: var(--white);
    color: var(--black);
}

/* Başlık kısımlarının altı çizgili olsun */
.modal-header,
.offcanvas-header {
    border-bottom: 2px solid var(--black);
    padding: 1.5rem;
}

.modal-title,
.offcanvas-title {
    font-weight: 700;
}

/* Siyah Buton Stili (Sepet Onayla / Giriş Yap vb. için) */
.btn-black {
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--heading-font);
    font-weight: 600;
    padding: 10px 20px;
    transition: 0.3s;
}

.btn-black:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Sepet İçi Ürün Listeleme */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

/* Login/Register Sekmeleri (Tabs) */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    font-family: var(--heading-font);
}

.nav-tabs .nav-link.active {
    border-color: var(--black);
    color: var(--black);
    background: transparent;
}

/* Form Elemanları (Inputlar) */
.form-control-custom {
    border: 2px solid var(--black);
    border-radius: 0;
    padding: 12px 15px;
    font-weight: 500;
    background: transparent;
}

.form-control-custom:focus {
    box-shadow: none;
    border-color: #555;
    background-color: #fafafa;
}

/* =========================================
   4. HERO & ANA İÇERİK
   ========================================= */
.hero-box {
    border: var(--border-width) solid #f78f2d;
    padding: 4rem 2rem;
    background: var(--white);
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-box:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0px #f78f2d;
}

.hero-bg-dark {
    background-color: var(--black);
    color: var(--white);
}

.hero-bg-dark .btn-custom {
    border-color: var(--white);
    color: var(--white);
}

.hero-bg-dark .btn-custom:hover {
    background: var(--white);
    color: var(--black);
}

.badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    font-family: var(--heading-font);
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(5deg);
}

.btn-custom {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    width: fit-content;
    border-radius: 0;
    /* Köşeli buton */
}

.btn-custom:hover {
    background: var(--black);
    color: var(--white);
}

/* =========================================
   5. MARQUEE (KAYAN YAZI)
   ========================================= */
.marquee-wrapper {
    border-top: var(--border-width) solid var(--black);
    border-bottom: var(--border-width) solid var(--black);
    overflow: hidden;
    background: var(--white);
    padding: 15px 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.marquee-item {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 50px;
    text-transform: uppercase;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================
   6. ÜRÜN KARTLARI & ÖZELLİKLER
   ========================================= */
.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-wrapper {
    margin-bottom: 30px;
}

.product-img-box {
    background-color: var(--gray-light);
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-img-box i {
    color: #ccc;
    transition: 0.3s;
}

.product-wrapper:hover .product-img-box {
    border-color: var(--black);
}

.product-wrapper:hover .product-img-box i {
    transform: scale(1.1);
    color: #999;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--white);
    border: 2px solid var(--black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    color: var(--black);
    text-decoration: none;
}

.product-wrapper:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: var(--black);
    color: var(--white);
}

.product-info {
    padding-top: 15px;
}

.product-cat {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.product-title {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.product-price {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 1rem;
}

/* =========================================
   7. BLOG KARTLARI
   ========================================= */
.blog-card {
    border: 2px solid var(--black);
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0px var(--black);
}

.blog-card .card-img-top {
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-title {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #666;
}

/* =========================================
   8. NEWSLETTER & FOOTER
   ========================================= */
.newsletter-section {
    border-top: var(--border-width) solid var(--black);
    background-color: #f9f9f9;
    padding: 5rem 0;
}

footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.2s;
}

footer .text-muted {
    color: #aaa !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 10px !important;
    transition: 0.2s !important;
}

footer .text-muted:hover {
    color: var(--white) !important;
    padding-left: 5px;
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }

    .hero-box {
        min-height: 350px;
        margin-bottom: 20px;
    }

    .product-img-box {
        aspect-ratio: 1 / 1;
    }

    .marquee-item {
        font-size: 1rem;
    }
}
