/* ==========================================================================
   XiumGoods storefront
   Layered on top of the base template: cart, catalogue filters, checkout,
   order receipt and the small pieces of chrome that make the shop feel real.
   ========================================================================== */

:root {
  --xg-navy: #3a4468;
  --xg-navy-dark: #313958;
  --xg-navy-light: #434f78;
  --xg-gold: #f3c93e;
  --xg-gold-dark: #d9b02b;
  --xg-ink: #1c2135;
  --xg-body: #4b5266;
  --xg-muted: #8b91a4;
  --xg-line: #e4e7f0;
  --xg-surface: #f7f8fc;
  --xg-success: #1f9d6b;
  --xg-danger: #d9534f;
  --xg-radius: 10px;
  --xg-shadow: 0 6px 24px rgba(28, 33, 53, .08);
  --xg-shadow-lg: 0 14px 40px rgba(28, 33, 53, .14);
}

/* --------------------------------------------------------------------------
   Shared chrome
   -------------------------------------------------------------------------- */

.xg-section {
  padding: 60px 0;
}

.xg-page-head {
  background: linear-gradient(135deg, var(--xg-navy) 0%, var(--xg-navy-dark) 100%);
  color: #fff;
  padding: 45px 0 40px;
}

.xg-page-head h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.xg-page-head p {
  color: rgba(255, 255, 255, .72);
  margin: 0;
  max-width: 620px;
}

.xg-breadcrumb {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 10px;
}

.xg-breadcrumb a {
  color: rgba(255, 255, 255, .85);
}

.xg-breadcrumb a:hover {
  color: var(--xg-gold);
}

.xg-breadcrumb span {
  margin: 0 6px;
  opacity: .5;
}

.xg-card {
  background: #fff;
  border: 1px solid var(--xg-line);
  border-radius: var(--xg-radius);
  box-shadow: var(--xg-shadow);
}

.xg-card-pad {
  padding: 22px;
}

.xg-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xg-ink);
  margin: 0 0 16px;
}

.xg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.xg-btn-primary {
  background: var(--xg-gold);
  color: var(--xg-ink);
}

.xg-btn-primary:hover,
.xg-btn-primary:focus {
  background: var(--xg-gold-dark);
  color: var(--xg-ink);
  text-decoration: none;
}

.xg-btn-dark {
  background: var(--xg-navy);
  color: #fff;
}

.xg-btn-dark:hover,
.xg-btn-dark:focus {
  background: var(--xg-navy-dark);
  color: #fff;
  text-decoration: none;
}

.xg-btn-ghost {
  background: transparent;
  border: 1px solid var(--xg-line);
  color: var(--xg-body);
}

.xg-btn-ghost:hover {
  border-color: var(--xg-navy);
  color: var(--xg-navy);
  text-decoration: none;
}

.xg-btn-block {
  width: 100%;
}

.xg-btn[disabled],
.xg-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.xg-btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--xg-muted);
  font-size: .85rem;
  cursor: pointer;
  text-decoration: underline;
}

.xg-btn-link:hover {
  color: var(--xg-danger);
}

.xg-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.xg-badge-sale {
  background: var(--xg-danger);
  color: #fff;
}

.xg-badge-low {
  background: #fff3cd;
  color: #8a6100;
}

.xg-badge-out {
  background: #eceef5;
  color: var(--xg-muted);
}

.xg-badge-in {
  background: #e4f6ee;
  color: var(--xg-success);
}

.xg-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--xg-gold);
  font-size: .85rem;
}

.xg-stars .fa-star-o,
.xg-stars .empty {
  color: #d5d8e3;
}

.xg-stars small {
  color: var(--xg-muted);
  margin-left: 6px;
  font-size: .78rem;
}

/* --------------------------------------------------------------------------
   Header additions: announcement bar, cart button, flyout
   -------------------------------------------------------------------------- */

.xg-announcement {
  background: var(--xg-ink);
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
  letter-spacing: .02em;
  padding: 7px 0;
  text-align: center;
}

.xg-announcement strong {
  color: var(--xg-gold);
}

[x-cloak] {
  display: none !important;
}

.xg-cart {
  position: relative;
}

.xg-cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  padding: 7px 16px;
  font-size: .85rem;
  cursor: pointer;
}

.xg-cart-toggle:hover {
  background: rgba(255, 255, 255, .16);
  color: var(--xg-gold);
}

.xg-cart-count {
  background: var(--xg-gold);
  color: var(--xg-ink);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  padding: 0 6px;
}

.xg-flyout {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: var(--xg-radius);
  box-shadow: var(--xg-shadow-lg);
  padding: 16px;
  z-index: 60;
  color: var(--xg-ink);
}

.user_option_box .xg-flyout a {
  margin-left: 0;
  text-transform: none;
}

.user_option_box .xg-flyout .xg-btn-ghost {
  color: var(--xg-body);
}

.user_option_box .xg-flyout .xg-btn-primary {
  color: var(--xg-ink);
}

.user_option_box .xg-flyout .name {
  color: var(--xg-ink);
}

.xg-flyout::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

.xg-flyout h6 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--xg-muted);
  margin-bottom: 12px;
}

.xg-flyout-list {
  max-height: 260px;
  overflow-y: auto;
  margin: 0 -4px 12px;
  padding: 0 4px;
}

.xg-flyout-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--xg-line);
}

.xg-flyout-item:last-child {
  border-bottom: 0;
}

.xg-flyout-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--xg-surface);
  border-radius: 6px;
  flex: 0 0 46px;
}

.xg-flyout-item .name {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--xg-ink);
  display: block;
}

.xg-flyout-item .meta {
  font-size: .76rem;
  color: var(--xg-muted);
}

.xg-flyout-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--xg-ink);
  padding-top: 10px;
  border-top: 1px solid var(--xg-line);
  margin-bottom: 12px;
}

.xg-flyout-empty {
  text-align: center;
  padding: 18px 0;
  color: var(--xg-muted);
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   Catalogue
   -------------------------------------------------------------------------- */

.xg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--xg-line);
  border-radius: var(--xg-radius);
  padding: 14px 18px;
  margin-bottom: 26px;
  box-shadow: var(--xg-shadow);
}

.xg-search {
  position: relative;
  flex: 1 1 240px;
}

.xg-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xg-muted);
  font-size: .9rem;
}

.xg-search input {
  width: 100%;
  border: 1px solid var(--xg-line);
  border-radius: 6px;
  padding: 10px 12px 10px 36px;
  font-size: .9rem;
  background: var(--xg-surface);
}

.xg-toolbar select {
  border: 1px solid var(--xg-line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .88rem;
  background: #fff;
  color: var(--xg-body);
}

.xg-toolbar .xg-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  color: var(--xg-body);
  margin: 0;
  white-space: nowrap;
}

.xg-result-count {
  font-size: .85rem;
  color: var(--xg-muted);
  margin-left: auto;
}

.xg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.xg-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--xg-line);
  border-radius: var(--xg-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.xg-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--xg-shadow-lg);
}

.xg-product-media {
  position: relative;
  display: block;
  background: var(--xg-surface);
  padding: 22px;
  text-align: center;
}

.xg-product-media img {
  height: 170px;
  width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.xg-product:hover .xg-product-media img {
  transform: scale(1.05);
}

.xg-product-flags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.xg-product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.xg-product-cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--xg-muted);
  margin-bottom: 6px;
}

.xg-product-title {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}

.xg-product-title a {
  color: var(--xg-ink);
}

.xg-product-title a:hover {
  color: var(--xg-navy);
}

.xg-product-desc {
  font-size: .82rem;
  color: var(--xg-body);
  line-height: 1.5;
  margin: 8px 0 14px;
}

.xg-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.xg-price .now {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--xg-ink);
}

.xg-price .was {
  font-size: .9rem;
  color: var(--xg-muted);
  text-decoration: line-through;
}

.xg-product-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.xg-product-foot > button,
.xg-product-foot > a {
  width: 100%;
}

.xg-stock {
  font-size: .78rem;
  color: var(--xg-muted);
}

.xg-stock.in {
  color: var(--xg-success);
}

.xg-stock.low {
  color: #b97f00;
}

.xg-stock.out {
  color: var(--xg-danger);
}

.xg-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--xg-muted);
}

.xg-empty i {
  font-size: 2.4rem;
  color: var(--xg-line);
  margin-bottom: 14px;
  display: block;
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.xg-pd-gallery {
  background: var(--xg-surface);
  border: 1px solid var(--xg-line);
  border-radius: var(--xg-radius);
  padding: 34px;
  text-align: center;
}

.xg-pd-gallery img {
  max-height: 380px;
  max-width: 100%;
  object-fit: contain;
}

.xg-pd-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--xg-ink);
  margin: 8px 0 10px;
}

.xg-pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: .85rem;
  color: var(--xg-muted);
  margin-bottom: 16px;
}

.xg-pd-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--xg-ink);
}

.xg-pd-price .was {
  font-size: 1.05rem;
  color: var(--xg-muted);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 400;
}

.xg-pd-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}

.xg-spec-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.xg-spec-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--xg-line);
  font-size: .88rem;
  color: var(--xg-body);
}

.xg-spec-list li span:first-child {
  color: var(--xg-muted);
  min-width: 130px;
}

.xg-assurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.xg-assurance div {
  background: var(--xg-surface);
  border-radius: 8px;
  padding: 14px;
  font-size: .82rem;
  color: var(--xg-body);
}

.xg-assurance i {
  color: var(--xg-navy);
  margin-right: 8px;
}

/* --------------------------------------------------------------------------
   Quantity stepper
   -------------------------------------------------------------------------- */

.xg-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--xg-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.xg-qty button {
  border: 0;
  background: #fff;
  width: 34px;
  height: 38px;
  font-size: 1rem;
  color: var(--xg-body);
  cursor: pointer;
}

.xg-qty button:hover:not(:disabled) {
  background: var(--xg-surface);
  color: var(--xg-navy);
}

.xg-qty button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.xg-qty input,
.xg-qty .value {
  width: 42px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--xg-line);
  border-right: 1px solid var(--xg-line);
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--xg-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Cart page
   -------------------------------------------------------------------------- */

.xg-cart-line {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--xg-line);
  align-items: center;
}

.xg-cart-line:last-child {
  border-bottom: 0;
}

.xg-cart-line img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--xg-surface);
  border-radius: 8px;
  padding: 6px;
}

.xg-cart-line .title {
  font-size: .98rem;
  font-weight: 600;
  color: var(--xg-ink);
  display: block;
  margin-bottom: 4px;
}

.xg-cart-line .sku {
  font-size: .76rem;
  color: var(--xg-muted);
}

.xg-cart-line .controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.xg-cart-line .line-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xg-ink);
  white-space: nowrap;
  text-align: right;
}

.xg-cart-line .unit {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  color: var(--xg-muted);
}

.xg-summary {
  position: sticky;
  top: 20px;
}

.xg-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--xg-body);
  padding: 7px 0;
}

.xg-summary-row.discount {
  color: var(--xg-success);
}

.xg-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--xg-line);
  margin-top: 12px;
  padding-top: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--xg-ink);
}

.xg-coupon {
  display: flex;
  gap: 8px;
  margin: 16px 0 6px;
}

.xg-coupon input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--xg-line);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: .85rem;
  text-transform: uppercase;
}

.xg-coupon-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e4f6ee;
  color: #146c4b;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: .85rem;
  margin: 16px 0 6px;
}

.xg-progress {
  background: var(--xg-surface);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--xg-body);
  margin-bottom: 16px;
}

.xg-progress-bar {
  height: 6px;
  background: var(--xg-line);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.xg-progress-bar span {
  display: block;
  height: 100%;
  background: var(--xg-gold);
  border-radius: 999px;
  transition: width .4s ease;
}

.xg-shipping-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--xg-line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.xg-shipping-option:hover {
  border-color: var(--xg-navy);
}

.xg-shipping-option.is-selected {
  border-color: var(--xg-navy);
  background: #f5f7ff;
}

.xg-shipping-option input {
  margin-top: 4px;
}

.xg-shipping-option .label {
  font-weight: 600;
  color: var(--xg-ink);
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.xg-shipping-option .desc {
  display: block;
  font-size: .82rem;
  color: var(--xg-muted);
  margin-top: 3px;
}

.xg-shipping-option .body {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.xg-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.xg-step {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--xg-muted);
  font-size: .86rem;
  font-weight: 600;
}

.xg-step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--xg-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.xg-step.is-active {
  color: var(--xg-ink);
}

.xg-step.is-active .num {
  background: var(--xg-gold);
  border-color: var(--xg-gold);
  color: var(--xg-ink);
}

.xg-step.is-done {
  color: var(--xg-navy);
}

.xg-step.is-done .num {
  background: var(--xg-navy);
  border-color: var(--xg-navy);
  color: #fff;
}

.xg-step-sep {
  flex: 1 1 20px;
  height: 1px;
  background: var(--xg-line);
  min-width: 16px;
}

.xg-field {
  margin-bottom: 16px;
}

.xg-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--xg-ink);
  margin-bottom: 6px;
}

.xg-field label .opt {
  color: var(--xg-muted);
  font-weight: 400;
}

.xg-field input,
.xg-field select,
.xg-field textarea {
  width: 100%;
  border: 1px solid var(--xg-line);
  border-radius: 6px;
  padding: 11px 13px;
  font-size: .9rem;
  color: var(--xg-ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.xg-field input:focus,
.xg-field select:focus,
.xg-field textarea:focus {
  outline: none;
  border-color: var(--xg-navy);
  box-shadow: 0 0 0 3px rgba(58, 68, 104, .1);
}

.xg-field input.is-invalid,
.xg-field select.is-invalid {
  border-color: var(--xg-danger);
}

.xg-error {
  display: block;
  color: var(--xg-danger);
  font-size: .78rem;
  margin-top: 5px;
}

.xg-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.xg-review-block {
  border: 1px solid var(--xg-line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  font-size: .88rem;
  color: var(--xg-body);
  line-height: 1.6;
}

.xg-review-block h6 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--xg-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.xg-review-block h6 button {
  text-transform: none;
  letter-spacing: 0;
}

.xg-mini-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--xg-line);
  align-items: center;
}

.xg-mini-line:last-of-type {
  border-bottom: 0;
}

.xg-mini-line img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--xg-surface);
  border-radius: 6px;
  flex: 0 0 52px;
}

.xg-mini-line .name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--xg-ink);
  line-height: 1.3;
}

.xg-mini-line .qty {
  font-size: .78rem;
  color: var(--xg-muted);
}

.xg-mini-line .amount {
  margin-left: auto;
  font-size: .9rem;
  font-weight: 600;
  color: var(--xg-ink);
  white-space: nowrap;
}

.xg-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--xg-body);
  margin-top: 18px;
}

.xg-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--xg-muted);
  margin-top: 14px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Order confirmation
   -------------------------------------------------------------------------- */

.xg-confirm-hero {
  text-align: center;
  padding: 10px 0 30px;
}

.xg-confirm-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e4f6ee;
  color: var(--xg-success);
  font-size: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.xg-timeline {
  display: flex;
  justify-content: space-between;
  margin: 26px 0 6px;
  position: relative;
}

.xg-timeline::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--xg-line);
}

.xg-timeline div {
  position: relative;
  text-align: center;
  flex: 1;
  font-size: .76rem;
  color: var(--xg-muted);
}

.xg-timeline div i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--xg-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: .75rem;
  position: relative;
  z-index: 1;
}

.xg-timeline div.is-done {
  color: var(--xg-ink);
  font-weight: 600;
}

.xg-timeline div.is-done i {
  background: var(--xg-navy);
  border-color: var(--xg-navy);
  color: #fff;
}

.xg-payment-panel {
  background: var(--xg-surface);
  border: 1px dashed var(--xg-navy);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.xg-payment-panel h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xg-ink);
  margin-bottom: 10px;
}

.xg-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.xg-bank-grid div {
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .85rem;
}

.xg-bank-grid span {
  display: block;
  font-size: .72rem;
  color: var(--xg-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.xg-table {
  width: 100%;
  border-collapse: collapse;
}

.xg-table th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--xg-muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--xg-line);
}

.xg-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--xg-line);
  font-size: .9rem;
  color: var(--xg-body);
  vertical-align: middle;
}

.xg-table td.num,
.xg-table th.num {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Trust strip, category tiles, testimonials
   -------------------------------------------------------------------------- */

.xg-trust {
  background: var(--xg-surface);
  border-top: 1px solid var(--xg-line);
  border-bottom: 1px solid var(--xg-line);
  padding: 26px 0;
}

.xg-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.xg-trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.xg-trust-item i {
  color: var(--xg-navy);
  font-size: 1.3rem;
  margin-top: 3px;
}

.xg-trust-item strong {
  display: block;
  font-size: .92rem;
  color: var(--xg-ink);
}

.xg-trust-item span {
  font-size: .8rem;
  color: var(--xg-muted);
}

.xg-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.xg-cat {
  position: relative;
  border-radius: var(--xg-radius);
  overflow: hidden;
  background: var(--xg-navy);
  color: #fff;
  padding: 26px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .2s ease;
}

.xg-cat:hover {
  transform: translateY(-4px);
  color: #fff;
  text-decoration: none;
}

.xg-cat h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.xg-cat span {
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
}

.xg-cat i {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 2rem;
  color: var(--xg-gold);
  opacity: .9;
}

.xg-quote {
  background: #fff;
  border: 1px solid var(--xg-line);
  border-radius: var(--xg-radius);
  padding: 24px;
  height: 100%;
}

.xg-quote p {
  font-size: .9rem;
  color: var(--xg-body);
  line-height: 1.7;
}

.xg-quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.xg-quote .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--xg-navy);
  color: var(--xg-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.xg-quote strong {
  display: block;
  font-size: .88rem;
  color: var(--xg-ink);
}

.xg-quote small {
  color: var(--xg-muted);
}

/* --------------------------------------------------------------------------
   Toasts + loading
   -------------------------------------------------------------------------- */

.xg-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 40px);
}

.xg-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--xg-ink);
  color: #fff;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: .87rem;
  box-shadow: var(--xg-shadow-lg);
  animation: xg-toast-in .25s ease;
  min-width: 260px;
}

.xg-toast.success i {
  color: #5ce0a8;
}

.xg-toast.error i {
  color: #ff8d8a;
}

.xg-toast.info i {
  color: var(--xg-gold);
}

@keyframes xg-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[wire\:loading] {
  opacity: .6;
}

.xg-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, .2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: xg-spin .7s linear infinite;
}

@keyframes xg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Footer extras
   -------------------------------------------------------------------------- */

.xg-pay-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.xg-pay-icons span {
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: .72rem;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .xg-cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .xg-cart-line img {
    width: 70px;
    height: 70px;
  }

  .xg-cart-line .line-total {
    grid-column: 2;
    text-align: left;
  }

  .xg-summary {
    position: static;
  }

  .xg-page-head h1 {
    font-size: 1.6rem;
  }

  .xg-result-count {
    margin-left: 0;
  }

  .xg-toasts {
    left: 20px;
    right: 20px;
  }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.xg-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.xg-page {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--xg-line);
  border-radius: 6px;
  background: #fff;
  color: var(--xg-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.xg-page:hover:not(.is-current):not(.is-disabled):not(.is-dots) {
  border-color: var(--xg-navy);
  color: var(--xg-navy);
}

.xg-page.is-current {
  background: var(--xg-navy);
  border-color: var(--xg-navy);
  color: #fff;
  cursor: default;
}

.xg-page.is-disabled {
  opacity: .4;
  cursor: not-allowed;
}

.xg-page.is-dots {
  border-color: transparent;
  cursor: default;
}

.xg-page-info {
  margin-left: 10px;
  font-size: .82rem;
  color: var(--xg-muted);
}

/* Cards in a row share the tallest height, so their prices line up. */
.xg-grid > * {
  display: flex;
  min-width: 0;
}

.xg-grid > * > .xg-product,
.xg-grid > .xg-product {
  width: 100%;
}

/* Keep intrinsic text and form widths inside their cards. */
.xg-cart-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 6px;
}

.xg-cart-line > *,
.xg-mini-line > div,
.xg-search,
.xg-toolbar select,
.xg-trust-item > div {
  min-width: 0;
}

.xg-cart-line .title,
.xg-cart-line .sku,
.xg-mini-line .name,
.xg-product-title,
.xg-flyout-item .name,
.xg-review-block,
.xg-trust-item > div {
  overflow-wrap: anywhere;
}

.xg-price,
.xg-coupon-applied,
.xg-shipping-option .label {
  flex-wrap: wrap;
}

.xg-coupon-applied {
  gap: 8px;
}

.xg-coupon > button,
.xg-qty,
.xg-shipping-option input,
.xg-mini-line .amount {
  flex-shrink: 0;
}

.xg-summary-row,
.xg-summary-total {
  gap: 12px;
}

.xg-summary-row > :last-child,
.xg-summary-total > :last-child {
  flex-shrink: 0;
  text-align: right;
}

.xg-pagination-wrap {
  margin-top: 34px;
}

.xg-page-info {
  flex-basis: 100%;
  margin: 8px 0 0;
  text-align: center;
}

.xg-page:disabled {
  opacity: .5;
  cursor: wait;
}

.xg-page:focus-visible,
.xg-btn:focus-visible,
.xg-btn-link:focus-visible,
.xg-qty button:focus-visible {
  outline: 2px solid var(--xg-navy);
  outline-offset: 2px;
}

/* The base header centers the cart on mobile, which clips its right-aligned flyout. */
@media (max-width: 991.98px) {
  .header_top .top_nav_container {
    flex-direction: row;
    justify-content: flex-end;
  }

  .header_top .user_option_box {
    margin-bottom: 0;
  }

  .xg-cart-layout {
    row-gap: 24px;
  }

  .xg-summary {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .header_section .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header_section .navbar-brand {
    font-size: 22px;
  }

  .xg-section {
    padding: 36px 0;
  }

  .xg-card-pad {
    padding: 16px;
  }

  .xg-cart-line {
    gap: 12px;
    align-items: start;
  }

  .xg-mini-line {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .xg-mini-line .amount {
    grid-column: 2;
    margin-left: 0;
  }

  .xg-toolbar > .xg-search,
  .xg-toolbar > select {
    flex: 1 1 100%;
    width: 100%;
  }

  .xg-page-number,
  .xg-page.is-dots {
    display: none;
  }

  .xg-page {
    min-width: 44px;
    height: 44px;
  }

  .xg-flyout {
    max-width: calc(100vw - 30px);
  }

  .xg-actions > .xg-btn {
    width: 100%;
  }
}
