/* Homepage + product cards (silver_new / xl-redesign) */

body.xl-redesign #content {
  font-family: var(--xl-font-sans);
  color: var(--xl-text);
}
body.xl-redesign #content > h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
}

/* ===== Hero ===== */
body.xl-redesign .xl-hero {
  position: relative;
  margin: 0 0 22px;
  padding: 36px 40px;
  min-height: 240px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(80% 120% at 90% 20%, rgba(232,102,34,.35), transparent 50%),
    linear-gradient(105deg, #171513 0%, #2a2420 55%, #3a1f1a 100%);
  box-sizing: border-box;
}
body.xl-redesign .xl-hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xl-gold-300);
}
body.xl-redesign .xl-hero__title {
  margin: 0 0 10px;
  max-width: 640px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}
body.xl-redesign .xl-hero__text {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
}
body.xl-redesign .xl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.xl-redesign .xl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
body.xl-redesign .xl-btn:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}
body.xl-redesign .xl-btn--primary {
  background: var(--xl-red-600);
  color: #fff !important;
  border: 0;
}
body.xl-redesign .xl-btn--primary:hover {
  background: var(--xl-red-700);
  box-shadow: 0 8px 20px rgba(170,40,34,.28);
  color: #fff !important;
}
body.xl-redesign .xl-btn--ghost {
  background: transparent;
  color: var(--xl-gold-300) !important;
  border: 1px solid rgba(216,184,121,.65);
}
body.xl-redesign .xl-btn--ghost:hover {
  background: rgba(255,255,255,.06);
  color: #fff !important;
}

/* ===== Section titles ===== */
body.xl-redesign .xl-section {
  margin: 0 0 24px;
}
body.xl-redesign .xl-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
body.xl-redesign .xl-section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--xl-text);
}
body.xl-redesign .xl-section__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--xl-red-600);
  text-decoration: none;
}
body.xl-redesign .xl-section__link:hover {
  text-decoration: underline;
}

/* ===== Category grid (#icSet2) ===== */
body.xl-redesign #icSet2.catalog,
body.xl-redesign table#icSet2 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 22px !important;
  border: 0 !important;
  border-collapse: separate;
}
body.xl-redesign #icSet2 tbody,
body.xl-redesign #icSet2 tr {
  display: contents !important;
}
body.xl-redesign #icSet2 td {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  vertical-align: top;
}
body.xl-redesign #icSet2 tr.nomobile {
  display: none !important;
}
body.xl-redesign #icSet2 td:empty,
body.xl-redesign #icSet2 td a[href="/halloween.html"]:only-child:has(> :only-child:empty),
body.xl-redesign #icSet2 td a[href="/halloween.html"]:not(:has(img)) {
  display: none !important;
}
body.xl-redesign #icSet2 a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 148px;
  padding: 16px 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--xl-line);
  box-shadow: 0 4px 14px rgba(32,29,26,.04);
  text-decoration: none !important;
  color: var(--xl-text) !important;
  text-align: center;
  box-sizing: border-box;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.xl-redesign #icSet2 a:hover {
  transform: translateY(-2px);
  border-color: rgba(232,102,34,.45);
  box-shadow: 0 10px 22px rgba(32,29,26,.1);
  color: var(--xl-red-700) !important;
  text-decoration: none !important;
}
body.xl-redesign #icSet2 img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  display: block;
}
body.xl-redesign #icSet2 span {
  display: block;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: inherit !important;
  position: static !important;
}

/* ===== Promo ===== */
body.xl-redesign .xl-promo {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
body.xl-redesign .xl-promo a {
  display: block;
  padding: 20px 18px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  min-height: 110px;
  box-sizing: border-box;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.xl-redesign .xl-promo a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(32,29,26,.14);
  color: #fff !important;
  text-decoration: none !important;
}
body.xl-redesign .xl-promo__t {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
body.xl-redesign .xl-promo__d {
  display: block;
  font-size: 13px;
  opacity: .88;
  line-height: 1.35;
}
body.xl-redesign .xl-promo a:nth-child(1) {
  background: linear-gradient(135deg, var(--xl-red-600), #c2410c);
}
body.xl-redesign .xl-promo a:nth-child(2) {
  background: linear-gradient(135deg, #2a4058, #3d5a80);
}
body.xl-redesign .xl-promo a:nth-child(3) {
  background: linear-gradient(135deg, var(--xl-graphite-900), #3a322c);
}

/* ===== Follow strip (replaces .social) ===== */
body.xl-redesign .social {
  display: none !important;
}
body.xl-redesign .xl-follow,
body.xl-redesign #content .xl-follow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px 20px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 22px 0 !important;
  padding: 16px 18px !important;
  border: 1px solid #ebe4da !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, #fffaf4 0%, #ffffff 48%, #f7f3ec 100%) !important;
  box-shadow: 0 6px 18px rgba(32, 29, 26, 0.05) !important;
  overflow: hidden !important;
  clear: both !important;
}
body.xl-redesign .xl-follow__copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  flex: 1 1 220px !important;
}
body.xl-redesign .xl-follow__title {
  margin: 0 !important;
  color: #1a1a1a !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}
body.xl-redesign .xl-follow__sub {
  margin: 0 !important;
  color: #8a847c !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
body.xl-redesign .xl-follow__links {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  flex-wrap: wrap !important;
}
body.xl-redesign .xl-follow__a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
body.xl-redesign .xl-follow__a:hover {
  transform: translateY(-1px) !important;
  text-decoration: none !important;
  color: #fff !important;
  filter: brightness(1.04) !important;
}
body.xl-redesign .xl-follow__a--vk {
  background: #0077FF !important;
  box-shadow: 0 6px 14px rgba(0, 119, 255, 0.22) !important;
}
body.xl-redesign .xl-follow__a--tg {
  background: #2AABEE !important;
  box-shadow: 0 6px 14px rgba(42, 171, 238, 0.22) !important;
}
body.xl-redesign .xl-follow__ico {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
  filter: brightness(0) invert(1) !important;
}
@media (max-width: 720px) {
  body.xl-redesign .xl-follow {
    padding: 14px !important;
  }
  body.xl-redesign .xl-follow__a {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
}


/* ===== Product grid ===== */
body.xl-redesign .xl-product-grid,
body.xl-redesign #content .page {
  margin: 0 0 8px;
}
body.xl-redesign .xl-product-grid > p,
body.xl-redesign #content .page + p,
body.xl-redesign #content > p[style*="0B187D"],
body.xl-redesign #content p a[href="/featured.php"] {
  /* heading restyle via parent */
}
body.xl-redesign .xl-product-heading,
body.xl-redesign #content p[style*="0B187D"] {
  color: var(--xl-text) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
}
body.xl-redesign #content p[style*="0B187D"] a {
  color: inherit !important;
  text-decoration: none !important;
}
body.xl-redesign .xl-product-grid .pageItem,
body.xl-redesign #content .page .pageItem {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  float: none !important;
  width: auto !important;
}
body.xl-redesign .xl-product-grid dl.itemNewProductsDefault,
body.xl-redesign #content .page .pageItem dl.itemNewProductsDefault {
  position: relative;
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px !important;
  min-height: 100%;
  background: #fff !important;
  border: 1px solid var(--xl-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(32,29,26,.05);
  box-sizing: border-box;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.xl-redesign .xl-product-grid dl.itemNewProductsDefault:hover,
body.xl-redesign #content .page .pageItem dl.itemNewProductsDefault:hover {
  transform: translateY(-2px);
  border-color: rgba(232,102,34,.4) !important;
  box-shadow: 0 12px 26px rgba(32,29,26,.1);
}
body.xl-redesign .xl-product-grid dt.itemImage,
body.xl-redesign #content dl.itemNewProductsDefault dt.itemImage {
  float: none !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  aspect-ratio: 1.35 / 1;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f3ec, #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
body.xl-redesign .xl-product-grid dt.itemImage a.f_image,
body.xl-redesign #content dl.itemNewProductsDefault dt.itemImage a.f_image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
body.xl-redesign .xl-product-grid dt.itemImage img,
body.xl-redesign #content dl.itemNewProductsDefault dt.itemImage > a img {
  max-width: 90% !important;
  max-height: 90% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
body.xl-redesign .xl-product-grid .extra_effects3,
body.xl-redesign #content .extra_effects3 {
  display: none !important;
}
body.xl-redesign .xl-product-grid dd.itemDescription,
body.xl-redesign #content dl.itemNewProductsDefault dd.itemDescription {
  float: none !important;
  width: auto !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 13px;
  color: var(--xl-muted);
}
body.xl-redesign .xl-product-grid dd.itemDescription > a,
body.xl-redesign #content dl.itemNewProductsDefault dd.itemDescription > a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--xl-text) !important;
  text-decoration: none !important;
}
body.xl-redesign .xl-product-grid dd.itemDescription > a:hover {
  color: var(--xl-red-600) !important;
}
/* hide short desc / tax / shipping clutter in cards */
body.xl-redesign .xl-product-grid dd.itemDescription:nth-of-type(2),
body.xl-redesign .xl-product-grid dd.itemDescription:nth-of-type(n+3),
body.xl-redesign #content .page .pageItem dd.itemDescription:not(:has(> a)) {
  display: none !important;
}
body.xl-redesign .xl-product-grid dd.itemDescriptionPrice,
body.xl-redesign #content dl.itemNewProductsDefault dd.itemDescriptionPrice {
  float: none !important;
  width: auto !important;
  margin: auto 0 0 !important;
  padding: 10px 0 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--xl-text) !important;
}
body.xl-redesign .xl-product-grid .productOldPrice,
body.xl-redesign #content .productOldPrice {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--xl-muted);
  text-decoration: line-through;
}
body.xl-redesign .xl-product-grid dt.itemImage input[name="products_qty"],
body.xl-redesign #content dl.itemNewProductsDefault input[name="products_qty"] {
  width: 44px !important;
  height: 36px !important;
  margin: 10px 8px 0 0 !important;
  border: 1px solid var(--xl-line) !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 700;
}
body.xl-redesign .xl-product-grid dt.itemImage a.button,
body.xl-redesign #content dl.itemNewProductsDefault a.button,
body.xl-redesign .xl-product-grid span.button,
body.xl-redesign #content dl.itemNewProductsDefault span.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 36px !important;
  margin-top: 10px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--xl-red-600) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  vertical-align: middle;
}
body.xl-redesign .xl-product-grid dt.itemImage a.button:hover,
body.xl-redesign #content dl.itemNewProductsDefault a.button:hover {
  background: var(--xl-red-700) !important;
}

/* ===== Trust ===== */
body.xl-redesign .xl-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}
body.xl-redesign .xl-trust__item {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--xl-line);
}
body.xl-redesign .xl-trust__item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
}
body.xl-redesign .xl-trust__item span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--xl-muted);
}

/* ===== SEO text ===== */
body.xl-redesign .xl-seo {
  margin: 8px 0 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--xl-line);
  font-size: 14px;
  line-height: 1.55;
  color: #4a453f;
  max-width: 72ch;
}
body.xl-redesign .xl-seo h2,
body.xl-redesign .xl-seo h3 {
  color: var(--xl-text);
  font-weight: 800;
}

/* Center column canvas */
@media (min-width: 901px) {
  body.xl-redesign #wrapper,
  body.xl-redesign #content {
    background: transparent !important;
  }
}

@media (max-width: 1100px) {
  body.xl-redesign #icSet2.catalog { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  body.xl-redesign .xl-product-grid .pageItem,
  body.xl-redesign #content .page .pageItem { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.xl-redesign .xl-trust { grid-template-columns: repeat(2, 1fr); }
  body.xl-redesign .xl-promo { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body.xl-redesign .xl-hero {
    padding: 24px 18px;
    min-height: 0;
    border-radius: 14px;
  }
  body.xl-redesign .xl-hero__title { font-size: 26px; }
  body.xl-redesign #icSet2.catalog { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  body.xl-redesign .xl-product-grid .pageItem,
  body.xl-redesign #content .page .pageItem { grid-template-columns: 1fr; }
}
