:root {
  --xz-deep: #17130d;
  --xz-panel: #221c14;
  --xz-panel-2: #2d251a;
  --xz-gold: #c49a54;
  --xz-gold-soft: #e0c58a;
  --xz-text: #f0e2c7;
  --xz-muted: #c2b38f;
  --xz-line: rgba(222, 191, 126, 0.24);
}

body { background: var(--xz-deep); }

.footer {
  background: linear-gradient(180deg, rgba(111,31,26,.22), rgba(23,19,13,0) 44%), var(--xz-deep) !important;
  color: var(--xz-text) !important;
  border-top: 1px solid var(--xz-line);
}
.footer .footer__content-top { padding-top: 6px; }
.footer .footer__blocks-wrapper { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 18px; }
.footer .footer-block { width: auto !important; max-width: none !important; flex: initial !important; margin: 0 !important; padding: 24px 22px; background: rgba(255,255,255,.035); border: 1px solid var(--xz-line); min-height: 190px; }
.footer .footer-block__heading { color: var(--xz-gold-soft) !important; font-size: 18px !important; line-height: 1.35 !important; letter-spacing: 0 !important; margin-bottom: 14px !important; }
.footer .footer-block__details-content,
.footer .footer-block__details-content p,
.footer .footer-block__details-content li,
.footer .footer-block__details-content a { color: var(--xz-muted) !important; font-size: 15px !important; line-height: 1.82 !important; }
.footer .footer-block__details-content a:hover { color: var(--xz-gold-soft) !important; }
.footer .footer__content-bottom { border-color: var(--xz-line) !important; color: var(--xz-muted) !important; }

body[data-template="page"] .content-for-layout,
body[data-template="policy"] .content-for-layout {
  background:
    radial-gradient(circle at 16% 0%, rgba(196,154,84,.13), transparent 28%),
    linear-gradient(180deg, #201910 0%, #17130d 52%, #17130d 100%);
  color: var(--xz-text);
}

body[data-template="page"] .main-page,
body[data-template="page"] .custom-page,
body[data-template="policy"] .stage__policy__page--container {
  max-width: 920px !important;
  margin: 0 auto;
  padding: 76px 34px 86px !important;
}

body[data-template="page"] .main-page,
body[data-template="page"] .custom-page,
body[data-template="policy"] .policy-page-render-container {
  position: relative;
}

body[data-template="page"] .page-title,
body[data-template="policy"] .stage__policy__page--container h1 {
  color: #f4e3c4 !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.18 !important;
  text-align: left !important;
  letter-spacing: 0 !important;
  margin: 0 0 24px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--xz-line);
}

body[data-template="page"] .rte,
body[data-template="policy"] .policy-page-render-container {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--xz-line);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

body[data-template="page"] .rte,
body[data-template="page"] .rte p,
body[data-template="page"] .rte li,
body[data-template="policy"] .rte,
body[data-template="policy"] .rte p,
body[data-template="policy"] .rte li {
  color: #d7c8a8 !important;
  font-size: 16px !important;
  line-height: 1.92 !important;
}

body[data-template="page"] .rte h2,
body[data-template="page"] .rte h3,
body[data-template="policy"] .rte h2,
body[data-template="policy"] .rte h3 {
  color: var(--xz-gold-soft) !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  letter-spacing: 0 !important;
}

body[data-template="page"] .rte a,
body[data-template="policy"] .rte a {
  color: var(--xz-gold-soft) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-template="page"] .rte table,
body[data-template="policy"] .rte table {
  width: 100%;
  border-color: var(--xz-line) !important;
  background: #1c1710;
}

body[data-template="page"] .rte th,
body[data-template="page"] .rte td,
body[data-template="policy"] .rte th,
body[data-template="policy"] .rte td {
  border-color: var(--xz-line) !important;
  padding: 12px !important;
}

body[data-template="product"] .content-for-layout { background: #19150f; }
body[data-template="product"] #MainContent { color: var(--xz-text); }
body[data-template="product"] .product { gap: 34px; }
body[data-template="product"] .product__media-wrapper,
body[data-template="product"] .product__info-wrapper { background: #211c15; border: 1px solid var(--xz-line); }
body[data-template="product"] .product__media-wrapper { padding: 18px; }
body[data-template="product"] .product__info-wrapper { padding: 28px; }
body[data-template="product"] .product__info-container { color: var(--xz-text); }
body[data-template="product"] .product__info-item { margin-top: 22px; }
body[data-template="product"] .product__info-container h1,
body[data-template="product"] .product__info-container .product-title,
body[data-template="product"] .product__info-container [class*="title"] { color: #f3e2bd !important; letter-spacing: 0 !important; }
body[data-template="product"] .product__info-container h1 { font-size: clamp(28px, 3vw, 42px) !important; line-height: 1.22 !important; }

body[data-template="product"] .product__info-description,
body[data-template="product"] .product__info-description p,
body[data-template="product"] .rte,
body[data-template="product"] .rte p,
body[data-template="product"] .rte li { color: #d8c9a8 !important; font-size: 16px !important; line-height: 1.9 !important; }
body[data-template="product"] .accordion,
body[data-template="product"] .product__details-container { background: #18140e; border: 1px solid var(--xz-line); }
body[data-template="product"] .accordion__title { color: var(--xz-gold-soft) !important; font-size: 17px !important; }
body[data-template="product"] button,
body[data-template="product"] .button,
body[data-template="product"] [type="submit"] { border-radius: 4px !important; }

@media (max-width: 959px) {
  .footer .footer__blocks-wrapper { grid-template-columns: 1fr !important; }
  .footer .footer-block { min-height: 0; }
  body[data-template="page"] .main-page,
  body[data-template="page"] .custom-page,
  body[data-template="policy"] .stage__policy__page--container { padding: 48px 16px 58px !important; }
  body[data-template="page"] .rte,
  body[data-template="policy"] .policy-page-render-container { padding: 22px; }
  body[data-template="product"] .product__media-wrapper,
  body[data-template="product"] .product__info-wrapper { padding: 16px; }
}

/* Snowland customer-facing refinements v7 */
.footer .footer-block,
.footer .footer-block.grid__item {
  box-sizing: border-box !important;
  min-height: 96px !important;
  padding: 16px 20px !important;
}
.footer .footer-block__heading {
  font-size: 17px !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
}
.footer .footer-block__details-content,
.footer .footer-block__details-content p,
.footer .footer-block__details-content li,
.footer .footer-block__details-content a {
  font-size: 14px !important;
  line-height: 1.55 !important;
}
@media (min-width: 960px) {
  .footer .footer__blocks-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
  body[data-template="product"] main-product-detail.product {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }
  body[data-template="product"] .product__media-wrapper {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  body[data-template="product"] .product__info-wrapper {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    align-self: start !important;
  }
}
@media (max-width: 959px) {
  body[data-template="product"] main-product-detail.product {
    display: block !important;
  }
}

/* Snowland design refinements v10 */
:root {
  --xz-price: #e8cd91;
  --xz-price-sale: #f2d28c;
  --xz-price-compare: #c2b38f;
  --xz-card: #211c15;
  --xz-card-image: #2b251c;
  --xz-line: rgba(232, 205, 145, .28);
}

/* Price colour is deliberately scoped to real price components. */
body .price__regular .price-item--regular,
body .price:not(.price--on-sale) .price-item--regular,
body .price-per-item--current,
body .itrans-money,
body .itrans-price {
  color: var(--xz-price) !important;
  opacity: 1 !important;
}

body .price__sale .price-item--sale,
body .price-item--sale {
  color: var(--xz-price-sale) !important;
  opacity: 1 !important;
}

body .price__sale .price-position-origin .price-item--regular,
body .price--on-sale .price-position-origin .price-item--regular {
  color: var(--xz-price-compare) !important;
  opacity: 1 !important;
}

.product-card-wrapper,
.collection-card-wrapper {
  height: auto;
}

.product-card-wrapper .card-main {
  min-height: 0;
  background: var(--xz-card);
  border: 1px solid var(--xz-line);
  border-radius: 10px;
  overflow: hidden;
}

/* Collection grids use flex rows on mobile; percentage heights collapse the cards. */
body[data-template="collection"] .product-card-wrapper,
body[data-template="collection"] .product-card-wrapper .card-main {
  height: auto !important;
  min-height: 0 !important;
}

body[data-template="collection"] .product-card-wrapper .card-main {
  flex: 0 0 auto !important;
}

/* Defensive mobile layout for Safari and in-app WebViews. */
@media (max-width: 959px) {
  body[data-template="collection"] .product-list-content > .product-block {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body[data-template="collection"] .product-list-content > .product-block > .product-card-wrapper,
  body[data-template="collection"] .product-list-content > .product-block > .product-card-wrapper > .card-main {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 1px !important;
    flex: none !important;
  }
}

.product-card-wrapper .card__inner,
.product-card-wrapper .card__media,
.collection-card-wrapper .card__inner {
  background: var(--xz-card-image);
}

.product-card-wrapper .card__media img,
.collection-card-wrapper .card__media img,
.product-block img {
  object-fit: contain !important;
}

.product-card-wrapper .card__content {
  padding: 14px 14px 16px;
}

.product-card-wrapper .product__title {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #f0e2c7;
}

.product-card-wrapper .card__content-bottom {
  margin-top: auto;
}

.quick-add-icon__opener,
.quick-add-modal__toggle,
.header__icon-button,
.drawer__close-button,
.quantity__button,
.control__arrow-button,
.slider-button {
  min-width: 44px;
  min-height: 44px;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #f2d28c !important;
  outline-offset: 3px;
}

.pagination__item--disible,
[aria-disabled="true"].pagination__item {
  pointer-events: none;
  opacity: .42;
}

@media (min-width: 960px) {
  body[data-template="product"] .product__info-wrapper {
    align-self: stretch !important;
  }

  body[data-template="product"] .product__info-container.product__column-sticky {
    position: sticky !important;
    top: 88px;
    height: fit-content;
  }
}

body[data-template="product"] .product__media img,
body[data-template="product"] .thumbnail img {
  object-fit: contain !important;
}

body[data-template="product"] .product__details-container summary {
  min-height: 48px;
}

@media (min-width: 1200px) {
  .footer .footer__blocks-wrapper {
    grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 749px) {
  .footer .footer__blocks-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
  }

  .footer .footer-block:first-child {
    grid-column: 1 / -1;
  }

  .product-card-wrapper .card__content {
    padding: 10px 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* End Snowland design refinements v10 */
