/*
Theme Name: Hello Elementor Child - Daloğlu Digital
Theme URI: https://dalogludigital.com
Description: Daloğlu Digital e-ticaret sitesi için Hello Elementor alt teması
Author: Daloğlu Digital
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

:root {
  --dd-dark: #0c1e2e;
  --dd-blue: #1b9cd8;
  --dd-green: #34b36f;
  --dd-gradient: linear-gradient(135deg, #1b9cd8 0%, #34b36f 100%);
  --dd-light: #f4f7fa;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* ---- WooCommerce genel ---- */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
  background: var(--dd-gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
}
.woocommerce .button:hover,
.woocommerce a.button:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.woocommerce span.onsale {
  background: var(--dd-green);
  border-radius: 999px;
  min-height: 2.6em;
  min-width: 2.6em;
  line-height: 2.6;
}
.woocommerce div.product p.price,
.woocommerce ul.products li.product .price {
  color: var(--dd-dark);
  font-weight: 700;
}
.woocommerce ul.products li.product .price del {
  color: #9aa7b1;
  font-weight: 400;
}

/* Ürün kartları */
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  padding: 14px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 14px 34px rgba(12, 30, 46, .12);
  transform: translateY(-4px);
}
.woocommerce ul.products li.product a img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: .95rem;
  line-height: 1.45;
  min-height: 2.9em;
  color: var(--dd-dark);
}

/* Fiyat Sorunuz rozeti */
.dd-ask-price {
  display: inline-block;
  background: var(--dd-light);
  color: var(--dd-dark);
  border: 1px dashed var(--dd-blue);
  border-radius: 8px;
  padding: .35em .8em;
  font-size: .85em;
  font-weight: 600;
}
.single-product .dd-ask-price {
  font-size: 1em;
  padding: .6em 1.1em;
}
.dd-ask-price-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--dd-gradient);
  color: #fff !important;
  border-radius: 8px;
  padding: .8em 1.6em;
  font-weight: 600;
  text-decoration: none;
  margin-top: .8em;
}

/* Breadcrumb ve sayfalama */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 8px;
  border: 1px solid #e6ecf1;
  margin: 0 3px;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--dd-dark);
  color: #fff;
}
.woocommerce nav.woocommerce-pagination ul {
  border: none;
}

/* Hero görseli */
.dd-hero-img img {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

/* Mobil ince ayar */
@media (max-width: 767px) {
  .woocommerce ul.products[class*="columns-"] li.product {
    width: 48%;
    margin-right: 4%;
  }
  .woocommerce ul.products[class*="columns-"] li.product:nth-child(2n) {
    margin-right: 0;
  }
  /* Header tek satır: logo + menü + arama + sepet */
  .dd-header-inner {
    flex-wrap: nowrap !important;
  }
  .dd-header-inner > .elementor-element {
    width: auto !important;
  }
  .dd-header-inner .elementor-widget-image {
    flex-shrink: 0;
  }
  .dd-header-actions {
    flex-shrink: 0;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
  }
  .dd-header-actions > .elementor-element {
    width: auto !important;
  }
  .dd-header-actions .elementor-menu-cart__toggle .elementor-button {
    padding: 8px 10px;
  }
  .dd-header-actions .elementor-menu-cart__toggle .elementor-button-text {
    display: none;
  }
}
