/* =====================================================================
   OpenCart uyumluluk katmanı
   Bootstrap CSS yüklenmez; OpenCart şablonlarının ve ödeme eklentilerinin
   kullandığı sınıflar burada HotLife görünümüyle karşılanır.
   hotlife.css'ten sonra yüklenir.
   ===================================================================== */

/* ---------- Bildirimler (#alert) ---------- */
#alert { position: fixed; top: 20px; right: 20px; z-index: 210; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
#alert .alert { pointer-events: auto; margin: 0; background: rgba(29, 21, 24, .97); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: toastIn .5s var(--ease); }
#alert .alert a, .alert a { color: var(--gold-1); text-decoration: underline; }
.alert { position: relative; }
.alert-dismissible { padding-right: 48px; }
.btn-close { position: absolute; top: 50%; right: 12px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; opacity: .7; transition: opacity .2s, background .2s; }
.btn-close::before, .btn-close::after { content: ''; position: absolute; left: 7px; right: 7px; top: 13px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }
.btn-close:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.fade { transition: opacity .25s linear; }
.fade:not(.show) { opacity: 0; }

/* ---------- Yardımcı sınıflar ---------- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-block { display: inline-block !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 8px !important; }
.h-100 { height: 100% !important; }
.border { border: 1px solid var(--line-soft) !important; background: var(--surface); }
.rounded { border-radius: var(--radius) !important; }
.p-3 { padding: 22px !important; }
.p-4 { padding: 28px !important; }
.pt-3 { padding-top: 16px !important; }
.text-end { text-align: right; }
.text-start { text-align: left; }
.text-center { text-align: center; }
.text-danger { color: var(--err) !important; }
.text-success { color: var(--ok) !important; }
.text-muted { color: var(--muted) !important; }
.text-light { color: #fff !important; }
.text-wrap { white-space: normal; }
.float-end { float: right; }
.float-start { float: left; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 16px !important; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100% !important; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.list-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.img-fluid { max-width: 100%; height: auto; }
.img-thumbnail { border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); padding: 3px; }
.clearfix::after { content: ''; display: table; clear: both; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }
.price-new { color: var(--gold-1); font-weight: 600; }
.price-old { color: var(--muted); text-decoration: line-through; margin-left: 6px; font-size: .9em; }
.price-tax { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Izgara ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding: 0 10px; }
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.row-cols-1 > * { flex: 0 0 auto; width: 100%; }
@media (min-width: 576px) {
  .col-sm { flex: 1 0 0%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.6667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.6667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.3333%; }
  .offset-sm-2 { margin-left: 16.6667%; }
  .row-cols-sm-2 > * { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 768px) {
  .col-md { flex: 1 0 0%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.3333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.6667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .row-cols-md-2 > * { flex: 0 0 auto; width: 50%; }
  .row-cols-md-3 > * { flex: 0 0 auto; width: 33.3333%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .row-cols-lg-3 > * { flex: 0 0 auto; width: 33.3333%; }
  .row-cols-lg-4 > * { flex: 0 0 auto; width: 25%; }
}

/* ---------- Formlar ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font: 600 22px/1.2 var(--serif); margin-bottom: 18px; padding: 0; width: 100%; }
.form-label, .col-form-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 7px; }
.col-form-label { padding-top: 13px; }
.required > .form-label::after, .required > .col-form-label::after { content: ' *'; color: var(--pink); }
.form-control, .form-select {
  display: block; width: 100%; padding: 13px 15px; border-radius: 12px;
  background-color: var(--bg); border: 1px solid var(--line-soft); color: var(--text);
  outline: none; transition: border-color .25s, box-shadow .25s; font: inherit;
}
.form-select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d9ab4f' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.form-select option { background: var(--surface); color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 171, 79, .12); }
.form-control::placeholder { color: rgba(245, 237, 228, .35); }
.form-control[readonly] { opacity: .85; }
.form-control:disabled, .form-select:disabled { opacity: .55; }
textarea.form-control { min-height: 90px; resize: vertical; }
.form-text { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-control.is-invalid, .form-select.is-invalid, .is-invalid .form-control, .is-invalid .form-select { border-color: var(--err) !important; }
.invalid-feedback { display: none; color: var(--err); font-size: 12.5px; margin-top: 6px; }
.form-check { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; padding: 0; }
.form-check-inline { display: inline-flex; margin-right: 18px; }
.form-check-input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: all .25s; }
.form-check-input[type=radio] { border-radius: 50%; }
.form-check-input:checked { background: var(--grad-gold); border-color: var(--gold); }
.form-check-input[type=checkbox]:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #1c1206; border-top: 0; border-right: 0; transform: rotate(-45deg); margin-top: -2px; }
.form-check-input[type=radio]:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1c1206; }
.form-check-input.is-invalid { border-color: var(--err); }
.form-check-label { cursor: pointer; font-size: 14px; }
.form-check-label a { color: var(--gold-1); text-decoration: underline; }
.form-switch, .form-check-reverse { flex-direction: row-reverse; justify-content: flex-end; }
.form-switch .form-check-input { position: relative; width: 40px; height: 22px; border-radius: 11px; display: block; }
.form-switch .form-check-input::after,
.form-switch .form-check-input[type=checkbox]:checked::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; margin: 0; border: 0; border-radius: 50%; background: var(--muted); transform: none; transition: transform .25s var(--ease), background .25s; }
.form-switch .form-check-input[type=checkbox]:checked::after { transform: translateX(18px); background: #1c1206; }
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control, .input-group > .form-select { flex: 1 1 auto; width: 1%; min-width: 0; border-radius: 0; }
.input-group > :first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.input-group > :last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.input-group > .btn { border-radius: 0; }
.input-group > .btn:last-child { border-radius: 0 12px 12px 0; }
.input-group-text { display: flex; align-items: center; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- OpenCart buton sınıfları ---------- */
.btn-primary { color: #1c1206; background: var(--grad-gold); background-size: 200% auto; box-shadow: 0 10px 30px rgba(217, 171, 79, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background-position: right center; transform: translateY(-2px); }
.btn-light, .btn-secondary, .btn-default, .btn-outline-secondary, .btn-outline-primary { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); }
.btn-light:hover, .btn-secondary:hover, .btn-default:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover { border-color: var(--gold); color: var(--gold-1); }
.btn-danger { background: rgba(255, 77, 109, .12); color: #ffb3c1; border: 1px solid rgba(255, 77, 109, .35); }
.btn-warning { background: rgba(217, 171, 79, .15); color: var(--gold-1); border: 1px solid var(--line); }
.btn-success { background: #1fae5b; color: #fff; }
.btn-info { background: rgba(255, 255, 255, .08); border: 1px solid var(--line-soft); }
.btn-link { color: var(--gold-1); padding: 0; text-transform: none; letter-spacing: 0; text-decoration: underline; }
.btn-group { display: inline-flex; gap: 8px; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn .fa-solid, .btn .fa-regular { font-size: 14px; }

/* ---------- Tablolar ---------- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table thead th, .table thead td { font: 600 11.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.table-bordered { border: 1px solid var(--line-soft); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table-hover tbody tr:hover { background: rgba(217, 171, 79, .05); }
.table .text-end { text-align: right; }
.table .text-center { text-align: center; }
.table tfoot td { color: var(--muted); }

/* ---------- Kart, liste grubu ---------- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.card-body { padding: 20px; }
.list-group { list-style: none; padding: 0; margin: 0 0 20px; border-radius: 16px; border: 1px solid var(--line-soft); overflow: hidden; }
.list-group-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface); transition: background .2s, color .2s; font-size: 14px; }
.list-group-item:last-child { border-bottom: 0; }
a.list-group-item:hover, .list-group-item.active { background: rgba(217, 171, 79, .08); color: var(--gold-1); }

/* ---------- Konum, sayfalama, sekmeler ---------- */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-size: 12.5px; color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 8px; }
.breadcrumb a:hover { color: var(--gold-1); }
ul.pagination { list-style: none; padding: 0; margin: 0; }
.pagination .page-link { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-soft); font-weight: 600; font-size: 14px; transition: all .25s; }
.pagination .page-link:hover { border-color: var(--gold); color: var(--gold-1); }
.pagination .page-item.active .page-link { background: var(--grad-gold); color: #1c1206; border-color: transparent; }
.nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav-tabs { border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.nav-link { display: block; padding: 12px 18px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-link.active, .nav-link:hover { color: var(--gold-1); border-bottom-color: var(--gold); }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

/* ---------- Bootstrap modalı (sözleşme metinleri vb.) ---------- */
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; padding: 16px; }
.modal-dialog { position: relative; width: auto; max-width: 760px; margin: 6vh auto; transform: translateY(-20px); transition: transform .3s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.modal-content { background: linear-gradient(180deg, #1a1215, #0e0a0b); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.modal-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-header .btn-close { position: relative; top: auto; right: auto; margin: 0; flex-shrink: 0; }
.modal-title { font: 600 22px/1.2 var(--serif); margin: 0; }
.modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; color: rgba(245, 237, 228, .85); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-soft); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(5, 3, 4, .78); backdrop-filter: blur(6px); }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 1; }
body.modal-open { overflow: hidden; }

/* ---------- Açılır menü ---------- */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; min-width: 210px; padding: 8px; margin: 6px 0 0; list-style: none; background: rgba(21, 16, 18, .98); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dropdown-menu.show { display: block; }
.dropdown-menu-end, .dropdown-menu-right { right: 0; left: auto; }
.dropdown-item { display: block; width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; text-align: left; }
.dropdown-item:hover { background: rgba(217, 171, 79, .08); color: var(--gold-1); }
.dropdown-header { padding: 8px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* ---------- Özel şablonu olmayan OpenCart sayfaları ---------- */
#main > .container { padding-top: 40px; padding-bottom: 90px; }
#main > .container h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 24px; }
#main > .container h2 { font-size: 26px; }
#main > .container h3 { font-size: 21px; }
#main > .container #content a:not(.btn):not(.list-group-item):not(.dropdown-item):not(.nav-link):not(.page-link):not(.p-media):not(.p-cat) { color: var(--gold-1); }
#column-left, #column-right { flex: 0 0 280px; max-width: 280px; }
#content { min-width: 0; }
#product-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; margin: 0 0 30px; }
#product-list > * { width: auto; padding: 0; }
.rating .fa-stack { width: 1em; height: 1em; line-height: 1em; color: var(--gold); }

@media (max-width: 980px) {
  #column-left, #column-right { flex-basis: 100%; max-width: 100%; }
  #product-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  #product-list { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  #main > .container { padding-top: 28px; padding-bottom: 60px; }
}

/* =====================================================================
   HotLife: OpenCart akışları için ek bileşenler
   ===================================================================== */

/* Form alanı hataları (OpenCart JS #input-xxx'e is-invalid ekler) */
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select,
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: var(--err); }
.field .invalid-feedback { margin-top: 0; }
.field select { width: 100%; }

/* Liste sayfası */
.page-desc { max-width: 720px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.page-desc p:last-child { margin-bottom: 0; }
.shop-bar select { min-width: 220px; }

/* Ödeme sayfası */
.checkout-login { margin: -8px 0 18px; }
.checkout-login a { color: var(--gold-1); text-decoration: underline; }
.checkout-wait { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.checkout-comment { margin-top: 18px; }
.checkout-agree { margin-top: 16px; }
.checkout-hint { margin-top: 10px !important; }
.form-card.is-done { border-color: rgba(60, 207, 142, .35); }
.form-card.is-done > h3 .step-dot { background: var(--ok); color: #06140d; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: 20px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 10px 18px; border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.seg-opt input:checked + span { background: var(--grad-gold); color: #1c1206; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#form-register > .check, #form-register > #password .check { margin: 4px 0 18px; }
#button-register { margin-top: 8px; }
.address-options { margin-bottom: 14px; }
.address-options .pay-box small { line-height: 1.5; }
#form-shipping-address { margin-top: 18px; }
.pay-opt { position: relative; }
.pay-box b { line-height: 1.35; }
.bank-note { margin: 14px 0 4px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(217, 171, 79, .05); font-size: 13px; }
.bank-note .bank-info { margin: 10px 0; padding: 12px; font-size: 13px; }
.bank-info.is-html { white-space: normal; }
#checkout-confirm .mini-cart.compact { max-height: 320px; overflow-y: auto; }
#checkout-payment { margin-top: 16px; }
#checkout-payment .btn { margin-top: 0; }

/* Sepet */
.cart-modules { margin-top: 10px; display: grid; gap: 14px; }
.cart-modules .card, .cart-modules .accordion-item { margin: 0; }
.cart-row .qty input { width: 44px; }

/* Giriş */
.login-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; max-width: 1000px; }
.login-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.login-side .btn { margin: 6px 0 16px; }
.login-guest { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.login-guest .ic { width: 16px; height: 16px; color: var(--gold); margin-top: 2px; }
@media (max-width: 860px) { .login-grid { grid-template-columns: 1fr; } }

/* Hesabım */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* Dar ekranda uzun buton yazıları kartı taşırmasın */
.btn { max-width: 100%; }
.bank-card .btn, .btn-wa { white-space: normal; text-align: center; line-height: 1.3; }

/* Sipariş takibi ve teşekkür */
.timeline.timeline-4 { grid-template-columns: repeat(4, 1fr); }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.history li { padding: 12px 16px; border-left: 2px solid var(--gold); background: var(--bg); border-radius: 0 12px 12px 0; }
.history small { display: block; color: var(--muted); font-size: 12px; }
.history p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.nf-tags { justify-content: center; }
.alert .ic { flex-shrink: 0; }

/* Ürün seçenekleri */
.opt span small { margin-left: 4px; font-weight: 500; color: var(--muted); }
.opt input[type=checkbox] + span { padding: 0 14px; }
.opt-group .invalid-feedback { margin-top: 8px; }
.opt-group.is-invalid .opt span { border-color: var(--err); }

@media (max-width: 680px) {
  .shop-bar { flex-wrap: wrap; }
  .shop-bar select { order: 3; flex: 1 1 100%; min-width: 0; }
  .seg { display: flex; }
  .seg-opt { flex: 1; text-align: center; }
  .seg-opt span { padding: 10px 8px; }
  .timeline.timeline-4 li { font-size: 10.5px; }
}
