/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Description: Porto Child Theme
Author: SW-Themes
Author URI: https://www.portotheme.com
Template: porto
Version: 2.0.0
Text Domain: porto-child
*/

/**
 * ============================================
 * GLOBAL CSS VARIABLES - DESIGN SYSTEM
 * ============================================
 * ✅ ACCESSIBILITY: WCAG 2.1 AA compliant colors
 * ✅ MAINTAINABILITY: Single source of truth for design tokens
 * Version: 2.0.0 - 2025-01-13
 */

:root {
    /* ===== COLOR SYSTEM ===== */
    /* Primary Colors - Gradient Red System (Logo Color) */
    --primary: #ed1c25;
    --primary-dark: #b91419;
    --primary-light: #f44e54;
    --primary-gradient: linear-gradient(135deg, #ed1c25 0%, #b91419 100%);
    --primary-gradient-hover: linear-gradient(135deg, #c51620 0%, #a0101a 100%);

    /* Text Colors - WCAG AA Compliant */
    --text-primary: #1e293b;       /* Contrast: 15.3:1 */
    --text-secondary: #475569;     /* Contrast: 7.5:1 */
    --text-tertiary: #64748b;      /* Contrast: 5.2:1 */
    --text-muted: #94a3b8;         /* Contrast: 3.5:1 */

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hover: rgba(237, 28, 37, 0.05);

    /* Border Colors */
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    --border-tertiary: #94a3b8;

    /* ===== SPACING SYSTEM (8px base) ===== */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */

    /* ===== TYPOGRAPHY SCALE (1.25 ratio) ===== */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 2rem;       /* 32px */
    --text-3xl: 2.5rem;     /* 40px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;

    /* ===== Z-INDEX SCALE ===== */
    --z-base: 1;         /* ✅ FIXED: 0 → 1 (base stacking context) */
    --z-dropdown: 10;    /* ✅ FIXED: 100 → 10 (B2B tier compatibility) */
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/**
 * ============================================
 * UTILITY CLASSES
 * ============================================
 * ✅ ACCESSIBILITY: Screen reader, focus, and display utilities
 */

/* Screen Reader Only */
.sr-only,
.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Display Utilities */
.u-hidden {
    display: none;
}

.u-flex {
    display: flex;
}

.u-grid {
    display: grid;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .u-hidden-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .u-hidden-desktop {
        display: none;
    }
}

/* Focus Utilities */
.focus-visible-only:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.focus-visible-only:focus:not(:focus-visible) {
    outline: none;
}

/* ===== END GLOBAL STYLES ===== */

/* Buraya özel CSS stillerinizi ekleyebilirsiniz */

/* ===== MY ACCOUNT ÖZELLEŞTIRMELERI ===== */
/* ✅ REFACTORED: Using CSS variables, keeping necessary !important for Porto theme override */

/* Hesabım Sayfası Container ve Wrapper Genişlik Düzeltmeleri */
body.woocommerce-account #main,
body.woocommerce-account .page-wrapper,
body.woocommerce-account .main-content-wrap,
body.page-id-11 #main,
body.page-id-11 .page-wrapper,
body.page-id-11 .main-content-wrap,
body.woocommerce-page.woocommerce-account #main,
body.woocommerce-page.woocommerce-account .page-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* Container Full Width - TÜM HESABIM SAYFALARI - ULTRA SPECIFIC */
body.woocommerce-account.woocommerce-page .container,
body.page-id-11.woocommerce-account .container,
body.woocommerce-page.page-id-11 .container,
html body.woocommerce-account .container,
html body.page-id-11 .container,
body.woocommerce-account #main .container,
body.woocommerce-account .page-wrapper .container,
body.page-id-11 #main .container,
.woocommerce-account .container,
#main .container,
.page-wrapper .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: var(--space-3xl) !important;  /* 64px → var(--space-3xl) */
    padding-right: var(--space-3xl) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobil Container Padding - FULL WIDTH */
@media (max-width: 768px) {
    body.woocommerce-account,
    body.woocommerce-account.woocommerce-page,
    body.page-id-11 {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.woocommerce-account #main,
    body.woocommerce-account .page-wrapper,
    body.woocommerce-account .main-content-wrap,
    body.page-id-11 #main,
    body.page-id-11 .page-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    body.woocommerce-account.woocommerce-page .container,
    body.page-id-11.woocommerce-account .container,
    body.woocommerce-page.page-id-11 .container,
    html body.woocommerce-account .container,
    html body.page-id-11 .container,
    body.woocommerce-account #main .container,
    body.woocommerce-account .page-wrapper .container,
    body.page-id-11 #main .container,
    .woocommerce-account .container,
    #main .container,
    .page-wrapper .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    body.woocommerce-account .row,
    body.page-id-11 .row,
    .woocommerce-account .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Row Full Width */
body.woocommerce-account .row,
body.page-id-11 .row,
body.woocommerce-page.woocommerce-account .row,
.woocommerce-account .row {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* My Account Sol Menüyü Gizle */
body.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce .woocommerce-MyAccount-navigation,
nav.woocommerce-MyAccount-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* My Account İçerik Alanını Genişletme */
body.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    flex: 0 0 100% !important;
}

/* My Account Container Düzeltmeleri */
body.woocommerce-account .row .col-lg-9,
body.woocommerce-account .row .col-lg-3,
.woocommerce-account .row .col-lg-9,
.woocommerce-account .row .col-lg-3,
.woocommerce-account .row .col-md-9,
.woocommerce-account .row .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Sol Sidebar'ı Tamamen Kaldır */
body.woocommerce-account .sidebar,
.woocommerce-account .sidebar,
.woocommerce-account .col-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Ana içerik alanını tam genişlikte yap */
body.woocommerce-account .main-content,
body.woocommerce-account .content-area,
.woocommerce-account .main-content,
.woocommerce-account .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    flex: 0 0 100% !important;
}

/* EKSTRA GÜÇLÜ KURALLAR - Tüm olası my-account navigation selector'ları */
.woocommerce-MyAccount-navigation,
.my-account-navigation,
.account-navigation,
#customer_login .woocommerce-MyAccount-navigation,
.page-my-account .woocommerce-MyAccount-navigation,
body.page-template-default .woocommerce-MyAccount-navigation,
[class*="woocommerce"] .woocommerce-MyAccount-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ✅ LOGIN SAYFASI DÜZELTMESİ - Full width container */
body.woocommerce-account.logged-out #main,
body.woocommerce-account.logged-out .page-wrapper,
body.woocommerce-account.logged-out .container,
body.woocommerce-account.logged-out .row,
.woocommerce-form-login-wrapper,
.woocommerce-form-login,
#customer_login {
    max-width: 100% !important;
    width: 100% !important;
}

body.woocommerce-account.logged-out .container {
    padding-left: var(--space-3xl) !important;
    padding-right: var(--space-3xl) !important;
}

@media (max-width: 768px) {
    body.woocommerce-account.logged-out .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Login form columns full width */
.col2-set .col-1,
.col2-set .col-2,
#customer_login .col-1,
#customer_login .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* ===== TOP SELLING BADGE CSS ===== */
/* ✅ REFACTORED: Using CSS variables for colors, spacing, shadows */

/* Top Selling Badge CSS */
.top-selling-badge {
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    color: var(--bg-primary);
    padding: var(--space-sm) var(--space-lg);  /* 8px 20px → variables */
    border-radius: var(--radius-full);  /* 25px → full radius */
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-lg);  /* 20px → var(--space-lg) */
    font-size: var(--text-sm);  /* 15px → var(--text-sm) */
    font-weight: var(--font-bold);  /* 700 → var(--font-bold) */
    box-shadow: var(--shadow-md);  /* Custom shadow → var(--shadow-md) */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.top-selling-badge svg {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);  /* 8px → var(--space-sm) */
    vertical-align: middle;
}

/* Yeni Top Selling Badge Tasarımı */
.top-selling-badge-v2 {
    display: inline-flex;
    align-items: center;
    background: #fff6ee;
    border-radius: var(--radius-md);  /* 10px → var(--radius-md) */
    padding: 6px 22px 6px var(--space-md);  /* 10px → var(--space-md) */
    font-size: var(--text-lg);  /* 18px → var(--text-lg) */
    font-weight: var(--font-normal);  /* 400 → var(--font-normal) */
    color: var(--text-primary);  /* #222 → var(--text-primary) */
    box-shadow: var(--shadow-sm);  /* Custom shadow → var(--shadow-sm) */
    gap: var(--space-md);  /* 12px → var(--space-md) */
    margin-bottom: var(--space-md);  /* 15px → var(--space-md) */
}

.badge-medal {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.badge-rank {
    background: linear-gradient(135deg, #FFD700 60%, #FFA500 100%);
    color: var(--bg-primary);  /* #fff → var(--bg-primary) */
    font-weight: var(--font-bold);  /* 700 → var(--font-bold) */
    font-size: var(--text-lg);  /* 18px → var(--text-lg) */
    border-radius: var(--radius-full);  /* 50% → var(--radius-full) */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);  /* Custom shadow → var(--shadow-sm) */
    border: 2px solid #fff3c0;
    z-index: 2;  /* Keep as 2, not using variable */
}

.badge-ribbon {
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    width: 18px;
    height: 10px;
    background: transparent;
    z-index: 1;
}

.badge-ribbon:before, .badge-ribbon:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 10px;
    background: #3b82f6;
    border-radius: 2px;
    top: 0;
}

.badge-ribbon:before {
    left: 0;
}

.badge-ribbon:after {
    right: 0;
}

.badge-text {
    font-size: var(--text-sm);  /* 14px → var(--text-sm) */
    color: var(--text-primary);  /* #222 → var(--text-primary) */
    font-weight: var(--font-normal);  /* 400 → var(--font-normal) */
    display: flex;
    align-items: center;
    gap: var(--space-xs);  /* 4px → var(--space-xs) */
}

.badge-text b {
    font-weight: var(--font-bold);  /* 700 → var(--font-bold) */
    color: var(--text-primary);  /* #222 → var(--text-primary) */
}

.badge-cat-link {
    color: var(--text-primary);  /* #222 → var(--text-primary) */
    text-decoration: none;
}

.badge-cat-link:hover {
    text-decoration: underline;
}

.badge-arrow {
    font-size: 22px;
    color: var(--text-muted);  /* #bbb → var(--text-muted) */
    margin-left: 2px;
    font-family: Arial, sans-serif;
    font-weight: var(--font-bold);  /* 700 → var(--font-bold) */
}

/* ===== WISHLIST (FAVORİLER) ÖZELLEŞTIRMELERI ===== */
/* ✅ REFACTORED: Using CSS variables, reduced !important declarations */

/* Buton stilleri */
/* Üstteki favorilere ekle butonunu gizle */
.single-product .summary .yith-wcwl-add-to-wishlist {
    display: none;
}

/* Buton container */
.cart-buttons-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);  /* 10px → var(--space-md) */
    margin-bottom: var(--space-md);  /* 15px → var(--space-md) */
    width: 100%;
}

/* Sepete ekle butonu */
.single-product .single_add_to_cart_button {
    background: var(--primary-dark);  /* #322e8a → var(--primary-dark) */
    border: none;
    color: var(--bg-primary);  /* #fff → var(--bg-primary) */
    padding: var(--space-md) var(--space-xl);  /* 15px 30px → variables */
    font-size: var(--text-base);  /* 16px → var(--text-base) */
    font-weight: var(--font-semibold);  /* 600 → var(--font-semibold) */
    border-radius: var(--radius-md);  /* 8px → var(--radius-md) */
    flex-grow: 1;
    margin: 0;
    width: calc(100% - 58px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition-base);  /* Added smooth transition */
}

.single-product .single_add_to_cart_button:hover {
    background: #282473;
    transform: translateY(-1px);  /* Subtle lift effect */
    box-shadow: var(--shadow-md);
}

/* Mini cart butonları - Sepete ekle butonu ile aynı tasarım */
.woocommerce-mini-cart__buttons .btn-cart-style {
    background: var(--primary-dark) !important;  /* #322e8a */
    border: none !important;
    color: var(--bg-primary) !important;  /* #fff */
    padding: 10px 20px !important;  /* Küçültülmüş padding */
    font-size: 14px !important;  /* Küçültülmüş font */
    font-weight: var(--font-semibold) !important;  /* 600 */
    border-radius: var(--radius-md) !important;  /* 8px */
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.2 !important;  /* Daha kompakt line-height */
    margin-bottom: var(--space-sm) !important;  /* 10px boşluk butonlar arasında */
    transition: var(--transition-base) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce-mini-cart__buttons .btn-cart-style:hover {
    transform: translateY(-2px) !important;  /* Hafif yukarı hareket */
    box-shadow: 0 8px 25px rgba(50, 46, 138, 0.5) !important;  /* Mor gölge efekti */
    /* Renk değişikliği yok - sepet sayfasındaki gibi */
}

.woocommerce-mini-cart__buttons .btn-cart-style:last-child {
    margin-bottom: 0 !important;  /* Son butonun altında boşluk olmasın */
}

/* Favoriye ekle butonu */
.yith-wcwl-add-to-wishlist {
    margin: 0;
}

.wishlist-icon-button {
    position: relative;
}

.wishlist-icon-button .yith-wcwl-add-to-wishlist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wishlist-icon-button .yith-wcwl-add-to-wishlist * {
    display: block;
    width: 100%;
    height: 100%;
}

.wishlist-icon-button .yith-wcwl-add-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);  /* #666 → var(--text-secondary) */
    text-decoration: none;
}

.wishlist-icon-button .yith-wcwl-add-button a:before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-size: 22px;
    font-weight: var(--font-normal);  /* 400 → var(--font-normal) */
}

.wishlist-icon-button .yith-wcwl-wishlistaddedbrowse a:before,
.wishlist-icon-button .yith-wcwl-wishlistexistsbrowse a:before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-size: 22px;
    font-weight: var(--font-bold);  /* 900 → var(--font-bold) */
    color: #E74C3C;  /* Red heart - keep as is */
}

.wishlist-icon-button {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-primary);  /* #E5E5E5 → var(--border-primary) */
    border-radius: var(--radius-full);  /* 50% → var(--radius-full) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);  /* #fff → var(--bg-primary) */
    transition: var(--transition-base);  /* all 0.3s ease → variable */
    margin: 0;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}

body.single-product div.product form.cart .wishlist-icon-button:hover {
    background: var(--bg-tertiary);  /* #f5f5f5 → var(--bg-tertiary) */
    border-color: var(--border-secondary);  /* #ccc → var(--border-secondary) */
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-to-wishlist * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistaddedbrowse,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistexistsbrowse {
    height: 100% !important;
    width: 100% !important;
    position: static !important;
    z-index: 1 !important;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button a,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistaddedbrowse a,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistexistsbrowse a {
    padding: 0;
    margin: 0;
    background: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);  /* #666 → var(--text-secondary) */
    position: static;
    border: none;
    min-width: unset;
    min-height: unset;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button a:before,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistaddedbrowse a:before,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistexistsbrowse a:before {
    margin: 0;
    font-family: "Font Awesome 5 Free";
    content: "\f004";
    font-size: 22px;
    font-weight: var(--font-normal);  /* 400 → var(--font-normal) */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button a > *,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistaddedbrowse a > *,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistexistsbrowse a > * {
    font-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button .delete_item:before,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistaddedbrowse a:before,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistexistsbrowse a:before {
    color: #E74C3C !important;
    font-weight: 900 !important;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button a span,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button .feedback,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button .separator,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button .view-wishlist,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistaddedbrowse span,
body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-wishlistexistsbrowse span {
    display: none !important;
}

body.single-product div.product form.cart .wishlist-icon-button .yith-wcwl-add-button .loading:before {
    animation: fa-spin 2s infinite linear !important;
    content: "\f1ce" !important;
}

/* ===== B2B TIER PRICING FIXES ===== */
/* ✅ REFACTORED: Using CSS variables, reduced !important declarations */

/* Tier pricing satırları tıklanabilir yapma */
.b2b-pricing-row.clickable,
.novasis-b2b-pricing-container .pricing-card,
.novasis-b2b-pricing-container .b2b-pricing-row {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    position: relative;
    z-index: var(--z-base);  /* Now correctly 1 */
}

/* Radio input'ları tıklanabilir yapma */
.b2b-pricing-row input[type="radio"],
.novasis-b2b-pricing-container input[type="radio"],
.tier-option-radio,
.pricing-tier-radio {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: var(--z-dropdown);  /* Now correctly 10 */
    width: 20px;
    height: 20px;
}

/* Label'ları tıklanabilir yapma */
.b2b-pricing-row label,
.novasis-b2b-pricing-container label {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

/* Hover efektleri */
.b2b-pricing-row.clickable:hover {
    background-color: var(--bg-secondary);  /* #f8f9fa → var(--bg-secondary) */
    transform: translateX(2px);
    transition: var(--transition-fast);  /* all 0.2s ease → var(--transition-fast) */
}

/* Seçili tier */
.b2b-pricing-row.selected {
    background-color: #e3f2fd;  /* Keep light blue for selected state */
    border-left: 4px solid var(--primary);  /* #1976d2 → var(--primary) */
}

/* Tier pricing container'ın üzerindeki elementlerin z-index'ini düşürme */
.single-product div.product .summary {
    position: relative;
}

.single-product div.product .summary > * {
    position: relative;
    z-index: auto;
}

/* Tier pricing container'a yüksek z-index */
.novasis-b2b-pricing-container,
.novasis-b2b-product-info {
    position: relative;
    z-index: var(--z-dropdown);  /* Now correctly 10 */
}

/* Modern B2B table için */
.modern-b2b-table tbody tr {
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition-fast);  /* background-color 0.2s ease → variable */
}

.modern-b2b-table tbody tr:hover {
    background-color: var(--bg-tertiary);  /* #f5f5f5 → var(--bg-tertiary) */
}

.modern-b2b-table tbody tr.selected-tier {
    background-color: #e3f2fd;  /* Keep light blue for selected state */
    border-left: 3px solid var(--primary);  /* #2196F3 → var(--primary) */
}

/* ===== RATING YILDIZ RENKLERİ ===== */
/* Boş yıldızlar (gri) */
.star-rating::before {
    color: #FFB800 !important;
    opacity: 0.3 !important;
}

/* Dolu yıldızlar (sarı) */
.star-rating span::before {
    color: #FFB800 !important;
}

/* ===== B2B GİRİŞ/BAYİLİK PROMPT TASARIMI ===== */
/* Eski error mesajını gizle */
.novasis-b2b-error {
    display: none !important;
}

.novasis-b2b-login-prompt {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.b2b-prompt-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-prompt-icon svg {
    color: var(--bg-primary);
}

.b2b-prompt-content {
    flex: 1;
}

.b2b-prompt-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: var(--font-semibold);
    margin: 0 0 8px 0;
}

.b2b-prompt-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: var(--leading-normal);
}

.b2b-prompt-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.b2b-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
}

.b2b-btn svg {
    transition: transform 0.2s ease;
}

.b2b-btn:hover svg {
    transform: translateX(2px);
}

.b2b-btn-login {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.b2b-btn-login:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.b2b-btn-register {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.b2b-btn-register:hover {
    background: var(--primary-gradient);
    color: var(--bg-primary) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.b2b-prompt-benefits {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.benefit-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: var(--font-medium);
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .novasis-b2b-login-prompt {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }

    .b2b-prompt-icon {
        width: 48px;
        height: 48px;
    }

    .b2b-prompt-icon svg {
        width: 28px;
        height: 28px;
    }

    .b2b-prompt-title {
        font-size: 18px;
    }

    .b2b-prompt-actions {
        flex-direction: column;
        width: 100%;
    }

    .b2b-btn {
        width: 100%;
        justify-content: center;
    }

    .b2b-prompt-benefits {
        justify-content: center;
    }
}

/**
 * ============================================
 * WOOCOMMERCE PRODUCT GRID - IMAGE STANDARDIZATION
 * ============================================
 * Tüm ürün görsellerini 1:1 kare oranında gösterir
 * Kategori, ana sayfa ve shop sayfalarında peyzaj bozukluğunu düzeltir
 *
 * @version 1.0.0
 * @date 2025-11-18
 */

/* ===== ANA SAYFA & KATEGORİ SAYFALARI - PRODUCT GRID ===== */

/* Product image wrapper - kare container oluştur */
.products .product-image-wrapper,
.products .product-loop-image,
.products .product-image,
.woocommerce ul.products li.product .product-image-wrapper,
.woocommerce ul.products li.product .product-loop-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Image'ları container'a sığdır */
.products .product-image-wrapper img,
.products .product-loop-image img,
.products .product-image img,
.woocommerce ul.products li.product .product-image-wrapper img,
.woocommerce ul.products li.product .product-loop-image img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görseli kare içine sığdır, taşan kısmı kes */
    object-position: center center;
}

/* Porto theme specific selectors */
.porto-products .product-image img,
.porto-products .product-loop-image img,
.product-col .product-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Grid item fix - uniform yükseklik */
.woocommerce ul.products li.product,
.products .product,
.product-col {
    display: flex;
    flex-direction: column;
}

/* ===== TEK ÜRÜN SAYFASI - GALLERY ===== */

/* Ana ürün görseli */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Thumbnail gallery - küçük görseller */
.flex-control-thumbs li img,
.product-thumbs-slider .owl-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== RELATED PRODUCTS & UPSELLS ===== */

.related.products .product-image img,
.upsells.products .product-image img,
.cross-sells .product-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ===== RESPONSIVE - MOBİLE OPTİMİZASYON ===== */

@media (max-width: 768px) {
    /* Mobilde daha küçük padding */
    .products .product-image-wrapper,
    .products .product-loop-image,
    .products .product-image {
        border-radius: 6px;
    }

    /* Mobilde görseller biraz daha küçük */
    .products .product-image-wrapper img,
    .products .product-loop-image img {
        object-fit: contain; /* Mobilde tam görsel göster */
        padding: 8px;
    }
}

/* ===== HOVER EFFECTS - MODERN ANİMASYON ===== */

.products .product-image-wrapper:hover img,
.products .product-loop-image:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.products .product-image-wrapper img,
.products .product-loop-image img {
    transition: transform 0.3s ease-in-out;
}

/* ===== LOADING STATE - SKELETON ===== */

.products .product-image-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 0;
}

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

.products .product-image-wrapper img {
    z-index: 1;
    position: relative;
}

/* ===== BADGE POSITIONS - SALE, NEW, OUT OF STOCK ===== */

.products .product-image-wrapper .onsale,
.products .product-image-wrapper .out-of-stock-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* ===== FİX: Porto Theme Specific Overrides ===== */

/* Porto'nun varsayılan image height'ını override et */
.porto-products .product-image,
.porto-products .product-loop-image,
.products-container .product-image {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
}

/* Porto lazy load placeholder */
.porto-products .product-image img[data-src] {
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
}

/* ===== FİX: Kategori Sayfası Ürün Görselleri (displayHeight: 0 problemi) ===== */

/* img-responsive class'ı height: auto olmalı */
.products .product img.img-responsive,
.products .product-image img.img-responsive,
.woocommerce-loop-product__link img.img-responsive {
    height: auto !important;
    max-height: 300px !important; /* Maksimum yükseklik sınırla */
    width: 100% !important;
    object-fit: contain !important; /* Görsel oranını koru, boşluk bırakma */
    display: block !important;
}

/* Parent container fix */
.products .product .img-thumbnail,
.products .product-image .img-thumbnail {
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Flexbox parent fix - height collapsing önle */
.products .product .product-image,
.products .product .woocommerce-loop-product__link {
    display: block !important;
    height: auto !important;
}

/* YITH Wishlist - Hover renk değişimini kaldır */
.yith-wcwl-add-button a:hover,
.yith-wcwl-add-button a:hover span,
.yith-wcwl-add-to-wishlist a:hover,
.yith-wcwl-add-to-wishlist a:hover span,
.add_to_wishlist:hover,
.add_to_wishlist:hover span {
    color: inherit !important;
    text-decoration: none !important;
}

/* Icon hover rengi de aynı kalsın */
.yith-wcwl-add-button a:hover svg,
.yith-wcwl-add-to-wishlist a:hover svg,
.add_to_wishlist:hover svg {
    color: inherit !important;
    stroke: currentColor !important;
}

/* Favoriler sayfası - Sepete Ekle butonu hover rengini kaldır */
.product-action .add-cart-btn:hover,
.product-action .add-cart-btn:hover i,
.wishlist-table .add-cart-btn:hover,
.wishlist-table .add-cart-btn:hover i,
a.add-cart-btn:hover,
a.add-cart-btn:hover i.fas,
.wishlist .product-action a:hover,
.yith-wcwl-wishlistexistsbrowse .product-action a:hover {
    color: inherit !important;
    background-color: inherit !important;
    border-color: inherit !important;
    text-decoration: none !important;
}

/* Tüm wishlist alanındaki linkler için hover kaldır */
.yith-wcwl-wishlistexistsbrowse a:hover,
.yith-wcwl-wishlistaddedbrowse a:hover,
#yith-wcwl-popup-message a:hover,
.wishlist_table a:hover {
    color: inherit !important;
}

/* Inline CSS override - .add-cart-btn:hover:not(.disabled) için */
/* Maximum specificity with attribute selector */
a.add-cart-btn:hover:not(.disabled),
.add-cart-btn:hover:not(.disabled),
a.add-cart-btn[href*="add-to-cart"]:hover:not(.disabled),
.product-action a.add-cart-btn:hover:not(.disabled),
.wishlist-table a.add-cart-btn:hover:not(.disabled),
.yith-wcwl-wishlistexistsbrowse a.add-cart-btn:hover:not(.disabled) {
    color: rgb(255, 255, 255) !important;
    background-color: rgba(0, 0, 0, 0) !important;
    border-color: rgb(255, 255, 255) !important;
}
