/* Genel Stiller */
:root {
  --primary-color: #dd0513;
  --text-color: #242424;
  --secondary-text: #737373;
  --border-color: #ccc;
  --light-bg: rgba(248, 248, 248, 1);
  --white: #fff;
  --swatch-size: 40px;
  --box-radius: 10px;
}

.main-page-wrapper {
  background-color: var(--light-bg);
}

/* Yükleme ve Durum Mesajları */
.no-products {
  text-align: center;
}

.products.loading {
  position: relative;
  min-height: 200px;
}

.products.loading:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8) url("https://cdn.alfatires.eu/loader.gif") center no-repeat;
}

.error-message {
  padding: 20px;
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 4px;
  color: #d32f2f;
  text-align: center;
}

/* Ürün Listesi Layout */
.products.elements-grid {
  padding-right: 0;
  padding-left: 0;
}

.product-wrapper {
  display: flex;
  flex-direction: row;
  background-color: var(--white);
  border-radius: var(--box-radius) !important;
  margin-bottom: 15px !important;
  padding: 15px 25px;
  border: 1px solid var(--border-color);
}

.product-wrapper:hover {
  border-color: #b9b9b9 !important;
}

.product.product-list-item .product-element-top {
  position: relative;
}

.product.product-list-item .product-list-content {
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  align-self: stretch;
  padding:0;
}

/* Ürün Butonları */
.product-button {
  background-color: var(--white);
  border-radius: 4px;
  font: normal normal bold 14px/17px Lato;
  width: auto !important;
  height: 17px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-transform: unset !important;
}

button.product-button:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Ürün Bilgileri */
.product-info-and-swatches {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 60%;
  padding: 1.6em 0 0 1em;
}

.wd-entities-title,
h3.wd-entities-title {
  font-size: 20px !important;
  font-weight: 600;
  margin-bottom: 5px !important;
}

h3.product-title-content {
  font-size: 20px !important;
  font-weight: 600;
  margin-bottom: 5px !important;
}

.product.product-list-item [class*="wd-swatches"] {
  --wd-swatch-size: var(--swatch-size);
}

.colortype_info {
  color: var(--secondary-text);
  font-weight: 400;
  font-size: 18px;
  padding-left: 5px;
}

/* Ürün Fiyatlandırma */
.product-price-and-additional-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: right;
}

.product-instock {
  font-size: 12px;
  line-height: 12px;
  color: green;
  margin-bottom: 6px;
  text-align: right;
}

.product-delivery {
  font-size: 12px;
  line-height: 12px;
  color: var(--secondary-text);
  margin-bottom: 0;
  text-align: right;
}

/* Fiyat Stilleri */
.product-price-content {
  margin-top: 30px;
  margin-bottom: 0;
  line-height: 1;
  font-weight: 600;
}

.price-regular {
  font-size: 16px;
  opacity: 0.7;
  font-weight: normal;
  margin-bottom: 5px;
  display: none;
  color: #333;
}

.price-final {
  color: #000;
  font-size: 26px;
}

.sale-price > .price-regular {
  display: block;
}

.sale-price > .price-final {
  color: var(--primary-color);
  font-size: 26px;
}

.price-four,
.product-price-four {
  font-size: 12px;
  line-height: 12px;
  margin-top: 10px !important;
  color: #000;
  font-weight: bold;
}

.product-price-four-content {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #000;
}

.price-four-text {
  display: block;
  text-decoration: underline;
  font-style: italic;
  font-weight: 400;
}

.price-four-regular {
  opacity: 0.7;
  margin: 0 3px 0 2px;
  display: none;
  line-height: 12px;
}

.price-four-final {
  color: #000;
  line-height: 12px;
}

.sale-price > .price-four-regular {
  display: inline;
}

.sale-price > .price-four-final {
  color: var(--primary-color);
}

/* İndirim Etiketi */
span.discount_text {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  font-size: 11px;
  line-height: 25px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0 6px 0 13px;
  font-weight: 600;
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-top-left-radius: var(--box-radius);
  z-index: 10;
}

span.discount_text:after {
  content: "";
  position: absolute;
  top: -1px;
  right: -19px;
  width: 0;
  height: 0;
  border-width: 7px 14px 18px 6px;
  border-style: solid;
  border-color: transparent transparent var(--primary-color) var(--primary-color);
}

/* Ürün Görüntüsü */
.product-image-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

img.product-image-forwinter {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 1;
}

.product-image-title {
  font-size: 10px;
  text-align: center;
  color: var(--secondary-text);
  display: none;
}

/* Filtre Kutuları */
#rimSizeContainer {
  display: none;
}

.box-zoll-container,
.box-color-container {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: start;
  vertical-align: middle;
  gap: 10px 15px;
}

.box-zoll {
  border-radius: 50%;
  border: 1px solid rgba(36, 36, 36, 0.25);
  font-size: 14px;
  padding: 8px;
  line-height: initial;
  position: relative;
}

.box-zoll:hover {
  border: 1px solid var(--text-color);
  background-color: #eee;
  color: var(--text-color);
}

.box-zoll.wd-active {
  border: 1px solid var(--text-color);
  background-color: #eee;
  color: var(--text-color);
}

.box-zoll-container .wd-disabled {
  cursor: not-allowed;
}

.box-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: var(--text-color);
  vertical-align: middle;
  text-align: center;
  font-weight: 600;
  font-size: 45px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 50%;
}

.box-color img {
  display: block;
  max-height: 100%;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  object-fit: cover;
}

.box-color-container .wd-active {
  box-shadow: 0 0 6px 1px var(--text-color);
}

.box-color-container .wd-disabled {
  cursor: w-resize;
}

/* Öznitelik Bilgileri */
.attr_info,
.lzlk_info {
  position: relative;
  display: inline-block;
}

.text-attr,
.text-lzlk {
  font-size: 10px;
  padding: 0 20px 0 0;
  font-weight: normal;
}

.text-zoll {
  font-size: 12px;
}

.clear-attr,
.clear-lzlk {
  position: absolute;
  top: 0;
  right: 5px;
  display: none;
  cursor: pointer;
  font-weight: bold;
}

.attr_info:hover .clear-attr,
.lzlk_info:hover .clear-lzlk {
  display: inline;
  color: var(--primary-color);
}

/* Disable Stileri */
.wd-disabled:before {
  content: "";
  position: absolute;
  inset: 0.0001px;
  border-radius: inherit;
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), #CF000F 50%, transparent calc(50% + 1px)),
                   linear-gradient(to top left, transparent calc(50% - 1px), #CF000F 50%, transparent calc(50% + 1px));
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.wd-enabled {
  cursor: pointer;
}

/* İskelet Yükleme Animasyonu */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.skeleton {
  position: relative;
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  color: #EEE !important;
  border-radius: 4px;
}

.skeleton-box-zoll {
  border-radius: 50%;
}

.skeleton-image {
  opacity: 0.2;
  filter: blur(4px);
}

/* Tablet ve Mobil Ekranlar İçin Responsive Tasarım */
@media screen and (max-width: 1024px) {
  .product-info-and-swatches {
    width: 55%;
    padding: 1em 0 0 1em;
  }
  
  .wd-entities-title,
  h3.wd-entities-title,
  h3.product-title-content {
    font-size: 18px !important;
  }
  
  .price-final,
  .sale-price > .price-final {
    font-size: 22px;
  }
}

@media screen and (max-width: 768px) {
  .product.product-list-item .product-list-content {
    display: flex;
    flex-direction: column !important;
    gap: 1em;
    text-align: left;
    padding-top: 10px;
    padding-left: 15px;
  }
  
  .product-info-and-swatches {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .product-info-box, 
  .product-info-box * {
    text-align: right !important;
  }
  
  a.product-details-box {
    text-align: left;
  }
  
  .product-price-four {
    margin-bottom: 0;
  }
  
  p.product-price-3 {
    margin-top: 10px !important;
  }
  
  .product-price-and-additional-info {
    justify-content: flex-start;
  }
  
  .products:not(.products-bordered-grid-ins)
    .product-list-item
    .product-wrapper {
    padding: 19px 10px 20px 17px !important;
  }
  
  img.product-image-forwinter {
    width: 40px;
    height: auto;
    top: 24px;
    left: 12px;
  }
  
  .product-image-link img {
    width: 200px;
    height: 200px;
  }
}

/* Küçük Mobil Ekranlar */
@media screen and (max-width: 480px) {
  .product-wrapper {
    flex-direction: column;
    padding: 15px 10px !important;
  }
  
  .product-image-link img {
    width: 180px;
    height: 180px;
  }
  
  .price-final,
  .sale-price > .price-final {
    font-size: 20px;
  }
  
  .box-zoll-container,
  .box-color-container {
    gap: 8px 10px;
  }
  
  .box-color {
    width: 35px;
    height: 35px;
  }
}

/* Review */
.product-rating-container {
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
}

.custom-star {
  font-size: 16px;
  color: #ddd;
  height: 20px !important;
}

.custom-star.filled {
  color: #ffa500; /* Altın sarısı */
}

.custom-star.half-filled {
  background: linear-gradient(90deg, #ffa500 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-star.empty {
  color: #ddd;
}

.rating-text {
  color: #666;
  font-size: 10px;
}

.rating-text strong {
  color: #333;
  font-weight: 600;
}

/* Responsive için */
@media (max-width: 768px) {
  .product-rating-container {
      display: flex;
      align-items: center;
      gap: 10px;
  }
}