/*
Theme Name: X SAVE SHOP Deutschland
Theme URI: https://xsaves.de/
Author: X SAVE SHOP
Description: German-localized WooCommerce storefront for X SAVE SHOP.
Version: 1.1.0-de
Text Domain: x-save-shop-de
*/

:root {
  --xss-ink: #151515;
  --xss-soft-ink: #3f3f3f;
  --xss-muted: #6f6f6f;
  --xss-line: #dedbd2;
  --xss-paper: #fbfaf6;
  --xss-panel: #ffffff;
  --xss-signal: #f6c343;
  --xss-signal-dark: #d39800;
  --xss-green: #2f6f5e;
  --xss-red: #c1493a;
  --xss-blue: #345f84;
  --xss-radius: 6px;
  --xss-shadow: 0 18px 45px rgba(21, 21, 21, 0.1);
  font-family: "Trebuchet MS", "Aptos", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--xss-ink);
  background: var(--xss-paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.xss-wrap {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.xss-topbar {
  background: #111;
  color: #f7f1dc;
  font-size: 13px;
}

.xss-topbar__inner,
.xss-header__inner,
.xss-nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.xss-topbar__inner {
  min-height: 36px;
  justify-content: space-between;
}

.xss-header {
  background: var(--xss-panel);
  border-bottom: 1px solid var(--xss-line);
}

.xss-header__inner {
  min-height: 86px;
}

.xss-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 250px;
  min-width: 250px;
}

.xss-logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.xss-search {
  display: flex;
  flex: 1;
  height: 48px;
  border: 2px solid var(--xss-ink);
  border-radius: var(--xss-radius);
  overflow: hidden;
  background: white;
}

.xss-search input {
  flex: 1;
  border: 0;
  padding: 0 16px;
  font-size: 16px;
}

.xss-search button,
.xss-button {
  border: 0;
  background: var(--xss-signal);
  color: #151515;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.xss-actions {
  display: flex;
  gap: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.xss-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding-right: 12px;
}

.xss-cart-count {
  position: absolute;
  top: -9px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--xss-red);
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  line-height: 14px;
  font-weight: 900;
  text-align: center;
}

.xss-cart-count--empty {
  display: none;
}

.xss-nav {
  background: var(--xss-signal);
  border-bottom: 3px solid var(--xss-ink);
}

.xss-nav__inner {
  min-height: 44px;
  overflow-x: auto;
}

.xss-nav a {
  font-weight: 800;
  white-space: nowrap;
}

.xss-category-trigger {
  background: var(--xss-ink);
  color: white;
  padding: 12px 18px;
  border-radius: 0;
}

.xss-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #202020 0%, #202020 44%, rgba(246, 195, 67, 0.92) 44%, rgba(246, 195, 67, 0.72) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 100%);
  background-size: auto, 34px 34px;
  color: white;
}

.xss-hero__inner {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 46px 0;
}

.xss-hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.9;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.xss-hero p {
  max-width: 610px;
  font-size: 19px;
  color: #f5edd2;
}

.xss-hero__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xss-hero-card,
.xss-category-card,
.xss-product-card,
.xss-band {
  background: var(--xss-panel);
  color: var(--xss-ink);
  border: 1px solid var(--xss-line);
  border-radius: var(--xss-radius);
  box-shadow: var(--xss-shadow);
}

.xss-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 168px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: white;
  background-color: #242424;
  background-position: center;
  background-size: cover;
  border-color: rgba(255, 255, 255, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.xss-hero-card::before,
.xss-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(246, 195, 67, 0.16), transparent 56%);
}

.xss-hero-card:hover,
.xss-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(21, 21, 21, 0.18);
}

.xss-hero-card b {
  font-size: 22px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.xss-hero-card span:not(.xss-card-kicker) {
  color: #f7f1dc;
  font-weight: 700;
}

.xss-card-kicker {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 5px 8px;
  background: rgba(246, 195, 67, 0.94);
  color: #151515;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.xss-section {
  padding: 42px 0;
}

.xss-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.xss-section h2 {
  font-size: 32px;
  margin: 0;
}

.xss-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.xss-grid > * {
  min-width: 0;
}

.xss-category-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  border-color: rgba(21, 21, 21, 0.08);
}

.xss-category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.xss-category-card:hover img {
  transform: scale(1.04);
}

.xss-category-card strong {
  display: block;
  padding: 0 16px 4px;
  font-size: 19px;
  line-height: 1.12;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.xss-category-card small {
  display: block;
  padding: 0 16px 16px;
  color: #f5edd2;
  font-weight: 800;
}

.xss-category-card .xss-card-kicker {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
}

.xss-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.xss-band > a {
  padding: 22px;
  border-right: 1px solid var(--xss-line);
}

.xss-band > a b {
  display: block;
  font-size: 20px;
}

.xss-footer {
  background: #151515;
  color: #efe9d6;
  padding: 44px 0 22px;
  margin-top: 34px;
}

.xss-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.xss-footer a {
  display: block;
  color: #efe9d6;
  margin: 8px 0;
}

.xss-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.xss-footer .xss-friend-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid #3a3a3a;
  border-radius: var(--xss-radius);
  background: #ffffff;
  color: #111;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.xss-footer .xss-friend-link:hover {
  border-color: var(--xss-signal);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.xss-friend-link svg {
  width: 34px;
  height: 24px;
  display: block;
}

.xss-friend-link text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 17px;
}

.xss-friend-link--ebay text {
  font-size: 21px;
  letter-spacing: -1px;
}

.xss-ebay-e {
  fill: #e53238;
}

.xss-ebay-b {
  fill: #0064d2;
}

.xss-ebay-a {
  fill: #f5af02;
}

.xss-ebay-y {
  fill: #86b817;
}

.xss-friend-link--amazon .xss-amazon-a {
  fill: #111;
  font-size: 28px;
  font-weight: 900;
}

.xss-friend-link--amazon path {
  fill: none;
  stroke: #ff9900;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.xss-friend-link--aliexpress {
  background: #ffffff;
}

.xss-friend-link--aliexpress img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.xss-footer h3 {
  color: var(--xss-signal);
  margin-top: 0;
}

.xss-copy {
  color: #a8a08a;
  margin-top: 30px;
  border-top: 1px solid #3a3a3a;
  padding-top: 18px;
}

.xss-contact-form {
  max-width: 760px;
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--xss-line);
  border-radius: var(--xss-radius);
}

.xss-contact-form form {
  display: grid;
  gap: 16px;
}

.xss-contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.xss-contact-form input,
.xss-contact-form textarea {
  width: 100%;
  border: 1px solid var(--xss-line);
  border-radius: var(--xss-radius);
  padding: 12px 13px;
  font: inherit;
}

.xss-contact-form textarea {
  resize: vertical;
}

.xss-form-notice {
  padding: 12px 14px;
  border-radius: var(--xss-radius);
  font-weight: 800;
}

.xss-form-notice--success {
  background: #e7f5ec;
  color: #1f6b3a;
}

.xss-form-notice--error {
  background: #fdebea;
  color: #9d2b22;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid var(--xss-line);
  border-radius: var(--xss-radius);
  padding: 12px;
}

@media (max-width: 980px) {
  .xss-header__inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .xss-logo {
    flex-basis: 220px;
    min-width: auto;
  }

  .xss-logo img {
    width: 220px;
    max-height: 70px;
  }

  .xss-search {
    order: 3;
    flex-basis: 100%;
  }

  .xss-hero__inner,
  .xss-footer__grid {
    grid-template-columns: 1fr;
  }

  .xss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .xss-wrap {
    width: min(100% - 20px, 1440px);
  }

  .xss-actions,
  .xss-topbar__inner span:nth-child(2) {
    display: none;
  }

  .xss-hero__panel,
  .xss-band,
  .xss-grid {
    grid-template-columns: 1fr;
  }

  .xss-hero__inner {
    min-height: auto;
  }

  .xss-grid,
  .xss-category-card,
  .xss-band,
  .xss-band > a {
    width: 100%;
    max-width: 100%;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .woocommerce ul.products[class*="columns-"] li.product,
  .woocommerce-page ul.products[class*="columns-"] li.product,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}
