/* ==========================================================================
   DONANIM CLUB - OEM MODULAR PC BUILDER THEME ALIGNED STYLESHEET
   Clean Minimalist Ozy / ikas Design System:
   Colors: #111111 (Ink), #FFFFFF (Cards), #F8FAFC (Canvas), #18181B (Accent), #E2E8F0 (Borders)
   Typography: 'Inter', sans-serif, strictly sharp/subtle border-radius, no bubbly pills
   ========================================================================== */

:root {
    --dcb-ink: #111111;
    --dcb-orange: #18181B;
    --dcb-orange-hover: #27272A;
    --dcb-border: #E2E8F0;
    --dcb-border-dark: #CBD5E1;
    --dcb-text-dark: #111111;
    --dcb-text-muted: #64748B;
    --dcb-bg-gray: #F8FAFC;
    --dcb-radius: 2px;
    --dcb-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hide iyzico floating buyer protection badge on builder pages */
#iyzi-root,
.iyzi-buyer-protection,
.iyzico-overlay,
.iyzi-overlay,
[class*="iyzi-badge"],
[class*="iyzi-overlay"],
[id*="iyzi-badge"],
[id*="iyzico-overlay"],
.iyzico-dropdown,
.iyzico-badge {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
}

.dcb-builder-wrapper {
    font-family: var(--dcb-font) !important;
    color: var(--dcb-text-dark);
    max-width: 1440px;
    margin: 30px auto 60px auto;
    padding: 0 24px 100px 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   TOP ACTION BUTTONS (PDF, Paylaş, Listeye Ekle)
   ========================================================================== */
.dcb-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.dcb-top-actions .dcb-action-btn {
    background: #FFFFFF;
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dcb-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dcb-top-actions .dcb-action-btn:hover {
    background: var(--dcb-ink);
    border-color: var(--dcb-ink);
    color: #FFFFFF !important;
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */
.dcb-builder-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 1024px) {
    .dcb-builder-grid {
        grid-template-columns: 1fr;
    }
    .dcb-left-col {
        position: static !important;
        box-shadow: none;
    }
}

/* ==========================================================================
   LEFT COLUMN: Product Card, Image & Buy Box
   ========================================================================== */
.dcb-left-col {
    position: sticky;
    top: 94px;
    background: #FFFFFF;
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.dcb-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dcb-oem-code {
    color: var(--dcb-text-muted);
    font-weight: 500;
}

.dcb-oem-code strong {
    color: var(--dcb-ink);
    font-weight: 800;
}

.dcb-free-shipping {
    color: #16A34A;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dcb-free-shipping .dcb-icon {
    font-size: 8px;
}

.dcb-system-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--dcb-ink);
    margin: 8px 0 6px 0;
    letter-spacing: -0.2px;
}

.dcb-img-disclaimer {
    font-size: 11px;
    font-weight: 600;
    color: var(--dcb-text-muted);
    text-align: right;
    margin-bottom: 16px;
}

.dcb-main-image-wrap {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    margin-bottom: 24px;
    border: 1px solid #F1F5F9;
    border-radius: var(--dcb-radius);
    padding: 16px;
    box-sizing: border-box;
}

.dcb-main-img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

/* Neutral Corporate Disclaimer Box */
.dcb-legal-disclaimer {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    background: var(--dcb-bg-gray);
    border: 1px solid var(--dcb-border);
    border-left: 3px solid var(--dcb-ink);
    padding: 12px 16px;
    border-radius: var(--dcb-radius);
    margin-bottom: 20px;
}

.dcb-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.dcb-brand-pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #1E293B;
    background: #F1F5F9;
    border: 1px solid var(--dcb-border);
    padding: 4px 10px;
    border-radius: var(--dcb-radius);
}

/* Sticky Buy Box (Price & Add to Cart) */
.dcb-sticky-buy-box {
    border-top: 2px solid var(--dcb-ink);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dcb-total-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--dcb-ink);
    line-height: 1;
    letter-spacing: -0.5px;
}

.dcb-total-price small {
    font-size: 16px;
    font-weight: 700;
}

.dcb-vat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--dcb-text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dcb-buy-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dcb-btn-installments {
    background: var(--dcb-bg-gray);
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dcb-ink);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dcb-btn-installments:hover {
    background: var(--dcb-ink);
    border-color: var(--dcb-ink);
    color: #FFFFFF;
}

.dcb-btn-add-cart {
    background: var(--dcb-ink);
    color: #FFFFFF;
    border: none;
    border-radius: var(--dcb-radius);
    padding: 15px 32px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.dcb-btn-add-cart:hover {
    background: var(--dcb-orange);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.dcb-btn-add-cart:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
   RIGHT COLUMN: Category Jump Tabs & Assembly Selector
   ========================================================================== */
.dcb-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    background: #FFFFFF;
    padding: 16px;
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
}

.dcb-cat-jump-btn {
    background: #FFFFFF;
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dcb-ink);
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.dcb-cat-jump-btn:hover {
    background: var(--dcb-ink);
    border-color: var(--dcb-ink);
    color: #FFFFFF !important;
}

/* Assembly Cards */
.dcb-assembly-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .dcb-assembly-cards {
        grid-template-columns: 1fr;
    }
}

.dcb-assembly-card {
    background: #FFFFFF;
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dcb-assembly-card:hover {
    border-color: var(--dcb-border-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Assembly Card Selected State (Clean Monochrome Theme Aligned) */
.dcb-assembly-card.is-selected {
    border: 2px solid var(--dcb-ink);
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.dcb-assembly-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dcb-ink);
    line-height: 1.4;
}

.dcb-assembly-badge {
    background: #F1F5F9;
    color: var(--dcb-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--dcb-radius);
    border: 1px solid var(--dcb-border);
    transition: all 0.15s ease;
}

.dcb-assembly-card.is-selected .dcb-assembly-badge {
    background: var(--dcb-ink);
    border-color: var(--dcb-ink);
    color: #FFFFFF;
}

/* ==========================================================================
   COMPONENT SLOTS & OPTION CARDS (Clean Minimalist E-Commerce)
   ========================================================================== */
.dcb-slot-card {
    background: #FFFFFF;
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.dcb-slot-header {
    background: #FFFFFF;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--dcb-ink);
}

.dcb-slot-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: var(--dcb-ink);
}

.dcb-view-switch {
    font-size: 14px;
    color: var(--dcb-text-muted);
}

.dcb-options-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .dcb-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Option Card */
.dcb-option-card {
    border: 1px solid var(--dcb-border);
    border-radius: var(--dcb-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    background: #FFFFFF;
    position: relative;
    transition: all 0.2s ease;
}

.dcb-option-card:hover {
    border-color: var(--dcb-border-dark);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* Selected State: Pure Deep Ink Border, No Garish Peach Background */
.dcb-option-card.is-selected {
    border: 2px solid var(--dcb-ink);
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.dcb-card-thumb-wrap {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: var(--dcb-radius);
    padding: 4px;
    box-sizing: border-box;
}

.dcb-card-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dcb-card-no-thumb {
    font-size: 11px;
    font-weight: 800;
    color: #94A3B8;
}

.dcb-card-body {
    flex-grow: 1;
    padding-right: 60px; /* Room for selected badge */
}

.dcb-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--dcb-ink);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Diff Display */
.dcb-card-diff {
    font-size: 12px;
    font-weight: 700;
    color: var(--dcb-text-muted);
}

.dcb-card-diff strong {
    font-weight: 800;
    color: var(--dcb-ink);
}

/* If zero diff (+0,00 TL), show subtle neutral */
.dcb-option-card[data-price-diff="0"] .dcb-card-diff strong,
.dcb-option-card[data-price-diff="0.00"] .dcb-card-diff strong {
    color: #16A34A;
}

.dcb-card-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--dcb-text-muted);
    text-decoration: underline;
    margin-top: 4px;
}

.dcb-card-link:hover {
    color: var(--dcb-orange);
}

/* Selected Badge (Clean Horizontal Top-Right Badge) */
.dcb-card-selected-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
}

.dcb-option-card.is-selected .dcb-card-selected-ribbon {
    display: flex;
    background: var(--dcb-ink);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--dcb-radius);
}

.dcb-ribbon-text {
    writing-mode: horizontal-tb;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FLOATING BOTTOM BAR (Persistent Price & Buy Action)
   ========================================================================== */
.dcb-floating-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 2px solid var(--dcb-ink);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9998;
    padding: 12px 24px;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.dcb-floating-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dcb-floating-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dcb-floating-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dcb-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.dcb-floating-spec {
    font-size: 11px;
    color: var(--dcb-text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.dcb-floating-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.dcb-floating-price {
    text-align: right;
}

.dcb-floating-price-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--dcb-ink);
    letter-spacing: -0.5px;
}

.dcb-floating-price small {
    font-size: 13px;
    font-weight: 700;
}

.dcb-floating-vat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--dcb-text-muted);
    text-transform: uppercase;
}

.dcb-btn-floating-inst {
    background: var(--dcb-bg-gray);
    border: 1px solid var(--dcb-border);
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--dcb-radius);
    transition: all 0.2s ease;
}

.dcb-btn-floating-inst:hover {
    background: var(--dcb-ink);
    color: #FFFFFF;
    border-color: var(--dcb-ink);
}

.dcb-btn-floating-cart {
    background: var(--dcb-ink);
    color: #FFFFFF;
    border: none;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: var(--dcb-radius);
    transition: background 0.2s ease;
}

.dcb-btn-floating-cart:hover {
    background: var(--dcb-orange);
}

@media (max-width: 768px) {
    .dcb-floating-info {
        display: none;
    }
    .dcb-floating-inner {
        justify-content: space-between;
    }
    .dcb-floating-actions {
        width: 100%;
        justify-content: space-between;
    }
    .dcb-btn-floating-inst {
        padding: 8px 10px;
        font-size: 10px;
    }
    .dcb-btn-floating-cart {
        padding: 10px 16px;
        font-size: 12px;
    }
    .dcb-floating-price-val {
        font-size: 17px;
    }
}

/* ==========================================================================
   INTERACTIVE MODALS (Installments & Cart Success)
   ========================================================================== */
.dcb-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dcb-modal-backdrop.is-open {
    display: flex;
}

.dcb-modal-box {
    background: #FFFFFF;
    max-width: 580px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: dcbModalFadeIn 0.2s ease-out;
}

@keyframes dcbModalFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.dcb-modal-header {
    background: var(--dcb-ink);
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dcb-modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.dcb-modal-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dcb-modal-body {
    padding: 24px;
}

.dcb-inst-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--dcb-border);
}

.dcb-inst-product-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dcb-ink);
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dcb-inst-current-price {
    font-size: 14px;
    color: var(--dcb-text-muted);
}

.dcb-inst-current-price strong {
    font-size: 16px;
    color: var(--dcb-ink);
}

.dcb-inst-table-wrap {
    margin-bottom: 20px;
    border: 1px solid var(--dcb-border);
    border-radius: 2px;
    overflow: hidden;
}

.dcb-inst-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dcb-inst-table th {
    background: #F8FAFC;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dcb-text-muted);
    border-bottom: 1px solid var(--dcb-border);
}

.dcb-inst-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--dcb-ink);
}

.dcb-inst-table tr:last-child td {
    border-bottom: none;
}

.dcb-inst-monthly {
    font-weight: 700;
    color: var(--dcb-orange) !important;
}

.dcb-inst-total {
    font-weight: 600;
}

.dcb-inst-cards-note {
    background: #F8FAFC;
    border: 1px solid var(--dcb-border);
    padding: 12px 14px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dcb-ink);
}

.dcb-inst-cards-note p {
    margin: 0 0 6px 0;
}

.dcb-inst-footnote {
    font-size: 11px;
    color: var(--dcb-text-muted);
    margin: 0 !important;
}

/* Cart Success Modal */
.dcb-cart-modal-box {
    text-align: center;
    padding: 36px 28px;
    max-width: 460px;
}

.dcb-cart-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #16A34A;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 18px;
}

.dcb-cart-success-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dcb-ink);
    margin: 0 0 8px 0;
}

.dcb-cart-success-desc {
    font-size: 13px;
    color: var(--dcb-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.dcb-cart-success-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--dcb-ink);
    margin-bottom: 26px;
}

.dcb-cart-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dcb-btn-continue {
    background: #FFFFFF;
    color: var(--dcb-ink);
    border: 1px solid var(--dcb-border);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.dcb-btn-continue:hover {
    background: #F1F5F9;
    border-color: var(--dcb-ink);
}

.dcb-btn-go-checkout {
    background: var(--dcb-ink);
    color: #FFFFFF !important;
    border: none;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
}

.dcb-btn-go-checkout:hover {
    background: var(--dcb-orange);
}
