/* Goldendeer WooCommerce enhancements — v1.3.0 */
.goldendeer-global-header,
.goldendeer-global-footer,
.goldendeer-wc-active .woocommerce,
.goldendeer-wc-active .woocommerce-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Keep the Goldendeer header consistent across shop/product/cart/checkout. */
.goldendeer-global-header { position: relative; z-index: 90; }
.goldendeer-wc-sticky-header .goldendeer-global-header {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(7,50,82,.08);
}
.admin-bar.goldendeer-wc-sticky-header .goldendeer-global-header { top: 32px; }

/* WooCommerce overall spacing. */
.goldendeer-wc-active .site-main,
.goldendeer-wc-active #primary {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}
.goldendeer-wc-active .woocommerce-breadcrumb {
  color: #6d7f8d;
  font-size: 13px;
  margin: 22px 0 18px;
}
.goldendeer-wc-active .woocommerce-breadcrumb a { color: var(--gd-blue); }
.goldendeer-wc-active .woocommerce-message,
.goldendeer-wc-active .woocommerce-info,
.goldendeer-wc-active .woocommerce-error {
  border-radius: 10px;
  border-top-color: var(--gd-gold);
}

/* Single product: cleaner card-like presentation while retaining WooCommerce behavior. */
.goldendeer-wc-active.single-product div.product {
  background: #fff;
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(7,50,82,.06);
}
.goldendeer-wc-active.single-product div.product .product_title {
  color: var(--gd-navy);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.goldendeer-wc-active.single-product div.product p.price,
.goldendeer-wc-active.single-product div.product span.price {
  color: var(--gd-blue);
  font-size: 30px;
  font-weight: 900;
}
.goldendeer-wc-active.single-product div.product p.price del,
.goldendeer-wc-active.single-product div.product span.price del {
  color: #9aa6af;
  font-size: 16px;
  opacity: 1;
}
.goldendeer-wc-active.single-product div.product p.price ins,
.goldendeer-wc-active.single-product div.product span.price ins { text-decoration: none; }
.goldendeer-wc-active.single-product div.product .woocommerce-product-gallery {
  border-radius: 12px;
  overflow: hidden;
}
.goldendeer-wc-active.single-product div.product form.cart { margin-top: 20px; }
.goldendeer-wc-active.single-product div.product form.cart .quantity .qty {
  min-height: 48px;
  border: 1px solid var(--gd-border);
  border-radius: 8px;
}
.goldendeer-wc-active.single-product div.product form.cart .single_add_to_cart_button,
.goldendeer-wc-active.single-product div.product form.cart .gd-buy-now-button {
  min-height: 50px;
  border-radius: 8px !important;
  padding: 0 26px !important;
  font-weight: 850 !important;
  letter-spacing: .01em;
  border: 0 !important;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.goldendeer-wc-active.single-product div.product form.cart .single_add_to_cart_button {
  background: var(--gd-blue) !important;
  color: #fff !important;
}
.goldendeer-wc-active.single-product div.product form.cart .gd-buy-now-button {
  background: var(--gd-gold) !important;
  color: #fff !important;
  margin-left: 10px;
}
.goldendeer-wc-active.single-product div.product form.cart .single_add_to_cart_button:hover,
.goldendeer-wc-active.single-product div.product form.cart .gd-buy-now-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(7,50,82,.14);
}
.goldendeer-wc-active.single-product div.product form.cart .disabled,
.goldendeer-wc-active.single-product div.product form.cart :disabled { opacity: .52; cursor: not-allowed; }
.goldendeer-wc-active.single-product div.product .stock.in-stock { color: #18a957; font-weight: 750; }
.goldendeer-wc-active.single-product div.product .stock.out-of-stock { color: #d64545; font-weight: 750; }

/* Trust / warranty / support block below the purchase form. */
.gd-product-trust {
  clear: both;
  margin: 22px 0 8px;
  padding: 17px;
  border: 1px solid #d8eaf5;
  border-radius: 11px;
  background: linear-gradient(135deg,#f5fbff,#ecf7ff);
}
.gd-product-trust-title {
  display: block;
  color: var(--gd-navy);
  font-size: 15px;
  margin-bottom: 12px;
}
.gd-product-trust-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px 16px;
}
.gd-product-trust-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gd-product-trust-item > span { font-size: 21px; }
.gd-product-trust-item b,
.gd-product-trust-item small { display: block; }
.gd-product-trust-item b { color: var(--gd-navy); font-size: 12px; }
.gd-product-trust-item small { color: #60798b; font-size: 11px; }
.gd-product-support {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d8eaf5;
  color: var(--gd-navy);
  font-size: 13px;
  text-decoration: none;
}
.gd-product-support strong { color: var(--gd-blue); font-size: 16px; }

/* Tabs, related products, cart and checkout. */
.goldendeer-wc-active.single-product .woocommerce-tabs,
.goldendeer-wc-active.single-product .related.products,
.goldendeer-wc-active.single-product .up-sells { margin-top: 38px; }
.goldendeer-wc-active .woocommerce-tabs ul.tabs li,
.goldendeer-wc-active .woocommerce-cart-form,
.goldendeer-wc-active .cart_totals,
.goldendeer-wc-active form.checkout,
.goldendeer-wc-active .woocommerce-checkout-review-order {
  border-radius: 10px;
}
.goldendeer-wc-active .checkout-button,
.goldendeer-wc-active #place_order,
.goldendeer-wc-active .wc-proceed-to-checkout a.checkout-button {
  background: var(--gd-gold) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 850 !important;
}
.goldendeer-wc-active .button:not(.gd-buy-now-button):not(.single_add_to_cart_button) {
  border-radius: 7px;
}

@media (max-width: 782px) {
  .admin-bar.goldendeer-wc-sticky-header .goldendeer-global-header { top: 46px; }
}
@media (max-width: 700px) {
  .goldendeer-wc-active.single-product div.product { padding: 14px; border-radius: 10px; }
  .goldendeer-wc-active.single-product div.product p.price,
  .goldendeer-wc-active.single-product div.product span.price { font-size: 25px; }
  .goldendeer-wc-active.single-product div.product form.cart .single_add_to_cart_button,
  .goldendeer-wc-active.single-product div.product form.cart .gd-buy-now-button {
    width: 100%;
    margin: 8px 0 0 !important;
  }
  .gd-product-trust-grid { grid-template-columns: 1fr; }
  .gd-product-support { flex-wrap: wrap; }
}

/* v1.4 — đường dẫn danh mục lớn, dễ đọc hơn. */
.goldendeer-wc-active .woocommerce-breadcrumb {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 750;
  color: #526d80;
  margin: 26px 0 24px;
}
.goldendeer-wc-active .woocommerce-breadcrumb a {
  color: var(--gd-navy);
  font-weight: 850;
}
.goldendeer-wc-active .woocommerce-breadcrumb a:hover { color: var(--gd-blue); }

/* v1.4 — chọn phân loại / biến thể bằng ảnh WooCommerce. */
.gd-variation-image-swatches {
  margin: 22px 0 16px;
  display: grid;
  gap: 20px;
}
.gd-swatch-label {
  display: block;
  color: var(--gd-navy);
  font-size: 14px;
  margin-bottom: 10px;
}
.gd-swatch-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gd-image-swatch {
  width: 112px;
  min-height: 104px;
  padding: 7px;
  border: 1px solid #dbe5ec;
  border-radius: 10px;
  background: #fff;
  color: var(--gd-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gd-image-swatch:hover {
  border-color: #8fb9d4;
  transform: translateY(-1px);
}
.gd-image-swatch img {
  width: 96px;
  height: 66px;
  object-fit: contain;
  border-radius: 7px;
  background: #f8fafb;
}
.gd-image-swatch span {
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.gd-image-swatch.is-selected {
  border: 2px solid var(--gd-blue);
  box-shadow: 0 0 0 2px rgba(15,110,169,.10);
  padding: 6px;
}
.gd-image-swatch.is-selected:after {
  content: "✓";
  position: absolute;
}
.gd-image-swatch.is-disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}
.goldendeer-wc-active form.variations_form.gd-has-image-swatches table.variations {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* v1.4 — mô tả sản phẩm thoáng, không sát viền / sát dòng. */
.goldendeer-wc-active.single-product .woocommerce-product-details__short-description {
  line-height: 1.75;
  margin: 18px 0 22px;
  color: #38566d;
}
.goldendeer-wc-active.single-product .woocommerce-product-details__short-description p {
  margin: 0 0 14px;
}
.goldendeer-wc-active.single-product .woocommerce-tabs {
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  background: #fff;
  padding: 0 24px 24px;
  overflow: hidden;
}
.goldendeer-wc-active.single-product .woocommerce-tabs ul.tabs {
  margin: 0 -24px 0 !important;
  padding: 0 24px !important;
  border-bottom: 1px solid var(--gd-border);
}
.goldendeer-wc-active.single-product .woocommerce-tabs .panel {
  padding: 24px 4px 4px !important;
  margin: 0 !important;
  line-height: 1.82;
  color: #334f64;
}
.goldendeer-wc-active.single-product .woocommerce-tabs .panel p {
  margin: 0 0 16px;
  line-height: 1.82;
}
.goldendeer-wc-active.single-product .woocommerce-tabs .panel ul,
.goldendeer-wc-active.single-product .woocommerce-tabs .panel ol {
  margin: 12px 0 18px 22px;
}
.goldendeer-wc-active.single-product .woocommerce-tabs .panel li { margin: 6px 0; }

@media (max-width:700px) {
  .goldendeer-wc-active .woocommerce-breadcrumb { font-size: 15px; margin: 18px 0; }
  .gd-image-swatch { width: calc(50% - 5px); min-height: 100px; }
  .gd-image-swatch img { width: 100%; max-width: 120px; height: 62px; }
  .goldendeer-wc-active.single-product .woocommerce-tabs { padding: 0 15px 18px; }
  .goldendeer-wc-active.single-product .woocommerce-tabs ul.tabs { margin: 0 -15px !important; padding: 0 15px !important; }
  .goldendeer-wc-active.single-product .woocommerce-tabs .panel { padding-top: 18px !important; }
}
.gd-image-swatch{position:relative}
.gd-image-swatch.is-selected:after{right:5px;top:5px;width:18px;height:18px;border-radius:50%;background:var(--gd-blue);color:#fff;font-size:11px;line-height:18px;text-align:center}
