/* 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, #c09578);
  --sm-border: #ece7e1;
  --sm-ink: #1f1b16;
  --sm-muted: #7a736b;
  --sm-radius: 14px;
  background: #faf8f5;
  padding: 10px 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;
}
