        :root {
            --brand: #f27a1a;
            --brand-dark: #d96510;
            --brand-darker: #c05a0d;
            --brand-soft: #fff5ec;
            --brand-softer: #fffaf4;
            --brand-ring: rgba(242,122,26,0.16);

            --ink: #14152b;
            --ink-2: #2b2d44;
            --muted: #6b7280;
            --soft: #f6f7fa;
            --line: #ececec;
            --line-2: #f0f0f3;

            --ok: #16a34a;
            --ok-soft: #ecfdf5;
            --ok-line: #bbf7d0;
            --bad: #dc2626;
            --bad-soft: #fef2f2;
            --bad-line: #fecaca;

            --radius: 14px;
            --radius-lg: 20px;
            --shadow-sm: 0 1px 2px rgba(20,21,43,0.04), 0 2px 8px rgba(20,21,43,0.04);
            --shadow-md: 0 4px 16px rgba(20,21,43,0.06), 0 2px 6px rgba(20,21,43,0.04);
            --shadow-brand: 0 8px 24px rgba(242,122,26,0.28);
        }

        * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
        body {
            background: var(--soft);
            padding-top: 70px;
            font-family: 'Manrope', system-ui, -apple-system, sans-serif;
            color: var(--ink);
        }
        h1, h2, h3, h4, h5, .product-title, .similar-title {
            font-family: 'Bricolage Grotesque', serif;
            letter-spacing: -0.02em;
        }

        /* Breadcrumb */
        .breadcrumb {
            font-size: 0.82rem;
            background: transparent;
            padding: 0;
            margin: 0;
        }
        .breadcrumb-item a {
            color: var(--muted);
            text-decoration: none;
            transition: color .15s ease;
        }
        .breadcrumb-item a:hover { color: var(--brand); }
        .breadcrumb-item.active { color: var(--ink); font-weight: 600; }
        .breadcrumb-item + .breadcrumb-item::before {
            content: '›';
            color: #c8c9d3;
            padding: 0 .5rem;
        }

        /* === Image card === */
        .product-image-wrap { /* artık sticky değil — altında benzer ürünler kartları var */ }
        .product-img-card {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 32px;
            box-shadow: var(--shadow-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 420px;
            position: relative;
            overflow: hidden;
        }
        .product-img-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 20%, rgba(242,122,26,0.05), transparent 60%);
            pointer-events: none;
        }
        .product-img-card img {
            max-height: 380px;
            max-width: 100%;
            object-fit: contain;
            transition: transform .35s ease;
            position: relative;
            z-index: 1;
        }
        .product-img-card:hover img { transform: scale(1.03); }

        /* === Right info panel === */
        .product-info-card {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 32px;
            box-shadow: var(--shadow-sm);
        }

        .brand-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, #14152b 0%, #2b2d44 100%);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 5px 12px;
            border-radius: 999px;
            text-decoration: none;
            transition: all .15s ease;
        }
        .brand-badge:hover {
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(20,21,43,0.25);
        }

        .product-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.3;
            letter-spacing: -0.01em;
            margin: 12px 0 14px;
        }

        .meta-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 14px;
            margin-bottom: 0;
        }
        .stock-badge-ok, .stock-badge-out {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 0.78rem; font-weight: 700;
            padding: 5px 12px; border-radius: 999px;
            letter-spacing: 0.01em;
        }
        .stock-badge-ok {
            background: var(--ok-soft);
            color: var(--ok);
            border: 1px solid var(--ok-line);
        }
        .stock-badge-out {
            background: var(--bad-soft);
            color: var(--bad);
            border: 1px solid var(--bad-line);
        }
        .meta-stock-code {
            font-size: 0.78rem;
            color: var(--muted);
            font-weight: 600;
        }
        .meta-stock-code code {
            background: var(--soft);
            color: var(--ink-2);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.78rem;
            font-weight: 700;
            border: 1px solid var(--line);
            margin-left: 4px;
        }

        .divider {
            height: 1px;
            background: var(--line-2);
            margin: 22px 0;
            border: 0;
        }

        /* === Unit selector === */
        .selector-label {
            font-size: 0.74rem;
            font-weight: 700;
            color: var(--ink-2);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 10px;
        }
        .unit-cards-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }
        .unit-card {
            background: #fff;
            border: 2px solid var(--line);
            border-radius: var(--radius);
            padding: 16px 14px 14px;
            cursor: pointer;
            text-align: center;
            transition: all .18s ease;
            position: relative;
            user-select: none;
        }
        .unit-card:hover { border-color: #d8d9e0; transform: translateY(-1px); }
        .unit-card.selected {
            border-color: var(--brand);
            background: var(--brand-softer);
            box-shadow: 0 0 0 4px var(--brand-ring);
        }
        .unit-card-check {
            position: absolute;
            top: 10px; right: 10px;
            width: 22px; height: 22px;
            border-radius: 50%;
            background: var(--brand);
            color: #fff;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
        }
        .unit-card.selected .unit-card-check { display: inline-flex; }
        .unit-card-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--ink);
        }
        .unit-card-sub {
            font-size: 0.74rem;
            color: var(--muted);
            margin-top: 2px;
            margin-bottom: 10px;
        }
        .unit-card-price {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--ink);
            letter-spacing: -0.01em;
        }
        .unit-card.selected .unit-card-price { color: var(--brand-dark); }
        .unit-card-old {
            font-size: 0.78rem;
            color: #b3b3b3;
            text-decoration: line-through;
            font-weight: 600;
            margin-bottom: 2px;
        }
        .unit-card-per {
            font-size: 0.72rem;
            color: var(--muted);
            margin-top: 4px;
            font-weight: 500;
        }
        .unit-card-multi {
            display: inline-block;
            margin-top: 6px;
            font-size: 0.7rem;
            color: var(--ink-2);
            background: var(--soft);
            border: 1px solid var(--line);
            padding: 2px 8px;
            border-radius: 999px;
            font-weight: 600;
        }
        .unit-card.selected .unit-card-multi {
            background: #fff;
            border-color: var(--brand-ring);
            color: var(--brand-dark);
        }

        /* === Price block === */
        .price-block {
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px dashed var(--line);
        }
        .price-main {
            font-size: 2.4rem;
            font-weight: 800;
            color: var(--brand);
            line-height: 1;
            letter-spacing: -0.02em;
        }
        .price-note {
            font-size: 0.78rem;
            color: var(--muted);
            margin-top: 8px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .discount-chip {
            background: var(--ok-soft);
            color: var(--ok);
            border: 1px solid var(--ok-line);
            padding: 2px 9px;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }
        .price-old {
            font-size: 0.85rem;
            color: #999;
            text-decoration: line-through;
            margin-top: 4px;
        }

        /* === Action row === */
        .action-row {
            display: flex;
            align-items: stretch;
            gap: 10px;
            margin-top: 22px;
            flex-wrap: wrap;
        }
        .qty-stepper {
            display: inline-flex;
            align-items: center;
            background: #fff;
            border: 1.5px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            height: 54px;
        }
        .qty-stepper button {
            background: transparent;
            border: none;
            width: 42px;
            height: 100%;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--ink-2);
            cursor: pointer;
            transition: all .15s ease;
        }
        .qty-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
        .qty-stepper input {
            width: 56px;
            height: 100%;
            border: none;
            border-left: 1.5px solid var(--line);
            border-right: 1.5px solid var(--line);
            text-align: center;
            font-size: 1rem;
            font-weight: 700;
            color: var(--ink);
            background: #fff;
            -moz-appearance: textfield;
        }
        .qty-stepper input::-webkit-outer-spin-button,
        .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .qty-stepper input:focus { outline: none; }

        .btn-add-cart {
            flex: 1;
            min-width: 200px;
            background: linear-gradient(135deg, #f27a1a 0%, #d96510 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 0 26px;
            height: 54px;
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            transition: all .2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 12px rgba(242,122,26,0.22);
            cursor: pointer;
        }
        .btn-add-cart:hover {
            background: linear-gradient(135deg, #d96510 0%, #c05a0d 100%);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: var(--shadow-brand);
        }
        .btn-add-cart:active { transform: translateY(0); }
        .btn-add-cart.added {
            background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
            box-shadow: 0 4px 12px rgba(22,163,74,0.28) !important;
        }

        .btn-whatsapp {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #25D366;
            color: #fff;
            border-radius: 12px;
            padding: 0 18px;
            height: 54px;
            font-size: 0.88rem;
            font-weight: 700;
            text-decoration: none;
            transition: all .18s ease;
        }
        .btn-whatsapp:hover {
            background: #1ebe5d;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(37,211,102,0.28);
        }

        /* Campaign Badge */
        .campaign-badge {
            background-color: #ff0000;
            color: #ffffff;
            font-weight: 800;
            padding: 5px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            text-transform: uppercase;
            box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
            animation: pulse-red 2s infinite;
        }

        @keyframes pulse-red {
            0% { transform: scale(1); box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3); }
            50% { transform: scale(1.03); box-shadow: 0 6px 14px rgba(255, 0, 0, 0.5); }
            100% { transform: scale(1); box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3); }
        }

        .quota-highlight {
            color: #dc3545;
            background: #fff5f5;
            padding: 2px 8px;
            border-radius: 6px;
            border: 1px solid #ffc1c1;
            font-weight: 700;
        }

        /* === Info table === */
        .info-section-title {
            font-size: 0.74rem;
            font-weight: 700;
            color: var(--ink-2);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 12px;
        }
        .info-table { width: 100%; }
        .info-table tr { border-bottom: 1px solid var(--line-2); }
        .info-table tr:last-child { border-bottom: 0; }
        .info-table td { padding: 11px 0; font-size: 0.88rem; vertical-align: top; }
        .info-table td:first-child { color: var(--muted); width: 140px; font-weight: 500; }
        .info-table td:last-child { color: var(--ink); font-weight: 600; }
        .info-table code {
            background: var(--soft);
            padding: 3px 9px;
            border-radius: 6px;
            font-size: 0.82rem;
            border: 1px solid var(--line);
            color: var(--ink-2);
        }

        /* === Alerts === */
        .alert-login {
            background: linear-gradient(135deg, #fff8f2 0%, #fff3e8 100%);
            border: 1px solid #ffd9b5;
            border-radius: var(--radius);
            padding: 16px 18px;
            color: var(--ink);
            font-size: 0.92rem;
        }
        .alert-login a {
            color: var(--brand);
            font-weight: 700;
            text-decoration: none;
            border-bottom: 1.5px solid var(--brand);
        }
        .alert-out {
            background: var(--bad-soft);
            border: 1px solid var(--bad-line);
            border-radius: var(--radius);
            padding: 14px 18px;
            color: var(--bad);
            font-size: 0.92rem;
            font-weight: 600;
        }

        /* Back link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--muted);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.86rem;
            padding: 8px 14px;
            border-radius: 999px;
            transition: all .15s ease;
        }
        .back-link:hover { color: var(--brand); background: var(--brand-soft); }

        /* Image fallback note */
        #imgNote {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.72rem;
            color: var(--muted);
            background: #fff;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid var(--line);
            z-index: 2;
        }

        /* === Similar products — tablo görünümü (sepet tarzı) === */
        .similar-section {
            margin-top: 18px;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 16px 16px 14px;
            box-shadow: var(--shadow-sm);
        }
        /* Mobil için: benzer ürünler artık sepete-ekle'nin altında, full-width */
        .similar-section-bottom {
            margin-top: 24px;
        }
        .similar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 12px;
            padding: 0 4px;
        }
        .similar-title {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--ink);
            letter-spacing: -0.01em;
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }
        .similar-title i { color: var(--brand); }
        .similar-link {
            font-size: 0.76rem;
            color: var(--brand);
            text-decoration: none;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
        }
        .similar-link:hover { color: var(--brand-dark); }

        .similar-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
        }
        .similar-table thead th {
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            text-align: left;
            padding: 10px 10px;
            border-bottom: 1px solid var(--line);
            background: #fafafa;
        }
        .similar-table thead th:last-child { text-align: right; }
        .similar-table tbody tr {
            transition: background .15s ease;
            cursor: pointer;
        }
        .similar-table tbody tr:nth-child(even) { background: #fbfbfb; }
        .similar-table tbody tr:hover {
            background: #fff7f0;
        }
        .similar-table tbody tr:hover .similar-row-name { color: var(--brand); }
        .similar-table tbody td {
            padding: 10px 10px;
            border-bottom: 1px solid var(--line-2);
            vertical-align: middle;
        }
        .similar-table tbody tr:last-child td { border-bottom: none; }

        .similar-row-product {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }
        .similar-row-thumb {
            width: 42px;
            height: 42px;
            flex-shrink: 0;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
            overflow: hidden;
        }
        .similar-row-thumb img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .similar-row-text { min-width: 0; flex: 1; }
        .similar-row-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--ink);
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color .15s ease;
        }
        .similar-row-brand {
            font-size: 0.62rem;
            font-weight: 700;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1px;
        }
        .similar-row-price {
            text-align: right;
            white-space: nowrap;
            font-size: 0.88rem;
            font-weight: 800;
            color: var(--brand);
            letter-spacing: -0.01em;
        }
        .similar-row-price-locked {
            text-align: right;
            white-space: nowrap;
            font-size: 0.75rem;
            color: var(--muted);
            font-weight: 600;
        }

        /* Mobile */
        @media (max-width: 991.98px) {
            .product-image-wrap { position: static; margin-bottom: 10px; }
            .product-img-card { min-height: 320px; padding: 22px; }
            .product-info-card { padding: 22px; }
            .product-title { font-size: 1.25rem; }
            .price-main { font-size: 2rem; }
            .btn-add-cart { min-width: 0; }

            /* Mobil sıralama: GÖRSEL → BİLGİ/SEPETE EKLE → BENZER ÜRÜNLER
               .col-lg-5 görsel + benzer ürünleri tek kolonda tutuyordu; mobilde
               benzer ürünler bilgi kartından önce kalıyordu. display:contents ile
               sol kolonu "düzleştirip" çocuklarını row'un doğrudan çocukları
               yapıyoruz, ardından flex order ile yeniden sıralıyoruz. */
            .product-detail-row { display: flex; flex-direction: column; }
            .product-detail-row > .col-lg-5 { display: contents; }
            .product-detail-row .product-image-wrap { order: 1; }
            .product-detail-row > .col-lg-7 { order: 2; }
            .product-detail-row .similar-section { order: 3; margin-top: 14px; }
        }
