/* ============================================
   ALTUNSU ÇAY — FRONTEND MODERN OVERLAY CSS
   Wolmart temasının üstüne, sisteme dokunmadan
   ============================================ */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --altunsu-green: #1a7a3a;
    --altunsu-green-light: #27ae4a;
    --altunsu-green-dark: #145d2c;
    --altunsu-gold: #c8a45c;
    --altunsu-gold-light: #dab872;
    --text-dark: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8faf9;
    --border-soft: #e2e8f0;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 4px 12px rgba(26, 122, 58, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 1. TIPOGRAFI ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--text-body) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.product-name,
.product-title,
.title,
.banner-title,
.category-name {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    letter-spacing: -0.01em;
}

/* ===== 2. BUTONLAR — Yumuşak & Modern ===== */

/* Ana CTA butonları */
.btn-primary,
.btn-cart,
.btn-product,
.btn-success {
    border-radius: var(--radius) !important;
    transition: var(--transition) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.btn-primary:hover,
.btn-cart:hover,
.btn-product:hover,
.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-btn) !important;
}

.btn-primary:active,
.btn-cart:active,
.btn-product:active {
    transform: translateY(0) !important;
}

/* Sepete Ekle butonu — vurgulu */
.single-product .btn-cart,
.product-action .btn-cart,
.btn-cart {
    background: var(--altunsu-green) !important;
    border-color: var(--altunsu-green) !important;
    border-radius: var(--radius) !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    box-shadow: 0 2px 8px rgba(26, 122, 58, 0.2);
}

.single-product .btn-cart:hover,
.btn-cart:hover {
    background: var(--altunsu-green-light) !important;
    border-color: var(--altunsu-green-light) !important;
}

/* WhatsApp & Telefon butonları */
a[href*="whatsapp"],
a[href*="tel:"] {
    border-radius: var(--radius) !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
}

a[href*="whatsapp"]:hover,
a[href*="tel:"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ===== 3. ÜRÜN KARTLARI — Derinlik & Hover ===== */

.product-wrap,
.product-default {
    transition: var(--transition) !important;
}

.product-wrap:hover,
.product-default:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-card-hover) !important;
}

/* Ürün resim alanı */
.product-media {
    overflow: hidden !important;
}

.product-media img,
.product figure img,
.product-wrap figure img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-wrap:hover .product-media img,
.product:hover figure img,
.product-default:hover figure img {
    transform: scale(1.05) !important;
}

/* Ürün fiyat */
.product-price,
.new-price,
.price {
    color: var(--altunsu-green-dark) !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

.old-price {
    color: var(--text-muted) !important;
    text-decoration: line-through;
}

/* İndirim badge */
.product-label,
.label-sale {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.03em;
}

/* ===== 4. HEADER & NAVİGASYON ===== */

/* Sticky header - blur efekti */
.sticky-header.fixed,
header.fixed {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Arama çubuğu — hafif iyileştirme */
.header-search .form-control:focus {
    border-color: var(--altunsu-green) !important;
    box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.12) !important;
    outline: none !important;
}

/* Ana navigasyon hover — mevcut underline'ı koru */
.main-nav>li>a,
.nav-link {
    transition: color 0.2s ease !important;
}

/* Header üst bant */
.header-top,
.top-notice {
    font-size: 13px !important;
    letter-spacing: 0.02em;
}

/* ===== 5. BREADCRUMB ===== */
.breadcrumb-nav,
.breadcrumb {
    font-size: 13px !important;
}

.breadcrumb a {
    color: var(--text-muted) !important;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--altunsu-green) !important;
}

/* ===== 6. ÜRÜN DETAY SAYFASI ===== */

/* Ürün açıklama alanı */
.product-details,
.product-single {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* "Kargo Ücretsiz" badge */
.free-shipping-badge,
.shipping-label,
span[style*="border"] {
    border-radius: var(--radius-sm) !important;
    font-weight: 500 !important;
}

/* Miktar seçici */
.quantity-input,
.qty-input,
input[name="quantity"],
input[name="adet"] {
    border-radius: var(--radius-sm) !important;
    border: 2px solid var(--border-soft) !important;
    text-align: center;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.quantity-input:focus,
input[name="quantity"]:focus,
input[name="adet"]:focus {
    border-color: var(--altunsu-green) !important;
    box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.1) !important;
}

/* Sosyal paylaşım butonları */
.social-icon,
.social-icons a,
a[class*="social"] {
    transition: var(--transition) !important;
    border-radius: 50% !important;
}

.social-icon:hover,
.social-icons a:hover,
a[class*="social"]:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ===== 7. FOOTER ===== */
footer,
.footer {
    font-family: 'Inter', sans-serif !important;
}

footer a,
.footer a {
    transition: var(--transition) !important;
}

footer a:hover,
.footer a:hover {
    color: var(--altunsu-green-light) !important;
    transform: translateX(3px);
    display: inline-block;
}

/* ===== 8. FORM ELEMANLARI ===== */
input.form-control,
textarea.form-control,
select.form-control {
    border-radius: var(--radius-sm) !important;
    border: 2px solid var(--border-soft) !important;
    transition: var(--transition) !important;
    padding: 10px 16px !important;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: var(--altunsu-green) !important;
    box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.1) !important;
    outline: none !important;
}

/* ===== 9. AVANTAJ / ÖZELLİK BANDLARI ===== */
.icon-box,
.info-box,
.feature-box {
    transition: var(--transition) !important;
    padding: 16px !important;
    border-radius: var(--radius) !important;
}

.icon-box:hover,
.info-box:hover,
.feature-box:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-card) !important;
}

.icon-box-title,
.info-box h4 {
    font-weight: 600 !important;
    color: var(--altunsu-green) !important;
}

/* ===== 10. ANİMASYONLAR ===== */

/* Fade in on load */
@keyframes modernFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-wrap,
.product-default,
.icon-box,
.info-box,
.card {
    animation: modernFadeIn 0.5s ease forwards;
}

/* Staggered animation for product grids */
.product-wrap:nth-child(1),
.product-default:nth-child(1) {
    animation-delay: 0s;
}

.product-wrap:nth-child(2),
.product-default:nth-child(2) {
    animation-delay: 0.06s;
}

.product-wrap:nth-child(3),
.product-default:nth-child(3) {
    animation-delay: 0.12s;
}

.product-wrap:nth-child(4),
.product-default:nth-child(4) {
    animation-delay: 0.18s;
}

.product-wrap:nth-child(5),
.product-default:nth-child(5) {
    animation-delay: 0.24s;
}

.product-wrap:nth-child(6),
.product-default:nth-child(6) {
    animation-delay: 0.30s;
}

/* Sepete Ekle pulse efekti */
@keyframes cartPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 122, 58, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(26, 122, 58, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 122, 58, 0);
    }
}

.btn-cart:active {
    animation: cartPulse 0.4s ease !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===== 11. SEPET SAYFASI ===== */
.cart-table th {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.04em !important;
    color: var(--text-muted) !important;
}

.cart-table td {
    vertical-align: middle !important;
}

/* ===== 12. MOBİL OPTİMİZASYON ===== */
@media (max-width: 768px) {

    .product-wrap:hover,
    .product:hover {
        transform: none !important;
    }

    .btn-cart {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .header-search .form-control {
        font-size: 14px !important;
    }
}

/* ===== 13. SCROLLBAR MODERNIZASYONU ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== 14. SEÇİM RENGİ ===== */
::selection {
    background: rgba(26, 122, 58, 0.15);
    color: var(--text-dark);
}