@charset "UTF-8";

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --surface: #1e293b;
    --border: #e2e8f0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* Standart ve okunaklı input boyutları */
input, select, textarea {
    font-size: 0.9375rem !important; /* 15px */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

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

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

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

/* Glassmorphism utility classes */
.glass-header {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Custom badge glow */
.badge-glow {
    box-shadow: 0 0 20px -3px rgba(79, 70, 229, 0.35);
}

/* Custom Transitions */
.transition-smooth {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PDF Preview Watermark layer */
.watermark-overlay {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(79, 70, 229, 0.04),
        rgba(79, 70, 229, 0.04) 120px,
        rgba(14, 165, 233, 0.04) 120px,
        rgba(14, 165, 233, 0.04) 240px
    );
}

/* Modal and Drawer Transitions */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
}

/* WooCommerce Added to Cart linkini gizle (Kart tasarımını kaydırmaması için) */
.added_to_cart {
    display: none !important;
}

/* WooCommerce Fiyat ve İndirim Stilleri */
.woocommerce-Price-amount {
    font-weight: 800;
}

/* Marka sistemi: eğitim odaklı lacivert, kontrollü kobalt ve yumuşak yüzeyler. */
:root {
    --primary: #3157c8;
    --primary-hover: #2446ad;
    --secondary: #168b9a;
    --dark: #14233b;
    --border: #dce4ef;
    --brand-shadow: 0 12px 30px -20px rgba(20, 35, 59, 0.32);
}

body {
    color: #27364b;
    background-color: #f6f8fb;
}

a {
    text-underline-offset: 0.2em;
}

.bg-indigo-600 { background-color: var(--primary) !important; }
.hover\:bg-indigo-700:hover { background-color: var(--primary-hover) !important; }
.text-indigo-600, .text-indigo-500 { color: var(--primary) !important; }
.hover\:text-indigo-600:hover, .hover\:text-indigo-800:hover { color: var(--primary-hover) !important; }
.border-indigo-100 { border-color: #dce5fb !important; }
.bg-indigo-50 { background-color: #eef3ff !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: rgba(49, 87, 200, 0.32) !important; }

.glass-header {
    background: rgba(255, 255, 255, 0.96);
    border-color: #e3e9f1;
    box-shadow: 0 5px 20px -18px rgba(20, 35, 59, 0.45);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.woocommerce-input-wrapper textarea:focus {
    border-color: var(--primary) !important;
    outline-color: rgba(49, 87, 200, 0.18) !important;
}

#place_order {
    background-color: var(--primary) !important;
    box-shadow: 0 8px 18px -10px rgba(49, 87, 200, 0.7) !important;
}

#place_order:hover { background-color: var(--primary-hover) !important; }

.single-product-price,
.woocommerce .products .product,
.woocommerce-checkout form,
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
    border-color: var(--border);
}

@media (prefers-reduced-motion: no-preference) {
    .woocommerce .products .product,
    .glass-card {
        transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
    }

    .woocommerce .products .product:hover {
        transform: translateY(-2px);
        box-shadow: var(--brand-shadow);
    }
}
del {
    color: #94a3b8 !important;
    text-decoration: line-through;
    opacity: 0.8;
}
del .woocommerce-Price-amount {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}
ins {
    text-decoration: none !important;
}
ins .woocommerce-Price-amount {
    color: #0f172a !important;
}

/* WooCommerce Ödeme Yöntemleri (Payment Gateways & PayTR) */
.woocommerce-checkout-payment {
    background: transparent !important;
    padding: 0 !important;
}
.woocommerce-checkout-payment ul.wc_payment_methods {
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.woocommerce-checkout-payment ul.wc_payment_methods li.wc_payment_method {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}
.woocommerce-checkout-payment ul.wc_payment_methods li.wc_payment_method:hover {
    border-color: #6366f1;
}
.woocommerce-checkout-payment ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
    accent-color: #4f46e5;
    margin-right: 0.625rem;
    width: 1.125rem;
    height: 1.125rem;
}
.woocommerce-checkout-payment ul.wc_payment_methods li.wc_payment_method label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9375rem;
    cursor: pointer;
}
.woocommerce-checkout-payment div.payment_box {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

/* Sipariş Ver / Ödeme Butonu */
#place_order {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    border-radius: 1rem !important;
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3) !important;
    transition: all 0.2s ease !important;
}
#place_order:hover {
    background-color: #4338ca !important;
}

/* Miktar Girişi (Quantity Input) */
.quantity {
    display: inline-flex;
    align-items: center;
}
.quantity input.qty {
    width: 3.5rem !important;
    height: 2.5rem !important;
    text-align: center;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    padding: 0 0.25rem;
}

/* Responsive Masaüstü Menü Taşıntı Önleme */
.glass-header nav ul {
    display: flex;
    align-items: center;
}

/* Cart badge bounce */
@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.cart-bump {
    animation: cartPulse 0.3s ease-in-out;
}

/* PayTR simulation badge */
.paytr-badge {
    border-left: 4px solid #10b981;
}

/* ==========================================================================
   WooCommerce Hesabım & Form Stilleri
   ========================================================================== */

/* Bildirim Mesajları (Notices) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin-bottom: 1.5rem !important;
    padding: 1rem 1.25rem !important;
    border-radius: 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.woocommerce-message {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.woocommerce-info {
    background-color: #eef2ff !important;
    color: #3730a3 !important;
    border: 1px solid #c7d2fe !important;
}

.woocommerce-error {
    background-color: #fff1f2 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    padding: 0.35rem 0.85rem !important;
    border-radius: 0.5rem !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin-left: auto !important;
    text-decoration: none !important;
}

/* WooCommerce Form Alanları (Hesap & Adres) */
.woocommerce form .form-row {
    margin-bottom: 1rem !important;
    padding: 0 !important;
    display: block !important;
    clear: both !important;
}

.woocommerce form .form-row label {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #475569 !important;
    margin-bottom: 0.375rem !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.woocommerce-input-wrapper textarea:focus {
    background-color: #ffffff !important;
    border-color: #6366f1 !important;
    outline: 2px solid rgba(99, 102, 241, 0.2) !important;
}

/* Adres Alanları Grid Düzeni */
.woocommerce-address-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
}

@media (min-width: 640px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .woocommerce-address-fields__field-wrapper .form-row-wide {
        grid-column: span 2 !important;
    }
}

/* Sipariş Detay Tablosu (.woocommerce-table--order-details) */
.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-table--order-details th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.875rem 1.25rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-table--order-details td {
    padding: 1rem 1.25rem !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-table--order-details tfoot th {
    background-color: transparent !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
}

.woocommerce-table--order-details tfoot td {
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    font-weight: 800 !important;
}

/* Müşteri Adres Bilgisi Bölümü */
.woocommerce-customer-details {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.woocommerce-customer-details h2 {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.75rem !important;
}

.woocommerce-customer-details address {
    padding: 1rem 1.25rem !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    font-style: normal !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    line-height: 1.6 !important;
}

/* Keep assistive price descriptions available to screen readers without showing them as price text. */
.screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    position: fixed !important;
    width: auto !important;
    white-space: normal !important;
    z-index: 100000;
}

/* Align sale and current prices as a compact, readable pair. */
.single-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.single-product-price del {
    color: #94a3b8 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4;
}

.single-product-price del .woocommerce-Price-amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.single-product-price ins {
    color: #4f46e5 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit;
    text-decoration: none !important;
}

.single-product-price ins .woocommerce-Price-amount,
.single-product-price > .woocommerce-Price-amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Brand overrides stay last so component defaults cannot reintroduce the old palette. */
:root { --primary: #3157c8; --primary-hover: #2446ad; --dark: #14233b; --border: #dce4ef; }
.bg-indigo-600 { background-color: var(--primary) !important; }
.hover\:bg-indigo-700:hover { background-color: var(--primary-hover) !important; }
.text-indigo-600, .text-indigo-500 { color: var(--primary) !important; }
.hover\:text-indigo-600:hover, .hover\:text-indigo-800:hover { color: var(--primary-hover) !important; }
.bg-indigo-50 { background-color: #eef3ff !important; }
.border-indigo-100 { border-color: #dce5fb !important; }
#place_order { background-color: var(--primary) !important; }
#place_order:hover { background-color: var(--primary-hover) !important; }
.single-product-price ins { color: var(--primary) !important; }
