/* Webyaz Hızlı Satış - CSS Tasarım Sistemi */
:root {
    --wyhs-primary: var(--primary-color, #446084);
    --wyhs-primary-hover: var(--primary-color-hover, #354b68);
    --wyhs-success: #22863a;
    --wyhs-danger: #cf222e;
    --wyhs-text: #333333;
    --wyhs-text-light: #666666;
    --wyhs-border: #dddddd;
    --wyhs-bg-light: #fafafa;
    --wyhs-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --wyhs-shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
}

/* 1. ÜRÜN KARTLARI VE responsive GRID */
.wyhs-products-wrap {
    margin: 30px 0;
    font-family: 'Roboto', sans-serif;
}

.wyhs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    box-sizing: border-box;
}

.wyhs-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.wyhs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: #e2e8f0;
}

.wyhs-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.wyhs-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    transition: transform 0.5s ease;
}

.wyhs-card:hover .wyhs-card-image {
    transform: scale(1.04);
}

.wyhs-ty-badge-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff7a00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.wyhs-ty-badge-new {
    position: absolute;
    top: 10px;
    right: 45px;
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.wyhs-ty-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.wyhs-ty-heart:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.wyhs-ty-img-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(254, 205, 211, 0.9);
    color: #e11d48;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
}

.wyhs-ty-shipping-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #5b6770;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 5px 0;
    z-index: 2;
    letter-spacing: 0.5px;
}

.wyhs-card-content {
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.wyhs-ty-brand {
    font-weight: 700;
    color: #334155;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.wyhs-ty-title-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wyhs-ty-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wyhs-ty-delivery-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.wyhs-ty-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 11px;
}

.wyhs-ty-rating-num {
    font-weight: 700;
    color: #f59e0b;
}

.wyhs-ty-stars {
    color: #f59e0b;
    font-size: 10px;
}

.wyhs-ty-reviews {
    color: #94a3b8;
}

.wyhs-ty-basket-price-wrap {
    background: #fff0f3;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
}

.wyhs-ty-basket-label {
    font-size: 9px;
    font-weight: 800;
    color: #e11d48;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.wyhs-ty-basket-price {
    font-size: 14px;
    font-weight: 800;
    color: #e11d48;
}

.wyhs-ty-old-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 4px;
    margin-bottom: 8px;
}

.wyhs-card-action {
    margin-top: auto;
}

.wyhs-btn-card {
    display: block;
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.wyhs-btn-buy {
    background: var(--wyhs-primary);
    color: #ffffff;
}

.wyhs-btn-buy:hover {
    filter: brightness(90%);
}

.wyhs-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wyhs-btn-whatsapp:hover {
    background: #20ba5a;
    color: #ffffff;
}

.wyhs-btn-whatsapp .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* responsive Grid Düzeni - PC: 4, Mobil: 2 */
@media (max-width: 1200px) {
    .wyhs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wyhs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .wyhs-card-image {
        height: 160px;
    }
    .wyhs-card-title {
        font-size: 14px;
        height: 38px;
    }
    .wyhs-current-price {
        font-size: 15px;
    }
    .wyhs-btn-card {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Safety override to hide drawer checkout step permanently */
#wyhsCheckoutStep {
    display: none !important;
}

/* 2. SLIDE-OVER CHECKOUT PANELİ (DRAWER / MODAL) */
.wyhs-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wyhs-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wyhs-drawer {
    position: relative;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    max-height: 800px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000000;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, width 0.3s ease, max-width 0.3s ease, height 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border-radius: 12px;
    overflow: hidden;
}

.wyhs-drawer-overlay.active .wyhs-drawer {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Drawer Mode (Right Side Slide-out Drawer) */
.wyhs-drawer-overlay.wyhs-mode-cart {
    justify-content: flex-end;
    align-items: stretch;
}

.wyhs-drawer-overlay.wyhs-mode-cart .wyhs-drawer {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    opacity: 1;
}

.wyhs-drawer-overlay.wyhs-mode-cart.active .wyhs-drawer {
    transform: translateX(0);
}

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

.wyhs-drawer-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--wyhs-primary);
}

.wyhs-close-drawer {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    transition: color 0.2s;
}

.wyhs-close-drawer:hover {
    color: #333;
}

.wyhs-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Seçilen Ürün Şeridi */
.wyhs-selected-product {
    background: var(--wyhs-bg-light);
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wyhs-prod-info {
    display: flex;
    flex-direction: column;
}

.wyhs-prod-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--wyhs-text-light);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

#wyhsDrawerProductTitle {
    font-size: 15px;
    color: var(--wyhs-text);
    font-weight: 600;
}

#wyhsDrawerProductPrice {
    font-size: 18px;
    font-weight: 700;
    color: var(--wyhs-success);
}

/* Form Tasarımı */
.wyhs-form-section {
    margin-bottom: 24px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 16px;
}

.wyhs-form-section:last-of-type {
    border-bottom: none;
}

.wyhs-form-section h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #444;
}

.wyhs-input-group {
    margin-bottom: 16px;
}

.wyhs-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.wyhs-input-group input[type="text"],
.wyhs-input-group input[type="email"],
.wyhs-input-group input[type="tel"],
.wyhs-input-group select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--wyhs-text);
    background: #fff;
    outline: none;
    transition: all 0.2s;
    height: 46px;
    line-height: 1.4;
    display: block;
}

.wyhs-input-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--wyhs-text);
    background: #fff;
    outline: none;
    transition: all 0.2s;
    min-height: 80px;
    display: block;
}

.wyhs-input-group input:focus,
.wyhs-input-group textarea:focus {
    border-color: var(--wyhs-primary);
    box-shadow: 0 0 0 3px rgba(68,96,132,0.1);
}

.wyhs-grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Toggle Switch */
.wyhs-billing-toggle {
    display: flex;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wyhs-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.wyhs-toggle-btn.active {
    background: #ffffff;
    color: var(--wyhs-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Sözleşme Onay Kutusu */
.wyhs-legal-terms {
    font-size: 12px;
    color: var(--wyhs-text-light);
    line-height: 1.5;
}

.wyhs-checkbox-label {
    display: flex;
    gap: 10px;
    cursor: pointer;
    align-items: flex-start;
}

.wyhs-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

.wyhs-checkbox-label a {
    color: var(--wyhs-primary);
    text-decoration: underline;
}

/* Buton */
.wyhs-btn-primary-checkout {
    display: block;
    width: 100%;
    background: var(--wyhs-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.wyhs-btn-primary-checkout:hover {
    filter: brightness(90%);
}

/* Mesajlar */
.wyhs-drawer-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.wyhs-drawer-msg.error {
    background: #fff0f0;
    color: var(--wyhs-danger);
    border: 1px solid #ffd1d1;
}

.wyhs-drawer-msg.success {
    background: #eef9ee;
    color: var(--wyhs-success);
    border: 1px solid #c7ebc7;
}

/* Spinner (Loader) */
.wyhs-drawer-spinner-wrap {
    text-align: center;
    padding: 40px 0;
}

.wyhs-drawer-spinner-wrap p {
    margin-top: 15px;
    color: var(--wyhs-text-light);
    font-size: 14px;
}

.wyhs-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(68, 96, 132, 0.1);
    border-top-color: var(--wyhs-primary);
    border-radius: 50%;
    animation: wyhs-spin 1s linear infinite;
}

@keyframes wyhs-spin {
    to { transform: rotate(360deg); }
}

/* PayTR iFrame Container */
.wyhs-paytr-container {
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    min-height: 450px;
    background: #fff;
}

/* 3. MODAL 2-COLUMN GRID LAYOUT & MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
    .wyhs-step-content {
        flex-direction: column !important;
        gap: 20px !important;
    }
    #wyhsCheckoutForm {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .wyhs-step-left, .wyhs-step-right {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .wyhs-drawer {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    .wyhs-drawer-body {
        padding: 16px !important;
    }
}

/* Shipping and Payment Options Hover/Active Styles */
.wyhs-shipping-option:hover {
    border-color: #ff7a50 !important;
}
.wyhs-payment-option-card:hover {
    border-color: #00b060 !important;
}

/* ==========================================================================
   FLATSOME PRODUCT CARD & DYNAMIC BADGE STYLES (WEBYAZ INTEGRATION)
   ========================================================================== */

/* Premium Card container style (Flatsome inspired) */
.wyhs-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    max-width: 290px !important;
    width: 100% !important;
}

.wyhs-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(15, 58, 48, 0.08) !important;
    border-color: #e2e8f0 !important;
}

/* Image zoom transition */
.wyhs-card-image {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
    border-radius: 12px 12px 0 0 !important;
}

.wyhs-card:hover .wyhs-card-image {
    transform: scale(1.06) !important;
}

/* Webyaz dynamic badges absolute positioning overlays inside card-image-link */
.wyhs-card-image-link .wz-badge1 {
    position: absolute !important;
    top: 12px !important;
    left: 0 !important;
    z-index: 10 !important;
    padding: 5px 10px 5px 8px !important;
    border-radius: 0 4px 4px 0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.wyhs-card-image-link .wz-badge2 {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    padding: 5px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    text-transform: uppercase !important;
}

.wyhs-card-image-link .wz-card-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
}

/* Card Content details styling */
.wyhs-card-content {
    padding: 12px 14px 14px 14px !important;
    border-radius: 0 0 12px 12px !important;
}

.wyhs-ty-brand {
    font-size: 10px !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

.wyhs-ty-title-desc {
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    height: 44px !important;
}

.wyhs-ty-title-desc a:hover {
    color: #ff7a50 !important;
}

/* Webyaz dynamic shipping/campaign lines styling */
.wyhs-card-content .wz-card-info-row {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Fallback shipping/delivery label styles */
.wyhs-ty-delivery-badge {
    color: #059669 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.wyhs-ty-rating-row {
    font-size: 11px !important;
    margin-bottom: 12px !important;
}

.wyhs-ty-basket-price-wrap {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(225, 29, 72, 0.08) !important;
    background: rgba(225, 29, 72, 0.02) !important;
    margin-bottom: 10px !important;
}

.wyhs-ty-basket-price {
    font-size: 16px !important;
    font-weight: 800 !important;
}

.wyhs-ty-old-price {
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

/* Add to Cart button premium look */
.wyhs-btn-card {
    border-radius: 8px !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.wyhs-btn-buy {
    background: #0f2c59 !important; /* Navy Blue */
    color: #ffffff !important;
}

.wyhs-btn-buy:hover {
    background: #ff7a00 !important; /* Orange accent on hover */
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2) !important;
}

/* ==========================================================================
   HEADER LOGIN & ACCOUNT MENU BUTTON ALIGNMENT (WOOCOMMERCE-LIKE RIGHT SIDE)
   ========================================================================== */
@media (min-width: 850px) {
    /* Push the dynamic login/account menu item to the right side of the flex container */
    .header-nav.nav, .nav-main.nav, ul.nav {
        display: flex !important;
        flex-grow: 1 !important;
    }
    .header-nav .menu-item-wyhs-login, 
    .header-nav .menu-item-wyhs-account,
    .nav-main .menu-item-wyhs-login,
    .nav-main .menu-item-wyhs-account,
    ul.nav > li.menu-item-wyhs-login,
    ul.nav > li.menu-item-wyhs-account {
        margin-left: auto !important;
    }
}

.menu-item-wyhs-login a, .menu-item-wyhs-account a {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ==========================================================================
   CSS SLIDER & CAROUSEL LAYOUT FOR PRODUCT GRID
   ========================================================================== */
.wyhs-grid.wyhs-layout-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 24px !important;
    padding: 10px 4px 20px 4px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    list-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wyhs-grid.wyhs-layout-slider::-webkit-scrollbar {
    height: 6px !important;
}

.wyhs-grid.wyhs-layout-slider::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
}

.wyhs-grid.wyhs-layout-slider::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

.wyhs-grid.wyhs-layout-slider::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.wyhs-grid.wyhs-layout-slider .wyhs-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .wyhs-grid.wyhs-layout-slider {
        gap: 16px !important;
        padding-bottom: 12px !important;
    }
    .wyhs-grid.wyhs-layout-slider .wyhs-card {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
}

/* ==========================================================================
   PRODUCT SWATCHES (BEDEN & RENK SEÇENEKLERİ)
   ========================================================================== */
.wyhs-swatch {
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* Kare Kutu Swatch - Beden İçin */
.wyhs-swatch-square {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    background: #ffffff;
}

.wyhs-swatch-square:hover {
    border-color: #0f2c59;
    color: #0f2c59;
}

.wyhs-swatch-square.active {
    border: 2px solid #ff7a00 !important;
    background: #fff8f5 !important;
    color: #ff7a00 !important;
    font-weight: 700 !important;
    transform: scale(1.02);
}

/* Yuvarlak Renk Swatch */
.wyhs-swatch-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.wyhs-swatch-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wyhs-swatch-color.active {
    border: 2px solid #ff7a00 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 0 0 2px #ffffff, 0 0 8px rgba(255,122,0,0.5) !important;
}

/* Resimli Swatch */
.wyhs-swatch-image {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wyhs-swatch-image:hover {
    transform: scale(1.05);
    border-color: #0f2c59;
}

.wyhs-swatch-image.active {
    border: 2px solid #ff7a00 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 8px rgba(255,122,0,0.4) !important;
}

/* ==========================================================================
   10 PRESETS PRODUCT CARD DESIGNS (WEBYAZ CUSTOMIZER)
   ========================================================================== */

/* Stil 1 — Minimalist Modern (Varsayılan) */
.wyhs-card-style1 {
    /* Uses base styles, nothing special needed */
}

/* Stil 2 — Borderless Adaçayı Havası (Sage Background) */
.wyhs-card-style2 {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f7f9f7 !important;
}
.wyhs-card-style2:hover {
    background: #eef2ee !important;
    transform: none !important;
    box-shadow: none !important;
}
.wyhs-card-style2 .wyhs-card-image {
    border-radius: 0 !important;
}
.wyhs-card-style2 .wyhs-single-btn-buy {
    background: #132e23 !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
}

/* Stil 3 — Gölgeli Premium Çerçeveli (Box Shadow) */
.wyhs-card-style3 {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}
.wyhs-card-style3:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: #cbd5e1 !important;
}

/* Stil 4 — Sol Sütun Resimli Dik Kart (Horizontal Card) */
.wyhs-card-style4 {
    flex-direction: row !important;
    border-radius: 12px !important;
    align-items: center !important;
    max-width: 580px !important;
}
.wyhs-card-style4 .wyhs-card-image-link {
    width: 40% !important;
    aspect-ratio: 1/1 !important;
    flex-shrink: 0 !important;
}
.wyhs-card-style4 .wyhs-card-content {
    width: 60% !important;
    padding: 15px !important;
}
.wyhs-card-style4 .wyhs-card-image {
    border-radius: 12px 0 0 12px !important;
}
@media (max-width: 576px) {
    .wyhs-card-style4 {
        flex-direction: column !important;
    }
    .wyhs-card-style4 .wyhs-card-image-link {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
    }
    .wyhs-card-style4 .wyhs-card-content {
        width: 100% !important;
    }
    .wyhs-card-style4 .wyhs-card-image {
        border-radius: 12px 12px 0 0 !important;
    }
}

/* Stil 5 — Soft Krem / Pastel Köşeli (Vintage Cream) */
.wyhs-card-style5 {
    background: #fdfbf7 !important;
    border: 2px dashed #e7e0d3 !important;
    border-radius: 20px !important;
}
.wyhs-card-style5:hover {
    background: #faf5eb !important;
    border-color: #d7c9b3 !important;
}
.wyhs-card-style5 .wyhs-ty-brand {
    color: #856404 !important;
}
.wyhs-card-style5 .wyhs-single-btn-buy {
    background: #8c6239 !important;
    border-radius: 30px !important;
}

/* Stil 6 — Koyu Şifa / Forest Dark (Karanlık Tema) */
.wyhs-card-style6 {
    background: #0a1d16 !important;
    border: 1px solid #132e23 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}
.wyhs-card-style6:hover {
    border-color: #a2b9a7 !important;
    box-shadow: 0 12px 28px rgba(10, 29, 22, 0.5) !important;
}
.wyhs-card-style6 .wyhs-ty-title-desc a {
    color: #f5f2eb !important;
}
.wyhs-card-style6 .wyhs-ty-brand {
    color: #a2b9a7 !important;
}
.wyhs-card-style6 .wyhs-ty-basket-price {
    color: #ff9800 !important;
}
.wyhs-card-style6 .wyhs-single-btn-buy {
    background: #a2b9a7 !important;
    color: #0a1d16 !important;
}

/* Stil 7 — Ürün Resmi Zoom & Hover Vurgulu (Glow Border) */
.wyhs-card-style7 {
    border: 2px solid transparent !important;
    border-radius: 12px !important;
}
.wyhs-card-style7:hover {
    border-color: #ff7a00 !important;
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.25) !important;
}

/* Stil 8 — Neon Vurgulu Modern Köşegen Kart */
.wyhs-card-style8 {
    border-radius: 0 !important;
    border-top: 4px solid #10b981 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
.wyhs-card-style8:hover {
    border-top-color: #ef4444 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
.wyhs-card-style8 .wyhs-single-btn-buy {
    border-radius: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Stil 9 — Butonu Kartın İçine Gömülü Temiz Kart */
.wyhs-card-style9 .wyhs-card-action {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    height: 0 !important;
    overflow: hidden !important;
}
.wyhs-card-style9:hover .wyhs-card-action {
    opacity: 1 !important;
    transform: translateY(0) !important;
    height: auto !important;
}

/* Stil 10 — Elegant İnce Çizgili Klasik Kart */
.wyhs-card-style10 {
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
}
.wyhs-card-style10:hover {
    background: #fafafa !important;
    transform: scale(1.01) !important;
    box-shadow: none !important;
}
.wyhs-card-style10 .wyhs-single-btn-buy {
    background: #000000 !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   PREMIUM KART RAFİNASYONU (v1.5+) — daha şık, sade, ferah ve kısa görünüm
   (Cascade sonu override; markup değişmeden premium his.)
   ========================================================================== */
.wyhs-card {
    border-radius: 16px !important;
    border: 1px solid #eef1f5 !important;
    box-shadow: 0 2px 6px rgba(16,24,40,.03), 0 12px 30px rgba(16,24,40,.05) !important;
    max-width: 330px !important;
}
.wyhs-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 42px rgba(16,24,40,.11) !important;
    border-color: #e6eaf0 !important;
}
.wyhs-card-image {
    border-radius: 16px 16px 0 0 !important;
    background-color: #f4f6f9 !important;
}

/* Kargo barı → ince premium cam gradyan */
.wyhs-ty-shipping-bar,
.wyhs-card-image-link .wz-card-bar {
    background: linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,.70)) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: .3px !important;
    padding: 12px 0 7px !important;
    text-transform: none !important;
}

/* Görsel üstü kategori pili → temiz cam pill */
.wyhs-ty-img-label {
    background: rgba(255,255,255,.92) !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(16,24,40,.12) !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    letter-spacing: .3px !important;
}

/* İndirim rozeti → yumuşak premium turuncu */
.wyhs-ty-badge-left {
    background: #F28C1E;
    color: #fff;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    padding: 5px 11px !important;
    box-shadow: 0 4px 10px rgba(242,140,30,.30) !important;
    text-transform: none !important;
    letter-spacing: .2px !important;
}

/* İçerik ferahlığı ve zarif tipografi */
.wyhs-card-content { padding: 16px 16px 18px !important; }
.wyhs-ty-brand {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    margin-bottom: 7px !important;
}
.wyhs-ty-title-desc {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.45 !important;
    height: 40px !important;
    margin-bottom: 9px !important;
}
.wyhs-ty-delivery-badge { font-size: 10.5px !important; margin-bottom: 8px !important; }
.wyhs-ty-rating-row { margin-bottom: 12px !important; }

/* FİYAT → premium sade sunum (gürültülü pembe kutu kaldırıldı) */
.wyhs-ty-basket-price-wrap {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 2px !important;
}
.wyhs-ty-basket-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    letter-spacing: .3px !important;
    text-transform: none !important;
    margin-bottom: 3px !important;
}
.wyhs-ty-basket-price {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1E2A4A !important;
    letter-spacing: -.5px !important;
}
.wyhs-ty-old-price {
    font-size: 12px !important;
    color: #b0b8c4 !important;
    margin: 2px 0 12px !important;
}

/* SEPETE EKLE butonu → premium lacivert gradyan */
.wyhs-btn-card {
    border-radius: 12px !important;
    padding: 13px 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
}
.wyhs-btn-buy {
    background: linear-gradient(135deg, #26355b, #1E2A4A) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(30,42,74,.22) !important;
}
.wyhs-btn-buy:hover {
    filter: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 24px rgba(30,42,74,.30) !important;
}

/* ==========================================================================
   PREMIUM SEPET ÇEKMECESİ (v1.12.2)
   Dashicons ön yüzde yüklü olmadığı için tüm ikonlar satır içi SVG'dir.
   ========================================================================== */

#wyhsCartListContainer .wyhs-cart-item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#wyhsCartListContainer .wyhs-cart-item:hover {
    border-color: #dfe5ee;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .07);
}

/* Görsel */
.wyhs-ci-thumb {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: 11px;
    overflow: hidden;
    background: #f6f8fb;
    border: 1px solid #eef1f5;
}
.wyhs-ci-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Metin bloğu */
.wyhs-ci-body { flex: 1; min-width: 0; }
.wyhs-ci-title {
    margin: 0 0 4px 0;
    padding-right: 34px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wyhs-ci-variation {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.wyhs-ci-unit { font-size: 11.5px; color: #94a3b8; margin-bottom: 10px; }

.wyhs-ci-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Miktar seçici — belirgin ve dokunmatik dostu */
.wyhs-qty {
    display: inline-flex;
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.wyhs-qty .wyhs-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    transition: background .16s ease, color .16s ease, transform .12s ease;
}
.wyhs-qty .wyhs-qty-btn svg { width: 13px; height: 13px; }
.wyhs-qty .wyhs-qty-btn:hover { background: #1E2A4A; color: #fff; }
.wyhs-qty .wyhs-qty-btn:active { transform: scale(.92); }
.wyhs-qty-val {
    min-width: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    user-select: none;
}

/* Kalem toplamı */
.wyhs-ci-total {
    font-size: 16px;
    font-weight: 800;
    color: #1E2A4A;
    letter-spacing: -.3px;
    white-space: nowrap;
}

/* Sil butonu — her zaman görünür, hover'da kırmızı */
#wyhsCartListContainer .wyhs-remove-cart-item {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 1px solid #eef1f5;
    background: #fff;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    transition: all .16s ease;
    box-shadow: none;
    text-decoration: none;
}
#wyhsCartListContainer .wyhs-remove-cart-item svg { width: 13px; height: 13px; }
#wyhsCartListContainer .wyhs-remove-cart-item:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
#wyhsCartListContainer .wyhs-remove-cart-item:active { transform: scale(.9); }

/* Boş sepet */
.wyhs-cart-empty { text-align: center; padding: 46px 20px; }
.wyhs-cart-empty-ic {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f6f8fb;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wyhs-cart-empty h4 {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 800;
    color: #334155;
}
.wyhs-cart-empty p {
    margin: 0 auto;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 260px;
}

@media (max-width: 420px) {
    #wyhsCartListContainer .wyhs-cart-item { padding: 13px; gap: 11px; }
    .wyhs-ci-thumb { width: 62px; height: 62px; }
    .wyhs-ci-title { font-size: 13px; }
    .wyhs-ci-total { font-size: 15px; }
}

/* Tema (Flatsome) genel "button" kuralları sepet butonlarının ölçüsünü bozuyor;
   yalnızca sepet içindekiler için sıfırlıyoruz. */
#wyhsCartListContainer .wyhs-remove-cart-item,
#wyhsCartListContainer .wyhs-qty-btn {
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-size: 0 !important;
    margin: 0 !important;
    text-shadow: none !important;
}
#wyhsCartListContainer .wyhs-remove-cart-item {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
}
#wyhsCartListContainer .wyhs-qty-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
}
#wyhsCartListContainer .wyhs-remove-cart-item:focus,
#wyhsCartListContainer .wyhs-qty-btn:focus {
    outline: 2px solid rgba(242, 140, 30, .35);
    outline-offset: 1px;
}

/* SVG ikonlar satır tabanına oturup yukarı kayıyordu; blok yapıp tam ortalıyoruz. */
#wyhsCartListContainer .wyhs-qty-btn,
#wyhsCartListContainer .wyhs-remove-cart-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    vertical-align: middle;
}
#wyhsCartListContainer .wyhs-qty-btn svg,
#wyhsCartListContainer .wyhs-remove-cart-item svg {
    display: block;
    flex: 0 0 auto;
    vertical-align: middle;
    pointer-events: none; /* tıklama daima butona gitsin */
}
.wyhs-qty { line-height: 0; }
.wyhs-qty-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    line-height: 1;
}
