/* Tazedal Premium Slide-Out Side Cart Styles */

.tazedal-side-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100080;
    visibility: hidden;
    overscroll-behavior: none;
    transition: visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tazedal-side-cart-drawer.is-open {
    visibility: visible;
}

/* Background Overlay */
.tazedal-side-cart-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    touch-action: none;
}

.tazedal-side-cart-drawer.is-open .tazedal-side-cart-overlay {
    opacity: 1;
}

/* Drawer Container */
.tazedal-side-cart-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.tazedal-side-cart-drawer.is-open .tazedal-side-cart-container {
    transform: translateX(0);
}

/* Custom AJAX Loading Mask */
.tazedal-side-cart-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    transition: opacity var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-content-wrapper.loading-opacity {
    opacity: 0.55;
    pointer-events: none;
}

/* --- Header Section --- */
.tazedal-side-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--td-space-5, 1.25rem) var(--td-space-6, 1.5rem);
    border-bottom: 1px solid var(--td-border-light, #f0ece7);
    height: 72px;
}

.tazedal-side-cart-header .drawer-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: var(--td-text-lg, 1.125rem);
    font-weight: 700;
    color: var(--td-text-primary, #1a1a1a);
    margin: 0;
}

.tazedal-side-cart-header .drawer-count {
    color: var(--td-primary, #2e4a36);
    font-weight: 500;
    font-size: var(--td-text-md, 1rem);
    margin-left: 4px;
}

.tazedal-side-cart-header .drawer-close-btn {
    border: none;
    background: none;
    color: var(--td-text-secondary, #6b7280);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--td-radius-sm, 6px);
    transition: all var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-header .drawer-close-btn:hover {
    color: var(--td-primary, #2e4a36);
    background-color: var(--td-warm-base, #FAF7F2);
}

/* --- Free Shipping Progress Area --- */
.tazedal-side-cart-shipping-info {
    padding: 16px 24px;
    border-bottom: 1px solid var(--td-border-light, #f0ece7);
    background-color: var(--td-warm-light, #FFF9F3);
}

.tazedal-side-cart-shipping-info .shipping-msg {
    font-size: 13px;
    color: var(--td-text-primary, #1a1a1a);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.tazedal-side-cart-shipping-info .shipping-msg.success {
    color: var(--td-success, #10b981);
}

.tazedal-side-cart-shipping-info .free-shipping-progress {
    height: 6px;
    background-color: var(--td-border, #e8e4df);
    border-radius: var(--td-radius-full, 999px);
    overflow: hidden;
    position: relative;
}

.tazedal-side-cart-shipping-info .progress-bar-fill {
    height: 100%;
    background-color: var(--td-primary, #2e4a36);
    border-radius: var(--td-radius-full, 999px);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Scrollable List Section --- */
.tazedal-side-cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 74, 54, 0.2) transparent;
}

.tazedal-side-cart-items-wrapper::-webkit-scrollbar {
    width: 6px;
}

.tazedal-side-cart-items-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.tazedal-side-cart-items-wrapper::-webkit-scrollbar-thumb {
    background: rgba(46, 74, 54, 0.2);
    border-radius: var(--td-radius-full, 999px);
}

/* Cart Item Card */
.tazedal-side-cart-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding: 16px;
    border: 1px solid var(--td-border-light, #f0ece7);
    border-radius: 8px;
    background-color: #ffffff;
    margin-bottom: 12px;
    transition: border-color var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-item:hover {
    border-color: var(--td-border, #e8e4df);
}

/* Delete Item Button */
.tazedal-side-cart-item .remove-item-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    color: var(--td-text-light, #9ca3af);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-item .remove-item-btn:hover {
    color: var(--td-error, #ef4444);
}

/* Thumbnail */
.tazedal-side-cart-item .item-thumbnail {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.tazedal-side-cart-item .item-thumbnail img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: 1px solid var(--td-border-light, #f0ece7);
    background-color: var(--td-warm-base, #FAF7F2);
}

/* Details Panel */
.tazedal-side-cart-item .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 12px; /* Avoid overlap with remove icon */
}

.tazedal-side-cart-item .item-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--td-text-primary, #1a1a1a);
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.tazedal-side-cart-item .item-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-item .item-title a:hover {
    color: var(--td-primary, #2e4a36);
}

.tazedal-side-cart-item .item-origin {
    color: var(--td-accent, #c85805);
    font-weight: 700;
    font-size: 11px;
}

.tazedal-side-cart-item .item-meta {
    font-size: 11px;
    color: var(--td-text-secondary, #6b7280);
    margin-bottom: 6px;
    line-height: 1.4;
}

.tazedal-side-cart-item .item-meta .meta-row {
    margin-bottom: 2px;
}

.tazedal-side-cart-item .item-meta .meta-label {
    font-weight: 500;
}

.tazedal-side-cart-item .item-variations {
    font-style: italic;
    color: var(--td-text-light, #9ca3af);
}

/* Item Quantity & Price Action Row */
.tazedal-side-cart-item .item-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    gap: 12px;
}

.tazedal-side-cart-item .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #e2ddd5 !important;
    border-radius: 6px !important;
    background-color: #faf8f5 !important;
    padding: 0 !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 28px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.tazedal-side-cart-item .qty-btn {
    width: 24px !important;
    min-width: 24px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    color: #4a5568 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

.tazedal-side-cart-item .qty-btn:hover {
    background-color: #ffffff !important;
    color: var(--td-primary, #183321) !important;
}

.tazedal-side-cart-item .qty-btn:active {
    background-color: #ede8e0 !important;
}

.tazedal-side-cart-item input.qty {
    flex: 1 1 auto !important;
    width: 28px !important;
    min-width: 0 !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #ebe5dc !important;
    border-right: 1px solid #ebe5dc !important;
    background: #ffffff !important;
    text-align: center !important;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important; /* read-only */
    -moz-appearance: textfield !important;
    box-shadow: none !important;
}

.tazedal-side-cart-item input.qty::-webkit-outer-spin-button,
.tazedal-side-cart-item input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.tazedal-side-cart-item .item-price {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--td-primary, #183321);
    white-space: nowrap;
}

/* --- Empty Cart Styles --- */
.tazedal-side-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--td-space-12, 3rem) var(--td-space-4, 1rem);
    height: 100%;
}

.tazedal-side-cart-empty .empty-icon {
    color: var(--td-primary, #2e4a36);
    background-color: rgba(46, 74, 54, 0.05);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tazedal-side-cart-empty h3 {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--td-text-primary, #1a1a1a);
    margin: 0 0 10px 0;
}

.tazedal-side-cart-empty p {
    font-size: 13px;
    color: var(--td-text-secondary, #6b7280);
    margin: 0 0 24px 0;
    line-height: 1.5;
    max-width: 280px;
}

.tazedal-side-cart-empty .drawer-continue-btn {
    border-radius: var(--td-radius-full, 999px);
    padding: 10px 28px;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    background-color: var(--td-primary, #2e4a36);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 74, 54, 0.15);
    transition: all var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-empty .drawer-continue-btn:hover {
    background-color: var(--td-primary-dark, #1f3325);
    transform: translateY(-1px);
}

/* --- Footer Summary Section (Kompakt & Dönüşüm Odaklı) --- */
.tazedal-side-cart-footer {
    border-top: 1px solid var(--td-border-light, #f0ece7);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) 18px;
    background-color: #ffffff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.tazedal-side-cart-footer .summary-table {
    margin-bottom: 8px;
}

.tazedal-side-cart-footer .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5px;
    font-size: 12px;
    line-height: 1.25;
}

.tazedal-side-cart-footer .summary-label {
    color: var(--td-text-secondary, #6b7280);
    font-weight: 500;
}

.tazedal-side-cart-footer .summary-value {
    color: var(--td-text-primary, #1a1a1a);
    font-weight: 600;
}

.tazedal-side-cart-footer .summary-row.total-row {
    border-top: 1px dashed var(--td-border, #e8e4df);
    padding-top: 6px;
    margin-top: 6px;
    margin-bottom: 0;
}

.tazedal-side-cart-footer .summary-row.total-row .summary-label {
    color: var(--td-text-primary, #1a1a1a);
    font-weight: 700;
    font-size: 13.5px;
}

.tazedal-side-cart-footer .summary-row.total-row .summary-value {
    color: var(--td-primary, #2e4a36);
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 15.5px;
    font-weight: 800;
}

.tazedal-side-cart-footer .footer-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.tazedal-side-cart-footer .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--td-primary, #2e4a36);
    color: #ffffff;
    border: none;
    border-radius: var(--td-radius-full, 999px);
    height: 44px;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(46, 74, 54, 0.2);
    transition: all var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-footer .checkout-button:hover {
    background-color: var(--td-primary-dark, #1f3325);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 74, 54, 0.25);
}

.tazedal-side-cart-footer .drawer-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: var(--td-radius-full, 999px);
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-footer .drawer-whatsapp-btn:hover {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
    transform: translateY(-1px);
}

.tazedal-side-cart-footer .drawer-whatsapp-btn svg {
    flex-shrink: 0;
    color: #16a34a;
}

.tazedal-side-cart-footer .continue-shopping-btn {
    border: none;
    background: none;
    color: var(--td-text-secondary, #6b7280);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    align-self: center;
    padding: 2px 8px;
    line-height: 1.2;
    transition: color var(--td-transition-fast, 150ms) ease;
}

.tazedal-side-cart-footer .continue-shopping-btn:hover {
    color: var(--td-primary, #2e4a36);
}

.tazedal-side-cart-footer .footer-tagline {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 9px;
    font-weight: 700;
    color: var(--td-text-light, #9ca3af);
    text-align: center;
    letter-spacing: 0.08em;
    margin-top: 4px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .tazedal-side-cart-items-wrapper {
        padding: 14px 14px 18px 14px;
    }
    .tazedal-side-cart-item {
        padding: 12px;
        margin-bottom: 8px;
    }
}

/* --- Sepet Upsell Kartı & Çekmece İçi Pop-up Modal --- */
.tazedal-cart-upsell-card {
    background: linear-gradient(145deg, #fdfbf7 0%, #fff8ed 100%);
    border: 1.5px dashed #e2b87b;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 16px 0 6px 0;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(46, 74, 54, 0.05);
}

.tazedal-cart-upsell-card.is-tier-low_tier {
    background: linear-gradient(145deg, #f8faf8 0%, #f1f6f2 100%);
    border-color: #b7d1bf;
}

/* Standart Sepet Sayfası (/sepet) Uyumu */
.woocommerce-cart .tazedal-cart-upsell-card {
    margin: 24px 0;
    max-width: 650px;
    padding: 16px 20px;
}

.woocommerce-cart .tazedal-upsell-popup-modal {
    display: none !important;
}

.tazedal-cart-upsell-card .upsell-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.tazedal-cart-upsell-card .upsell-badge {
    display: inline-flex;
    align-items: center;
    background: #fff0eb;
    color: #c2410c;
    font-size: 10px;
    font-weight: 800;
    padding: 3.5px 9px;
    border-radius: 999px;
    margin-bottom: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid #fed7aa;
}

.tazedal-cart-upsell-card.is-tier-low_tier .upsell-badge {
    background: #e8f3ec;
    color: #1f4d31;
    border-color: #bbf7d0;
}

.tazedal-cart-upsell-card .upsell-cycle-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tazedal-cart-upsell-card .upsell-cycle-next-btn:hover {
    color: #2e4a36;
    border-color: #2e4a36;
    background: #f8fafc;
}

.tazedal-cart-upsell-card .upsell-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tazedal-cart-upsell-card .upsell-image {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eadecf;
    background: #ffffff;
}

.tazedal-cart-upsell-card .upsell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tazedal-cart-upsell-card .upsell-info {
    flex: 1;
    min-width: 0;
}

.tazedal-cart-upsell-card .upsell-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tazedal-cart-upsell-card .upsell-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tazedal-cart-upsell-card .upsell-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tazedal-cart-upsell-card .upsell-sale-price {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 800;
    color: #166534;
}

.tazedal-cart-upsell-card .upsell-regular-price {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}

.tazedal-cart-upsell-card .tazedal-upsell-add-btn {
    flex-shrink: 0;
    background: #2e4a36;
    color: #ffffff !important;
    border: none;
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tazedal-cart-upsell-card .tazedal-upsell-add-btn .btn-text {
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.tazedal-cart-upsell-card .tazedal-upsell-add-btn:hover {
    background: #1f3325;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(46, 74, 54, 0.2);
}

.tazedal-cart-upsell-card .tazedal-upsell-add-btn:disabled,
.tazedal-cart-upsell-card .tazedal-upsell-add-btn.loading {
    opacity: 0.65;
    pointer-events: none;
    transform: none;
}

/* --- Modern Yatay Mobil Sticky Üstü & Masaüstü Floating Öneri Barı (#tazedal-upsell-popup-modal) --- */
.tazedal-upsell-popup-modal {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    margin: 0 auto;
    max-width: 480px;
    width: auto;
    z-index: 985;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s ease,
                visibility 0.22s ease,
                bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.tazedal-upsell-popup-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Yan sepet çekmecesi açıkken öneri barını gizle */
body.has-open-side-cart .tazedal-upsell-popup-modal,
.tazedal-side-cart-drawer.is-open ~ .tazedal-upsell-popup-modal {
    display: none !important;
}

/* Mobilde Sticky Sepete Ekle Butonu aktifken hemen üstüne konumlan */
body.has-sticky-cart-bar-visible .tazedal-upsell-popup-modal {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 8px);
}

/* Mobilde alt menü (bottom nav) olan sayfalarda menünün üstüne otur */
@media (max-width: 991px) {
    body.has-bottom-nav:not(.has-sticky-cart-bar-visible) .tazedal-upsell-popup-modal {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 8px);
    }
}

/* Masaüstü (ekran >= 992px) */
@media (min-width: 992px) {
    .tazedal-upsell-popup-modal {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 420px;
        max-width: 420px;
    }
}

/* Yatay Bar Konteyneri */
.tazedal-upsell-popup-modal .upsell-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(46, 74, 54, 0.15);
    border-radius: 14px;
    padding: 6px 10px;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.16), 0 3px 8px -2px rgba(15, 23, 42, 0.06);
    pointer-events: auto;
    box-sizing: border-box;
}

.tazedal-upsell-popup-modal.is-tier-low_tier .upsell-bar-container {
    border-color: rgba(31, 77, 49, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 248, 0.98) 100%);
}

.tazedal-upsell-popup-modal.is-tier-discounted .upsell-bar-container {
    border-color: rgba(226, 184, 123, 0.55);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 246, 0.98) 100%);
}

/* Sol Blok: Görsel + Başlık/Fiyat */
.tazedal-upsell-popup-modal .upsell-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.tazedal-upsell-popup-modal .upsell-bar-img-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tazedal-upsell-popup-modal .upsell-bar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tazedal-upsell-popup-modal .upsell-bar-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tazedal-upsell-popup-modal .upsell-bar-top-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #1f4d31;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tazedal-upsell-popup-modal .upsell-bar-top-pill strong {
    font-weight: 800;
    color: #0f172a;
    margin: 0 2px;
}

.tazedal-upsell-popup-modal.is-tier-discounted .upsell-bar-top-pill {
    color: #c2410c;
}

.tazedal-upsell-popup-modal .upsell-bar-product-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.tazedal-upsell-popup-modal .upsell-bar-product-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-width: 155px;
}

@media (min-width: 400px) {
    .tazedal-upsell-popup-modal .upsell-bar-product-title {
        max-width: 180px;
    }
}

.tazedal-upsell-popup-modal .upsell-bar-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    flex-shrink: 0;
}

.tazedal-upsell-popup-modal .upsell-bar-regular-price {
    font-size: 10.5px;
    color: #94a3b8;
    text-decoration: line-through;
}

.tazedal-upsell-popup-modal .upsell-bar-sale-price {
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    text-decoration: none;
}

/* Sağ Blok: Butonlar */
.tazedal-upsell-popup-modal .upsell-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.tazedal-upsell-popup-modal .upsell-bar-add-btn {
    height: 32px;
    padding: 0 11px;
    background: #1f4d31;
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(31, 77, 49, 0.25);
}

.tazedal-upsell-popup-modal .upsell-bar-add-btn .btn-text {
    color: #ffffff !important;
}

.tazedal-upsell-popup-modal .upsell-bar-add-btn:hover {
    background: #163824;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 77, 49, 0.35);
}

.tazedal-upsell-popup-modal .upsell-bar-add-btn:active {
    transform: translateY(0);
}

.tazedal-upsell-popup-modal .upsell-bar-add-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.tazedal-upsell-popup-modal .upsell-bar-switch-btn,
.tazedal-upsell-popup-modal .upsell-bar-close-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.tazedal-upsell-popup-modal .upsell-bar-switch-btn:hover,
.tazedal-upsell-popup-modal .upsell-bar-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sepetteki %10 Upsell İndirimli Ürün Fiyat Etiketi */
.tazedal-upsell-cart-price del {
    color: #94a3b8;
    font-size: 12px;
    margin-right: 4px;
}

.tazedal-upsell-cart-price ins {
    color: #15803d !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.tazedal-upsell-cart-pill {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 1.5px 7px;
    font-size: 10px;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- Avokado Kampanyası Hediye Ürün Görünümü --- */
.tazedal-side-cart-item.is-promo-gift-item {
    background: linear-gradient(135deg, #f8faf5 0%, #f1f8e9 100%);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #dcedc8;
    box-shadow: 0 2px 8px rgba(46, 74, 54, 0.04);
}

.tazedal-side-cart-item.is-promo-gift-item .item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.tazedal-side-cart-item.is-promo-gift-item .item-title {
    margin-bottom: 0;
}

.tazedal-side-cart-item.is-promo-gift-item .item-action-row {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tazedal-side-cart-item .gift-item-status .gift-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    color: #2e5a36;
    border: 1px solid #c5e1a5;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(22, 101, 52, 0.05);
}

.tazedal-side-cart-item .gift-free-price .free-text {
    color: #15803d !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    background: #dcfce7;
    padding: 3px 9px;
    border-radius: 6px;
}

.tazedal-promo-gift-pill {
    display: inline-flex;
    align-items: center;
    background-color: #ecfccb;
    color: #365314;
    border: 1px solid #bef264;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.tazedal-promo-gift-price del {
    color: #94a3b8;
    font-size: 12px;
    margin-right: 4px;
}

.tazedal-promo-gift-price ins,
.tazedal-promo-gift-subtotal {
    color: #16a34a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.tazedal-gift-qty-fixed {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 3px 9px;
    border-radius: 6px;
}

