/* Gió Rừng Store — Phase 3 WooCommerce */
:root {
  --gr-forest: #0f331f;
  --gr-pine: #446843;
  --gr-olive: #79915b;
  --gr-gold: #d9a441;
  --gr-sage: #7a9a7d;
  --gr-cream: #f7f6f1;
  --gr-charcoal: #16241b;
  --gr-muted: #6b6459;
  --gr-border: #dce3da;
  --gr-white: #fff;
}

/* Shared Woo shell */
body.woocommerce-page main { color: var(--gr-charcoal); }
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border: 1px solid rgba(15,51,31,.12) !important;
  border-top: 0 !important;
  border-radius: 14px;
  background: #fff !important;
  color: var(--gr-charcoal) !important;
  box-shadow: 0 12px 32px rgba(15,51,31,.06);
  padding: 16px 18px 16px 48px !important;
  margin: 0 0 22px !important;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--gr-pine) !important; }
.woocommerce-error::before { color: #d14343 !important; }

/* Shop archive */
.gr-shop-page { background: #fbfbf8; }
.gr-shop-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  background:
    radial-gradient(circle at 92% 12%, rgba(217,164,65,.20), transparent 24%),
    radial-gradient(circle at 76% 74%, rgba(122,154,125,.15), transparent 28%),
    linear-gradient(180deg, #fbfaf4 0%, #f6f7f2 100%);
  border-bottom: 1px solid rgba(15,51,31,.07);
}
.gr-shop-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -190px;
  border: 1px solid rgba(15,51,31,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(15,51,31,.025), 0 0 0 140px rgba(15,51,31,.018);
  pointer-events: none;
}
.gr-shop-breadcrumb,
.gr-product-breadcrumb,
.gr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 22px;
    color: #7a827b;
    font: 500 12px/1.4 Inter, sans-serif;
}
.gr-shop-breadcrumb a,
.gr-product-breadcrumb a { color: var(--gr-pine); text-decoration: none; }
.gr-shop-heading-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}
.gr-shop-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #9a711f;
  font: 750 11px/1.3 "Be Vietnam Pro", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gr-shop-heading-row h1 {
  margin: 0;
  color: var(--gr-forest);
  font: 800 clamp(34px,4.3vw,58px)/1.04 "Be Vietnam Pro", sans-serif;
  letter-spacing: -.035em;
}
.gr-shop-description { max-width: 650px; margin-top: 10px; color: var(--gr-muted); font-size: 14px; }
.gr-shop-description p { margin: 0; }
.gr-shop-stat {
  min-width: 180px;
  padding: 18px 20px;
  border: 1px solid rgba(15,51,31,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 35px rgba(15,51,31,.06);
}
.gr-shop-stat strong { display: block; color: var(--gr-forest); font: 800 30px/1 "Be Vietnam Pro", sans-serif; }
.gr-shop-stat span { display: block; margin-top: 7px; color: var(--gr-muted); font-size: 12px; }
.gr-ai-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15,51,31,.10);
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 48px rgba(15,51,31,.08);
}
.gr-ai-search-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(217,164,65,.17);
  color: #9a711f;
  font-size: 18px;
}
.gr-ai-search input[type="search"] {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 8px;
  background: transparent;
  color: var(--gr-charcoal);
  font: 500 14px/1.4 Inter, sans-serif;
}
.gr-ai-search button,
.gr-filter-submit {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  padding: 13px 18px;
  background: var(--gr-gold);
  color: var(--gr-forest);
  font: 750 13px/1 "Be Vietnam Pro", sans-serif;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gr-ai-search button:hover,
.gr-filter-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(217,164,65,.22); }
.gr-ai-search-note {
  grid-column: 2 / 4;
  margin-top: -2px;
  padding: 0 8px 2px;
  color: #92988f;
  font-size: 10px;
}
.gr-shop-content { padding: 38px 0 74px; }
.gr-shop-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 30px; align-items: start; }
.gr-shop-sidebar {
  position: sticky;
  top: 132px;
  padding: 22px;
  border: 1px solid rgba(15,51,31,.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15,51,31,.055);
}
.gr-filter-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--gr-border); }
.gr-filter-header span { display: block; color: #879087; font-size: 11px; }
.gr-filter-header strong { display: block; margin-top: 3px; color: var(--gr-forest); font: 700 14px/1.35 "Be Vietnam Pro", sans-serif; }
.gr-filter-close { display: none; border: 0; background: transparent; color: var(--gr-muted); font-size: 25px; cursor: pointer; }
.gr-filter-group { padding: 18px 0; border-bottom: 1px solid #eef1ed; }
.gr-filter-group > label { display: block; margin-bottom: 9px; color: var(--gr-charcoal); font: 700 12px/1.3 "Be Vietnam Pro", sans-serif; }
.gr-filter-group select,
.gr-filter-group input[type="number"] {
  width: 100%;
  height: 42px;
  border: 1px solid #dfe5dd;
  border-radius: 11px;
  background: #fbfcfa;
  color: var(--gr-charcoal);
  outline: 0;
  padding: 0 11px;
  font-size: 12px;
}
.gr-filter-group select:focus,
.gr-filter-group input:focus { border-color: rgba(68,104,67,.52); box-shadow: 0 0 0 3px rgba(122,154,125,.10); }
.gr-price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; }
.gr-price-range span { color: #a1a69f; }
.gr-filter-submit { width: 100%; margin-top: 18px; }
.gr-filter-reset { display: block; margin-top: 11px; text-align: center; color: var(--gr-muted); font-size: 11px; text-decoration: none; }
.gr-filter-reset:hover { color: var(--gr-forest); }
.gr-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.gr-toolbar-left,
.gr-toolbar-right { display: flex; align-items: center; gap: 12px; }
.gr-shop-toolbar .woocommerce-result-count { margin: 0 !important; color: var(--gr-muted); font-size: 12px; }
.gr-shop-toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.gr-shop-toolbar .woocommerce-ordering select {
  height: 42px;
  border: 1px solid #dce3da;
  border-radius: 11px;
  background: #fff;
  padding: 0 34px 0 12px;
  color: var(--gr-charcoal);
  font: 600 12px Inter, sans-serif;
}
.gr-filter-toggle {
  display: none;
  height: 42px;
  border: 1px solid #dce3da;
  border-radius: 11px;
  padding: 0 13px;
  background: #fff;
  color: var(--gr-forest);
  font: 700 12px "Be Vietnam Pro", sans-serif;
  cursor: pointer;
}

/* Product cards */
ul.products.gr-products-grid,
.woocommerce ul.products {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  clear: both;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product.gr-product-card,
.gr-product-card {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15,51,31,.085);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15,51,31,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.gr-product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(15,51,31,.10); border-color: rgba(15,51,31,.15); }
.gr-product-media { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: #f4f5ef; }
.gr-product-media img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform .35s ease; }
.gr-product-card:hover .gr-product-media img { transform: scale(1.05); }
.gr-product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 99px;
  background: var(--gr-forest);
  color: #fff;
  font: 750 10px/1 "Be Vietnam Pro", sans-serif;
}
.gr-product-badge-sale { background: var(--gr-gold); color: var(--gr-forest); }
.gr-product-card-body { padding: 16px; }
.gr-product-category { min-height: 17px; margin-bottom: 5px; color: #7e897e; font-size: 10px; }
.gr-product-category a { color: inherit; text-decoration: none; }
.gr-product-title { margin: 0 0 9px !important; min-height: 43px; font: 700 15px/1.4 "Be Vietnam Pro", sans-serif !important; padding: 0 !important; }
.gr-product-title a { color: var(--gr-charcoal); text-decoration: none; }
.gr-product-rating { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 11px; line-height: 1; }
.gr-stars,
.gr-stars-fill { letter-spacing: 1px; white-space: nowrap; }
.gr-stars { color: #d9ded7; }
.gr-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #e1a72f; }
.gr-rating-count { margin-left: 2px; color: #8b918b; }
.gr-product-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}

.gr-product-price {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  color: var(--gr-forest);
  font: 800 15px/1.25 "Be Vietnam Pro", sans-serif;
  font-variant-numeric: tabular-nums;
}

.gr-product-price del {
  display: block;
  margin-bottom: 2px;
  color: #9b9f9a;
  font-size: 10px;
  font-weight: 500;
}

.gr-product-price ins {
  text-decoration: none;
}

.gr-product-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.gr-product-detail-link,
.gr-card-add-button,
.woocommerce ul.products li.product .button.gr-card-add-button {
  width: 100%;
}
.gr-product-detail-link,
.gr-card-add-button,
.woocommerce ul.products li.product .button.gr-card-add-button {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  border-radius: 10px !important;
  padding: 0 10px !important;
  border: 1px solid #dce3da !important;
  background: #fff !important;
  color: var(--gr-forest) !important;
  text-decoration: none;
  font: 700 10px/1 "Be Vietnam Pro", sans-serif !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease !important;
}
.gr-card-add-button,
.woocommerce ul.products li.product .button.gr-card-add-button { background: var(--gr-forest) !important; color: #fff !important; border-color: var(--gr-forest) !important; }
.gr-product-detail-link:hover { background: var(--gr-cream); border-color: rgba(15,51,31,.2); }
.gr-card-add-button:hover { background: var(--gr-pine) !important; }
.gr-card-add-button.loading { opacity: .65; }
.gr-card-add-button.added::after { margin-left: 5px !important; }
.gr-product-card .added_to_cart { display: none !important; }
.gr-shop-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.woocommerce nav.woocommerce-pagination {
  width: 100%;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  margin: 0 auto !important;
}
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 7px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  width: 38px;
  height: 38px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #dce3da;
  border-radius: 10px;
  background: #fff;
  color: var(--gr-forest);
  font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--gr-forest) !important; color: #fff !important; border-color: var(--gr-forest); }
.gr-shop-empty { padding: 70px 28px; border: 1px dashed #ccd8cb; border-radius: 22px; text-align: center; background: #fff; }
.gr-shop-empty > span { font-size: 42px; }
.gr-shop-empty h2 { margin: 14px 0 8px; color: var(--gr-forest); font: 750 24px/1.25 "Be Vietnam Pro", sans-serif; }
.gr-shop-empty p { margin: 0 auto 18px; max-width: 500px; color: var(--gr-muted); }
.gr-shop-empty a { display: inline-flex; padding: 11px 16px; border-radius: 10px; background: var(--gr-forest); color: #fff; text-decoration: none; font-weight: 700; }
.gr-filter-backdrop { display: none; }

/* Single product */
.gr-single-product-page { padding: 26px 0 72px; background: #fbfbf8; }
.gr-product-main { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(360px,.97fr); gap: 48px; align-items: start; }
.gr-product-gallery { min-width: 0; }
.gr-product-main-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid rgba(15,51,31,.08);
  border-radius: 24px;
  background: #f2f4ed;
}
.gr-product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.gr-product-thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 12px; }
.gr-product-thumb { aspect-ratio: 1/1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: #f4f5ef; cursor: pointer; }
.gr-product-thumb.is-active { border-color: var(--gr-forest); }
.gr-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gr-product-summary { position: sticky; top: 108px; }
.gr-product-kicker { color: #8c6d2b; font: 700 11px/1.3 "Be Vietnam Pro", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.gr-product-summary h1 { margin: 10px 0 12px; color: var(--gr-forest); font: 800 clamp(30px,3.5vw,46px)/1.12 "Be Vietnam Pro", sans-serif; letter-spacing: -.025em; }
.gr-product-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--gr-border); }
.gr-product-rating-large { margin: 0; }
.gr-product-sku { color: #91968f; font-size: 10px; }
.gr-single-price { margin: 22px 0 12px; color: var(--gr-forest); font: 800 28px/1.2 "Be Vietnam Pro", sans-serif; }
.gr-single-price del { color: #a0a39f; font-size: 15px; font-weight: 500; }
.gr-single-price ins { text-decoration: none; }
.gr-product-short-description { color: var(--gr-muted); font-size: 14px; line-height: 1.75; }
.gr-product-short-description p { margin: 0; }
.gr-stock-row { display: flex; align-items: center; gap: 8px; margin: 15px 0; color: var(--gr-muted); font-size: 12px; }
.gr-stock-row .stock { margin: 0 !important; color: inherit !important; }
.gr-stock-dot { width: 8px; height: 8px; border-radius: 50%; background: #d14343; }
.gr-stock-dot.is-in-stock { background: #3f8f5c; box-shadow: 0 0 0 4px rgba(63,143,92,.12); }
.gr-purchase-box { padding: 18px; border: 1px solid rgba(15,51,31,.09); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(15,51,31,.05); }
.gr-purchase-box form.cart { display: flex; gap: 10px; align-items: stretch; margin: 0 !important; }
.gr-purchase-box .quantity input.qty { width: 70px; height: 48px; border: 1px solid #dce3da; border-radius: 11px; background: #fbfcfa; color: var(--gr-charcoal); font-weight: 700; }
.gr-purchase-box .single_add_to_cart_button {
  flex: 1;
  min-height: 48px;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg,var(--gr-forest),var(--gr-pine)) !important;
  color: #fff !important;
  font: 750 13px "Be Vietnam Pro", sans-serif !important;
}
.gr-purchase-box .variations { width: 100%; margin-bottom: 12px !important; }
.gr-purchase-box .variations th,
.gr-purchase-box .variations td { display: block; width: 100%; padding: 4px 0 !important; }
.gr-purchase-box .variations select { width: 100%; min-height: 43px; border: 1px solid #dce3da; border-radius: 10px; padding: 0 10px; background: #fff; }
.gr-purchase-box .woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.gr-product-assurances { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.gr-product-assurances > div { padding: 12px; border-radius: 13px; background: #f7f7f2; border: 1px solid #e7ebe5; }
.gr-product-assurances span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 7px; border-radius: 9px; background: rgba(122,154,125,.13); color: var(--gr-forest); }
.gr-product-assurances strong { display: block; color: var(--gr-charcoal); font: 700 10px/1.35 "Be Vietnam Pro", sans-serif; }
.gr-product-assurances small { display: block; margin-top: 3px; color: #8b9189; font-size: 9px; line-height: 1.4; }
.gr-product-taxonomy { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; color: #7f877f; font-size: 11px; }
.gr-product-taxonomy a { color: var(--gr-pine); text-decoration: none; }
.gr-ai-trip-fit { margin: 52px 0 38px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px; border-radius: 20px; color: #fff; background: linear-gradient(135deg,#0f331f,#355f42); box-shadow: 0 18px 45px rgba(15,51,31,.13); }
.gr-ai-trip-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--gr-gold); color: var(--gr-forest); font-size: 21px; }
.gr-ai-trip-fit span { color: #e9c66f; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.gr-ai-trip-fit h2 { margin: 4px 0 5px; color: #fff; font: 700 19px/1.3 "Be Vietnam Pro", sans-serif; }
.gr-ai-trip-fit p { margin: 0; max-width: 760px; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.6; }
.gr-ai-trip-fit a { padding: 11px 14px; border-radius: 10px; background: var(--gr-gold); color: var(--gr-forest); text-decoration: none; font: 750 11px "Be Vietnam Pro", sans-serif; white-space: nowrap; }
.gr-product-details { padding: 26px; border: 1px solid rgba(15,51,31,.08); border-radius: 20px; background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs { margin: 0 0 24px !important; padding: 0 !important; display: flex; gap: 8px; border-bottom: 1px solid var(--gr-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; margin: 0 !important; background: transparent !important; border-radius: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 11px 12px !important; color: #7f877f !important; font: 700 12px "Be Vietnam Pro", sans-serif !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--gr-forest) !important; border-bottom: 2px solid var(--gr-gold); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0 !important; color: var(--gr-muted); font-size: 13px; line-height: 1.8; }
.woocommerce div.product .woocommerce-tabs .panel h2 { color: var(--gr-forest); font: 750 22px/1.3 "Be Vietnam Pro", sans-serif; }
.gr-related-wrap { margin-top: 48px; }
.gr-related-wrap .related > h2 { margin: 0 0 22px; color: var(--gr-forest); font: 750 28px/1.3 "Be Vietnam Pro", sans-serif; }
.gr-related-wrap .products { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }

/* Cart */
.woocommerce-cart .site-main,
.woocommerce-cart main,
.woocommerce-checkout .site-main,
.woocommerce-checkout main { background: #fbfbf8; }
.gr-cart-shell,
.gr-checkout-shell { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 36px 0 76px; }
.gr-checkout-steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto 34px; }
.gr-checkout-steps > div { display: flex; align-items: center; gap: 8px; color: #99a099; white-space: nowrap; }
.gr-checkout-steps > div span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #dce3da; border-radius: 50%; background: #fff; font: 750 10px "Be Vietnam Pro", sans-serif; }
.gr-checkout-steps > div strong { font: 700 10px "Be Vietnam Pro", sans-serif; }
.gr-checkout-steps > div.is-active { color: var(--gr-forest); }
.gr-checkout-steps > div.is-active span { background: var(--gr-gold); border-color: var(--gr-gold); color: var(--gr-forest); }
.gr-checkout-steps > div.is-done { color: var(--gr-pine); }
.gr-checkout-steps > div.is-done span { background: var(--gr-pine); border-color: var(--gr-pine); color: #fff; }
.gr-checkout-steps > i { height: 1px; background: #dce3da; }
.gr-cart-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 28px; align-items: start; }
.gr-cart-card,
.gr-cart-summary,
.gr-checkout-customer-card,
.gr-checkout-order-card { border: 1px solid rgba(15,51,31,.08); border-radius: 22px; background: #fff; box-shadow: 0 15px 42px rgba(15,51,31,.055); }
.gr-cart-card { padding: 26px; }
.gr-cart-card-heading,
.gr-checkout-order-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.gr-cart-card-heading h1 { margin: 3px 0 0; color: var(--gr-forest); font: 800 30px/1.15 "Be Vietnam Pro", sans-serif; }
.gr-cart-card-heading a,
.gr-checkout-order-heading a { color: var(--gr-pine); text-decoration: none; font-size: 11px; font-weight: 700; }
.gr-cart-items { display: flex; flex-direction: column; }
.gr-cart-item { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 17px; padding: 18px 0; border-top: 1px solid #edf0eb; }
.gr-cart-item:first-child { border-top: 0; }
.gr-cart-item-media { width: 112px; height: 112px; overflow: hidden; border-radius: 14px; background: #f4f5ef; }
.gr-cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.gr-cart-item-topline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gr-cart-item-topline h2 { margin: 0; font: 700 14px/1.4 "Be Vietnam Pro", sans-serif; }
.gr-cart-item-topline h2 a { color: var(--gr-charcoal); text-decoration: none; }
.gr-cart-item-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; color: #929891; font-size: 10px; }
.gr-cart-remove { width: 28px; height: 28px; display: grid !important; place-items: center; border-radius: 50%; background: #f7f7f4 !important; color: #8e958d !important; text-decoration: none !important; font-size: 18px !important; }
.gr-cart-remove:hover { background: #fff0f0 !important; color: #d14343 !important; }
.gr-cart-item-bottomline { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: end; margin-top: 18px; }
.gr-cart-item-bottomline > div > span { display: block; margin-bottom: 5px; color: #969b95; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.gr-cart-item-bottomline strong { color: var(--gr-forest); font-size: 12px; }
.gr-cart-subtotal { text-align: right; }
.gr-quantity-wrap { display: flex; align-items: center; height: 36px; border: 1px solid #dce3da; border-radius: 9px; overflow: hidden; }
.gr-quantity-wrap button { width: 30px; height: 100%; border: 0; background: #f8f9f6; color: var(--gr-forest); cursor: pointer; font-size: 17px; }
.gr-quantity-wrap .quantity { display: contents; }
.gr-quantity-wrap input.qty { width: 42px !important; height: 100% !important; border: 0 !important; background: #fff !important; text-align: center; font-size: 11px; appearance: textfield; -webkit-appearance: textfield; -moz-appearance: textfield; }
.gr-cart-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #edf0eb; }
.gr-coupon-box { display: flex; gap: 7px; }
.gr-coupon-box input { min-height: 40px; border: 1px solid #dce3da; border-radius: 10px; padding: 0 11px; font-size: 11px; }
.gr-coupon-box .button,
.gr-update-cart { min-height: 40px !important; border-radius: 10px !important; background: #f5f7f3 !important; color: var(--gr-forest) !important; font: 700 10px "Be Vietnam Pro", sans-serif !important; }
.gr-cart-summary-wrap { position: sticky; top: 108px; }
.gr-cart-summary { padding: 22px; }
.gr-cart-summary-heading { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #edf0eb; }
.gr-cart-summary-heading span { color: var(--gr-forest); font: 750 16px "Be Vietnam Pro", sans-serif; }
.gr-cart-summary-heading small { color: #919891; }
.gr-cart-summary .cart_totals { width: 100% !important; float: none !important; }
.gr-cart-summary .cart_totals h2 { display: none; }
.gr-cart-summary table.shop_table { border: 0 !important; margin: 8px 0 14px !important; }
.gr-cart-summary table.shop_table th,
.gr-cart-summary table.shop_table td { border: 0 !important; border-bottom: 1px solid #edf0eb !important; padding: 12px 0 !important; font-size: 11px; }
.gr-cart-summary table.shop_table th { color: #7f877f; font-weight: 500; }
.gr-cart-summary table.shop_table td { text-align: right; color: var(--gr-charcoal); font-weight: 700; }
.gr-cart-summary .order-total th,
.gr-cart-summary .order-total td { color: var(--gr-forest) !important; font-size: 14px !important; }
.gr-cart-summary .wc-proceed-to-checkout { padding: 0 !important; }
.gr-cart-summary .checkout-button { width: 100%; margin: 0 !important; border-radius: 11px !important; background: linear-gradient(135deg,var(--gr-forest),var(--gr-pine)) !important; color: #fff !important; font: 750 12px "Be Vietnam Pro", sans-serif !important; padding: 14px !important; }
.gr-cart-secure { margin-top: 11px; color: #8e958e; text-align: center; font-size: 9px; }

/* Checkout */
.gr-checkout-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.72fr); gap: 28px; align-items: start; }
.gr-checkout-customer-card { padding: 28px; }
.gr-checkout-section-heading { margin-bottom: 24px; }
.gr-checkout-section-heading h1 { margin: 3px 0 7px; color: var(--gr-forest); font: 800 30px/1.15 "Be Vietnam Pro", sans-serif; }
.gr-checkout-section-heading p { margin: 0; color: var(--gr-muted); font-size: 12px; }
.gr-customer-details .woocommerce-billing-fields > h3,
.gr-customer-details .woocommerce-additional-fields > h3,
.gr-customer-details .woocommerce-shipping-fields > h3 { color: var(--gr-charcoal); font: 750 16px/1.3 "Be Vietnam Pro", sans-serif; }
.gr-checkout-form .form-row { margin-bottom: 12px !important; }
.gr-checkout-form .form-row label { margin-bottom: 5px; color: #657066; font-size: 10px; font-weight: 700; }
.gr-checkout-form input.input-text,
.gr-checkout-form textarea,
.gr-checkout-form select,
.gr-checkout-form .select2-container .select2-selection--single {
  min-height: 44px;
  border: 1px solid #dce3da !important;
  border-radius: 10px !important;
  background: #fbfcfa !important;
  color: var(--gr-charcoal);
  box-shadow: none !important;
  padding: 0 11px;
  font-size: 12px;
}
.gr-checkout-form textarea { min-height: 110px; padding-top: 10px; }
.gr-checkout-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 0; }
.gr-checkout-form .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.gr-checkout-order-card { position: sticky; top: 108px; padding: 22px; }
.gr-checkout-order-heading { margin: 0 0 12px; padding-bottom: 14px; border-bottom: 1px solid #edf0eb; }
.gr-checkout-order-heading span { color: var(--gr-forest); font: 750 16px "Be Vietnam Pro", sans-serif; }
.gr-checkout-order-card table.shop_table { border: 0 !important; margin: 0 0 14px !important; }
.gr-checkout-order-card table.shop_table th,
.gr-checkout-order-card table.shop_table td { padding: 11px 0 !important; border: 0 !important; border-bottom: 1px solid #edf0eb !important; font-size: 10.5px; }
.gr-checkout-order-card table.shop_table td { text-align: right; }
.gr-checkout-order-card table.shop_table .order-total th,
.gr-checkout-order-card table.shop_table .order-total td { color: var(--gr-forest); font-size: 13px; }
.gr-checkout-order-card #payment { background: #f7f8f5 !important; border-radius: 13px !important; }
.gr-checkout-order-card #payment ul.payment_methods { border-bottom: 1px solid #e2e7df !important; padding: 14px !important; }
.gr-checkout-order-card #payment div.form-row { padding: 14px !important; }
.gr-checkout-order-card #place_order { width: 100%; min-height: 47px; border-radius: 10px !important; background: linear-gradient(135deg,var(--gr-forest),var(--gr-pine)) !important; color: #fff !important; font: 750 12px "Be Vietnam Pro", sans-serif !important; }
.gr-checkout-order-card .woocommerce-privacy-policy-text { color: #858d85; font-size: 9px; line-height: 1.5; }

/* Woo Blocks fallbacks */
.wc-block-cart,
.wc-block-checkout { width: min(1180px,calc(100% - 40px)); margin: 36px auto 72px !important; }
.wc-block-components-sidebar-layout { gap: 28px !important; }
.wc-block-components-main,
.wc-block-components-sidebar { background: #fff; border: 1px solid rgba(15,51,31,.08); border-radius: 20px; padding: 22px !important; box-shadow: 0 14px 38px rgba(15,51,31,.05); }
.wc-block-components-button { border-radius: 10px !important; background: var(--gr-forest) !important; color: #fff !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input { border-radius: 10px !important; }

/* Thank you */
.gr-thankyou-page { width: min(850px,calc(100% - 40px)); margin: 42px auto 76px; }
.gr-order-state { padding: 42px 28px; border: 1px solid rgba(15,51,31,.08); border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 18px 50px rgba(15,51,31,.06); }
.gr-success-check { width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(63,143,92,.12); }
.gr-success-check span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #3f8f5c; color: #fff; font-size: 28px; animation: grCheckPop .5s ease both; }
@keyframes grCheckPop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } to { transform: scale(1); opacity: 1; } }
.gr-order-state h1 { margin: 4px 0 9px; color: var(--gr-forest); font: 800 30px/1.2 "Be Vietnam Pro", sans-serif; }
.gr-order-state p { margin: 0 auto; max-width: 590px; color: var(--gr-muted); font-size: 13px; line-height: 1.65; }
.gr-order-state-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: #fff0f0; color: #d14343; font-size: 26px; font-weight: 800; }
.gr-order-state-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.gr-order-overview { margin: 20px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.gr-order-overview li { margin: 0 !important; padding: 14px !important; border: 1px solid #e4e9e2 !important; border-radius: 13px; background: #fff; text-transform: none !important; font-size: 9px !important; }
.gr-order-overview li span { display: block; margin-bottom: 5px; color: #949a93; }
.gr-order-overview li strong { color: var(--gr-forest); font-size: 10px; }

/* Responsive */
@media (max-width: 1050px) {
  .gr-shop-layout { grid-template-columns: 220px minmax(0,1fr); gap: 22px; }
  ul.products.gr-products-grid,
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gr-related-wrap .products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .gr-product-main { gap: 30px; }
  .gr-product-assurances { grid-template-columns: 1fr; }
  .gr-cart-layout,
  .gr-checkout-layout { grid-template-columns: 1fr .65fr; }
}

@media (max-width: 820px) {
  .gr-shop-heading-row { align-items: flex-start; }
  .gr-shop-stat { display: none; }
  .gr-ai-search { grid-template-columns: auto 1fr; }
  .gr-ai-search button { grid-column: 1 / -1; }
  .gr-ai-search-note { grid-column: 1 / -1; padding-left: 4px; }
  .gr-shop-layout { display: block; }
  .gr-filter-toggle { display: inline-flex; align-items: center; gap: 7px; }
  .gr-shop-sidebar {
    position: fixed;
    z-index: 1300;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px,88vw);
    overflow-y: auto;
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .gr-shop-sidebar.is-open { transform: translateX(0); }
  .gr-filter-close { display: block; }
  .gr-filter-backdrop { position: fixed; inset: 0; z-index: 1250; background: rgba(8,24,15,.38); backdrop-filter: blur(2px); }
  .gr-filter-backdrop.is-open { display: block; }
  body.gr-filter-open { overflow: hidden; }
  .gr-product-main { grid-template-columns: 1fr; }
  .gr-product-summary { position: static; }
  .gr-ai-trip-fit { grid-template-columns: auto 1fr; }
  .gr-ai-trip-fit a { grid-column: 1 / -1; justify-self: start; }
  .gr-cart-layout,
  .gr-checkout-layout { grid-template-columns: 1fr; }
  .gr-cart-summary-wrap,
  .gr-checkout-order-card { position: static; }
  .gr-order-overview { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .gr-shop-hero { padding: 30px 0 27px; }
  .gr-shop-heading-row h1 { font-size: 36px; }
  .gr-ai-search { padding: 8px; border-radius: 15px; }
  .gr-ai-search-icon { width: 36px; height: 36px; }
  .gr-shop-content { padding-top: 24px; }
  .gr-shop-toolbar { align-items: flex-start; }
  .gr-shop-toolbar .woocommerce-result-count { display: none; }
  .gr-shop-toolbar .woocommerce-ordering select { max-width: 160px; }
  ul.products.gr-products-grid,
  .woocommerce ul.products,
  .gr-related-wrap .products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px; }
  .gr-product-card-body { padding: 11px; }
  .gr-product-title { min-height: 39px; font-size: 12px !important; }
  .gr-product-category { font-size: 8.5px; }
  .gr-product-rating { gap: 4px; font-size: 9px; }
  .gr-product-bottom { display: block; }
  .gr-product-price { min-height: 38px; font-size: 12px; }
  .gr-product-actions { margin-top: 8px; }
  .gr-product-detail-link,
  .gr-card-add-button,
  .woocommerce ul.products li.product .button.gr-card-add-button { flex: 1; min-height: 33px; font-size: 9px !important; padding: 0 7px !important; }
  .gr-single-product-page { padding-top: 18px; }
  .gr-product-summary h1 { font-size: 28px; }
  .gr-single-price { font-size: 23px; }
  .gr-purchase-box form.cart,
  .gr-purchase-box .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
  .gr-purchase-box .single_add_to_cart_button { min-width: calc(100% - 80px); }
  .gr-ai-trip-fit { margin-top: 34px; padding: 18px; }
  .gr-product-details { padding: 17px; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; }
  .gr-cart-shell,
  .gr-checkout-shell { width: min(100% - 24px,1180px); padding-top: 24px; }
  .gr-checkout-steps { grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 22px; }
  .gr-checkout-steps > i { display: none; }
  .gr-checkout-steps > div { flex-direction: column; gap: 4px; text-align: center; }
  .gr-checkout-steps > div strong { font-size: 8px; }
  .gr-cart-card,
  .gr-checkout-customer-card,
  .gr-checkout-order-card { padding: 17px; border-radius: 17px; }
  .gr-cart-card-heading { align-items: flex-start; }
  .gr-cart-card-heading h1,
  .gr-checkout-section-heading h1 { font-size: 24px; }
  .gr-cart-item { grid-template-columns: 82px minmax(0,1fr); gap: 12px; }
  .gr-cart-item-media { width: 82px; height: 82px; }
  .gr-cart-item-bottomline { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gr-cart-subtotal { grid-column: 1 / -1; text-align: left; }
  .gr-cart-actions { flex-direction: column; align-items: stretch; }
  .gr-coupon-box { width: 100%; }
  .gr-coupon-box input { min-width: 0; flex: 1; }
  .gr-order-overview { grid-template-columns: 1fr; }
  .wc-block-cart,
  .wc-block-checkout { width: min(100% - 24px,1180px); }
}


/* Phase 3.1 — sửa trải nghiệm thêm vào giỏ hàng */
.gr-purchase-box .stock { display: none !important; }
.gr-purchase-box form.cart { margin: 0 !important; }
.gr-purchase-box .single_add_to_cart_button {
  cursor: pointer !important;
  position: relative;
  transition: transform .18s ease, opacity .18s ease, background .18s ease !important;
}
.gr-purchase-box .single_add_to_cart_button:not(:disabled):hover { transform: translateY(-1px); }
.gr-purchase-box .single_add_to_cart_button:disabled,
.gr-purchase-box .single_add_to_cart_button.is-loading {
  cursor: wait !important;
  opacity: .72 !important;
}
.gr-purchase-box .single_add_to_cart_button.is-success { background: #3f8f5c !important; }

.gr-cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: min(520px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid rgba(15,51,31,.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15,51,31,.18);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.gr-cart-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.gr-cart-toast__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(63,143,92,.12);
  color: #2f7549;
  font-weight: 900;
}
.gr-cart-toast__content { min-width: 0; display: grid; gap: 2px; }
.gr-cart-toast__content strong { color: var(--gr-forest); font: 750 13px/1.35 "Be Vietnam Pro", sans-serif; }
.gr-cart-toast__content span { overflow: hidden; text-overflow: ellipsis; color: var(--gr-muted); font-size: 11px; white-space: nowrap; }
.gr-cart-toast > a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--gr-forest);
  color: #fff;
  text-decoration: none;
  font: 700 10px/1 "Be Vietnam Pro", sans-serif;
  white-space: nowrap;
}
.gr-cart-toast > button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7e887f;
  font-size: 21px;
  cursor: pointer;
}
.gr-cart-toast.is-error { border-color: rgba(209,67,67,.24); }
.gr-cart-toast.is-error .gr-cart-toast__icon { background: rgba(209,67,67,.10); color: #b83434; }
.gr-cart-toast.is-error .gr-cart-toast__icon::before { content: "!"; }
.gr-cart-toast.is-error .gr-cart-toast__icon { font-size: 0; }
.gr-cart-toast.is-error .gr-cart-toast__icon::before { font-size: 15px; }

@media (max-width: 767px) {
  .gr-cart-toast {
    right: 16px;
    bottom: 84px;
    grid-template-columns: auto minmax(0,1fr) auto;
  }
  .gr-cart-toast > a { grid-column: 2 / 3; justify-self: start; }
  .gr-cart-toast > button { grid-column: 3; grid-row: 1; }
  .gr-cart-toast__content span { white-space: normal; }
}


/* =========================================================
   Phase 3.2 — Checkout Việt hóa + khoảng cách thoáng hơn
   ========================================================= */
.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-notices-wrapper {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid rgba(15,51,31,.12) !important;
  border-top: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--gr-charcoal) !important;
  box-shadow: 0 12px 34px rgba(15,51,31,.05);
}
.woocommerce-message::before,
.woocommerce-info::before { color: #3f8f5c !important; }
.woocommerce-error::before { color: #d14343 !important; }

.gr-checkout-layout {
  grid-template-columns: minmax(0,1.16fr) minmax(360px,.72fr);
  gap: 36px;
}
.gr-checkout-customer-card { padding: 34px; }
.gr-checkout-section-heading { margin-bottom: 30px; }
.gr-checkout-section-heading h1 { font-size: 32px; }
.gr-checkout-section-heading p { max-width: 660px; font-size: 12.5px; line-height: 1.75; }

.gr-billing-sections,
.gr-shipping-sections,
.gr-additional-section { display: block; }

.gr-checkout-group {
  margin: 0 0 30px;
  padding: 22px;
  border: 1px solid #e2e8df;
  border-radius: 18px;
  background: linear-gradient(180deg,#fff,#fbfcf9);
}
.gr-checkout-group:last-child { margin-bottom: 0; }
.gr-checkout-group-heading {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf1eb;
}
.gr-checkout-group-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(217,164,65,.14);
  color: #8b651d;
  font-size: 17px;
  font-weight: 800;
}
.gr-checkout-group-heading h3 {
  margin: 0 0 4px !important;
  color: var(--gr-forest) !important;
  font: 750 17px/1.35 "Be Vietnam Pro", sans-serif !important;
}
.gr-checkout-group-heading p {
  margin: 0;
  color: #818981;
  font-size: 10.5px;
  line-height: 1.6;
}

.gr-field-grid { display: flow-root; }
.gr-checkout-form .form-row {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.gr-checkout-form .form-row:last-child { margin-bottom: 0 !important; }
.gr-checkout-form .form-row-first,
.gr-checkout-form .form-row-last { width: calc(50% - 7px) !important; }
.gr-checkout-form .form-row-first { float: left !important; clear: left; }
.gr-checkout-form .form-row-last { float: right !important; clear: right; }
.gr-checkout-form .form-row-wide { clear: both; width: 100% !important; }
.gr-checkout-form .form-row label {
  display: block;
  margin-bottom: 7px;
  color: #5f6b61;
  font-size: 10.5px;
  font-weight: 700;
}
.gr-checkout-form .required { color: #bd3e3e; }
.gr-checkout-form input.input-text,
.gr-checkout-form textarea,
.gr-checkout-form select,
.gr-checkout-form .select2-container .select2-selection--single {
  min-height: 48px;
  border-color: #d8e0d5 !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.gr-checkout-form input.input-text:focus,
.gr-checkout-form textarea:focus,
.gr-checkout-form select:focus,
.gr-checkout-form .select2-container--focus .select2-selection--single {
  outline: none;
  border-color: var(--gr-pine) !important;
  box-shadow: 0 0 0 3px rgba(68,104,67,.10) !important;
}
.gr-checkout-form textarea { min-height: 118px; padding: 12px !important; resize: vertical; }
.gr-checkout-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; }
.gr-checkout-form .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }

.gr-alt-address-section {
  padding: 17px 20px;
  background: #f8faf6;
}
.gr-different-address-title { margin: 0 !important; }
.gr-different-address-title label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  color: var(--gr-charcoal);
  font: 700 11.5px/1.4 "Be Vietnam Pro", sans-serif;
  cursor: pointer;
}
.gr-different-address-title input { width: 18px; height: 18px; accent-color: var(--gr-forest); }
.gr-alt-address-section .shipping_address { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8df; }
.gr-alt-address-note { margin-bottom: 15px; color: #818981; font-size: 10.5px; }
.gr-note-section { margin-top: 30px; }

/* Cột tóm tắt đơn hàng */
.gr-checkout-order-card {
  top: 104px;
  padding: 26px;
  border-radius: 22px;
}
.gr-checkout-order-heading { margin-bottom: 16px; padding-bottom: 16px; }
.gr-checkout-order-heading span { font-size: 17px; }
.gr-checkout-order-card table.shop_table th,
.gr-checkout-order-card table.shop_table td { padding: 13px 0 !important; font-size: 11px; }
.gr-checkout-order-card table.shop_table .product-name { padding-right: 14px !important; text-align: left; }
.gr-checkout-order-card table.shop_table .product-total { text-align: right; white-space: nowrap; }
.gr-checkout-order-card table.shop_table .shipping th,
.gr-checkout-order-card table.shop_table .shipping td { vertical-align: top; }

.woocommerce-checkout-review-order-table ul#shipping_method,
ul.woocommerce-shipping-methods {
  display: grid;
  gap: 9px;
  margin: 2px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.woocommerce-checkout-review-order-table ul#shipping_method li,
ul.woocommerce-shipping-methods li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #e0e6dd;
  border-radius: 11px;
  background: #fbfcfa;
}
ul#shipping_method input,
ul.woocommerce-shipping-methods input { margin-top: 2px !important; accent-color: var(--gr-forest); }
ul#shipping_method label,
ul.woocommerce-shipping-methods label { color: var(--gr-charcoal); font-weight: 650; line-height: 1.45; }

.gr-checkout-order-card #payment {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e0e6dd;
  background: #fbfcfa !important;
  border-radius: 16px !important;
}
.gr-checkout-order-card #payment ul.payment_methods {
  display: grid;
  gap: 10px;
  padding: 16px !important;
}
.gr-checkout-order-card #payment ul.payment_methods li {
  margin: 0 !important;
  padding: 13px !important;
  border: 1px solid #e0e6dd;
  border-radius: 12px;
  background: #fff;
}
.gr-checkout-order-card #payment ul.payment_methods li > input { accent-color: var(--gr-forest); }
.gr-checkout-order-card #payment ul.payment_methods li > label {
  color: var(--gr-charcoal);
  font: 700 11.5px/1.45 "Be Vietnam Pro", sans-serif;
}
.gr-checkout-order-card #payment div.payment_box {
  margin: 10px 0 0 !important;
  padding: 11px 12px !important;
  border-radius: 9px;
  background: #f3f6f0 !important;
  color: #6c756d !important;
  font-size: 10px;
  line-height: 1.6;
}
.gr-checkout-order-card #payment div.payment_box::before { border-bottom-color: #f3f6f0 !important; }
.gr-checkout-order-card #payment div.form-row { padding: 16px !important; }
.gr-checkout-order-card #place_order {
  min-height: 52px;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(15,51,31,.14);
  font-size: 12.5px !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gr-checkout-order-card #place_order:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(15,51,31,.18); }
.gr-checkout-order-card .woocommerce-privacy-policy-text { margin-bottom: 12px; font-size: 9.5px; line-height: 1.65; }
.gr-checkout-order-card .woocommerce-terms-and-conditions-wrapper { margin-bottom: 10px; }

.woocommerce-checkout .woocommerce-shipping-totals td,
.woocommerce-checkout .woocommerce-shipping-totals th { padding-top: 16px !important; padding-bottom: 16px !important; }
.woocommerce-checkout .woocommerce-shipping-totals td::before { content: none !important; }

@media (max-width: 1050px) {
  .gr-checkout-layout { grid-template-columns: minmax(0,1fr) minmax(320px,.72fr); gap: 24px; }
  .gr-checkout-customer-card { padding: 26px; }
}
@media (max-width: 820px) {
  .gr-checkout-layout { grid-template-columns: 1fr; }
  .gr-checkout-order-card { position: static; }
}
@media (max-width: 600px) {
  .gr-checkout-customer-card,
  .gr-checkout-order-card { padding: 16px; }
  .gr-checkout-group { margin-bottom: 20px; padding: 16px; border-radius: 15px; }
  .gr-checkout-group-heading { grid-template-columns: 36px 1fr; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; }
  .gr-checkout-group-icon { width: 36px; height: 36px; border-radius: 10px; }
  .gr-checkout-group-heading h3 { font-size: 15px !important; }
  .gr-checkout-form .form-row-first,
  .gr-checkout-form .form-row-last { float: none !important; clear: both; width: 100% !important; }
  .gr-checkout-form .form-row { margin-bottom: 13px !important; }
  .gr-checkout-section-heading h1 { font-size: 25px; }
}

/* Phase 3.4 — Trang hoàn tất đơn hàng / chuyển khoản ngân hàng */
.gr-thankyou-payment {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #dce3da;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15,51,31,.05);
}
.gr-thankyou-payment-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #edf0eb;
}
.gr-thankyou-payment-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #f7f1df;
  font-size: 20px;
}
.gr-thankyou-payment-heading h2 {
  margin: 0 0 4px;
  color: var(--gr-forest);
  font: 750 18px/1.3 "Be Vietnam Pro", sans-serif;
}
.gr-thankyou-payment-heading p {
  margin: 0;
  color: var(--gr-muted);
  font-size: 12px;
  line-height: 1.55;
}
.gr-transfer-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f8f5;
}
.gr-transfer-reference span { color: #737b73; font-size: 11px; }
.gr-transfer-reference strong { color: var(--gr-forest); font-size: 12px; text-align: right; }
.gr-thankyou-payment .woocommerce-bacs-bank-details,
.gr-thankyou-payment .wc-bacs-bank-details-account-name,
.gr-thankyou-payment .wc-bacs-bank-details {
  margin-top: 14px;
}
.gr-thankyou-payment .wc-bacs-bank-details {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.gr-thankyou-payment .wc-bacs-bank-details li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e5eae3;
  border-radius: 12px;
  background: #fbfcfa;
  color: #616861;
  font-size: 11px;
}
.gr-thankyou-payment .wc-bacs-bank-details li strong { color: var(--gr-forest); }
.woocommerce-order-details,
.woocommerce-customer-details {
  width: min(850px,calc(100% - 40px));
  margin: 24px auto 0;
}
@media (max-width: 680px) {
  .gr-order-overview { grid-template-columns: 1fr 1fr; }
  .gr-thankyou-payment .wc-bacs-bank-details { grid-template-columns: 1fr; }
  .gr-transfer-reference { align-items: flex-start; flex-direction: column; }
  .gr-transfer-reference strong { text-align: left; }
}

/* ============================================================
   Phase 3.5 — Hoàn thiện trang xác nhận đơn hàng
   Mục tiêu: không còn card bị bó hẹp / xuống dòng xấu trên desktop.
   ============================================================ */
.woocommerce-order.gr-thankyou-page {
  width: min(1080px, calc(100% - 48px));
  margin: 34px auto 82px;
}

.gr-order-state {
  padding: 34px 34px;
}

.gr-order-state h1 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 3vw, 38px);
}

.gr-order-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px !important;
}
.gr-order-overview {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: 22px !important;
}

/* QUAN TRỌNG: WooCommerce clearfix đang chiếm ô đầu tiên */
.gr-order-overview::before,
.gr-order-overview::after {
  content: none !important;
  display: none !important;
}

.gr-order-overview li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 18px !important;
  min-width: 0 !important;
  min-height: 92px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  border-right: 0 !important;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 51, 31, .035);
}

.gr-order-overview li.method {
  grid-column: 1 / -1 !important;
  min-height: 68px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.gr-order-overview li {
  min-width: 0;
  padding: 18px 18px !important;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 51, 31, .035);
}

.gr-order-overview li span {
  margin-bottom: 7px;
  font-size: 10px;
  line-height: 1.35;
}

.gr-order-overview li strong {
  display: block;
  color: var(--gr-forest);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.gr-order-overview li.method {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gr-order-overview li.method span,
.gr-order-overview li.method strong {
  margin: 0;
}

.gr-thankyou-payment {
  margin-top: 18px;
  padding: 26px 28px;
}

.gr-transfer-reference {
  min-height: 54px;
}

/* WooCommerce tự render phần chi tiết đơn và địa chỉ sau hook thankyou. */
.gr-thankyou-page .woocommerce-order-details,
.gr-thankyou-page .woocommerce-customer-details {
  width: 100%;
  margin: 26px 0 0;
}

.gr-thankyou-page .woocommerce-order-details {
  padding: 26px 28px;
  border: 1px solid #dfe6dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 51, 31, .045);
}

.gr-thankyou-page .woocommerce-order-details__title,
.gr-thankyou-page .woocommerce-customer-details > h2 {
  margin: 0 0 18px !important;
  color: var(--gr-forest);
  font: 750 20px/1.35 "Be Vietnam Pro", sans-serif;
}

.gr-thankyou-page .woocommerce-table--order-details {
  width: 100%;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e2e7df !important;
  border-radius: 14px;
}

.gr-thankyou-page .woocommerce-table--order-details th,
.gr-thankyou-page .woocommerce-table--order-details td {
  padding: 15px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8ece6 !important;
  font-size: 12px;
  line-height: 1.5;
  vertical-align: middle;
}

.gr-thankyou-page .woocommerce-table--order-details thead th {
  background: #f7f8f5;
  color: var(--gr-forest);
  font-weight: 750;
}

.gr-thankyou-page .woocommerce-table--order-details tr:last-child th,
.gr-thankyou-page .woocommerce-table--order-details tr:last-child td {
  border-bottom: 0 !important;
}

.gr-thankyou-page .woocommerce-table--order-details td:last-child,
.gr-thankyou-page .woocommerce-table--order-details th:last-child {
  text-align: right;
  white-space: nowrap;
}

.gr-thankyou-page .woocommerce-table--order-details tfoot th {
  width: 60%;
  color: #59635b;
  font-weight: 650;
}

.gr-thankyou-page .woocommerce-table--order-details tfoot td {
  color: var(--gr-forest);
  font-weight: 750;
}

.gr-thankyou-page .woocommerce-customer-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gr-thankyou-page .woocommerce-customer-details > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0 !important;
}

.gr-thankyou-page .woocommerce-column--billing-address,
.gr-thankyou-page .woocommerce-column--shipping-address {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 22px 24px;
  border: 1px solid #dfe6dc;
  border-radius: 16px;
  background: #fff;
}

.gr-thankyou-page .woocommerce-column__title {
  margin: 0 0 12px !important;
  color: var(--gr-forest);
  font: 750 16px/1.35 "Be Vietnam Pro", sans-serif;
}

.gr-thankyou-page .woocommerce-customer-details address {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  color: #4e5950;
  font-size: 12.5px;
  line-height: 1.75;
}

.gr-thankyou-page .woocommerce-customer-details--phone,
.gr-thankyou-page .woocommerce-customer-details--email {
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .gr-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gr-order-overview li.method {
    grid-column: 1 / -1;
  }
  .gr-thankyou-page .woocommerce-customer-details {
    grid-template-columns: 1fr;
  }
  .gr-thankyou-page .woocommerce-customer-details > h2 {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .woocommerce-order.gr-thankyou-page {
    width: min(100% - 28px, 1080px);
    margin-top: 22px;
  }
  .gr-order-state {
    padding: 28px 18px;
  }
  .gr-order-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gr-order-overview li.method {
    grid-column: 1;
    display: block;
  }
  .gr-order-overview li.method span {
    margin-bottom: 7px;
  }
  .gr-thankyou-payment,
  .gr-thankyou-page .woocommerce-order-details {
    padding: 18px;
  }
  .gr-thankyou-page .woocommerce-table--order-details th,
  .gr-thankyou-page .woocommerce-table--order-details td {
    padding: 12px !important;
  }
}
/* =========================================================
   GIÓ RỪNG STORE - PRODUCT DESCRIPTION / REVIEWS TABS
   ========================================================= */

.single-product .woocommerce-tabs {
  margin-top: 42px !important;
  width: 100%;
}

/* Thanh tab */
.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  align-items: center;
  gap: 10px;
  list-style: none !important;

  margin: 0 0 18px !important;
  padding: 6px !important;

  background: #f7f6f1;
  border: 1px solid #dce3da;
  border-radius: 14px;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
  display: none !important;
  content: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  border-radius: 10px !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 11px 18px !important;

  color: #446843 !important;
  font-weight: 700 !important;
  font-size: 14px;

  text-decoration: none !important;
  border-radius: 10px;
  transition: all .2s ease;
}

/* Tab đang chọn */
.single-product .woocommerce-tabs ul.tabs li.active a {
  background: #0f331f !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 51, 31, .12);
}

/* Hover */
.single-product .woocommerce-tabs ul.tabs li:not(.active) a:hover {
  background: #eef2ec !important;
  color: #0f331f !important;
}

/* Nội dung tab */
.single-product .woocommerce-tabs .panel {
  margin: 0 !important;
  padding: 28px 30px !important;

  background: #ffffff;
  border: 1px solid #dce3da;
  border-radius: 18px;

  box-shadow: 0 10px 30px rgba(15, 51, 31, .05);

  color: #3f4a43;
  font-size: 15px;
  line-height: 1.8;
}

/* Ẩn tiêu đề Mô tả bị lặp bên trong */
.single-product .woocommerce-tabs .panel > h2:first-child {
  display: none !important;
}

/* Paragraph */
.single-product .woocommerce-tabs .panel p {
  margin: 0 0 14px;
}

.single-product .woocommerce-tabs .panel p:last-child {
  margin-bottom: 0;
}

/* Review */
.single-product #reviews {
  margin: 0 !important;
}

.single-product #reviews #comments h2,
.single-product #reviews #review_form_wrapper h3 {
  color: #0f331f;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 767px) {
  .single-product .woocommerce-tabs {
    margin-top: 28px !important;
  }

  .single-product .woocommerce-tabs ul.tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .single-product .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
  }

  .single-product .woocommerce-tabs .panel {
    padding: 22px 18px !important;
  }
}




/* Ẩn breadcrumb ở trang Sản phẩm */
.gr-shop-page .gr-breadcrumb,
.gr-shop-page .gr-shop-breadcrumb {
    display: none !important;
}
/* ===== ẨN BREADCRUMB TRANG CHI TIẾT SẢN PHẨM ===== */
.single-product .gr-product-breadcrumb,
.single-product .woocommerce-breadcrumb {
    display: none !important;
}

/* Căn lại khoảng cách sau khi bỏ breadcrumb */
.single-product .gr-single-product-page {
    padding-top: 38px !important;
}

/* =========================================================
   SHOP PAGE - COMPACT ABOVE THE FOLD
   Hiển thị sản phẩm sớm hơn ở zoom 100%
   ========================================================= */

.gr-shop-page .gr-shop-hero {
    padding: 24px 0 22px !important;
}

.gr-shop-page .gr-shop-heading-row {
    margin-bottom: 16px !important;
}

.gr-shop-page .gr-shop-heading-row h1 {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

.gr-shop-page .gr-ai-search {
    padding: 7px 9px !important;
    border-radius: 15px !important;
}

.gr-shop-page .gr-ai-search-icon {
    width: 38px !important;
    height: 38px !important;
}

.gr-shop-page .gr-ai-search input[type="search"] {
    padding: 7px 6px !important;
}

.gr-shop-page .gr-ai-search button {
    padding: 11px 16px !important;
}

.gr-shop-page .gr-ai-search-note {
    margin-top: -4px !important;
    padding-bottom: 0 !important;
}

.gr-shop-page .gr-shop-content {
    padding-top: 22px !important;
}

/* =========================================================
   GIO RUNG STORE — MY ACCOUNT / LOGIN / REGISTER / DASHBOARD
   Clean version — không chồng rule WooCommerce mặc định
   ========================================================= */

/* Khung chung của trang tài khoản */
.woocommerce-account .gr-woo-page-content {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 88px;
}

.woocommerce-account .gr-woo-page-content > .woocommerce {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* =========================================================
   KHÁCH CHƯA ĐĂNG NHẬP
   ========================================================= */

.woocommerce-account .gr-woo-page-content > .woocommerce:has(#customer_login) {
    display: block !important;
}

/* Wrapper thật của WooCommerce cho Login + Register */
.woocommerce-account #customer_login {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
    align-items: stretch !important;
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    margin: 0 auto !important;
}

/* Reset float / width mặc định WooCommerce */
.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after {
    display: none !important;
    content: none !important;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tiêu đề hai cột */
.woocommerce-account #customer_login h2 {
    margin: 0 0 15px !important;
    color: var(--gr-forest) !important;
    font: 800 25px/1.25 "Be Vietnam Pro", sans-serif !important;
    letter-spacing: -.025em;
}

/* Card */
.woocommerce-account #customer_login form.login,
.woocommerce-account #customer_login form.register {
    display: flex !important;
    flex-direction: column !important;
    min-height: 360px;
    margin: 0 !important;
    padding: 30px !important;
    border: 1px solid rgba(15, 51, 31, .10) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #fff 0%, #fbfcf9 100%) !important;
    box-shadow: 0 18px 50px rgba(15, 51, 31, .07) !important;
    box-sizing: border-box !important;
}

/* Hàng form */
.woocommerce-account #customer_login .form-row {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    margin: 0 0 17px !important;
    padding: 0 !important;
}

.woocommerce-account #customer_login label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #445149 !important;
    font: 650 13px/1.45 "Be Vietnam Pro", sans-serif !important;
}

/* Input */
.woocommerce-account #customer_login input.input-text,
.woocommerce-account #customer_login input[type="text"],
.woocommerce-account #customer_login input[type="email"],
.woocommerce-account #customer_login input[type="password"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d8e0d5 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--gr-charcoal) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    font: 500 14px/1.3 Inter, sans-serif !important;
}

.woocommerce-account #customer_login input.input-text:focus,
.woocommerce-account #customer_login input[type="text"]:focus,
.woocommerce-account #customer_login input[type="email"]:focus,
.woocommerce-account #customer_login input[type="password"]:focus {
    outline: 0 !important;
    border-color: var(--gr-pine) !important;
    box-shadow: 0 0 0 3px rgba(68, 104, 67, .10) !important;
}

/* Password wrapper của WooCommerce */
.woocommerce-account #customer_login .password-input {
    display: block !important;
    width: 100% !important;
}

.woocommerce-account #customer_login .show-password-input {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Remember me */
.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    margin: 0 12px 0 0 !important;
    color: #677168 !important;
    font-size: 12px !important;
}

.woocommerce-account #customer_login input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
}

/* Buttons */
.woocommerce-account #customer_login button.button,
.woocommerce-account #customer_login .woocommerce-button {
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 1px solid var(--gr-forest) !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, var(--gr-forest), var(--gr-pine)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(15, 51, 31, .12) !important;
    font: 750 13px/1 "Be Vietnam Pro", sans-serif !important;
    cursor: pointer !important;
}

.woocommerce-account #customer_login button.button:hover,
.woocommerce-account #customer_login .woocommerce-button:hover {
    transform: translateY(-1px);
    opacity: .95;
}

/* Quên mật khẩu */
.woocommerce-account #customer_login .woocommerce-LostPassword {
    margin: 14px 0 0 !important;
}

.woocommerce-account #customer_login .woocommerce-LostPassword a {
    color: var(--gr-pine) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Nội dung đăng ký / privacy */
.woocommerce-account #customer_login form.register > p,
.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
    margin: 0 0 17px !important;
    color: #727b74 !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-link {
    color: var(--gr-pine) !important;
    font-weight: 700 !important;
}

/* =========================================================
   ĐÃ ĐĂNG NHẬP
   ========================================================= */

.woocommerce-account .gr-woo-page-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid !important;
    grid-template-columns: 245px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
}

/* Cố định đúng vị trí các khối My Account; tránh WooCommerce notice làm đảo cột. */
.woocommerce-account .gr-woo-page-content > .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.woocommerce-account .gr-woo-page-content > .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
}

.woocommerce-account .gr-woo-page-content > .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content {
    grid-column: 2 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid rgba(15, 51, 31, .10) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(15, 51, 31, .05) !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 4px 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    color: #435149 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #f1f5ef !important;
    color: var(--gr-forest) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--gr-forest) !important;
    color: #fff !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 320px;
    margin: 0 !important;
    padding: 30px 32px !important;
    border: 1px solid rgba(15, 51, 31, .10) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(15, 51, 31, .05) !important;
    color: #4c5951 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}


.woocommerce-account table.shop_table {
    border: 1px solid #e1e7df !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.woocommerce-account table.shop_table th {
    background: #f5f7f3 !important;
    color: var(--gr-forest) !important;
}

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

@media (max-width: 820px) {
    .woocommerce-account #customer_login {
        grid-template-columns: 1fr !important;
        max-width: 620px !important;
    }

    .woocommerce-account .gr-woo-page-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .woocommerce-account .gr-woo-page-content {
        width: calc(100% - 24px);
        padding: 34px 0 60px;
    }

    .woocommerce-account #customer_login {
        gap: 22px !important;
    }

    .woocommerce-account #customer_login form.login,
    .woocommerce-account #customer_login form.register {
        min-height: 0;
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .woocommerce-account #customer_login h2 {
        font-size: 22px !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 22px !important;
    }
}

