/*
 * Yaqoot — WooCommerce visual overrides
 * Restyles WooCommerce's default markup to match the rest of the site
 * (navy + matte gold/copper palette, rounded-md cards, soft shadows).
 * Loaded only when WooCommerce is active, after WooCommerce's own
 * stylesheet, so these rules take precedence.
 */

:root {
  --wc-navy: #0b1a35;
  --wc-navy-light: #16294f;
  --wc-gold: #c39542;
  --wc-gold-light: #e2c26a;
  --wc-gold-dark: #8a6a2f;
  --wc-border: #e5e7eb;
  --wc-bg-muted: #f8f7f4;
}

.yaqoot-shop { text-align: right; }
.yaqoot-shop * { box-sizing: border-box; }

/* =========================================================
   Breadcrumb
   ========================================================= */
.yaqoot-shop .woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.yaqoot-shop .woocommerce-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}
.yaqoot-shop .woocommerce-breadcrumb a:hover {
  color: var(--wc-gold);
}

/* Archive / page title */
.yaqoot-shop h1.entry-title,
.yaqoot-shop .woocommerce-products-header__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wc-navy);
  text-align: center;
  margin: 0 0 0.75rem;
}
.yaqoot-shop .woocommerce-products-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}
.yaqoot-shop .woocommerce-products-header::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--wc-gold);
  margin: 0.75rem auto 0;
  border-radius: 999px;
}

/* =========================================================
   Notices (cart/checkout messages, errors, info)
   ========================================================= */
.yaqoot-shop .woocommerce-message,
.yaqoot-shop .woocommerce-error,
.yaqoot-shop .woocommerce-info,
.yaqoot-shop .woocommerce-noreviews,
.yaqoot-shop p.no-comments {
  list-style: none;
  background: #fff;
  border: 1px solid var(--wc-border);
  border-right: 4px solid var(--wc-gold);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #374151;
}
.yaqoot-shop .woocommerce-error {
  border-right-color: #dc2626;
}
.yaqoot-shop .woocommerce-message .button,
.yaqoot-shop .woocommerce-error .button,
.yaqoot-shop .woocommerce-info .button {
  order: 2;
}

/* =========================================================
   Buttons (used everywhere: cart, checkout, account, loop)
   ========================================================= */
.yaqoot-shop .button,
.yaqoot-shop button.button,
.yaqoot-shop input.button,
.yaqoot-shop a.button,
.yaqoot-shop #place_order,
.yaqoot-shop .checkout-button {
  background: var(--wc-navy);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.yaqoot-shop .button:hover,
.yaqoot-shop button.button:hover,
.yaqoot-shop input.button:hover,
.yaqoot-shop a.button:hover,
.yaqoot-shop #place_order:hover,
.yaqoot-shop .checkout-button:hover {
  background: var(--wc-navy-light);
  transform: translateY(-2px);
}
.yaqoot-shop .single_add_to_cart_button,
.yaqoot-shop .checkout-button,
.yaqoot-shop #place_order {
  background: var(--wc-gold);
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  padding: 1rem 1.75rem;
}
.yaqoot-shop .single_add_to_cart_button:hover,
.yaqoot-shop .checkout-button:hover,
.yaqoot-shop #place_order:hover {
  background: var(--wc-gold-dark);
}
.yaqoot-shop .button.disabled,
.yaqoot-shop .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   Sorting / result count bar
   ========================================================= */
.yaqoot-shop .woocommerce-notices-wrapper,
.yaqoot-shop .woocommerce-info + .woocommerce-result-count { margin-top: 0; }

.yaqoot-shop .woocommerce-result-count,
.yaqoot-shop .woocommerce-ordering {
  color: #6b7280;
  font-size: 0.9rem;
}
.yaqoot-shop form.woocommerce-ordering,
.yaqoot-shop .woocommerce-result-count {
  margin-bottom: 1.5rem;
}
.yaqoot-shop .woocommerce-ordering select {
  border: 1px solid var(--wc-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #374151;
}

/* =========================================================
   Product grid (shop archive, related products, upsells)
   ========================================================= */
.yaqoot-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}
@media (max-width: 1024px) {
  .yaqoot-shop ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .yaqoot-shop ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .yaqoot-shop ul.products { grid-template-columns: 1fr; }
}

.yaqoot-shop ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.yaqoot-shop ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: transparent;
}

.yaqoot-shop ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.yaqoot-shop ul.products li.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 0 1rem;
  display: block;
}

.yaqoot-shop ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wc-navy);
  margin: 0 1rem 0.5rem;
  line-height: 1.5;
}

.yaqoot-shop ul.products li.product .price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wc-gold);
  margin: 0 1rem 1rem;
  display: block;
}
.yaqoot-shop ul.products li.product .price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 0.4em;
}
.yaqoot-shop ul.products li.product .price ins {
  text-decoration: none;
}

.yaqoot-shop ul.products li.product .star-rating {
  margin: 0 auto 0.5rem;
  color: var(--wc-gold);
}

.yaqoot-shop ul.products li.product .button,
.yaqoot-shop ul.products li.product .add_to_cart_button {
  display: block;
  margin: 0 1rem 1.25rem;
  background: var(--wc-navy);
  border-radius: 8px;
}
.yaqoot-shop ul.products li.product .added_to_cart {
  display: block;
  margin: 0 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--wc-gold);
}

.yaqoot-shop ul.products li.product .onsale {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  background: var(--wc-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  min-height: 0;
  min-width: 0;
  line-height: 1.4;
  z-index: 2;
}

.yaqoot-shop .woocommerce-loop-category__title,
.yaqoot-shop ul.products li.product-category .woocommerce-loop-category__title mark {
  color: var(--wc-navy);
  background: transparent;
}

/* =========================================================
   Pagination
   ========================================================= */
.yaqoot-shop .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.yaqoot-shop .woocommerce-pagination .page-numbers li { display: inline-block; }
.yaqoot-shop .woocommerce-pagination .page-numbers a,
.yaqoot-shop .woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--wc-border);
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.yaqoot-shop .woocommerce-pagination .page-numbers a:hover,
.yaqoot-shop .woocommerce-pagination .page-numbers .current {
  background: var(--wc-navy);
  color: #fff;
  border-color: var(--wc-navy);
}

/* =========================================================
   Single Product
   ========================================================= */
.yaqoot-shop div.product {
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.yaqoot-shop .woocommerce-product-gallery__image {
  border-radius: 10px;
  overflow: hidden;
}
.yaqoot-shop .woocommerce-product-gallery img {
  border-radius: 10px;
}
.yaqoot-shop .flex-control-thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}
.yaqoot-shop .flex-control-thumbs li img {
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  cursor: pointer;
}
.yaqoot-shop .flex-control-thumbs li img.flex-active {
  border-color: var(--wc-gold);
}

.yaqoot-shop .summary.entry-summary .product_title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wc-navy);
  margin: 0 0 0.75rem;
}
.yaqoot-shop .summary.entry-summary .woocommerce-product-rating {
  margin-bottom: 1rem;
}
.yaqoot-shop .summary.entry-summary .star-rating { color: var(--wc-gold); }
.yaqoot-shop .summary.entry-summary p.price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wc-gold);
  margin-bottom: 1.25rem;
}
.yaqoot-shop .summary.entry-summary p.price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.6em;
  margin-left: 0.5em;
}
.yaqoot-shop .woocommerce-product-details__short-description {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.yaqoot-shop .quantity .qty {
  width: 70px;
  padding: 0.75rem;
  border: 1px solid var(--wc-border);
  border-radius: 8px;
  text-align: center;
  margin-left: 0.75rem;
}
.yaqoot-shop form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.yaqoot-shop form.cart .single_add_to_cart_button {
  width: auto;
  flex: 1 1 200px;
}

.yaqoot-shop .product_meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wc-border);
  font-size: 0.85rem;
  color: #6b7280;
}
.yaqoot-shop .product_meta a { color: var(--wc-gold); text-decoration: none; }

/* Tabs (description / additional info / reviews) */
.yaqoot-shop .woocommerce-tabs {
  margin-top: 2.5rem;
}
.yaqoot-shop .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--wc-border);
}
.yaqoot-shop .woocommerce-tabs ul.tabs li {
  margin: 0;
}
.yaqoot-shop .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}
.yaqoot-shop .woocommerce-tabs ul.tabs li.active a {
  color: var(--wc-navy);
  border-bottom-color: var(--wc-gold);
}
.yaqoot-shop .woocommerce-tabs .panel {
  color: #4b5563;
  line-height: 1.9;
}
.yaqoot-shop .woocommerce-tabs table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}
.yaqoot-shop .woocommerce-tabs table.shop_attributes th,
.yaqoot-shop .woocommerce-tabs table.shop_attributes td {
  border: 1px solid var(--wc-border);
  padding: 0.75rem 1rem;
  text-align: right;
}
.yaqoot-shop .woocommerce-tabs table.shop_attributes th {
  background: var(--wc-bg-muted);
  font-weight: 700;
  width: 30%;
}

/* Related / Upsell products heading */
.yaqoot-shop .related.products > h2,
.yaqoot-shop .upsells.products > h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wc-navy);
  margin: 0 0 1.5rem;
}

/* =========================================================
   Cart page
   ========================================================= */
.yaqoot-shop table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.yaqoot-shop table.shop_table th {
  background: var(--wc-bg-muted);
  color: var(--wc-navy);
  font-weight: 700;
  padding: 1rem;
  text-align: right;
}
.yaqoot-shop table.shop_table td {
  padding: 1rem;
  border-top: 1px solid var(--wc-border);
  text-align: right;
  vertical-align: middle;
}
.yaqoot-shop table.shop_table td.product-thumbnail img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}
.yaqoot-shop table.shop_table td.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626 !important;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}
.yaqoot-shop table.shop_table td.product-price,
.yaqoot-shop table.shop_table td.product-subtotal {
  color: var(--wc-gold);
  font-weight: 700;
}
.yaqoot-shop table.shop_table .quantity .qty {
  width: 60px;
  padding: 0.5rem;
}

.yaqoot-shop .cart-collaterals {
  display: flex;
  justify-content: flex-end;
}
.yaqoot-shop .cart_totals {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  padding: 1.5rem;
}
.yaqoot-shop .cart_totals h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wc-navy);
  margin: 0 0 1rem;
}
.yaqoot-shop .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}
.yaqoot-shop .cart_totals table th,
.yaqoot-shop .cart_totals table td {
  padding: 0.75rem 0;
  border-top: 1px solid var(--wc-border);
  text-align: right;
}
.yaqoot-shop .cart_totals .order-total .amount {
  color: var(--wc-gold);
  font-weight: 800;
  font-size: 1.15rem;
}

.yaqoot-shop .coupon {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.yaqoot-shop .coupon #coupon_code {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wc-border);
  border-radius: 8px;
}

/* =========================================================
   Checkout page
   ========================================================= */
.yaqoot-shop .woocommerce-checkout .col2-set,
.yaqoot-shop .woocommerce-checkout .checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.yaqoot-shop .woocommerce-checkout .col-1,
.yaqoot-shop .woocommerce-checkout .col-2 {
  flex: 1 1 380px;
}
.yaqoot-shop #order_review,
.yaqoot-shop .woocommerce-checkout-review-order {
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.yaqoot-shop .woocommerce-checkout .form-row {
  margin-bottom: 1.1rem;
}
.yaqoot-shop .woocommerce-checkout label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}
.yaqoot-shop .woocommerce-checkout input.input-text,
.yaqoot-shop .woocommerce-checkout select,
.yaqoot-shop .woocommerce-checkout textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--wc-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
}
.yaqoot-shop .woocommerce-checkout input.input-text:focus,
.yaqoot-shop .woocommerce-checkout select:focus,
.yaqoot-shop .woocommerce-checkout textarea:focus {
  border-color: var(--wc-gold);
}

.yaqoot-shop .woocommerce-checkout-payment,
.yaqoot-shop ul.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  background: var(--wc-bg-muted);
  border-radius: 10px;
  padding: 1rem;
}
.yaqoot-shop ul.wc_payment_methods li.wc_payment_method {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--wc-border);
}
.yaqoot-shop ul.wc_payment_methods li.wc_payment_method:last-child { border-bottom: 0; }
.yaqoot-shop .payment_box {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================================================
   My Account
   ========================================================= */
.yaqoot-shop .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2rem;
}
.yaqoot-shop .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.yaqoot-shop .woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.yaqoot-shop .woocommerce-MyAccount-navigation-link a:hover {
  background: var(--wc-bg-muted);
  color: var(--wc-navy);
}
.yaqoot-shop .woocommerce-MyAccount-navigation-link--customer-logout a { color: #dc2626; }
.yaqoot-shop .woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--wc-navy);
  color: #fff;
}
.yaqoot-shop .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  padding: 1.75rem;
}
.yaqoot-shop .woocommerce-MyAccount-content table.shop_table { border: none; }
.yaqoot-shop .woocommerce-Addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.yaqoot-shop .woocommerce-Address {
  flex: 1 1 280px;
  background: var(--wc-bg-muted);
  border-radius: 10px;
  padding: 1.25rem;
}
.yaqoot-shop .woocommerce-Address-title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wc-navy);
  margin: 0 0 0.5rem;
}

/* =========================================================
   Layout helpers used inside woocommerce.php
   ========================================================= */
@media (max-width: 900px) {
  .yaqoot-shop .woocommerce-checkout .col2-set,
  .yaqoot-shop .woocommerce-checkout .checkout {
    flex-direction: column;
  }
  .yaqoot-shop div.product .images,
  .yaqoot-shop div.product .summary {
    width: 100% !important;
    float: none !important;
  }
}
