/* ============ BREADCRUMBS ============ */
.product-breadcrumbs {
  padding: 16px 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #888;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #ccc;
}
.breadcrumbs a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--charcoal);
}
.breadcrumbs li[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 500;
}

/* ============ PRODUCT MAIN GRID ============ */
.product-main {
  padding: 40px 0 60px;
}
.product-main__grid {
  display: grid;
  grid-template-columns: minmax(300px, 36%) 1fr;
  gap: 36px;
  align-items: start;
}

/* ============ PRODUCT GALLERY ============ */
.product-gallery {
  position: sticky;
  top: 100px;
  min-width: 0;
  width: 100%;
}
.product-gallery__main {
  position: relative;
  background: var(--stone);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-gallery__main:hover .product-gallery__image {
  transform: scale(1.05);
}
.product-gallery__zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.product-gallery__main:hover .product-gallery__zoom-btn {
  opacity: 1;
}
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 2;
}
.product-badge--sale {
  background: #C0392B;
  color: #fff;
}
.product-badge--new {
  background: var(--charcoal);
  color: #fff;
}
.product-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
}
.product-gallery__thumb--active,
.product-gallery__thumb:hover {
  border-color: var(--charcoal);
}

/* Override WooCommerce default widths that break our grid */
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce #content div.product div.images,
.woocommerce #content div.product div.summary {
  width: 100% !important;
  float: none !important;
}

/* ============ PRODUCT INFO ============ */
.product-info {
  padding-top: 8px;
  min-width: 0;
  overflow-x: clip;
}
.product-info__brand {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.product-info__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.product-info__reviews {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.product-info__stars {
  display: flex;
  gap: 2px;
}
.product-info__review-count {
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-info__review-count:hover {
  color: var(--charcoal);
}
.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.product-info__price-current {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
}
.product-info__price-was {
  font-size: 1rem;
  color: #aaa;
  text-decoration: line-through;
}
.product-info__price-save {
  font-size: 0.78rem;
  font-weight: 600;
  color: #C0392B;
  background: #fdf0ef;
  padding: 3px 8px;
  border-radius: 3px;
}
.product-info__short-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 20px;
}
.product-info__meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.82rem;
}
.product-info__sku {
  color: #999;
}
.product-info__stock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.product-info__stock--in {
  color: #27ae60;
}
.product-info__stock--out {
  color: #C0392B;
}
.product-info__divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}

/* ============ PRODUCT OPTIONS ============ */
.product-option {
  margin-bottom: 24px;
}
.product-option__label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
}
.product-option__label strong {
  color: var(--charcoal);
}
.product-option__swatches {
  display: flex;
  gap: 10px;
}
.product-option__swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.product-option__swatch--active {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--charcoal);
}
.product-option__swatch:hover:not(.product-option__swatch--active) {
  border-color: #ccc;
}
.product-option__sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-option__size {
  min-width: 60px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  text-align: center;
}
.product-option__size--active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}
.product-option__size:hover:not(.product-option__size--active) {
  border-color: #999;
}

/* ============ PRODUCT ACTIONS ============ */
.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.product-actions__qty {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
}
.product-actions__qty-btn {
  width: 44px;
  height: 48px;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.product-actions__qty-btn:hover {
  background: #f5f5f5;
}
.product-actions__qty-input {
  width: 52px;
  height: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 0.95rem;
  font-family: var(--font-body);
  -moz-appearance: textfield;
}
.product-actions__qty-input::-webkit-inner-spin-button,
.product-actions__qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.product-actions__add {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}
.product-actions__add svg {
  flex-shrink: 0;
}
.product-actions__wishlist {
  width: 48px;
  height: 48px;
  border: 1px solid #ddd;
  background: var(--white);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.product-actions__wishlist:hover {
  border-color: var(--charcoal);
}
.product-actions__wishlist.is-wishlisted svg {
  fill: #C0392B;
  stroke: #C0392B;
}

/* ============ TRUST BADGES ============ */
.product-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #FAFAF8;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 20px;
}
.product-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #555;
}
.product-trust__item svg {
  color: var(--brass);
  flex-shrink: 0;
}

/* ============ ENQUIRY LINK ============ */
.product-enquiry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.product-enquiry svg {
  color: #888;
  flex-shrink: 0;
}
.product-enquiry a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.product-enquiry a:hover {
  color: var(--charcoal);
}

/* ============ PRODUCT TABS ============ */
.product-tabs-section {
  padding: 60px 0;
  border-top: 1px solid #eee;
}
.product-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 32px;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.product-tabs__tab {
  padding: 14px 28px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.product-tabs__tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}
.product-tabs__tab--active {
  color: var(--charcoal);
}
.product-tabs__tab--active::after {
  background: var(--brass);
}
.product-tabs__tab:hover:not(.product-tabs__tab--active) {
  color: var(--charcoal);
}

/* Tab Panel Content */
.product-tab-panel {
  display: none;
}
.product-tab-panel--active {
  display: block;
}
.product-tab-panel__content {
  max-width: 800px;
}
.product-tab-panel__content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--charcoal);
}
.product-tab-panel__content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 28px 0 12px;
  color: var(--charcoal);
}
.product-tab-panel__content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}
.product-tab-panel__content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.product-tab-panel__content li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #555;
}
.product-tab-panel__content a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Specs Table */
.product-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.product-specs-table tr {
  border-bottom: 1px solid #eee;
}
.product-specs-table th,
.product-specs-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.88rem;
  vertical-align: top;
}
.product-specs-table th {
  font-weight: 500;
  color: var(--charcoal);
  width: 180px;
  background: #FAFAF8;
}
.product-specs-table td {
  color: #555;
}

/* Enquiry Form */
.enquiry-form {
  margin-top: 20px;
}
.enquiry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.enquiry-form__field {
  margin-bottom: 16px;
}
.enquiry-form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.enquiry-form__field input,
.enquiry-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.enquiry-form__field input:focus,
.enquiry-form__field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}

/* ============ PRODUCT ENQUIRY LINK ============ */
.product-enquiry-link {
  margin: 20px 0 4px;
}
.product-enquiry-link__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass, #B8860B);
  text-decoration: none;
  border: 1.5px solid var(--brass, #B8860B);
  border-radius: 3px;
  padding: 9px 18px;
  transition: all 0.2s;
}
.product-enquiry-link__btn svg {
  flex-shrink: 0;
  color: var(--brass, #B8860B);
  transition: color 0.2s;
}
.product-enquiry-link__btn:hover {
  background: var(--brass, #B8860B);
  color: #fff;
}
.product-enquiry-link__btn:hover svg {
  color: #fff;
}

/* ============ PRODUCT ENQUIRY TAB (CF7 FORM) ============ */
.product-enquiry-tab {
  max-width: 600px;
}
.product-enquiry-tab h2 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--charcoal, #1A1A1A);
}
.product-enquiry-tab > p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}
/* CF7 form layout */
.product-enquiry-tab .wpcf7-form {
  font-family: var(--font-body, 'Outfit', sans-serif);
}
.product-enquiry-tab .wpcf7-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal, #1A1A1A);
  margin-bottom: 16px;
}
.product-enquiry-tab .wpcf7-form-control:not([type="submit"]) {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  margin-top: 5px;
  transition: border-color 0.2s;
  background: #fff;
}
.product-enquiry-tab .wpcf7-form-control:not([type="submit"]):focus {
  outline: none;
  border-color: var(--charcoal, #1A1A1A);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}
.product-enquiry-tab .wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}
/* Hide the auto-filled product name field */
.product-enquiry-tab .wpcf7-form label:has([name="product-name"]) {
  display: none;
}
/* Submit button */
.product-enquiry-tab .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brass, #B8860B);
  color: #fff;
  border: 1px solid var(--brass, #B8860B);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body, 'Outfit', sans-serif);
  margin-top: 4px;
}
.product-enquiry-tab .wpcf7-submit:hover {
  background: #9a7209;
  border-color: #9a7209;
}
/* CF7 response messages */
.product-enquiry-tab .wpcf7-response-output {
  border: none !important;
  padding: 12px 16px !important;
  margin: 16px 0 0 !important;
  border-radius: 4px;
  font-size: 0.85rem;
}
.product-enquiry-tab .wpcf7-mail-sent-ok,
.product-enquiry-tab .wpcf7 form.sent .wpcf7-response-output {
  background: #f0f7f0;
  color: #2e7d32;
  border-left: 3px solid #4caf50 !important;
}
.product-enquiry-tab .wpcf7 form.invalid .wpcf7-response-output {
  background: #fdf0ef;
  color: #C0392B;
  border-left: 3px solid #C0392B !important;
}
/* Validation errors */
.product-enquiry-tab .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #C0392B;
  margin-top: 4px;
}
.product-enquiry-tab .wpcf7-not-valid {
  border-color: #C0392B !important;
}
/* Spinner */
.product-enquiry-tab .wpcf7-spinner {
  margin-left: 12px;
}

/* ============ RELATED / RECENTLY VIEWED ============ */
.related-products,
.recently-viewed {
  padding: 60px 0;
  border-top: 1px solid #eee;
}
.related-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.recently-viewed__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.product-card--small .product-card__image {
  aspect-ratio: 1 / 1;
}
.product-card--small .product-card__name {
  font-size: 0.82rem;
}
.product-card--small .product-card__price {
  font-size: 0.8rem;
}
.product-card--small .product-card__brand {
  font-size: 0.68rem;
}

/* ============ WOOCOMMERCE SINGLE PRODUCT OVERRIDES ============ */

/* -- Gallery (WooCommerce output) -- */
.product-gallery .woocommerce-product-gallery,
.woocommerce div.product div.images.woocommerce-product-gallery {
  margin-bottom: 0;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
.product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  background: var(--stone, #f5f3f0);
  border-radius: 4px;
  overflow: hidden;
}
.product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__image {
  background: var(--stone, #f5f3f0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
}
.product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.product-gallery .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--stone, #f5f3f0);
}
.product-gallery .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.product-gallery .woocommerce-product-gallery .flex-control-thumbs li {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--stone, #f5f3f0);
}
.product-gallery .woocommerce-product-gallery .flex-control-thumbs li:hover,
.product-gallery .woocommerce-product-gallery .flex-control-thumbs li .flex-active {
  border-color: var(--charcoal, #1A1A1A);
}
.product-gallery .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.product-gallery .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.product-gallery .woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
}

/* Sale flash badge */
.product-gallery .onsale,
.product-main .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  background: #C0392B;
  color: #fff;
  z-index: 2;
  line-height: 1.5;
  min-width: auto;
  min-height: auto;
}

/* -- Product Title (WC outputs h1.product_title) -- */
.product-info .product_title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal, #1A1A1A);
  margin: 0 0 12px 0;
}

/* -- Rating -- */
.product-info .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.product-info .star-rating {
  color: var(--brass, #B8860B);
  font-size: 14px;
}
.product-info .woocommerce-review-link {
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Price inside variations table — inline */
.variations .product-info .price { display: inline !important; }

/* Flat rate delivery message spacing */
.flat-rate-delivery-message { margin-bottom: 20px; }

/* -- Price -- */
.product-info .price {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal, #1A1A1A);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product-info .price del {
  color: #aaa;
  font-size: 1.1rem;
  font-weight: 400;
}
.product-info .price ins {
  text-decoration: none;
  color: var(--brass, #B8860B);
  font-weight: 500;
}

/* -- Short Description / Excerpt -- */
.product-info .woocommerce-product-details__short-description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 24px;
}
.product-info .woocommerce-product-details__short-description p {
  margin-bottom: 12px;
}

/* -- Product Meta (SKU, Categories, Tags) -- */
.product-info .product_meta {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.8;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 20px 0;
}
.product-info .product_meta > span {
  display: block;
  margin-bottom: 4px;
}
.product-info .product_meta .sku_wrapper {
  display: block;
}
.product-info .product_meta a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.product-info .product_meta a:hover {
  color: var(--brass, #B8860B);
}
.product-info .product_meta .posted_in,
.product-info .product_meta .tagged_as {
  display: block;
}

/* -- Variation Table (Woo Variations Table plugin) -- */
.product-info #variations-table,
.product-info .woo-variations-table {
  margin: 0 0 24px;
}
.product-info #variations-table h3 {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--charcoal, #1A1A1A);
}

/* Table container — scroll wrapper */
.product-info #variations-table {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
}

/* Table base */
.product-info #woo-variations-table-component {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: fixed;
}

/* Header row — dark charcoal background */
.product-info #woo-variations-table-component thead th {
  padding: 8px 7px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--charcoal, #1A1A1A);
  text-align: left;
  white-space: nowrap;
  border-bottom: none;
}
/* Column widths for fixed table layout (7 cols after qty+cart merge) */
.product-info #woo-variations-table-component thead th.sku { width: 15%; }
.product-info #woo-variations-table-component thead th.width { width: 10%; }
.product-info #woo-variations-table-component thead th.height { width: 12%; }
.product-info #woo-variations-table-component thead th.length { width: 10%; }
.product-info #woo-variations-table-component thead th.hole-centre { width: 13%; }
.product-info #woo-variations-table-component thead th.price_html { width: 12%; }
.product-info #woo-variations-table-component thead th.quantity { width: 14%; } /* hidden after merge */
.product-info #woo-variations-table-component thead th.add-to-cart { width: 28%; }

/* Merged Qty + Add to Cart cell */
.qty-cart-merged {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.qty-cart-merged .single_add_to_cart_button,
.qty-cart-merged .button {
  width: 100%;
}

.product-info #woo-variations-table-component thead th:first-child {
  padding-left: 10px;
}
.product-info #woo-variations-table-component thead th:last-child {
  padding-right: 8px;
  text-align: center;
}

/* Body rows */
.product-info #woo-variations-table-component tbody td {
  padding: 8px 7px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-size: 0.78rem;
  color: #444;
  line-height: 1.3;
}
.product-info #woo-variations-table-component tbody td:first-child {
  padding-left: 10px;
}
.product-info #woo-variations-table-component tbody td:last-child {
  padding-right: 10px;
}
.product-info #woo-variations-table-component tbody tr:last-child td {
  border-bottom: none;
}
/* Alternating row stripe */
.product-info #woo-variations-table-component tbody tr:nth-child(even) {
  background: #fafaf8;
}
.product-info #woo-variations-table-component tbody tr:hover {
  background: #f5f3ef;
}

/* SKU column — slightly muted */
.product-info #woo-variations-table-component td[data-title="SKU"] {
  font-size: 0.72rem;
  color: #888;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: -0.02em;
}
.product-info #woo-variations-table-component td[data-title="SKU"] .item {
  font-size: 0.72rem;
}

/* Dimension columns — medium weight */
.product-info #woo-variations-table-component td[data-title="width"] .item,
.product-info #woo-variations-table-component td[data-title="height"] .item,
.product-info #woo-variations-table-component td[data-title="length"] .item,
.product-info #woo-variations-table-component td[data-title="hole-centre"] .item {
  font-weight: 500;
  color: #333;
}

/* Price column */
.product-info #woo-variations-table-component .amount {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal, #1A1A1A);
}
.product-info #woo-variations-table-component del {
  display: block;
  font-size: 0.7rem;
  line-height: 1;
  margin-bottom: 2px;
}
.product-info #woo-variations-table-component del .amount {
  font-weight: 400;
  color: #bbb;
  font-size: 0.7rem;
  text-decoration: line-through;
}
.product-info #woo-variations-table-component ins {
  text-decoration: none;
}
.product-info #woo-variations-table-component ins .amount {
  color: var(--brass, #B8860B);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Quantity column — compact inline group */
.product-info #woo-variations-table-component td[data-title="Quantity"],
.product-info #woo-variations-table-component td:has(input[name="quantity"]) {
  white-space: nowrap;
}
.product-info #woo-variations-table-component input[type="number"] {
  width: 40px;
  height: 32px;
  padding: 0;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-weight: 500;
  -moz-appearance: textfield;
}
.product-info #woo-variations-table-component input[type="number"]::-webkit-inner-spin-button,
.product-info #woo-variations-table-component input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-info #woo-variations-table-component .value_change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin: 0 1px;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
  vertical-align: middle;
}
.product-info #woo-variations-table-component .value_change:hover {
  background: var(--charcoal, #1A1A1A);
  color: #fff;
  border-color: var(--charcoal, #1A1A1A);
}

/* Add to Cart button — compact */
.product-info #woo-variations-table-component .add-to-cart {
  white-space: nowrap;
  text-align: center;
}
.product-info #woo-variations-table-component .button,
.product-info #woo-variations-table-component .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brass, #B8860B);
  color: #fff;
  border: 1px solid var(--brass, #B8860B);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body, 'Outfit', sans-serif);
  line-height: 1;
}
.product-info #woo-variations-table-component .button:hover,
.product-info #woo-variations-table-component .single_add_to_cart_button:hover {
  background: #9a7209;
  border-color: #9a7209;
}
.product-info #woo-variations-table-component .button.loading,
.product-info #woo-variations-table-component .single_add_to_cart_button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Spinner loader from wp-variation.js */
.product-info #variations-table rs-loader {
  display: block;
  text-align: center;
  padding: 20px;
}

/* -- Laptop screens (1024–1400px) — tighter spacing -- */
@media (max-width: 1400px) {
  .product-info #woo-variations-table-component {
    font-size: 0.74rem;
  }
  .product-info #woo-variations-table-component thead th {
    padding: 7px 6px;
    font-size: 0.58rem;
  }
  .product-info #woo-variations-table-component tbody td {
    padding: 7px 6px;
    font-size: 0.74rem;
  }
  .product-info #woo-variations-table-component .button,
  .product-info #woo-variations-table-component .single_add_to_cart_button {
    padding: 5px 8px;
    font-size: 0.56rem;
  }
  .product-info #woo-variations-table-component input[type="number"] {
    width: 36px;
    height: 28px;
    font-size: 0.8rem;
  }
  .product-info #woo-variations-table-component .value_change {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .product-info #woo-variations-table-component ins .amount {
    font-size: 0.8rem;
  }
  .product-info #woo-variations-table-component del .amount {
    font-size: 0.62rem;
  }
}

/* -- Small laptops (< 1200px) — very compact -- */
@media (max-width: 1200px) {
  .product-info #woo-variations-table-component {
    font-size: 0.7rem;
    min-width: 520px;
  }
  .product-info #woo-variations-table-component thead th {
    padding: 6px 5px;
    font-size: 0.55rem;
    letter-spacing: 0.03em;
  }
  .product-info #woo-variations-table-component tbody td {
    padding: 6px 5px;
    font-size: 0.7rem;
  }
  .product-info #woo-variations-table-component td[data-title="SKU"],
  .product-info #woo-variations-table-component td[data-title="SKU"] .item {
    font-size: 0.62rem;
  }
  .product-info #woo-variations-table-component .button,
  .product-info #woo-variations-table-component .single_add_to_cart_button {
    padding: 4px 7px;
    font-size: 0.54rem;
  }
  .product-info #woo-variations-table-component input[type="number"] {
    width: 32px;
    height: 26px;
    font-size: 0.75rem;
  }
  .product-info #woo-variations-table-component .value_change {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}

/* -- $15 flat rate delivery notice -- */
.product-info .free-shipping-notice,
.product-info .woocommerce-info-flat-rate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #FAFAF8;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* -- Tabs Section (WooCommerce tabs output) -- */
.product-tabs-section {
  padding: 50px 0 60px;
  border-top: 1px solid #eee;
  background: #fff;
}
.product-tabs-section .woocommerce-tabs {
  max-width: 100%;
}
.product-tabs-section .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 0 32px;
  border-bottom: 2px solid #eee;
  gap: 0;
  overflow-x: auto;
}
.product-tabs-section .woocommerce-tabs ul.tabs::before {
  display: none;
}
.product-tabs-section .woocommerce-tabs ul.tabs li {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.product-tabs-section .woocommerce-tabs ul.tabs li::before,
.product-tabs-section .woocommerce-tabs ul.tabs li::after {
  display: none;
}
.product-tabs-section .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 28px;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.product-tabs-section .woocommerce-tabs ul.tabs li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}
.product-tabs-section .woocommerce-tabs ul.tabs li.active a {
  color: var(--charcoal, #1A1A1A);
}
.product-tabs-section .woocommerce-tabs ul.tabs li.active a::after {
  background: var(--brass, #B8860B);
}
.product-tabs-section .woocommerce-tabs ul.tabs li a:hover {
  color: var(--charcoal, #1A1A1A);
}

/* Tab panel content */
.product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #444;
  max-width: 800px;
}
.product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--charcoal, #1A1A1A);
}
.product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--charcoal, #1A1A1A);
}
.product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel p {
  margin-bottom: 14px;
}
.product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel li {
  margin-bottom: 6px;
}

/* Additional information table */
.product-tabs-section .woocommerce-product-attributes {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
}
.product-tabs-section .woocommerce-product-attributes th {
  text-align: left;
  padding: 12px 20px 12px 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal, #1A1A1A);
  width: 180px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.product-tabs-section .woocommerce-product-attributes td {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}
.product-tabs-section .woocommerce-product-attributes td p {
  margin: 0;
}

/* -- Related Products -- */
.related-products {
  padding: 60px 0 80px;
  background: #fafaf8;
}
.related-products .related > h2,
.related-products > .container > h2 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 32px;
  color: var(--charcoal, #1A1A1A);
}

/* Grid: works for both li.product and div.product-card children */
.related-products .related ul.products,
.related-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100% !important;
}
/* Remove WooCommerce clearfix pseudo-elements that break CSS grid */
.related-products ul.products::before,
.related-products ul.products::after {
  content: none !important;
  display: none !important;
}

/* Product card styles (targets both li and div children) */
.related-products ul.products > li,
.related-products ul.products > div,
.related-products ul.products > .product-card,
.related-products ul.products > .product {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}
.related-products ul.products > li:hover,
.related-products ul.products > div:hover,
.related-products ul.products > .product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Product card image */
.related-products ul.products .product-card__img-wrap {
  display: block;
}
.related-products ul.products .product-card__img-wrap .product-card__img {
  background-color: var(--stone, #f5f3f0);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-products ul.products .product-card__img-wrap .product-card__img img,
.related-products ul.products a img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--stone, #f5f3f0);
}

/* Product card info */
.related-products ul.products .product-card__info {
  padding: 12px 16px 16px;
}
.related-products ul.products .product-card__brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}
.related-products ul.products .product-card__name {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal, #1A1A1A);
  margin: 0 0 6px;
  line-height: 1.35;
}
.related-products ul.products .product-card__name a {
  color: inherit;
  text-decoration: none;
}
.related-products ul.products .product-card__name a:hover {
  color: var(--brass, #B8860B);
}
.related-products ul.products .product-card__price,
.related-products ul.products .price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal, #1A1A1A);
  margin: 0;
}

/* WooCommerce default output (li.product) */
.related-products ul.products .woocommerce-loop-product__title {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal, #1A1A1A);
  padding: 12px 16px 4px;
  margin: 0;
}
.related-products ul.products li.product .price {
  padding: 0 16px 16px;
}

/* Hide quick view & add-to-cart in related */
.related-products ul.products .product-card__actions,
.related-products ul.products .button.add_to_cart_button {
  display: none;
}

/* Sale badge */
.related-products ul.products .product-card__badge,
.related-products ul.products .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #C0392B;
  color: #fff;
  border-radius: 2px;
  z-index: 2;
  line-height: 1.5;
  min-width: auto;
  min-height: auto;
}

/* Swatches in related */
.related-products ul.products .product-card__swatches {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
}

/* ============ RESPONSIVE ============ */

/* -- Tablet landscape / small desktop (< 1024px) -- */
@media (max-width: 1024px) {
  .product-main__grid {
    gap: 36px;
  }
  .product-info .product_title {
    font-size: 1.7rem;
  }
  /* Variation table: allow horizontal scroll instead of cramping */
  .product-info #variations-table,
  .product-info .woo-variations-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .product-info #woo-variations-table-component {
    font-size: 0.8rem;
  }
  .product-info #woo-variations-table-component thead th {
    padding: 8px 8px;
    font-size: 0.7rem;
  }
  .product-info #woo-variations-table-component tbody td {
    padding: 10px 8px;
  }
}

/* -- Tablet portrait (< 960px) — stack to single column -- */
@media (max-width: 960px) {
  .product-main__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-gallery {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }
  .product-info__title,
  .product-info .product_title {
    font-size: 1.65rem;
  }

  /* Variation table — full width when grid stacks to 1-col */
  .product-info #variations-table,
  .product-info .woo-variations-table,
  .product-info #woo-variations-table-component,
  .product-info .variations-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Reset fixed layout so table can use natural widths at full width */
  .product-info #woo-variations-table-component {
    table-layout: auto !important;
  }

  /* Related products: 2 columns */
  .related-products__grid,
  .related-products .related ul.products,
  .related-products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .recently-viewed__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Tabs: allow horizontal scroll */
  .product-tabs-section .woocommerce-tabs ul.tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-tabs-section .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
  }

  /* Product meta — more compact */
  .product-info .product_meta {
    font-size: 0.78rem;
  }

  /* Trust badges — horizontal on tablet */
  .product-trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .product-trust__item {
    flex: 1 1 auto;
    min-width: 160px;
  }
}

/* -- Small tablet / large phone (< 768px) -- */
@media (max-width: 768px) {
  .product-main {
    padding: 28px 0 40px;
  }
  .product-info .product_title {
    font-size: 1.5rem;
  }
  .product-info .price {
    font-size: 1.35rem;
  }

  /* Breadcrumbs: wrap and smaller */
  .product-breadcrumbs .breadcrumbs {
    font-size: 0.75rem;
  }

  /* ---- Variation table: stacked card layout at tablet ---- */
  /* The plugin structure is: #woo-variations-table-component > div > table.variations > thead/tbody */
  .product-info #variations-table {
    overflow: hidden !important;
  }
  .product-info #woo-variations-table-component,
  .product-info #woo-variations-table-component > div {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }
  .product-info #woo-variations-table-component table.variations,
  .product-info #woo-variations-table-component table {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
    border: none !important;
    min-width: 0 !important;
  }
  .product-info #woo-variations-table-component table thead,
  .product-info #woo-variations-table-component thead {
    display: none !important;
  }
  .product-info #woo-variations-table-component table tbody,
  .product-info #woo-variations-table-component tbody {
    display: block !important;
    width: 100% !important;
  }
  .product-info #woo-variations-table-component table tbody tr,
  .product-info #woo-variations-table-component tbody tr {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: #fff;
  }
  .product-info #woo-variations-table-component tbody tr:nth-child(even) {
    background: #fff;
  }
  .product-info #woo-variations-table-component tbody tr:hover {
    background: #fafaf8;
    border-color: #ddd;
  }
  .product-info #woo-variations-table-component table tbody td,
  .product-info #woo-variations-table-component tbody td {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 !important;
    border-bottom: none !important;
    font-size: 0.85rem;
  }
  .product-info #woo-variations-table-component tbody td::before {
    content: attr(data-title);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #999;
    min-width: 90px;
    flex-shrink: 0;
  }
  /* SKU row */
  .product-info #woo-variations-table-component td[data-title="SKU"] {
    padding-bottom: 8px !important;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  .product-info #woo-variations-table-component td[data-title="SKU"],
  .product-info #woo-variations-table-component td[data-title="SKU"] .item {
    font-family: var(--font-body, 'Outfit', sans-serif) !important;
    font-size: 0.82rem !important;
    color: #555 !important;
  }
  /* Price row */
  .product-info #woo-variations-table-component td[data-title="Price"] {
    padding-top: 8px !important;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0 !important;
  }
  .product-info #woo-variations-table-component del {
    display: inline;
  }
  .product-info #woo-variations-table-component ins .amount {
    font-size: 1rem;
  }
  /* Merged qty + cart cell */
  .product-info #woo-variations-table-component td.add-to-cart {
    padding-top: 10px !important;
    margin-top: 6px;
    border-top: 1px solid #f0f0f0 !important;
  }
  .product-info #woo-variations-table-component td.add-to-cart::before {
    display: none;
  }
  .qty-cart-merged {
    width: 100%;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .qty-cart-merged .single_add_to_cart_button,
  .qty-cart-merged .button {
    flex: 1;
    padding: 10px 16px !important;
    font-size: 0.68rem !important;
  }
  .product-info #woo-variations-table-component input[type="number"] {
    width: 44px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .product-info #woo-variations-table-component .value_change {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  /* Related products: 2 columns tighter */
  .related-products {
    padding: 40px 0 60px;
  }
  .related-products .related > h2,
  .related-products > .container > h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  .related-products .related ul.products,
  .related-products ul.products {
    gap: 16px !important;
  }

  /* Tabs: smaller padding */
  .product-tabs-section {
    padding: 36px 0 48px;
  }
  .product-tabs-section .woocommerce-tabs ul.tabs li a {
    padding: 12px 20px;
    font-size: 0.82rem;
  }
  .product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel {
    font-size: 0.88rem;
  }

  /* Trust badges — stack vertically */
  .product-trust {
    flex-direction: column;
  }
  .product-trust__item {
    min-width: auto;
  }
}

/* -- Mobile (< 640px) -- */
@media (max-width: 640px) {
  .product-main {
    padding: 20px 0 32px;
  }
  .product-main__grid {
    gap: 20px;
  }
  .product-gallery {
    max-width: 100%;
  }
  .product-info__title,
  .product-info .product_title {
    font-size: 1.35rem;
  }
  .product-info__price-current,
  .product-info .price {
    font-size: 1.25rem;
  }

  /* Gallery thumbs */
  .product-gallery__thumbs,
  .product-gallery .flex-control-thumbs {
    gap: 8px;
  }
  .product-gallery__thumb,
  .product-gallery .flex-control-thumbs li {
    width: 60px;
    height: 60px;
  }

  /* Variation table cards — refine for small mobile */
  .product-info #woo-variations-table-component table tbody tr,
  .product-info #woo-variations-table-component tbody tr {
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
  }
  .product-info #woo-variations-table-component table tbody td,
  .product-info #woo-variations-table-component tbody td {
    font-size: 0.8rem !important;
  }
  .product-info #woo-variations-table-component tbody td::before {
    font-size: 0.65rem !important;
    min-width: 70px !important;
  }
  /* Qty + button row — stack on very small */
  .qty-cart-merged {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .qty-cart-merged .single_add_to_cart_button,
  .qty-cart-merged .button {
    width: 100% !important;
    flex: none !important;
    padding: 10px 12px !important;
    font-size: 0.65rem !important;
  }

  /* Related products: 2 columns */
  .related-products .related ul.products,
  .related-products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .related-products ul.products .product-card__info {
    padding: 10px 12px 14px;
  }
  .related-products ul.products .product-card__name {
    font-size: 0.82rem;
  }
  .related-products ul.products .product-card__price,
  .related-products ul.products .price {
    font-size: 0.8rem;
  }

  /* Tabs */
  .product-tabs-section {
    padding: 28px 0 40px;
  }
  .product-tabs-section .woocommerce-tabs ul.tabs li a {
    padding: 10px 16px;
    font-size: 0.78rem;
  }
  .product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel {
    font-size: 0.85rem;
    line-height: 1.7;
  }
  .product-tabs-section .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 1.3rem;
  }

  /* Additional info table */
  .product-tabs-section .woocommerce-product-attributes th {
    width: 120px;
    padding-right: 12px;
    font-size: 0.8rem;
  }
  .product-tabs-section .woocommerce-product-attributes td {
    font-size: 0.8rem;
  }

  /* Actions */
  .product-actions {
    flex-wrap: wrap;
  }
  .product-actions__add {
    flex: 1 1 100%;
    order: -1;
  }
  .product-actions__qty {
    flex: 1;
  }
  .product-actions__wishlist {
    flex: 0 0 48px;
  }

  /* Enquiry form */
  .enquiry-form__row {
    grid-template-columns: 1fr;
  }

  /* Recently viewed */
  .recently-viewed__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Very small mobile (< 400px) -- */
@media (max-width: 400px) {
  .product-info .product_title {
    font-size: 1.2rem;
  }
  .product-info .price {
    font-size: 1.15rem;
  }
  .product-breadcrumbs .breadcrumbs {
    font-size: 0.7rem;
    gap: 4px;
  }
  .product-breadcrumbs .breadcrumbs li:not(:last-child)::after {
    margin-left: 4px;
  }
  .related-products .related ul.products,
  .related-products ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .product-tabs-section .woocommerce-tabs ul.tabs li a {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}