/* Storefront ufak cilalama — tema style.css üzerine hafif override.
   Themes/ klasörüne dokunulmaz. Renk: var(--theme-color) */

/* ---------- Header: hesap / giriş alanı ---------- */
.top-header .header-dropdown > li.mobile-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.top-header .header-dropdown > li.mobile-account > i {
  font-size: 1rem;
  opacity: 0.85;
}

.top-header .header-dropdown > li.mobile-account:hover {
  color: var(--theme-color);
}

.top-header .header-dropdown .onhover-show-div {
  top: 100%;
  margin-top: 2px;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(33, 37, 41, 0.1);
  padding: 4px 0 !important;
  min-width: 168px;
  overflow: hidden;
  background-color: #fff;
}

.top-header .header-dropdown .onhover-show-div > li {
  display: block !important;
  padding: 0 !important;
  margin: 0;
  width: 100%;
}

.top-header .header-dropdown .onhover-show-div li a,
.top-header .header-dropdown .onhover-show-div li form a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #333 !important;
  text-transform: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.top-header .header-dropdown .onhover-show-div li form {
  display: block;
  width: 100%;
  margin: 0;
}

.top-header .header-dropdown .onhover-show-div li a i,
.top-header .header-dropdown .onhover-show-div li form a i {
  font-size: 15px;
  opacity: 0.8;
  width: 1em;
  flex-shrink: 0;
  padding-right: 0 !important;
  color: #555 !important;
}

.top-header .header-dropdown .onhover-show-div li a:hover,
.top-header .header-dropdown .onhover-show-div li form a:hover {
  color: var(--theme-color) !important;
  background-color: rgba(0, 0, 0, 0.04);
}

.top-header .header-dropdown .onhover-show-div li a:hover i,
.top-header .header-dropdown .onhover-show-div li form a:hover i {
  opacity: 1;
  color: var(--theme-color) !important;
}

.top-header .header-contact li {
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ---------- Header: arama çubuğu ---------- */
.header-search-bar {
  max-width: 480px;
}

.header-search-bar .input-group {
  flex-wrap: nowrap;
}

.header-search-bar .form-control {
  height: 40px;
  font-size: 13.5px;
  background-color: #f7f7f8;
  border: 1px solid #e6e6e6;
  border-right: 0;
  border-radius: 20px 0 0 20px;
  box-shadow: none;
  padding-left: 14px;
  padding-right: 12px;
}

.header-search-bar .form-control:focus {
  background-color: #fff;
  border-color: #e0e0e0;
  box-shadow: none;
  z-index: 2;
}

.header-search-bar .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 46px;
  padding: 0 14px;
  border-radius: 0 20px 20px 0;
  line-height: 1;
  flex-shrink: 0;
}

.header-search-bar .btn-solid i {
  font-size: 18px;
  line-height: 1;
  display: block;
}

/* Kategori menü taşması (önceden Header inline idi) */
#main-menu > li > ul,
#main-menu > li > ul ul {
  width: max-content !important;
  min-width: 180px;
  max-width: 340px;
}

#main-menu ul a,
#main-menu ul a:hover,
#main-menu ul a:focus,
#main-menu ul a:active {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ---------- Ürün kartı ---------- */
.basic-product.theme-product-1,
.basic-product.storefront-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  margin-bottom: 0;
  box-shadow: none;
}

.basic-product.theme-product-1:hover,
.basic-product.storefront-card:hover {
  border-color: #e2e2e2;
}

.basic-product.theme-product-1 .img-wrapper,
.basic-product.storefront-card .img-wrapper {
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f8;
}

/* Tema .bg-img bazen display:none + background-image kullanır; kartlarda gerçek <img> göster. */
.basic-product.theme-product-1 .img-wrapper img,
.basic-product.theme-product-1 .img-wrapper img.bg-img,
.basic-product.storefront-card .img-wrapper img,
.basic-product.storefront-card .img-wrapper img.bg-img {
  display: block !important;
  aspect-ratio: 6 / 7;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.basic-product.theme-product-1:hover .img-wrapper img,
.basic-product.theme-product-1:hover .img-wrapper .bg-img,
.basic-product.storefront-card:hover .img-wrapper img,
.basic-product.storefront-card:hover .img-wrapper .bg-img {
  transform: scale(1.03);
}

.basic-product.theme-product-1 .product-detail,
.basic-product.storefront-card .product-detail {
  padding-top: 12px;
  border: none;
  border-top: none;
}

.basic-product.theme-product-1 .product-detail > div,
.basic-product.storefront-card .product-detail > div {
  border: none !important;
  border-bottom: none !important;
}

.storefront-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  gap: 0;
}

.storefront-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 0;
}

.storefront-card-meta .product-title,
.basic-product.theme-product-1 .storefront-card-meta .product-title,
.basic-product.storefront-card .storefront-card-meta .product-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basic-product.theme-product-1 .product-detail h6,
.basic-product.storefront-card .product-detail h6 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.storefront-card-title {
  display: block;
  margin: 0 0 6px;
}

.basic-product.theme-product-1 .product-title,
.basic-product.storefront-card .product-title {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.75;
}

.basic-product.theme-product-1 .price,
.basic-product.storefront-card .price {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  gap: 8px;
}

.storefront-card-price-slot {
  min-height: 0;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
}

.basic-product.theme-product-1 .price .current-price,
.basic-product.storefront-card .price .current-price {
  color: #222;
  font-weight: 700;
}

.basic-product.theme-product-1 .price del,
.basic-product.storefront-card .price del {
  font-size: 13px;
  font-weight: 500;
  color: #6c757d;
  opacity: 1;
  margin-left: 0;
  text-decoration-thickness: 1px;
}

.storefront-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f0b54d;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.storefront-card-rating .rating-count {
  margin-left: 3px;
  color: #888;
  font-size: 11px;
  font-weight: 500;
}

.storefront-card-cart {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px !important;
  font-size: 13px !important;
  margin-top: 0;
}

.storefront-card-cart i {
  font-size: 15px;
}

.storefront-card-cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.basic-product.theme-product-1 .cart-info button,
.basic-product.theme-product-1 .cart-info a,
.basic-product.storefront-card .cart-info button,
.basic-product.storefront-card .cart-info a {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.basic-product.theme-product-1 .ribbon span,
.basic-product.storefront-card .ribbon span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 8px;
}

/* ---------- Ortak butonlar (tema class korunur) ---------- */
.btn-solid {
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: background-position 280ms ease, color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.btn-solid:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-solid:focus {
  color: #fff;
}

/* ---------- Footer iletişim: email/adres capitalize olmasın ---------- */
.footer-theme .sub-title .contact-list li {
  text-transform: none;
}

/* ---------- Küçük tutarlılık ---------- */
.title1 .title-inner1 {
  letter-spacing: -0.01em;
}

.section-b-space .product-para p {
  line-height: 1.65;
  color: #6c757d;
}

@media (max-width: 575.98px) {
  .basic-product.theme-product-1 .product-detail h6,
  .basic-product.storefront-card .product-detail h6 {
    font-size: 13px;
  }

  .basic-product.theme-product-1 .price,
  .basic-product.storefront-card .price {
    font-size: 14px;
  }
}

/* ---------- Mobil: arama üstte, hesap+sepet tema alt barında (favori yok) ---------- */
@media (max-width: 1199.98px) {
  .mobile-fix-option {
    display: block;
  }

  .top-header .header-dropdown .mobile-wishlist {
    display: none !important;
  }

  .top-header .header-dropdown > li.mobile-account {
    display: block;
    gap: 0;
    font-weight: 400;
    left: 35%;
    right: auto !important;
    transform: translateX(-50%);
    bottom: 16px;
  }

  .top-header .header-dropdown li.mobile-account > i:before,
  .top-header .header-dropdown li:first-child.mobile-account > i:before {
    content: "\f25f" !important;
  }

  .top-header .header-dropdown .mobile-account > i,
  .main-menu .menu-right .icon-nav .mobile-cart i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #999 !important;
    opacity: 1;
  }

  .main-menu .menu-right .icon-nav .mobile-cart {
    left: 65% !important;
    right: auto !important;
    transform: translateX(-50%);
    bottom: 16px;
  }

  .main-menu {
    flex-wrap: wrap;
  }

  .header-search-bar {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 0 12px;
  }

  .header-search-bar .form-control,
  .header-search-bar .btn-solid {
    height: 36px;
  }

  .header-search-bar .form-control {
    font-size: 13px;
  }

  .home-slider .home,
  .home-slider .slider-contain {
    height: auto !important;
    min-height: 0 !important;
    background-image: none !important;
  }

  .home-slider .home img,
  .home-slider .home img.bg-img {
    display: block !important;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .banner-section .collection-banner img {
    display: block;
    width: 100%;
    height: auto;
  }

  .banner-section .col-md-6 + .col-md-6 {
    margin-top: 12px;
  }

  footer.footer-style-1 .sub-footer.dark-subfooter {
    padding-bottom: 60px;
  }

  #cookieConsentBanner.cookie-bar {
    bottom: 60px !important;
    z-index: 10;
  }

  .shop-sort {
    width: 100%;
  }

  .shop-sort .form-select {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  .theme-tab .tab-title,
  .theme-tab .tabs.tab-title {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .theme-tab .tab-title li {
    flex: 0 0 auto;
    float: none;
  }

  .cart-page-wrapper {
    padding: 16px 0 80px;
  }

  .cart-item-row {
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty total";
    gap: 10px 12px;
    padding: 14px 12px;
    align-items: start;
  }

  .cart-item-img {
    width: 72px;
    height: 72px;
    grid-area: img;
  }

  .cart-item-info { grid-area: info; }
  .cart-item-remove { grid-area: remove; }
  .cart-item-qty-wrap { grid-area: qty; }

  .cart-item-line-total {
    grid-area: total;
    min-width: 0;
    align-self: center;
  }

  .cart-items-header,
  .cart-items-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
}
