/* Mağaza / kategori listesi (ShopController.Index & Kategori) modern görünümü.
   Tüm kurallar .shop-modern altında kapsüllendi; diğer sayfaları etkilemez. */
.shop-modern {
  --sm-accent: var(--store-primary, #1fb248);
  --sm-border: #e3ebe6;
  --sm-ink: #0b2a1b;
  --sm-muted: #64748b;
  --sm-radius: 14px;
  background: #f5f9f6;
  padding: 40px 0 70px;
}

/* ---------- Başlık bandı ---------- */
.shop-modern .shop-head {
  text-align: center;
  padding: 34px 0 30px;
}
.shop-modern .shop-head h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--sm-ink);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.shop-modern .shop-head p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 14px;
}

/* ---------- Sidebar ---------- */
.shop-modern .sidebar_widget .widget_list {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 22px 22px 18px;
  margin-bottom: 20px;
}
.shop-modern .sidebar_widget .widget_list h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--sm-ink);
  border: 0;
  padding: 0 0 14px;
  margin: 0 0 6px;
  position: relative;
}
.shop-modern .sidebar_widget .widget_list h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--sm-accent);
}
.shop-modern .widget_categories ul li {
  border: 0 !important;
  padding: 0 !important;
}
.shop-modern .widget_categories ul li a {
  display: block;
  padding: 10px 12px;
  margin: 2px -12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4a443d;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: background .2s, color .2s, padding .2s;
}
.shop-modern .widget_categories ul li a:hover {
  background: #f5efe9;
  color: var(--sm-accent);
  padding-left: 16px;
}
.shop-modern .widget_categories ul li a.current-cat {
  background: var(--sm-accent);
  color: #fff;
}
.shop-modern .widget_filter form input[type="number"] {
  border: 1px solid var(--sm-border) !important;
  border-radius: 8px;
  padding: 9px 10px !important;
  font-size: 13px;
}
.shop-modern .widget_filter form input:focus {
  outline: none;
  border-color: var(--sm-accent) !important;
}
.shop-modern .widget_filter form button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--sm-ink);
  color: #fff;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s;
}
.shop-modern .widget_filter form button:hover {
  background: var(--sm-accent);
}
.shop-modern .Featured_item {
  border-radius: 10px;
}

/* ---------- Araç çubuğu ---------- */
.shop-modern .shop_toolbar {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 12px 18px;
  margin-bottom: 22px;
}
.shop-modern .orderby_wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.shop-modern .orderby_wrapper h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--sm-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.shop-modern .plain_select {
  border-radius: 8px;
  border-color: var(--sm-border);
  background-color: #faf8f5;
  font-weight: 600;
}
.shop-modern .page_amount p {
  margin: 0;
  font-size: 13px;
  color: var(--sm-muted);
}

/* ---------- Ürün kartları ---------- */
.shop-modern .single_product {
  position: relative;
  height: 100%;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shop-modern .single_product:hover {
  transform: translateY(-4px);
  border-color: transparent;
  border-radius: var(--sm-radius);
  box-shadow: 0 16px 34px rgba(60, 40, 20, .13);
}
.shop-modern .product_thumb {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #f4efe9;
  overflow: hidden;
}
.shop-modern .product_thumb a.primary_img,
.shop-modern .product_thumb a.secondary_img {
  display: block;
  width: 100%;
  height: 100%;
}
.shop-modern .product_thumb a.secondary_img {
  display: none;
}
.shop-modern .product_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.shop-modern .single_product:hover .product_thumb img {
  transform: scale(1.06);
}
.shop-modern .product_thumb .quick_button {
  left: 12px;
  right: 12px;
  bottom: 12px;
}
.shop-modern .product_thumb .quick_button a {
  line-height: 40px;
  border-radius: 8px;
  font-weight: 600;
  background: rgba(31, 27, 22, .88);
  backdrop-filter: blur(4px);
}
.shop-modern .product_thumb .quick_button a:hover {
  background: var(--sm-accent);
}

.shop-modern .product_content {
  padding: 16px 16px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-modern .product_content .tag_cate a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--sm-accent);
}
.shop-modern .product_content h3 {
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  text-transform: none;
  padding: 0;
  margin: 6px 0 10px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-modern .product_content h3::before {
  display: none;
}
.shop-modern .price_box {
  margin-top: auto;
}
.shop-modern .price_box > span.current_price {
  font-size: 19px;
  font-weight: 700;
  color: var(--sm-ink);
}
.shop-modern .price_box > span.old_price {
  font-size: 13px;
  color: #a39b92;
}

/* Hover'da açılan yüzen kutu yerine kartın altında sabit aksiyon satırı */
.shop-modern .product_hover {
  position: static;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--sm-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shop-modern .single_product:hover .product_hover {
  top: auto;
}
.shop-modern .product_hover .product_desc {
  display: none;
}
.shop-modern .product_hover .product_ratings {
  margin: 0;
}
.shop-modern .product_hover .action_links ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.shop-modern .product_hover .action_links ul li {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
}
.shop-modern .action_links button,
.shop-modern .action_links .add_to_cart button {
  cursor: pointer;
}
.shop-modern .action_links .fav-heart,
.shop-modern .action_links .cmp-btn {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 1px solid var(--sm-border) !important;
  background: #fff !important;
  color: #4a443d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.shop-modern .action_links .fav-heart:hover,
.shop-modern .action_links .cmp-btn:hover,
.shop-modern .action_links .fav-heart.active {
  border-color: var(--sm-accent) !important;
  color: var(--sm-accent);
}
.shop-modern .action_links .add_to_cart form button {
  background: var(--sm-ink) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: background .2s;
}
.shop-modern .action_links .add_to_cart form button:hover:not(:disabled) {
  background: var(--sm-accent) !important;
}
.shop-modern .action_links .add_to_cart form button:disabled {
  background: #d9d3cc !important;
  cursor: not-allowed;
}

/* ---------- Boş durum & sayfalama ---------- */
.shop-modern .shop_toolbar.t_bottom {
  margin-top: 28px;
  margin-bottom: 0;
}
.shop-modern .pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.shop-modern .pagination ul li {
  border: 1px solid var(--sm-border);
  border-radius: 8px;
  min-width: 38px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  padding: 0 12px;
  background: #fff;
  font-weight: 600;
}
.shop-modern .pagination ul li.current {
  background: var(--sm-accent);
  border-color: var(--sm-accent);
  color: #fff;
}
.shop-modern .pagination ul li a {
  display: block;
  color: inherit;
}

@media (max-width: 767px) {
  .shop-modern .shop-head h1 { font-size: 26px; }
  .shop-modern .product_content { padding: 12px 12px 14px; }
  .shop-modern .product_hover { flex-direction: column; align-items: stretch; }
  .shop-modern .product_hover .action_links ul { justify-content: space-between; }
}

/* Kartların aynı yükseklikte hizalanması */
.shop-modern .grid_view .row > div {
  display: flex;
}
.shop-modern .grid_view .row > div > .single_product {
  flex: 1 1 auto;
  width: 100%;
}

/* Aksiyon satırı: stok bilgisi üstte tam satır, altında butonlar */
.shop-modern .product_hover {
  flex-wrap: wrap;
}
.shop-modern .product_hover .product_ratings {
  flex: 0 0 100%;
}
.shop-modern .product_hover .action_links {
  flex: 1 1 100%;
}
.shop-modern .product_hover .action_links ul {
  width: 100%;
}
.shop-modern .action_links .add_to_cart {
  flex: 1 1 auto;
}
.shop-modern .action_links .add_to_cart form {
  display: block !important;
  width: 100%;
}
.shop-modern .action_links .add_to_cart form button {
  width: 100%;
  white-space: nowrap;
  line-height: 1.2 !important;
}
.shop-modern .widget_filter form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sm-muted);
}
.shop-modern .widget_filter form input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  padding: 0 !important;
  accent-color: var(--sm-accent);
}
.shop-modern .widget_filter form button {
  line-height: 1.2;
}

/* ===== Karagüzel mağaza yenileme ===== */
.shop-hero { margin-bottom: 0; }
.shop-modern .shop-filter-toggle { display: none; width: 100%; margin-bottom: 14px; padding: 13px 16px; border: 1px solid var(--sm-border); border-radius: 12px; background: #fff; color: var(--sm-ink); font-weight: 700; font-size: 15px; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.shop-modern .shop-filter-toggle i { color: var(--sm-accent); }

/* Kenar çubuğu */
.shop-modern .sidebar_widget .widget_list { background: #fff; border: 1px solid var(--sm-border); border-radius: 16px; padding: 22px 20px; margin-bottom: 18px; box-shadow: 0 8px 24px -16px rgba(6,43,26,.25); }
.shop-modern .sidebar_widget .widget_list h2 { font-size: 15px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--sm-ink); }
.shop-modern .widget_categories ul li a { border-radius: 10px; padding: 10px 12px; font-weight: 600; color: #334155; }
.shop-modern .widget_categories ul li a:hover { background: rgba(31,178,72,.1); color: var(--sm-ink); }
.shop-modern .widget_categories ul li a.current-cat { background: var(--sm-accent); color: #fff; }
.shop-modern .widget_filter form button { background: var(--sm-ink); border-radius: 10px; }
.shop-modern .widget_filter form button:hover { background: var(--sm-accent); }

/* Araç çubuğu */
.shop-modern .shop_toolbar { border-radius: 14px; box-shadow: 0 8px 24px -18px rgba(6,43,26,.3); }

/* Ürün kartı */
.shop-modern .single_product { background: #fff; border: 1px solid var(--sm-border); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px -18px rgba(6,43,26,.3); transition: transform .2s, box-shadow .2s, border-color .2s; }
.shop-modern .single_product:hover { transform: translateY(-4px); border-color: var(--sm-accent); box-shadow: 0 18px 36px -18px rgba(6,43,26,.35); }
.shop-modern .product_thumb { background: #f1f6f3; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.shop-modern .product_thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.shop-modern .product_content { padding: 16px 18px 18px; }
.shop-modern .product_content .tag_cate a { color: var(--sm-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 11.5px; }
.shop-modern .product_content h3 a { color: var(--sm-ink); font-weight: 700; font-size: 16px; }
.shop-modern .price_box > span.current_price { color: var(--sm-ink); font-weight: 800; font-size: 19px; }
.shop-modern .action_links .add_to_cart form button { background: var(--sm-accent); color: #fff; border-radius: 10px; font-weight: 700; }
.shop-modern .action_links .add_to_cart form button:hover:not(:disabled) { background: var(--sm-ink); }

@media (max-width: 991px) {
    .shop-modern .shop-filter-toggle { display: flex; }
    .shop-modern .shop-sidebar { display: none; }
    .shop-modern .shop-sidebar.open { display: block; margin-bottom: 8px; }
}
@media (max-width: 575px) {
    .shop-modern { padding-top: 24px; }
    .shop-modern .product_content { padding: 12px 12px 14px; }
    .shop-modern .product_content h3 a { font-size: 14px; }
    .shop-modern .price_box > span.current_price { font-size: 16px; }
    .shop-modern .shop_toolbar { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 767px) {
    .shop-hero.ip-hero { padding: 30px 0 26px; }
    .shop-hero.ip-hero h1 { font-size: 28px; margin-bottom: 6px; }
    .shop-hero.ip-hero p { font-size: 14.5px; }
    .shop-hero .ip-crumb { margin-top: 12px; }
    .shop-hero .ip-kicker { margin-bottom: 6px; }
    .shop-modern .shop_toolbar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; }
    .shop-modern .shop_toolbar .orderby_wrapper { display: flex; align-items: center; gap: 8px; width: 100%; }
    .shop-modern .shop_toolbar .page_amount { display: none; }
    .shop-modern .plain_select_wrap, .shop-modern .plain_select { width: 100%; }
    .shop-modern .grid_view .row { margin-left: -6px; margin-right: -6px; }
}

/* Kategori listesi: sıkı ve düzenli satırlar */
.shop-modern .widget_categories ul { margin: 6px 0 0; padding: 0; list-style: none; }
.shop-modern .widget_categories ul li { padding: 0 !important; margin: 0 0 4px !important; border: 0 !important; min-height: 0 !important; height: auto !important; line-height: 1.3 !important; }
.shop-modern .widget_categories ul li a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px !important; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .2px; text-transform: none; border-radius: 10px; }
.shop-modern .widget_categories ul li a.current-cat { box-shadow: 0 6px 14px -8px rgba(31,178,72,.7); }
.shop-modern .widget_categories ul ul { margin: 2px 0 0 10px; }
.shop-modern .sidebar_widget .widget_list h2 { margin: 0 0 14px; padding-bottom: 10px; }
