/* ═══════════════════════════════════════════════════════════
   WOOCOMMERCE — Thịnh Phát Custom Styles
   Màu: #003399 (navy) | #ffff00 (yellow)
═══════════════════════════════════════════════════════════ */

/* ── RESET WC defaults ── */
.woocommerce,
.woocommerce-page { font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif; }
.woocommerce ul.products,
.woocommerce-page ul.products { margin: 0; padding: 0; list-style: none; }
.woocommerce .woocommerce-breadcrumb { display: none; } /* dùng breadcrumb riêng */

/* ── SHARED ── */
.wc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.wc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 700; font-size: .88rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s ease; white-space: nowrap;
  font-family: inherit;
}
.wc-btn--primary { background: #003399; color: #ffff00; border-color: #003399; }
.wc-btn--primary:hover { background: #002277; border-color: #002277; transform: translateY(-2px); }
.wc-btn--sm { padding: 8px 16px; font-size: .8rem; }
.wc-btn--icon {
  width: 36px; height: 36px; padding: 0; justify-content: center;
  background: transparent; color: #003399;
  border: 1.5px solid #ccd6f6; border-radius: 8px;
}
.wc-btn--icon:hover { background: #003399; color: #ffff00; border-color: #003399; }
.wc-btn--call {
  background: #003399; color: #ffff00; border-color: #003399;
  padding: 13px 24px; font-size: .95rem; border-radius: 10px;
}
.wc-btn--call:hover { background: #002277; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,51,153,.3); }
.wc-btn--zalo {
  background: transparent; color: #003399; border-color: #003399;
  padding: 13px 24px; font-size: .95rem; border-radius: 10px;
}
.wc-btn--zalo:hover { background: #003399; color: #ffff00; }

/* ══════════════════════════════════════
   ARCHIVE — HERO
══════════════════════════════════════ */
.wc-arch-hero {
  position: relative;
  background: linear-gradient(135deg, #001a66 0%, #003399 60%, #1a4db3 100%);
  padding: 100px 0 48px;
  overflow: hidden;
}
.wc-arch-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wc-arch-hero__overlay { position: absolute; inset: 0; background: rgba(0,10,40,.25); }
.wc-arch-hero .wc-wrap { position: relative; z-index: 1; }

/* Breadcrumb in hero */
.wc-arch-hero .woocommerce-breadcrumb {
  display: flex !important;
  align-items: center; gap: 6px;
  font-size: .78rem; color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.wc-arch-hero .woocommerce-breadcrumb a { color: #ffff00; text-decoration: none; }
.wc-arch-hero .woocommerce-breadcrumb a:hover { opacity: .8; }

.wc-arch-hero__content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900; color: #fff; margin: 0;
}
.wc-arch-hero__cat-info {
  display: flex; align-items: center; gap: 20px;
}
.wc-arch-hero__cat-img {
  width: 72px; height: 72px; border-radius: 16px; overflow: hidden;
  border: 3px solid rgba(255,255,0,.4); flex-shrink: 0;
}
.wc-arch-hero__cat-img img { width: 100%; height: 100%; object-fit: cover; }
.wc-arch-hero__cat-info h1 { margin-bottom: 6px; }
.wc-arch-hero__cat-info p { color: rgba(255,255,255,.75); font-size: .92rem; margin: 0; }

/* ══════════════════════════════════════
   ARCHIVE — MAIN
══════════════════════════════════════ */
.wc-arch-main { background: #f0f4ff; padding: 40px 0 80px; }

/* Toolbar */
.wc-arch-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.wc-arch-toolbar .woocommerce-result-count {
  font-size: .85rem; color: #4a5a8e; margin: 0;
}
.wc-arch-toolbar .woocommerce-ordering select {
  padding: 8px 36px 8px 14px;
  border: 1.5px solid #ccd6f6; border-radius: 8px;
  font-size: .85rem; color: #003399; font-weight: 600;
  background: #fff; cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23003399' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .2s;
}
.wc-arch-toolbar .woocommerce-ordering select:focus { border-color: #003399; }

/* Product grid */
.wc-arch-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important; padding: 0 !important;
  float: none !important;
  clear: both !important;
}
/* Reset WC float-based columns trên từng li */
.wc-arch-grid ul.products li.product,
.wc-arch-grid ul.products li.wc-prod-card {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}
/* Reset clearfix WC inject */
.wc-arch-grid ul.products::before,
.wc-arch-grid ul.products::after { display: none !important; }

@media (max-width: 1100px) { .wc-arch-grid ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .wc-arch-grid ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { .wc-arch-grid ul.products { grid-template-columns: 1fr !important; } }

/* Pagination */
.wc-arch-pagination { margin-top: 40px; text-align: center; }
.wc-arch-pagination .woocommerce-pagination ul {
  display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0;
}
.wc-arch-pagination .woocommerce-pagination ul li a,
.wc-arch-pagination .woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: .88rem; font-weight: 700; text-decoration: none;
  border: 1.5px solid #ccd6f6; background: #fff; color: #003399;
  transition: all .25s ease;
}
.wc-arch-pagination .woocommerce-pagination ul li a:hover { background: #003399; color: #ffff00; border-color: #003399; }
.wc-arch-pagination .woocommerce-pagination ul li span.current { background: #003399; color: #ffff00; border-color: #003399; }

/* Empty state */
.wc-arch-empty {
  text-align: center; padding: 80px 20px;
  background: #fff; border-radius: 20px;
  border: 1.5px solid #ccd6f6;
}
.wc-arch-empty i { font-size: 3.5rem; color: #ccd6f6; display: block; margin-bottom: 20px; }
.wc-arch-empty h3 { font-size: 1.3rem; font-weight: 800; color: #003399; margin-bottom: 10px; }
.wc-arch-empty p { color: #4a5a8e; margin-bottom: 24px; }

/* ══════════════════════════════════════
   PRODUCT CARD (loop)
══════════════════════════════════════ */
.wc-prod-card {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1.5px solid #ccd6f6 !important;
  box-shadow: 0 2px 12px rgba(0,51,153,.07) !important;
  display: flex !important; flex-direction: column !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
  padding: 0 !important;
  list-style: none !important;
}
.wc-prod-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(0,51,153,.16) !important;
  border-color: #003399 !important;
}

/* Image */
.wc-prod-card__img-wrap {
  display: block; position: relative;
  height: 220px; overflow: hidden; background: #e8eeff;
}
.wc-prod-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; display: block;
}
.wc-prod-card:hover .wc-prod-card__img-wrap img { transform: scale(1.07); }
.wc-prod-card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #ccd6f6;
}

/* Badges */
.wc-prod-card__badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em; z-index: 2;
}
.wc-prod-card__badge--sale { background: #cc0000; color: #fff; }
.wc-prod-card__badge--out  { background: #718096; color: #fff; }

/* Hover overlay */
.wc-prod-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,51,153,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.wc-prod-card:hover .wc-prod-card__overlay { opacity: 1; }
.wc-prod-card__overlay-btn {
  color: #fff; font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15); padding: 8px 18px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.4);
}

/* Body */
.wc-prod-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wc-prod-card__cat {
  font-size: .7rem; font-weight: 700; color: #003399;
  text-transform: uppercase; letter-spacing: .06em;
  background: #e8eeff; padding: 2px 10px; border-radius: 20px;
  display: inline-block; align-self: flex-start;
}
.wc-prod-card__title { font-size: .92rem; font-weight: 700; color: #001a66; line-height: 1.4; margin: 0; }
.wc-prod-card__title a { color: inherit; text-decoration: none; }
.wc-prod-card__title a:hover { color: #003399; }
.wc-prod-card__price { font-weight: 800; font-size: .95rem; margin-top: 2px; }
.wc-prod-card__price .price { color: #003399; }
.wc-prod-card__price .price del { color: #a0aec0; font-size: .8rem; font-weight: 400; margin-right: 4px; }
.wc-prod-card__price .price ins { text-decoration: none; color: #cc0000; }
.wc-prod-card__rating { margin-top: 2px; }
.wc-prod-card__rating .star-rating { font-size: .8rem; }
.wc-prod-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.wc-prod-card__actions .wc-btn--primary { flex: 1; justify-content: center; }
/* WC default add to cart button override */
.wc-prod-card .button.add_to_cart_button,
.wc-prod-card .button {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 36px !important; height: 36px !important; padding: 0 !important;
  background: transparent !important; color: #003399 !important;
  border: 1.5px solid #ccd6f6 !important; border-radius: 8px !important;
  font-size: .8rem !important; font-weight: 700 !important;
  text-decoration: none !important; transition: all .25s ease !important;
  cursor: pointer !important;
}
.wc-prod-card .button.add_to_cart_button:hover,
.wc-prod-card .button:hover {
  background: #003399 !important; color: #ffff00 !important; border-color: #003399 !important;
}
.wc-prod-card .button.loading::after { display: none !important; }

/* ══════════════════════════════════════
   SINGLE PRODUCT
══════════════════════════════════════ */
.wc-single-wrap { background: #f0f4ff; padding: 40px 0 80px; }

/* Breadcrumb */
.wc-single-breadcrumb { margin-bottom: 24px; }
.wc-single-breadcrumb .woocommerce-breadcrumb {
  display: flex !important; align-items: center; gap: 6px;
  font-size: .8rem; color: #4a5a8e;
}
.wc-single-breadcrumb .woocommerce-breadcrumb a { color: #003399; text-decoration: none; }
.wc-single-breadcrumb .woocommerce-breadcrumb a:hover { text-decoration: underline; }

/* Product layout */
.wc-single-product {
  background: #fff; border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,51,153,.10);
  border: 1px solid #ccd6f6;
}
.wc-single-product__top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Gallery */
.wc-single-product__gallery {
  background: #f0f4ff;
  border-right: 1px solid #ccd6f6;
}
.wc-single-product__gallery .woocommerce-product-gallery {
  margin: 0 !important; padding: 24px !important;
}
.wc-single-product__gallery .woocommerce-product-gallery__wrapper {
  border-radius: 12px; overflow: hidden;
}
.wc-single-product__gallery .woocommerce-product-gallery__image img {
  border-radius: 12px; width: 100%; height: auto;
  max-height: 480px; object-fit: contain;
}
/* Thumbnails */
.wc-single-product__gallery .flex-control-thumbs {
  display: flex !important; gap: 8px !important;
  flex-wrap: wrap !important; padding: 12px 0 0 !important;
  margin: 0 !important; list-style: none !important;
}
.wc-single-product__gallery .flex-control-thumbs li { margin: 0 !important; }
.wc-single-product__gallery .flex-control-thumbs img {
  width: 72px !important; height: 72px !important;
  object-fit: cover !important; border-radius: 8px !important;
  border: 2px solid #ccd6f6 !important; cursor: pointer !important;
  transition: border-color .2s !important;
}
.wc-single-product__gallery .flex-control-thumbs img.flex-active,
.wc-single-product__gallery .flex-control-thumbs img:hover {
  border-color: #003399 !important;
}

/* Summary */
.wc-single-product__summary { padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; }

.wc-single-product__cat a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; color: #003399;
  text-transform: uppercase; letter-spacing: .06em;
  background: #e8eeff; padding: 4px 12px; border-radius: 20px;
  text-decoration: none;
}
.wc-single-product__cat a:hover { background: #003399; color: #ffff00; }

.wc-single-product__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900; color: #001a66; line-height: 1.2; margin: 0;
}

.wc-single-product__rating .star-rating { font-size: .9rem; }
.wc-single-product__rating .woocommerce-review-link { font-size: .8rem; color: #4a5a8e; }

.wc-single-product__price .price {
  font-size: 1.6rem; font-weight: 900; color: #003399;
}
.wc-single-product__price .price del { color: #a0aec0; font-size: 1rem; font-weight: 400; margin-right: 8px; }
.wc-single-product__price .price ins { text-decoration: none; color: #cc0000; }

.wc-single-product__excerpt {
  font-size: .92rem; color: #4a5a8e; line-height: 1.75;
  padding: 14px 16px; background: #f0f4ff;
  border-left: 4px solid #ffff00; border-radius: 0 8px 8px 0;
}
.wc-single-product__excerpt p { margin: 0; }

/* Add to cart */
.wc-single-product__cart .quantity { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.wc-single-product__cart .quantity label { font-size: .82rem; font-weight: 700; color: #003399; text-transform: uppercase; letter-spacing: .04em; }
.wc-single-product__cart .quantity input[type="number"] {
  width: 80px; padding: 10px 12px; text-align: center;
  border: 1.5px solid #ccd6f6; border-radius: 8px;
  font-size: .95rem; font-weight: 700; color: #003399;
  outline: none; transition: border-color .2s;
}
.wc-single-product__cart .quantity input:focus { border-color: #003399; }
.wc-single-product__cart .single_add_to_cart_button {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  background: #003399 !important; color: #ffff00 !important;
  border: none !important; border-radius: 10px !important;
  padding: 14px 28px !important; font-size: 1rem !important; font-weight: 800 !important;
  cursor: pointer !important; transition: all .3s ease !important;
  font-family: inherit !important;
}
.wc-single-product__cart .single_add_to_cart_button:hover {
  background: #002277 !important; transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,51,153,.3) !important;
}
.wc-single-product__cart .single_add_to_cart_button::before { content: '\f07a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* Meta */
.wc-single-product__meta { font-size: .82rem; color: #4a5a8e; }
.wc-single-product__meta .sku_wrapper,
.wc-single-product__meta .posted_in,
.wc-single-product__meta .tagged_as { display: block; margin-bottom: 4px; }
.wc-single-product__meta a { color: #003399; text-decoration: none; }
.wc-single-product__meta a:hover { text-decoration: underline; }

/* Trust badges */
.wc-single-product__trust {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; padding: 16px;
  background: #f0f4ff; border-radius: 12px;
  border: 1px solid #ccd6f6;
}
.wc-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: #003399;
}
.wc-trust-item i { color: #ffff00; background: #003399; padding: 6px; border-radius: 6px; font-size: .75rem; }

/* CTA */
.wc-single-product__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── TABS ── */
.wc-single-product__tabs { padding: 0 40px 40px; }
.wc-single-product__tabs .woocommerce-tabs {
  border-top: 1px solid #ccd6f6; padding-top: 32px;
}
.wc-single-product__tabs .woocommerce-tabs ul.tabs {
  display: flex; gap: 4px; list-style: none;
  padding: 0; margin: 0 0 24px; border-bottom: 2px solid #ccd6f6;
}
.wc-single-product__tabs .woocommerce-tabs ul.tabs li {
  margin: 0; padding: 0;
}
.wc-single-product__tabs .woocommerce-tabs ul.tabs li a {
  display: block; padding: 10px 20px;
  font-size: .88rem; font-weight: 700; color: #4a5a8e;
  text-decoration: none; border-radius: 8px 8px 0 0;
  border: 1px solid transparent; border-bottom: none;
  transition: all .2s ease; margin-bottom: -2px;
}
.wc-single-product__tabs .woocommerce-tabs ul.tabs li.active a {
  color: #003399; background: #fff;
  border-color: #ccd6f6; border-bottom-color: #fff;
}
.wc-single-product__tabs .woocommerce-tabs ul.tabs li a:hover { color: #003399; }
.wc-single-product__tabs .woocommerce-tabs .panel {
  font-size: .92rem; color: #4a5a8e; line-height: 1.8;
}
.wc-single-product__tabs .woocommerce-tabs .panel h2 { display: none; }
.wc-single-product__tabs .woocommerce-tabs .panel p { margin-bottom: 12px; }

/* ── RELATED PRODUCTS & UPSELLS ── */
/* WC render related/upsells SAU article, không nằm trong tabs */
.wc-single-wrap .upsells.products,
.wc-single-product__tabs .related.products,
.wc-single-product__tabs .upsells.products {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 32px 40px 40px;
  border-top: 1px solid #ccd6f6;
  margin-top: 0;
}
.wc-single-wrap section.related.products {
    border-radius: 20px !important;
    margin-top: 30px !important;
}
.wc-single-wrap .related.products > h2,
.wc-single-wrap .upsells.products > h2,
.wc-single-product__tabs .related.products > h2,
.wc-single-product__tabs .upsells.products > h2 {
  font-size: 1.2rem; font-weight: 800; color: #003399;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid #ffff00; display: inline-block;
}

/* Grid related */
.wc-single-wrap .related.products ul.products,
.wc-single-wrap .upsells.products ul.products,
.wc-single-product__tabs .related.products ul.products,
.wc-single-product__tabs .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  float: none !important; clear: both !important;
  margin: 0 !important; padding: 0 !important;
}
/* Reset float trên li */
.wc-single-wrap .related.products ul.products li.product,
.wc-single-wrap .upsells.products ul.products li.product,
.wc-single-product__tabs .related.products ul.products li.product,
.wc-single-product__tabs .upsells.products ul.products li.product {
  float: none !important; width: auto !important;
  margin: 0 !important; clear: none !important;
}
.wc-single-wrap .related.products ul.products::before,
.wc-single-wrap .related.products ul.products::after,
.wc-single-wrap .upsells.products ul.products::before,
.wc-single-wrap .upsells.products ul.products::after { display: none !important; }

@media (max-width: 900px) {
  .wc-single-wrap .related.products ul.products,
  .wc-single-wrap .upsells.products ul.products,
  .wc-single-product__tabs .related.products ul.products,
  .wc-single-product__tabs .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .wc-single-wrap .related.products,
  .wc-single-wrap .upsells.products,
  .wc-single-product__tabs .related.products,
  .wc-single-product__tabs .upsells.products { padding: 24px; }
}
@media (max-width: 480px) {
  .wc-single-wrap .related.products ul.products,
  .wc-single-wrap .upsells.products ul.products { grid-template-columns: 1fr !important; }
}

/* ── SALE FLASH ── */
.wc-single-product .onsale {
  background: #cc0000 !important; color: #fff !important;
  font-size: .72rem !important; font-weight: 800 !important;
  padding: 5px 12px !important; border-radius: 20px !important;
  text-transform: uppercase !important; letter-spacing: .04em !important;
  position: absolute !important; top: 16px !important; left: 16px !important;
  z-index: 2 !important; min-height: auto !important; line-height: 1 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .wc-single-product__top { grid-template-columns: 1fr; }
  .wc-single-product__gallery { border-right: none; border-bottom: 1px solid #ccd6f6; }
  .wc-single-product__summary { padding: 24px; }
  .wc-single-product__tabs { padding: 0 24px 32px; }
}
@media (max-width: 600px) {
  .wc-single-product__trust { grid-template-columns: 1fr; }
  .wc-single-product__cta { flex-direction: column; }
  .wc-single-product__cta .wc-btn { justify-content: center; }
}

/* ── WC default li.product trong related cũng dùng card style ── */
.wc-single-wrap .related.products ul.products li.product,
.wc-single-wrap .upsells.products ul.products li.product {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1.5px solid #ccd6f6 !important;
  box-shadow: 0 2px 12px rgba(0,51,153,.07) !important;
  display: flex !important; flex-direction: column !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
  padding: 0 !important;
}
.wc-single-wrap .related.products ul.products li.product:hover,
.wc-single-wrap .upsells.products ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 40px rgba(0,51,153,.15) !important;
  border-color: #003399 !important;
}
/* Ảnh trong related */
.wc-single-wrap .related.products ul.products li.product a img,
.wc-single-wrap .upsells.products ul.products li.product a img {
  width: 100% !important; height: 200px !important;
  object-fit: cover !important; display: block !important;
  transition: transform .5s ease !important;
}
.wc-single-wrap .related.products ul.products li.product:hover a img,
.wc-single-wrap .upsells.products ul.products li.product:hover a img {
  transform: scale(1.06) !important;
}
/* Tên sản phẩm */
.wc-single-wrap .related.products ul.products li.product .woocommerce-loop-product__title,
.wc-single-wrap .upsells.products ul.products li.product .woocommerce-loop-product__title {
  font-size: .92rem !important; font-weight: 700 !important;
  color: #001a66 !important; padding: 12px 14px 4px !important;
  line-height: 1.4 !important;
}
/* Giá */
.wc-single-wrap .related.products ul.products li.product .price,
.wc-single-wrap .upsells.products ul.products li.product .price {
  color: #003399 !important; font-weight: 800 !important;
  font-size: .92rem !important; padding: 0 14px 8px !important;
  display: block !important;
}
/* Nút add to cart */
.wc-single-wrap .related.products ul.products li.product .button,
.wc-single-wrap .upsells.products ul.products li.product .button {
  display: block !important; margin: 0 14px 14px !important;
  background: #003399 !important; color: #ffff00 !important;
  border: none !important; border-radius: 8px !important;
  padding: 9px 14px !important; font-size: .82rem !important;
  font-weight: 700 !important; text-align: center !important;
  text-decoration: none !important; transition: background .25s !important;
  cursor: pointer !important;
}
.wc-single-wrap .related.products ul.products li.product .button:hover,
.wc-single-wrap .upsells.products ul.products li.product .button:hover {
  background: #002277 !important;
}
/* Sale badge */
.wc-single-wrap .related.products ul.products li.product .onsale,
.wc-single-wrap .upsells.products ul.products li.product .onsale {
  top: 10px !important; left: 10px !important;
  background: #cc0000 !important; color: #fff !important;
  font-size: .68rem !important; font-weight: 800 !important;
  padding: 3px 10px !important; border-radius: 20px !important;
  min-height: auto !important; line-height: 1.4 !important;
}

/* ── Ẩn nút "Read more" (xuất hiện khi SP không có giá/không purchasable) ── */
.wc-prod-card__actions a.add_to_cart_button[rel="nofollow"]:not([data-product_id=""]) {
  /* Nếu text là "Read more" thì ẩn */
}
/* Cách chắc chắn nhất: ẩn add_to_cart khi không có data-product_id hợp lệ
   hoặc dùng aria-label chứa "Read more" */
.wc-prod-card .add_to_cart_button[aria-label*="Read more"],
.wc-prod-card .button[aria-label*="Read more"],
/* Related products */
.wc-single-wrap .related.products .button[aria-label*="Read more"],
.wc-single-wrap .upsells.products .button[aria-label*="Read more"] {
  display: none !important;
}

/* ── WC NOTICES ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 20px !important; border-radius: 10px !important;
  margin-bottom: 20px !important; font-size: .9rem !important;
  display: flex !important; align-items: center !important; gap: 10px !important;
  border-top: none !important;
}
.woocommerce-message { background: #d4edda !important; color: #155724 !important; border-left: 4px solid #28a745 !important; }
.woocommerce-info    { background: #e8eeff !important; color: #003399 !important; border-left: 4px solid #003399 !important; }
.woocommerce-error   { background: #f8d7da !important; color: #721c24 !important; border-left: 4px solid #cc0000 !important; }
.woocommerce-message a.button,
.woocommerce-info a.button {
  background: #003399 !important; color: #ffff00 !important;
  padding: 6px 14px !important; border-radius: 6px !important;
  font-size: .8rem !important; font-weight: 700 !important;
  text-decoration: none !important; margin-left: auto !important;
}
