/* Subcategory Modern Card Styles (adapted for alt-kategori.php, using color variables and consistent layout) */
.subcategory-modern-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--theme-background-color);
  border-radius: 2.5rem;
  box-shadow: 0 1px 4px 0 var(--theme-primary-color), 0 1px 4px 0 var(--theme-primary-color);
  border: 1.5px solid var(--theme-secondary-color);
  padding: 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s, border 0.18s;
}

/* No Products Empty State */
.no-products {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.95) 100%);
  border: 2px solid var(--theme-secondary-color);
  border-radius: 2rem;
  box-shadow: 0 4px 16px var(--theme-text-color);
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.no-products-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.no-products-content i {
  font-size: 3rem;
  color: var(--theme-accent-color);
  margin-bottom: 0.5rem;
}

.no-products-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-primary-color);
  letter-spacing: 0.5px;
}

.no-products-desc {
  font-size: 1.1rem;
  color: var(--theme-text-color);
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
}

.subcategory-modern-card:hover {
  box-shadow: 0 1px 4px 0 var(--theme-primary-color), 0 1px 4px 0 var(--theme-primary-color);
  transform: translateY(-8px) scale(1.025);
  border-color: var(--theme-secondary-color);
}
.subcategory-modern-media {
  min-width: 260px;
  max-width: 360px;
  background: var(--theme-background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2.5rem 1.5rem 2.5rem 2.5rem;
  border-top-left-radius: 2.5rem;
  border-bottom-left-radius: 2.5rem;
  box-shadow: 0 1px 4px 0 var(--theme-primary-color), 0 1px 4px 0 var(--theme-primary-color);
}
.subcategory-modern-media img {
  width: 180px;
  height: 180px;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 1px 4px 0 var(--theme-primary-color), 0 1px 4px 0 var(--theme-primary-color);
  margin-bottom: 1.2rem;
  background: #fff;
  border: 2.5px solid var(--theme-primary-color);
}
.subcategory-modern-info {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 1.5rem;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.2rem;
  background: var(--theme-background-color);
  border-top-right-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  box-shadow: 0 2px 8px 0 var(--theme-accent-color);
}
.subcategory-modern-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
}
.subcategory-modern-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--theme-primary-color);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px var(--theme-background-color);
}
.subcategory-modern-badge {
  background: var(--theme-accent-color);
  color: #fff;
  font-size: 1.09rem;
  font-weight: 700;
  border-radius: 1.5rem;
  padding: 8px 26px;
  margin-right: 0.5em;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  letter-spacing: 0.5px;
  border: 2px solid #fff2;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s;
}
.subcategory-modern-badge.featured {
  background: var(--theme-secondary-color);
  color: #fff;
  box-shadow: 0 2px 8px var(--theme-secondary-color);
  border: 2px solid #fff2;
}
.subcategory-modern-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: rgba(255,255,255,0.8);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 0.375px 1.5px #252525;
  font-size: 1.07rem;
  margin-bottom: 0.7em;
}
.subcategory-modern-meta-label {
  font-weight: 700;
  color: var(--theme-primary-color);
  align-self: center;
  font-size: 1.07rem;
}
.subcategory-modern-meta-value {
  color: var(--theme-text-color);
  font-weight: 500;
  align-self: center;
  font-size: 1.07rem;
  word-break: break-word;
}

.subcategory-modern-meta-value-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: 1rem;
  background: var(--theme-primary-color);
  border: 2px solid var(--theme-secondary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.subcategory-modern-meta-value-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229,62,62,0.1), transparent);
  transition: left 0.5s;
}

.subcategory-modern-meta-value-link:hover {
  color: #fff;
  background: var(--theme-secondary-color);
  border-color: var(--theme-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--theme-primary-color);
}

.subcategory-modern-meta-value-link:hover::before {
  left: 100%;
}

.subcategory-modern-meta-value-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(229,62,62,0.2);
}
.subcategory-modern-desc {
  color: var(--theme-text-color);
  font-size: 1.18rem;
  font-weight: 600;
  text-shadow: 0 1px 0 var(--theme-text-color);
  margin-bottom: 0.2em;
  background: rgba(255,255,255,0.7);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 0.375px 1.5px #252525;
}
.subcategory-modern-shortdesc {
  color: #fff;
  font-size: 1.13rem;
  font-style: italic;
  background: var(--theme-accent-color);
  border-radius: 0.7em;
  padding: 0.4em 1.2em;
  display: inline-block;
  margin-bottom: 0.7em;
  box-shadow: 0 2px 8px var(--theme-accent-color);
}
.subcategory-modern-infos {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.subcategory-modern-info-badge {
  font-size: 1.15rem;
  color: #fff;
  background: var(--theme-accent-color);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5em;
  border-radius: 1.5em;
  padding: 0.55em 1.7em;
  box-shadow: 0 2px 8px var(--theme-accent-color), 0 1px 4px var(--theme-secondary-color);
  border: 2px solid #fff2;
  letter-spacing: 0.5px;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s;
}
.subcategory-modern-info-badge b {
  font-weight: 900;
  color: #fff;
}
.subcategory-modern-colors {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.7em;
}
.subcategory-modern-color-sample {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-right: 0.7em;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .subcategory-modern-card {
    flex-direction: column;
    padding: 0;
  }
  .subcategory-modern-media {
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    min-width: unset;
    max-width: unset;
    margin-bottom: 10px;
  }
  .subcategory-modern-info {
    padding: 2rem 1.2rem 2rem 1.2rem;
  }
}

/* Product Cards Grid and Card Styles (adapted from anasayfa.css/kategori.css) */
.products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.products-title {
  font-size: 36px;
  margin: 1.5rem 0;
}

@media (max-width: 900px) {
  .products-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .products-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.product-card-featured {
  width: 100%;
  max-width: 400px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  backdrop-filter: blur(10px);
  background: var(--theme-primary-color);
  border-radius: 2.5rem;
  box-shadow: 0 1px 4px 0 var(--theme-primary-color), 0 1px 4px 0 var(--theme-primary-color);
  padding: 0;
  position: relative;
  transition: box-shadow 0.33s cubic-bezier(.4,2,.6,1), transform 0.28s cubic-bezier(.4,2,.6,1), border 0.22s, background 0.22s;
  border: 1.5px solid var(--theme-secondary-color);
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}
.product-card-featured:hover {
  box-shadow: 0 32px 96px 0 #31979555, 0 12px 48px 0 var(--theme-secondary-color);
  transform: translateY(-14px) scale(1.055) rotateZ(-1.5deg);
  border-color: #319795cc;
  background: var(--theme-primary-color);
}
@media (max-width: 900px) {
  .product-card-featured {
    height: 340px;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .product-card-featured {
    height: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}
.product-card-featured .product-card-img {
  width: 100%;
  height: 170px;
  background: var(--theme-background-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 24px var(--theme-accent-color), 0 1.5px 8px var(--theme-secondary-color);
  background: #fff;
  overflow: hidden;
}
.product-card-featured .product-card-img-gradient {
  display: none !important;
}
.product-card-featured .product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: top;
  padding: 1.5rem 1.2rem 0 1.2rem;
  background: var(--theme-primary-color);
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  box-shadow: none !important;
  border: none !important;
}
.product-card-featured .product-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

/* Product Card Header Link Animation */
.product-card-featured .product-card-header a.product-card-title {
  text-decoration: none !important;
  position: relative !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card-featured .product-card-header a.product-card-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background-color: #fff !important;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card-featured .product-card-header a.product-card-title:hover::after {
  width: 100% !important;
}

/* Debug: Make sure the link is visible and clickable */
.product-card-header a.product-card-title:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.product-card-featured .product-card-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.product-card-featured .product-card-shortdesc {
  color: #fff;
  background: var(--theme-accent-color);
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 0.7rem;
  border-radius: 0.7em;
  padding: 0.4em 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.product-card-featured .product-card-shortdesc-blue {
  color: #319795;
  background: rgba(49,151,149,0.07);
}
.product-card-featured .product-card-shortdesc-yellow {
  color: #ffb703;
  background: rgba(255,183,3,0.07);
}
.product-card-featured .product-card-shortdesc-red {
  color: var(--theme-secondary-color);
  background: rgba(197,48,48,0.07);
}
.product-card-featured .product-card-info {
  font-size: 1.13rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  margin-bottom: 0.7rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.product-card-featured .price-info {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.13rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
}
.product-card-featured .prep-info {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.13rem;
  background: rgba(49,151,149,0.13) !important;
  border-radius: 1.2em;
  padding: 4px 14px;
  margin-top: 0.5em;
  display: inline-block;
  border: none !important;
  box-shadow: none !important;
}
.price-info,
.prep-info {
  color: var(--theme-text-color) !important;
}
.product-card-featured .price-info,
.product-card-featured .prep-info {
  color: #fff !important;
}

/* Pagination Styles (copied from kategori.css) */
.pagination-section {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.pagination-list {
  display: flex;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
}
.pagination-btn {
  background: #fff;
  color: var(--theme-primary-color);
  border: 2px solid var(--theme-primary-color);
  border-radius: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.5em 1.3em;
  box-shadow: 0 2px 8px var(--theme-primary-color);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--theme-primary-color);
  color: #fff;
  box-shadow: 0 4px 16px var(--theme-primary-color);
  border-color: var(--theme-primary-color);
}
.pagination-btn:disabled {
  background: #f3f3f3;
  color: #bbb;
  border-color: #eee;
  cursor: not-allowed;
}
.pagination-btn-active, .pagination-btn.pagination-btn-active {
  background: var(--theme-primary-color);
  color: #fff;
  border-color: var(--theme-primary-color);
  box-shadow: 0 4px 16px var(--theme-primary-color);
}

body, html {
  font-family: var(--theme-font-family);
}
