/**
 * WooCommerce Sayfaları — Aytech Elektromarket
 * Kategori, Ürün Detay, Sepet, Ödeme stilleri
 *
 * @package Aytech
 */

/* ========================================================================
   1. KATEGORİ BANNER
   ======================================================================== */
.ay-cat-banner {
  width: 100%;
  overflow: hidden;
  background: var(--ay-bg-alt);
}

.ay-cat-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================================================
   2. BREADCRUMB
   ======================================================================== */
.ay-breadcrumb {
  background: var(--ay-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--ay-border);
  font-size: 0.8125rem;
  color: var(--ay-gray-muted);
}

.ay-breadcrumb a {
  color: var(--ay-gray-light);
}

.ay-breadcrumb a:hover {
  color: var(--ay-gold-hover);
}

.ay-breadcrumb-sep {
  margin: 0 6px;
  color: var(--ay-gray-muted);
}

/* ========================================================================
   3. KATEGORİ BAŞLIK + AÇIKLAMA
   ======================================================================== */
.ay-cat-header {
  padding: 28px 0 20px;
  background: var(--ay-bg);
  border-bottom: 1px solid var(--ay-border);
}

.ay-cat-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ay-black);
  margin-bottom: 8px;
}

.ay-cat-header__desc {
  font-size: 0.875rem;
  color: var(--ay-gray-light);
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 8px;
}

.ay-cat-header__count {
  font-size: 0.8125rem;
  color: var(--ay-gray-muted);
}

/* ========================================================================
   4. ALT KATEGORİ KARTLARI
   ======================================================================== */
.ay-subcats {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.ay-subcat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ay-bg-alt);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  white-space: nowrap;
  transition: all var(--ay-transition);
  flex-shrink: 0;
}

.ay-subcat-card:hover {
  border-color: var(--ay-gold);
  background: var(--ay-gold-light);
}

.ay-subcat-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.ay-subcat-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ay-black);
}

.ay-subcat-card__count {
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
}

/* ========================================================================
   5. MAĞAZA LAYOUT — Sidebar + Grid
   ======================================================================== */
.ay-shop-content {
  padding: 28px 0 48px;
  background: var(--ay-bg-alt);
}

.ay-shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* ========================================================================
   6. SIDEBAR FİLTRELER
   ======================================================================== */
.ay-shop-sidebar {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.ay-filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ay-border);
}

.ay-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ay-filter-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ay-black);
  margin-bottom: 12px;
}

.ay-filter-list li {
  margin-bottom: 6px;
}

.ay-filter-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ay-gray);
  padding: 6px 8px;
  border-radius: 4px;
  transition: all var(--ay-transition);
}

.ay-filter-list li a:hover {
  background: var(--ay-gold-light);
  color: var(--ay-gold-hover);
}

.ay-filter-list li a span {
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
}

/* ========================================================================
   7. TOOLBAR — Sonuç sayısı + Sıralama
   ======================================================================== */
.ay-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
}

.ay-shop-toolbar__info {
  font-size: 0.8125rem;
  color: var(--ay-gray-light);
}

.ay-shop-toolbar__sort .woocommerce-ordering select,
.ay-shop-toolbar__sort select {
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-family: var(--ay-font);
  color: var(--ay-gray);
  background: var(--ay-bg);
  cursor: pointer;
}

/* ========================================================================
   8. SAYFALAMA
   ======================================================================== */
.ay-pagination {
  margin-top: 32px;
  text-align: center;
}

.ay-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ay-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ay-gray);
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  transition: all var(--ay-transition);
}

.ay-pagination .page-numbers:hover {
  border-color: var(--ay-gold);
  color: var(--ay-gold-hover);
}

.ay-pagination .page-numbers.current {
  background: var(--ay-gold);
  border-color: var(--ay-gold);
  color: var(--ay-black);
  font-weight: 700;
}

/* ========================================================================
   9. KATEGORİ SEO İÇERİK (Alt Kısım)
   ======================================================================== */
.ay-cat-seo {
  padding: 36px 0;
  background: var(--ay-bg);
  border-top: 1px solid var(--ay-border);
}

.ay-cat-seo__content {
  max-width: 800px;
}

.ay-cat-seo__content h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.ay-cat-seo__content p {
  font-size: 0.875rem;
  color: var(--ay-gray-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ========================================================================
   10. TEK ÜRÜN SAYFASI
   ======================================================================== */
.ay-single-product {
  padding: 28px 0 48px;
}

.ay-single-product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Ürün Galeri */
.ay-product-gallery {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  overflow: hidden;
  padding: 24px;
}

.ay-product-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ürün Bilgi */
.ay-product-info__brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ay-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.ay-product-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.ay-product-info__sku {
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
  margin-bottom: 16px;
}

.ay-product-info__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ay-black);
  margin-bottom: 20px;
}

.ay-product-info__price del {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ay-gray-muted);
  margin-right: 8px;
}

/* Stok durumu */
.ay-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.ay-stock--in {
  background: rgba(29, 158, 117, 0.1);
  color: var(--ay-free-shipping);
}

.ay-stock--out {
  background: rgba(226, 75, 74, 0.1);
  color: var(--ay-same-day);
}

/* Ürün detay güven rozetleri */
.ay-product-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  background: var(--ay-bg-alt);
  border-radius: var(--ay-radius);
}

.ay-product-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ay-gray);
}

.ay-product-trust__item svg {
  width: 16px;
  height: 16px;
  color: var(--ay-free-shipping);
  flex-shrink: 0;
}

/* Sepete ekle + Hemen Al butonları */
.ay-product-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ay-product-actions .ay-btn {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Ürün Tabları */
.ay-product-tabs {
  margin-top: 48px;
  border-top: 1px solid var(--ay-border);
}

.ay-product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ay-border);
}

.ay-product-tabs__nav button {
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ay-gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--ay-transition);
  font-family: var(--ay-font);
}

.ay-product-tabs__nav button.active,
.ay-product-tabs__nav button:hover {
  color: var(--ay-gold-hover);
  border-bottom-color: var(--ay-gold);
}

.ay-product-tabs__content {
  padding: 24px 0;
}

.ay-product-tabs__panel {
  display: none;
}

.ay-product-tabs__panel.active {
  display: block;
}

/* ========================================================================
   11. CHECKOUT — Kurumsal / Bireysel Fatura Toggle
   ======================================================================== */
.ay-invoice-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  overflow: hidden;
}

.ay-invoice-toggle__btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--ay-transition);
  background: var(--ay-bg-alt);
  color: var(--ay-gray);
  border: none;
  font-family: var(--ay-font);
}

.ay-invoice-toggle__btn.active {
  background: var(--ay-gold);
  color: var(--ay-black);
}

.ay-invoice-fields {
  display: none;
}

.ay-invoice-fields.active {
  display: block;
}

/* Form alanları */
.ay-form-row {
  margin-bottom: 16px;
}

.ay-form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ay-gray);
  margin-bottom: 6px;
}

.ay-form-row input,
.ay-form-row select,
.ay-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: var(--ay-font);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  background: var(--ay-bg);
  color: var(--ay-black);
  transition: border-color var(--ay-transition);
}

.ay-form-row input:focus,
.ay-form-row select:focus,
.ay-form-row textarea:focus {
  outline: none;
  border-color: var(--ay-gold);
}

/* ========================================================================
   12. RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .ay-shop-layout {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .ay-single-product__layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .ay-shop-layout {
    grid-template-columns: 1fr;
  }

  .ay-shop-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .ay-single-product__layout {
    grid-template-columns: 1fr;
  }

  .ay-cat-header__title {
    font-size: 1.375rem;
  }

  .ay-product-info h1 {
    font-size: 1.25rem;
  }

  .ay-product-actions {
    flex-direction: column;
  }

  .ay-subcats {
    gap: 8px;
  }
}

/* ========================================================================
   13. CHECKOUT SAYFASI
   ======================================================================== */
.ay-checkout {
  padding: 28px 0 48px;
  background: var(--ay-bg-alt);
}

.ay-checkout__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.ay-checkout__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.ay-checkout-section {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.ay-checkout-section__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ay-border);
}

/* Invoice Toggle */
.ay-invoice-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  overflow: hidden;
}

.ay-invoice-toggle__btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--ay-transition);
  background: var(--ay-bg-alt);
  color: var(--ay-gray);
  border: none;
  font-family: var(--ay-font);
}

.ay-invoice-toggle__btn.active {
  background: var(--ay-gold);
  color: var(--ay-black);
}

.ay-invoice-fields {
  display: none;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--ay-gold-light);
  border-radius: var(--ay-radius);
  border: 1px solid rgba(245, 184, 48, 0.2);
}

.ay-invoice-fields.active {
  display: block;
}

/* Form Grid */
.ay-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ay-form-row--full {
  grid-column: 1 / -1;
}

.ay-form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ay-gray);
  margin-bottom: 5px;
}

.ay-form-row label abbr {
  color: var(--ay-same-day);
  text-decoration: none;
}

.ay-form-row input,
.ay-form-row select,
.ay-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: var(--ay-font);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  background: var(--ay-bg);
  color: var(--ay-black);
  transition: border-color var(--ay-transition);
}

.ay-form-row input:focus,
.ay-form-row select:focus,
.ay-form-row textarea:focus {
  outline: none;
  border-color: var(--ay-gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 48, 0.1);
}

.ay-form-row input::placeholder,
.ay-form-row textarea::placeholder {
  color: var(--ay-gray-muted);
}

/* Checkbox */
.ay-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ay-gray);
  cursor: pointer;
  margin-bottom: 8px;
}

.ay-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--ay-gold);
  flex-shrink: 0;
}

.ay-checkbox a {
  color: var(--ay-gold-hover);
  font-weight: 500;
}

/* Order Summary */
.ay-order-summary {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.ay-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ay-border);
}

.ay-order-item:last-child {
  border-bottom: none;
}

.ay-order-item__img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ay-bg-alt);
}

.ay-order-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ay-order-item__info {
  flex: 1;
}

.ay-order-item__name {
  font-size: 0.8125rem;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

.ay-order-item__qty {
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
}

.ay-order-item__price {
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Coupon */
.ay-coupon-area {
  padding: 12px 0;
  border-top: 1px solid var(--ay-border);
}

.ay-coupon-toggle {
  font-size: 0.8125rem;
  color: var(--ay-gold-hover);
  cursor: pointer;
  font-weight: 500;
}

.ay-coupon-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ay-coupon-form input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8125rem;
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  font-family: var(--ay-font);
}

/* Order Totals */
.ay-order-totals {
  padding-top: 12px;
  border-top: 1px solid var(--ay-border);
}

.ay-order-totals__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--ay-gray);
}

.ay-order-totals__discount {
  color: var(--ay-free-shipping);
}

.ay-order-totals__total {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ay-black);
  border-top: 2px solid var(--ay-border);
  margin-top: 8px;
  padding-top: 12px;
}

/* Payment Methods */
.ay-payment-section {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.ay-payment-method {
  padding: 12px;
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  margin-bottom: 8px;
  transition: border-color var(--ay-transition);
}

.ay-payment-method:has(input:checked) {
  border-color: var(--ay-gold);
  background: var(--ay-gold-light);
}

.ay-payment-method__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.ay-payment-method__label input[type="radio"] {
  accent-color: var(--ay-gold);
}

.ay-payment-method__desc {
  font-size: 0.75rem;
  color: var(--ay-gray-light);
  margin-top: 8px;
  padding-left: 26px;
}

/* Trust Badges */
.ay-checkout-trust {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.ay-checkout-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ay-gray);
  padding: 6px 0;
}

.ay-checkout-trust__icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Agreements */
.ay-checkout-agreements {
  margin-bottom: 16px;
}

/* Submit Button */
.ay-btn--checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 28px;
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--ay-font);
  background: var(--ay-gold);
  color: var(--ay-black);
  border: none;
  border-radius: var(--ay-radius-lg);
  cursor: pointer;
  transition: background var(--ay-transition);
  letter-spacing: 0.02em;
}

.ay-btn--checkout:hover {
  background: var(--ay-gold-hover);
}

.ay-btn--outline {
  background: transparent;
  border: 1px solid var(--ay-border);
  color: var(--ay-gray);
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--ay-radius);
  cursor: pointer;
  font-family: var(--ay-font);
}

/* Responsive */
@media (max-width: 1024px) {
  .ay-checkout__grid {
    grid-template-columns: 1fr 360px;
  }
}

@media (max-width: 768px) {
  .ay-checkout__grid {
    grid-template-columns: 1fr;
  }

  .ay-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   14. TEKNİK DOKÜMAN TAB — PDF İndirme Butonları
   ======================================================================== */
.ay-technical-docs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ay-doc-download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ay-bg-alt);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  transition: all var(--ay-transition);
  color: var(--ay-black);
}

.ay-doc-download:hover {
  border-color: var(--ay-gold);
  background: var(--ay-gold-light);
}

.ay-doc-download__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.ay-doc-download__info {
  display: flex;
  flex-direction: column;
}

.ay-doc-download__info strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.ay-doc-download__info span {
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
}

/* ========================================================================
   15. HESAP SAYFALARI — Giriş / Kayıt / Dashboard
   ======================================================================== */
.ay-account {
  padding: 28px 0 48px;
  background: var(--ay-bg-alt);
  min-height: 60vh;
}

/* Auth (Login/Register) */
.ay-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.ay-auth__box {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 28px;
}

.ay-auth__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ay-auth__desc {
  font-size: 0.8125rem;
  color: var(--ay-gray-muted);
  margin-bottom: 20px;
}

.ay-auth__form .ay-form-row {
  margin-bottom: 14px;
}

.ay-auth__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ay-auth__forgot {
  font-size: 0.8125rem;
  color: var(--ay-gold-hover);
  font-weight: 500;
}

.ay-btn--full {
  width: 100%;
}

.ay-auth__benefits {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ay-border);
}

.ay-auth__benefit {
  font-size: 0.8125rem;
  color: var(--ay-gray);
  padding: 4px 0;
}

/* Dashboard */
.ay-dashboard__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.ay-dashboard__sidebar {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.ay-dashboard__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ay-border);
}

.ay-dashboard__user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.ay-dashboard__user strong {
  display: block;
  font-size: 0.875rem;
}

.ay-dashboard__user span {
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
}

.ay-dashboard__nav-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ay-gray);
  border-radius: var(--ay-radius);
  margin-bottom: 2px;
  transition: all var(--ay-transition);
}

.ay-dashboard__nav-item:hover {
  background: var(--ay-bg-alt);
  color: var(--ay-gold-hover);
}

.ay-dashboard__nav-item.active {
  background: var(--ay-gold-light);
  color: var(--ay-gold-hover);
  font-weight: 600;
}

.ay-dashboard__content {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 28px;
  min-height: 400px;
}

/* ========================================================================
   16. SEPET SAYFASI
   ======================================================================== */
.ay-cart-page {
  padding: 28px 0 48px;
  background: var(--ay-bg-alt);
}

.ay-cart-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.ay-cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* Boş sepet */
.ay-cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
}

.ay-cart-empty__icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.ay-cart-empty h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.ay-cart-empty p {
  font-size: 0.875rem;
  color: var(--ay-gray-muted);
}

/* Ürün listesi */
.ay-cart-items {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 20px;
}

.ay-cart-header {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 1fr 40px;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ay-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ay-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ay-cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 1fr 40px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ay-border);
}

.ay-cart-item:last-of-type {
  border-bottom: none;
}

.ay-cart-item__product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ay-cart-item__img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--ay-radius);
  overflow: hidden;
  background: var(--ay-bg-alt);
}

.ay-cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ay-cart-item__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ay-black);
  display: block;
  line-height: 1.4;
}

.ay-cart-item__brand {
  font-size: 0.6875rem;
  color: var(--ay-gray-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.ay-cart-item__badge {
  display: inline-block;
  background: var(--ay-same-day);
  color: #FFF;
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

.ay-cart-item__price,
.ay-cart-item__subtotal {
  font-size: 0.875rem;
  font-weight: 600;
}

.ay-cart-item__subtotal {
  font-weight: 700;
}

.ay-cart-item__qty input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius);
  font-size: 0.875rem;
  font-family: var(--ay-font);
  text-align: center;
}

.ay-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--ay-gray-muted);
  transition: all var(--ay-transition);
}

.ay-remove-btn:hover {
  background: rgba(226, 75, 74, 0.1);
  color: var(--ay-same-day);
}

/* Sepet aksiyonları */
.ay-cart-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--ay-border);
}

/* Sipariş özeti (sağ panel) */
.ay-cart-summary__box {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.ay-cart-summary__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ay-border);
}

.ay-cart-trust {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ay-border);
  font-size: 0.75rem;
  color: var(--ay-gray-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .ay-cart-grid {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 768px) {
  .ay-auth__grid {
    grid-template-columns: 1fr;
  }

  .ay-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .ay-dashboard__sidebar {
    position: static;
  }

  .ay-cart-grid {
    grid-template-columns: 1fr;
  }

  .ay-cart-header {
    display: none;
  }

  .ay-cart-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .ay-cart-item__price,
  .ay-cart-item__qty,
  .ay-cart-item__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ay-cart-item__price::before,
  .ay-cart-item__qty::before,
  .ay-cart-item__subtotal::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ay-gray-muted);
  }

  .ay-cart-item__remove {
    position: absolute;
    top: 16px;
    right: 0;
  }

  .ay-cart-item {
    position: relative;
  }
}

/* ========================================================================
   HESAP DETAYLARI — Label & Input Hizalama Düzeltmesi
   ======================================================================== */

/* WooCommerce kendi fieldset/legend yapısını geçersiz kıl */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
  border: 1px solid var(--ay-border) !important;
  border-radius: var(--ay-radius-lg) !important;
  padding: 20px 24px !important;
  margin-bottom: 24px !important;
  background: var(--ay-bg-alt) !important;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
  padding: 0 8px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: var(--ay-gray) !important;
}

/* Tüm form satırları dikey hizalanmalı */
.woocommerce-MyAccount-content .woocommerce-form-row {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 16px !important;
  clear: none !important;
}

.woocommerce-MyAccount-content .woocommerce-form-row label {
  text-align: left !important;
  float: none !important;
  width: auto !important;
  margin-bottom: 6px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--ay-black) !important;
  order: -1 !important;
}

.woocommerce-MyAccount-content .woocommerce-form-row input,
.woocommerce-MyAccount-content .woocommerce-form-row select {
  width: 100% !important;
  float: none !important;
  padding: 10px 14px !important;
  border: 1px solid var(--ay-border) !important;
  border-radius: var(--ay-radius) !important;
  font-size: 0.875rem !important;
  background: var(--ay-bg) !important;
  color: var(--ay-black) !important;
  transition: border-color var(--ay-transition) !important;
}

.woocommerce-MyAccount-content .woocommerce-form-row input:focus {
  outline: none !important;
  border-color: var(--ay-gold) !important;
  box-shadow: 0 0 0 3px rgba(232,168,32,0.12) !important;
}

/* İki sütunlu satırlar (Ad / Soyad) */
.woocommerce-MyAccount-content .woocommerce-form-row--first {
  float: left !important;
  width: 48% !important;
  margin-right: 4% !important;
}

.woocommerce-MyAccount-content .woocommerce-form-row--last {
  float: left !important;
  width: 48% !important;
  margin-right: 0 !important;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm::after {
  content: '';
  display: table;
  clear: both;
}

/* Parola alanlarının sağda çıkmasını engelle — hepsini tam genişlik yap */
.woocommerce-MyAccount-content fieldset .woocommerce-form-row {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

/* Kaydet butonu */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm [name="save_account_details"] {
  background: var(--ay-gold) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: var(--ay-radius) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background var(--ay-transition) !important;
  margin-top: 8px !important;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm [name="save_account_details"]:hover {
  background: var(--ay-gold-hover) !important;
}

/* Responsive: mobilde tek sütun */
@media (max-width: 600px) {
  .woocommerce-MyAccount-content .woocommerce-form-row--first,
  .woocommerce-MyAccount-content .woocommerce-form-row--last {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
  }
}

/* ========================================================================
   MOBİL TAŞMA & TOPBAR DÜZELTMELERİ (v7.5)
   ======================================================================== */

@media (max-width: 768px) {

  /* Topbar mobilde tek satır, taşmasın */
  .ay-topbar {
    display: none !important;
  }

  /* Header sığsın */
  .ay-header .ay-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Arama çubuğu tam genişlik olsun */
  .ay-header__search {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Logo küçülsün */
  .ay-header__logo img {
    max-height: 36px !important;
    width: auto !important;
  }

  /* Nav menü yatay scroll ile */
  .ay-nav > .ay-container {
    padding: 0 8px !important;
  }
  .ay-nav__menu {
    gap: 0 !important;
  }
  .ay-nav__item > a {
    font-size: 0.75rem !important;
    padding: 10px 8px !important;
    white-space: nowrap !important;
  }

  /* Hero alanı mobilde küçülsün */
  .ay-hero {
    min-height: unset !important;
  }
  .ay-hero .ay-container {
    padding: 0 !important;
  }
  .ay-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .ay-hero-sidebar {
    display: none !important;
  }

  /* Kategori kartları 2 sütun */
  .ay-categories__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Ürün kartları 2 sütun */
  .ay-products__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Genel container padding */
  .ay-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Minicart tam genişlik */
  .ay-minicart {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 480px) {
  .ay-header__icons {
    gap: 8px !important;
  }
  .ay-header__icons span {
    display: none !important;
  }
}

/* ========================================================================
   SİPARİŞ ALINDI (Thank You) SAYFASI
   ======================================================================== */
.woocommerce-order {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Başarı kutusu */
.woocommerce-order .woocommerce-notice,
.woocommerce-order p:first-of-type {
  background: #f0faf4;
  border: 1px solid #a3d9b1;
  border-left: 4px solid #2ecc71;
  border-radius: var(--ay-radius-lg);
  padding: 16px 20px;
  color: #1a6b35;
  font-weight: 600;
  margin-bottom: 28px;
}

/* Sipariş özet kutusu */
.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.woocommerce-order-overview li {
  flex: 1 1 180px;
  padding: 18px 20px;
  border-right: 1px solid var(--ay-border);
  font-size: 0.8125rem;
  color: var(--ay-gray-light);
}

.woocommerce-order-overview li:last-child {
  border-right: none;
}

.woocommerce-order-overview li strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ay-black);
  margin-top: 4px;
  font-weight: 700;
}

/* Sipariş detay bölümleri */
.woocommerce-order-details,
.woocommerce-customer-details {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ay-black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ay-gold);
  display: inline-block;
}

/* Sipariş ürün tablosu */
.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.woocommerce-table--order-details th {
  text-align: left;
  padding: 10px 12px;
  background: var(--ay-bg-alt);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ay-gray);
  border-bottom: 1px solid var(--ay-border);
}

.woocommerce-table--order-details td {
  padding: 12px;
  border-bottom: 1px solid var(--ay-border);
  vertical-align: middle;
}

.woocommerce-table--order-details tfoot td,
.woocommerce-table--order-details tfoot th {
  padding: 10px 12px;
  font-weight: 600;
}

.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th {
  font-size: 1rem;
  color: var(--ay-gold-hover);
}

/* Müşteri adresleri */
.woocommerce-columns--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.woocommerce-column {
  background: var(--ay-bg);
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius-lg);
  padding: 20px 24px;
}

.woocommerce-column address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ay-gray);
}

/* Banka havalesi bilgileri */
.woocommerce-bacs-bank-details {
  margin-top: 16px;
}

.woocommerce-bacs-bank-details .bank_details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-bacs-bank-details .bank_details li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ay-border);
  font-size: 0.875rem;
  display: flex;
  gap: 12px;
}

.woocommerce-bacs-bank-details .bank_details strong {
  min-width: 120px;
  color: var(--ay-gray-muted);
  font-weight: 600;
}

/* Teşekkür butonu */
.woocommerce-order .button,
.woocommerce-order a.button {
  display: inline-block;
  background: var(--ay-gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--ay-radius);
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: background var(--ay-transition);
}

.woocommerce-order .button:hover {
  background: var(--ay-gold-hover);
}

@media (max-width: 640px) {
  .woocommerce-order-overview li {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--ay-border);
  }
  .woocommerce-columns--2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   MOBİL OVERFLOW — GÜVENLİ YAKLAŞIM (v7.6)
   overflow-x:hidden html/body'ye uygulanmaz (position:fixed'ı bozar)
   ======================================================================== */

/* Sadece içerik sarmalayıcılara uygula */
.ay-container {
  box-sizing: border-box;
  max-width: 100%;
}

.ay-hero,
.ay-categories,
.ay-products,
.ay-trust,
.ay-blog,
.ay-footer,
.ay-cart-page,
.ay-account,
.ay-checkout-page {
  overflow-x: clip;
}

@media (max-width: 768px) {

  /* Topbar gizle */
  .ay-topbar { display: none !important; }

  /* Header wrap */
  .ay-header .ay-container {
    padding: 8px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  /* Arama tam genişlik — alt satıra geç */
  .ay-header__search {
    order: 3 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Logo küçük */
  .ay-header__logo img {
    max-height: 36px !important;
    width: auto !important;
  }

  /* Nav yatay scroll */
  .ay-nav .ay-container {
    padding: 0 8px !important;
  }
  .ay-nav__item > a {
    font-size: 0.75rem !important;
    padding: 10px 8px !important;
  }

  /* Hero tek sütun */
  .ay-hero__grid {
    grid-template-columns: 1fr !important;
  }
  .ay-hero-sidebar { display: none !important; }

  /* Ürün & kategori grid 2 sütun */
  .ay-products__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .ay-categories__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* Container iç padding */
  .ay-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Minicart tam genişlik */
  .ay-minicart {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Kategori / search sayfası filter sidebar */
  .ay-shop-layout {
    grid-template-columns: 1fr !important;
  }
  .ay-shop-sidebar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  /* Header icon yazılarını gizle */
  .ay-header__icon-label { display: none !important; }

  /* Ürün kart butonları */
  .ay-product-card__actions { flex-direction: row !important; gap: 4px !important; }
  .ay-product-card__actions .ay-btn { font-size: 0.6875rem !important; padding: 7px 6px !important; }
}

/* ========================================================================
   SİPARİŞ ALINDI — Ek Tasarım İyileştirmeleri (v7.7)
   ======================================================================== */

/* Sayfa geneli wrapper */
.woocommerce-page.woocommerce-order-received #main-content,
.woocommerce-checkout-payment .woocommerce-order-received {
  background: var(--ay-bg-alt);
  min-height: 60vh;
  padding: 32px 0 64px;
}

/* Üst başarı banner */
.woocommerce-order .woocommerce-order-overview {
  background: #fff;
  border: 1px solid #d4edda;
  border-top: 4px solid #28a745;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
}

.woocommerce-order .woocommerce-order-overview.woocommerce-thankyou-order-details {
  display: flex;
  flex-wrap: wrap;
}

.woocommerce-order .woocommerce-order-overview li {
  flex: 1 1 200px;
  padding: 20px 24px;
  border-right: 1px solid #e9ecef;
  border-bottom: none;
  list-style: none;
  font-size: 0.8125rem;
  color: #6c757d;
  font-weight: 500;
}

.woocommerce-order .woocommerce-order-overview li:last-child { border-right: none; }
.woocommerce-order .woocommerce-order-overview li strong { display: block; font-size: 1rem; color: #212529; font-weight: 700; margin-top: 4px; }

/* Bölüm başlıkları */
.woocommerce-order h2 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--ay-black) !important;
  margin: 28px 0 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--ay-gold) !important;
}

/* Sipariş tablosu */
.woocommerce-order .woocommerce-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.woocommerce-order .woocommerce-table thead th {
  background: var(--ay-bg-alt);
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #495057;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
}

.woocommerce-order .woocommerce-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  vertical-align: middle;
}

.woocommerce-order .woocommerce-table tfoot th,
.woocommerce-order .woocommerce-table tfoot td {
  padding: 12px 20px;
  border-top: 1px solid #dee2e6;
  font-size: 0.875rem;
}

.woocommerce-order .woocommerce-table tfoot tr:last-child th,
.woocommerce-order .woocommerce-table tfoot tr:last-child td {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ay-gold-hover);
  border-top: 2px solid #dee2e6;
}

/* Banka bilgileri */
.woocommerce-order .woocommerce-order-details + .woocommerce-customer-details,
.woocommerce-order section.woocommerce-bacs-bank-details {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.woocommerce-order .woocommerce-bacs-bank-details h2 { margin-top: 0 !important; }

.woocommerce-order .woocommerce-bacs-bank-details ul.bank_details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-order .woocommerce-bacs-bank-details ul.bank_details li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  align-items: baseline;
}

.woocommerce-order .woocommerce-bacs-bank-details ul.bank_details li:last-child { border: none; }

.woocommerce-order .woocommerce-bacs-bank-details ul.bank_details strong {
  min-width: 80px;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
