/* VSTAR teması – OpenCart 3 default temasının üzerine yazar */
:root { --vs-red: #d0201b; --vs-red-dark: #a8140f; --vs-dark: #1c1c1c; --vs-navy: #14213d; --vs-gray: #f3f3f3; --vs-text: #333; }
body { font-family: 'Rubik', Arial, sans-serif; color: var(--vs-text); font-size: 14px; background: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: 'Rubik', Arial, sans-serif; color: #111; }
a { color: #111; } a:hover, a:focus { color: var(--vs-red); }
.btn-primary { background: var(--vs-red); border-color: var(--vs-red); background-image: none; text-shadow: none; box-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { background: var(--vs-red-dark); border-color: var(--vs-red-dark); }
.breadcrumb { background: none; border: 0; padding: 12px 0; margin: 0 0 15px; font-size: 13px; }
.breadcrumb > li { text-shadow: none; }
.breadcrumb > li:after { display: none; }
.breadcrumb > li + li:before { content: "›"; padding: 0 6px; color: #999; }
#content { min-height: 300px; }

/* Üst şerit */
#vs-top { background: #fff; border-bottom: 1px solid #eee; font-size: 12px; }
#vs-top ul { text-align: center; margin: 0; padding: 7px 0; }
#vs-top li { padding: 0 12px; }
#vs-top a { color: #444; }

/* Header */
#vs-header { padding: 14px 0; background: #fff; }
.vs-head-row { display: flex; align-items: center; gap: 22px; }
#vs-header #logo { margin: 0; flex: 0 0 auto; }
#vs-header #logo img { height: 80px; width: auto; }
.vs-head-wa { font-weight: 700; color: #111; white-space: nowrap; font-size: 15px; }
.vs-head-wa .fa { color: #25d366; font-size: 22px; vertical-align: middle; margin-right: 4px; }
.vs-head-search { flex: 1 1 auto; }
#search { margin: 0; }
#search .input-lg { height: 44px; border-radius: 22px 0 0 22px; border: 1px solid #ddd; border-right: 0; font-size: 13px; box-shadow: none; }
#search .btn-lg { height: 44px; border-radius: 0 22px 22px 0; background: var(--vs-red); color: #fff; border: 0; text-shadow: none; padding: 0 20px; font-size: 15px; }
#search .btn-lg:hover { background: var(--vs-red-dark); }
.vs-head-account > a { color: #111; font-size: 13px; white-space: nowrap; }
.vs-head-account > a .fa { background: #111; color: #fff; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 6px; margin-right: 6px; }
.vs-head-cart { flex: 0 0 auto; }
#cart { margin: 0; }
#cart > .btn { background: var(--vs-red); color: #fff; border: 0; border-radius: 6px; height: 44px; padding: 0 16px; font-size: 13px; font-weight: 500; text-shadow: none; box-shadow: none; }
#cart > .btn:hover, #cart.open > .btn { background: var(--vs-red-dark); color: #fff; }
#cart .dropdown-menu { min-width: 360px; }

/* Menü */
#vs-menu { background: #fff; border-top: 1px solid #f0f0f0; border-bottom: 4px solid var(--vs-dark); box-shadow: 0 2px 0 var(--vs-red); margin-bottom: 0; }
#menu { background: none; border: 0; min-height: 46px; margin: 0; padding: 0; }
#menu .nav > li > a { color: #111; font-weight: 700; font-size: 14px; text-shadow: none; padding: 13px 18px; background: none; }
#menu .nav > li > a:hover, #menu .nav > li.open > a { background: var(--vs-gray); color: var(--vs-red); }
#menu .dropdown-menu { padding: 12px; border-radius: 0 0 6px 6px; }
#menu .dropdown-inner a { font-size: 13px; padding: 5px 12px; min-width: 150px; }
#menu .dropdown-inner li a:hover { background: var(--vs-red); color: #fff; }
#menu .see-all { font-weight: 700; }
#menu .see-all:hover { background: var(--vs-red); color: #fff; }
#menu #category { color: #111; font-weight: 700; text-shadow: none; }
#menu .btn-navbar { background: var(--vs-dark); border: 0; color: #fff; }

/* Slider */
.vs-slider { position: relative; overflow: hidden; background: #f5f5f5; margin-bottom: 25px; }
.vs-slides { display: flex; overflow: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.vs-slides::-webkit-scrollbar { display: none; }
.vs-slide { flex: 0 0 100%; scroll-snap-align: start; }
.vs-slide img { width: 100%; height: auto; display: block; }
.vs-prev, .vs-next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.35); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 40px; padding: 0; }
.vs-prev { left: 12px; } .vs-next { right: 12px; }
.vs-prev:hover, .vs-next:hover { background: var(--vs-red); }

/* Güven şeridi */
.vs-trust { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--vs-red); color: #fff; padding: 18px 20px; gap: 15px; margin-bottom: 35px; }
.vs-trust > div { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.vs-trust img { filter: brightness(0) invert(1); flex: 0 0 auto; }
.vs-trust b { display: block; font-size: 14px; font-weight: 500; }

.vs-brand-banners img { border-radius: 14px; margin-bottom: 20px; width: 100%; }

/* Bölümler ve ürün kartları */
.vs-section { margin: 30px 0 40px; }
.vs-title { text-align: center; font-size: 22px; font-weight: 500; margin: 0 0 28px; }
.vs-title:after { content: ""; display: block; width: 180px; height: 1px; background: #ddd; margin: 14px auto 0; }
.vs-section > .vs-carousel > h3 { display: none; }
.vs-carousel { position: relative; }
.vs-carousel > .row { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.vs-carousel > .row::-webkit-scrollbar { display: none; }
.vs-carousel > .row > .product-layout { flex: 0 0 25%; max-width: 25%; scroll-snap-align: start; float: none; }
.vs-carousel .vs-prev, .vs-carousel .vs-next { background: #111; width: 30px; height: 30px; line-height: 30px; font-size: 18px; top: 40%; z-index: 2; }
.vs-carousel .vs-prev { left: -10px; } .vs-carousel .vs-next { right: -10px; }

.product-thumb { border: 1px solid #ececec; border-radius: 4px; background: #fff; transition: box-shadow .2s; position: relative; }
.product-thumb:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.product-thumb .image { padding: 10px; }
.product-thumb .image img { margin: 0 auto; }
.product-thumb .caption { text-align: center; min-height: 0; padding: 0 14px; }
.product-thumb h4 { font-size: 13px; font-weight: 400; line-height: 1.45; height: 38px; overflow: hidden; margin: 6px 0 12px; }
.product-thumb h4 a { color: #333; }
.product-thumb .caption > p:not(.price) { display: none; }
.product-thumb .price { color: var(--vs-red); font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.product-thumb .price-new { color: var(--vs-red); font-weight: 700; }
.product-thumb .price-old { color: #999; font-size: 13px; font-weight: 400; }
.product-thumb .price-tax, .price-tax { display: none; }
.product-thumb .rating { display: none; }
.product-thumb .button-group { border: 0; background: none; text-align: center; padding: 0 0 16px; overflow: visible; }
.product-thumb .button-group button { float: none; display: none; }
.product-thumb .button-group button:first-child { display: inline-block; width: auto; background: #111; color: #fff; border-radius: 5px; padding: 8px 18px; font-weight: 500; text-transform: none; border: 0; }
.product-thumb .button-group button:first-child:hover { background: var(--vs-red); }
.product-thumb .button-group button:first-child span { display: inline !important; }
.product-list .product-thumb .button-group { border: 0; }

/* Model bannerları */
.vs-models { background: var(--vs-gray); padding: 35px 0; }
.vs-model-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.vs-model-grid a { display: block; border-radius: 10px; overflow: hidden; transition: transform .2s; }
.vs-model-grid a:hover { transform: translateY(-4px); }
.vs-model-grid img { width: 100%; height: auto; display: block; }

/* Kategori sayfası */
#product-category h2, #product-search h2 { font-size: 22px; }
#product-category .row > .col-sm-2, #product-category hr { }
#list-view, #grid-view { display: none; }
#product-category .form-group.input-group label, #product-category .input-group-addon { background: #fff; }
#product-category .product-layout, #product-search .product-layout, #product-special .product-layout, #product-manufacturer .product-layout { margin-bottom: 10px; }

/* Ürün sayfası */
#product-product h1 { font-size: 22px; font-weight: 500; line-height: 1.35; margin-top: 0; }
#product-product .vs-price { font-size: 28px; color: var(--vs-red); font-weight: 700; margin: 10px 0; }
#product-product .vs-price-old { color: #999; text-decoration: line-through; font-size: 17px; font-weight: 400; margin-left: 8px; }
#product-product .vs-kdv { font-size: 12px; color: #777; font-weight: 400; display: block; }
#product-product .thumbnails > li > .thumbnail, #product-product .thumbnails .image-additional a { border-radius: 4px; }
#button-cart { background: #111; border: 0; border-radius: 6px; font-weight: 500; }
#button-cart:hover { background: var(--vs-red); }
.vs-vin { border: 2px solid #25d366; border-radius: 8px; padding: 16px; margin: 18px 0; background: #f6fff9; }
.vs-vin h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.vs-vin p { font-size: 13px; color: #555; margin: 0 0 10px; }
.vs-vin input { text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.vs-vin .btn-wa { background: #25d366; color: #fff; border: 0; font-weight: 700; }
.vs-vin .btn-wa:hover { background: #1da851; color: #fff; }
.vs-vin-err { color: var(--vs-red); font-size: 12px; margin-top: 6px; min-height: 0; }
.vs-ship-note { background: var(--vs-gray); border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-top: 10px; }
.nav-tabs > li.active > a { border-top: 3px solid var(--vs-red); font-weight: 500; }
#tab-description table { max-width: 100%; }
#tab-description .rend_product_carvariants { width: 100% !important; font-size: 13px !important; }
#tab-description .rend_product_carvariants td, #tab-description .rend_product_carvariants th { border: 1px solid #e5e5e5; padding: 6px 8px; }

/* Blog */
.blog-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-bottom: 25px; padding-bottom: 15px; }
.blog-card img { width: 100%; }
.blog-card h2 { font-size: 16px; padding: 0 15px; line-height: 1.4; }
.blog-card p, .blog-card .btn { margin: 0 15px 10px; }
.blog-card p { font-size: 13px; color: #666; }
.blog-kapak img { border-radius: 10px; margin-bottom: 15px; }

/* Footer */
#vs-footer { background: var(--vs-dark); color: #ddd; border-top: 4px solid var(--vs-red); padding: 45px 0 20px; margin-top: 50px; font-size: 13px; }
#vs-footer a { color: #eee; } #vs-footer a:hover { color: #fff; text-decoration: underline; }
#vs-footer h5 { color: #fff; font-weight: 700; font-size: 15px; margin: 0 0 18px; }
#vs-footer h5:after { content: ""; display: block; width: 60px; height: 1px; background: #888; margin-top: 10px; }
#vs-footer li { margin-bottom: 8px; }
.vs-foot-brand img { margin-bottom: 15px; }
.vs-foot-social { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: #000; border-radius: 4px; font-size: 18px; }
.vs-foot-contact { display: flex; gap: 40px; border-top: 1px solid #444; margin-top: 25px; padding-top: 25px; flex-wrap: wrap; }
.vs-foot-contact a { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.vs-foot-contact .fa { width: 40px; height: 40px; border: 1px solid #bbb; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.vs-foot-contact b { display: block; font-size: 15px; color: #fff; }
.vs-foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: 11px; color: #aaa; gap: 15px; flex-wrap: wrap; }
.vs-cards .fa { font-size: 22px; margin-left: 8px; color: #ccc; }

/* WhatsApp butonu + çerez */
.vs-wa-float { position: fixed; left: 18px; bottom: 18px; height: 52px; padding: 0 20px 0 14px; border-radius: 26px; background: #25d366; color: #fff !important; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 999; text-decoration: none !important; }
.vs-wa-float .fa { font-size: 28px; }
.vs-wa-float:hover { background: #1da851; }
#vs-cookie { position: fixed; left: 0; right: 0; bottom: 0; background: var(--vs-red); color: #fff; padding: 12px 20px; font-size: 12px; z-index: 1000; display: flex; align-items: center; gap: 10px; }
#vs-cookie a { color: #fff; font-weight: 700; text-decoration: underline; }
#vs-cookie button { margin-left: auto; background: var(--vs-navy); color: #fff; border: 0; padding: 6px 30px; font-weight: 700; }

/* Mobil */
@media (max-width: 991px) {
  .vs-trust { grid-template-columns: repeat(2, 1fr); }
  .vs-model-grid { grid-template-columns: repeat(3, 1fr); }
  .vs-carousel > .row > .product-layout { flex-basis: 33.333%; max-width: 33.333%; }
}
@media (max-width: 767px) {
  #vs-top li { padding: 0 6px; }
  .vs-head-row { flex-wrap: wrap; gap: 10px; }
  #vs-header #logo img { height: 58px; }
  .vs-head-search { order: 5; flex-basis: 100%; }
  .vs-head-account { margin-left: auto; }
  #cart > .btn { height: 38px; padding: 0 10px; }
  #cart-total { font-size: 12px; }
  #cart .dropdown-menu { min-width: 300px; }
  .vs-trust { grid-template-columns: 1fr 1fr; padding: 14px; font-size: 11px; }
  .vs-trust b { font-size: 12px; }
  .vs-model-grid { grid-template-columns: repeat(6, 42%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .vs-model-grid a { scroll-snap-align: start; }
  .vs-carousel > .row > .product-layout { flex-basis: 50%; max-width: 50%; }
  .vs-carousel .vs-prev, .vs-carousel .vs-next { display: none; }
  .vs-prev, .vs-next { width: 30px; height: 30px; line-height: 30px; font-size: 18px; }
  .vs-foot-contact { gap: 20px; }
  .vs-wa-float { left: 12px; bottom: 12px; height: 44px; padding: 0 16px 0 12px; font-size: 14px; }
  .vs-wa-float .fa { font-size: 24px; }
  body { padding-bottom: 64px; }
  #vs-cookie { flex-wrap: wrap; }
}

/* Kategori: alt kategoriler etiket gibi, karşılaştırma gizli */
#compare-total, .product-compare { display: none !important; }
#product-category h3 + .row ul, #product-category h3 + div ul { padding: 0; list-style: none; }
#product-category h3 + .row li, #product-category h3 + div li { margin: 0 0 8px; }
#product-category h3 + .row li a, #product-category h3 + div li a { display: block; border: 1px solid #e3e3e3; border-radius: 6px; padding: 7px 10px; font-size: 13px; }
#product-category h3 + .row li a:hover, #product-category h3 + div li a:hover { border-color: var(--vs-red); color: var(--vs-red); text-decoration: none; }
#column-left .list-group a { font-size: 13px; border-color: #eee; }
#column-left .list-group a.active, #column-left .list-group a.active:hover { background: var(--vs-red); border-color: var(--vs-red); color: #fff; }
.vs-design a { color: #fff; font-weight: 500; }

/* Ürün açıklaması: IdeaSoft'tan gelen sabit genişlikli tablolar/resimler taşmasın */
#tab-description { overflow-wrap: break-word; }
#tab-description table { width: 100% !important; max-width: 100%; height: auto !important; }
#tab-description img { max-width: 100% !important; height: auto !important; }
#tab-description td, #tab-description th { height: auto !important; }
.breadcrumb > li { white-space: normal; }
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  #tab-description table:not(.rend_product_carvariants), #tab-description table:not(.rend_product_carvariants) > tbody, #tab-description table:not(.rend_product_carvariants) > tbody > tr, #tab-description table:not(.rend_product_carvariants) > tbody > tr > td { display: block; width: auto !important; }
  #tab-description table.rend_product_carvariants { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #tab-description td, #tab-description th { white-space: normal !important; text-wrap-mode: wrap !important; }
  /* Ürün sayfası sırası: resimler → başlık/fiyat/sepete ekle → açıklama */
  #product-product #content > .row { display: flex; flex-direction: column; }
  #product-product .vs-p-left { display: contents; }
  #product-product .vs-p-left > .thumbnails { order: 1; padding: 0 15px; }
  #product-product .vs-p-right { order: 2; }
  #product-product .vs-p-left > .nav-tabs { order: 3; margin: 20px 15px 0; }
  #product-product .vs-p-left > .tab-content { order: 4; padding: 0 15px; }
  #product-product h1 { font-size: 20px; }
}

/* Mobil marka menüsü: VOLVO / FORD doğrudan görünür */
.vs-mbrands { display: flex; gap: 10px; padding: 10px 0; }
.vs-mb-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; background: var(--vs-dark); color: #fff !important; border: 0; border-radius: 6px; font-size: 16px; font-weight: 800; letter-spacing: 1px; text-decoration: none !important; }
.vs-mb-btn.active { background: var(--vs-red); }
.vs-mb-btn .fa { transition: transform .2s; }
.vs-mb-btn.active .fa { transform: rotate(180deg); }
.vs-mb-panel { display: none !important; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 12px; }
.vs-mb-panel.open { display: grid !important; }
.vs-mb-panel a { display: block; border: 1px solid #e3e3e3; border-radius: 6px; padding: 9px 10px; font-size: 13px; font-weight: 500; color: #111; text-decoration: none; }
.vs-mb-panel a.vs-mb-all { grid-column: 1 / -1; background: var(--vs-gray); font-weight: 700; color: var(--vs-red); }
@media (max-width: 767px) { .vs-mbrands.visible-xs { display: flex !important; } }
@media (min-width: 768px) { .vs-mbrands, .vs-mb-panel, .vs-mb-panel.open { display: none !important; } }
/* Stokta yok (03.10.2026) */
.product-thumb .button-group button.vs-nostock { display: inline-block; width: auto; background: #e5e5e5; color: #777; border-radius: 5px; padding: 8px 18px; font-weight: 500; border: 0; cursor: not-allowed; }
.product-thumb .button-group button.vs-nostock:hover { background: #e5e5e5; }
.vs-nostock-box { border: 2px solid #d21f1a; border-radius: 8px; padding: 14px 16px; margin: 10px 0 14px; background: #fff5f5; }
.vs-nostock-box b { color: #d21f1a; font-size: 17px; }
.vs-nostock-box p { margin: 6px 0 10px; color: #444; }
.vs-nostock-box .btn-wa { background: #25d366; color: #fff; border: 0; font-weight: 700; }
.vs-nostock-box .btn-wa:hover { background: #1da851; color: #fff; }
/* Canlı arama önerileri (03.10.2026) */
.vs-ac { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 1001; max-height: 70vh; overflow-y: auto; }
.vs-ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; color: #222; text-decoration: none; }
.vs-ac-item:hover, .vs-ac-item.on { background: #fff5f5; color: #222; text-decoration: none; }
.vs-ac-item img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 46px; }
.vs-ac-txt { flex: 1 1 auto; min-width: 0; }
.vs-ac-txt b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-ac-txt small { display: block; color: #888; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-ac-txt em { color: var(--vs-red); font-style: normal; }
.vs-ac-price { flex: 0 0 auto; color: var(--vs-red); font-weight: 700; font-size: 13px; white-space: nowrap; }
.vs-ac-all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--vs-red); }
.vs-ac-none { padding: 12px; color: #888; text-align: center; }
@media (max-width: 767px) { .vs-ac-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
/* iOS: 16px altı kutuya dokununca sayfa yakınlaşıyordu (03.10.2026) */
@media (max-width: 767px) {
  input.form-control, select.form-control, textarea.form-control, #search .input-lg { font-size: 16px; }
  .vs-ac { max-width: calc(100vw - 24px); overflow-x: hidden; }
  .vs-ac-item { padding: 8px 10px; gap: 8px; }
  .vs-ac-item img { width: 40px; height: 40px; flex-basis: 40px; }
  .vs-ac-price { font-size: 12px; }
}
