/*
  FireStrike — modern skin (dark edges + light center)
  We keep product cards white, but make the site feel premium and “gaming”.
*/


:root {
  /* Frame */
  --fs-edge-0: #070912;
  --fs-edge-1: #0b1021;
  --fs-surface: #f4f6fb;
  --fs-card: #ffffff;
  --fs-border: #e7eaf3;

  /* Text */
  --fs-text: #0f172a;
  --fs-muted: #64748b;

  /* Brand / accents */
  --fs-accent: #e11d48;
  --fs-accent-2: #fb7185;

  /* Shape */
  --fs-radius: 18px;
  --fs-radius-lg: 24px;

  /* Shadow */
  --fs-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.10);
  --fs-shadow: 0 14px 42px rgba(15, 23, 42, 0.16);
}

html, body {
  height: 100%;
}

body {
  color: var(--fs-text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(225, 29, 72, 0.25), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(180deg, var(--fs-edge-0), var(--fs-edge-1)) !important;
  background-attachment: fixed;
}

/* Center “sheet” */
.page_layout {
  background: var(--fs-surface) !important;
  max-width: 1408px;
  max-width: calc(var(--layout-content-max-width, 1408) * 1px);
  margin: 18px auto;
  border-radius: var(--fs-radius-lg) !important;
  box-shadow: var(--fs-shadow) !important;
  overflow: hidden;
}

@media (max-width: 980px) {
  .page_layout {
    margin: 0;
    border-radius: 0;
  }
}

/* Header — glassy, sticky */
.page_layout > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fs-border);
}

/* Main paddings */
.page_layout > main {
  padding: 22px;
}

@media (max-width: 980px) {
  .page_layout > main {
    padding: 14px;
  }
}

/* Sidebar as a “floating card” */
.page_layout aside section[data-sidebar] {
  padding: 14px;
}

.page_layout aside section[data-sidebar] > * {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-shadow-sm);
  padding: 14px;
}

/* Titles */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

/* Inputs / controls */
input, select, textarea {
  border-radius: 12px !important;
  border: 1px solid var(--fs-border) !important;
  background: #fff !important;
}

/* Buttons (best-effort: system widgets use different class names) */
button,
.button,
.btn,
a.button,
input[type="submit"],
input[type="button"],
[data-add-cart],
[data-quick-checkout],
.add_to_cart,
.add-cart {
  border-radius: 999px !important;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

button:hover,
.button:hover,
.btn:hover,
a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
[data-add-cart]:hover,
.add_to_cart:hover,
.add-cart:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.24);
}

/* Product card — white, rounded, “float” */
.product-card,
.product-item,
.products-item,
.product_preview,
.product-preview,
.product,
[data-product-id] {
  /* Use background-color (not shorthand background) so we don't wipe background-image previews */
  background-color: var(--fs-card) !important;
  border: 1px solid var(--fs-border) !important;
  border-radius: var(--fs-radius) !important;
  box-shadow: var(--fs-shadow-sm);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover,
.product-item:hover,
.products-item:hover,
.product_preview:hover,
.product-preview:hover,
[data-product-id]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

/* Prices (best-effort) */
.price,
.product-price,
.product_price,
[data-product-price] {
  font-weight: 700;
}

.old-price,
.compare-at-price,
[data-compare-at-price] {
  color: var(--fs-muted) !important;
  text-decoration: line-through;
}

/* Chips / quick filters we inject via theme.js */
.fs-gpu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
  padding: 14px;
  border-radius: var(--fs-radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--fs-border);
  box-shadow: var(--fs-shadow-sm);
}

.fs-gpu-bar__title {
  flex: 1 1 100%;
  font-weight: 700;
  color: var(--fs-text);
  letter-spacing: -0.01em;
}

.fs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fs-border);
  background: #fff;
  color: var(--fs-text);
  text-decoration: none;
  font-weight: 600;
}

.fs-chip__count {
  font-weight: 700;
  color: #fff;
  background: var(--fs-accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.fs-chip:hover {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.14);
  transform: translateY(-1px);
}

.outside-widgets .delete-widget-link {
  display: none;
}

.outside-widgets .add-widget-link {
  display: none;
}

[data-fixed-panels] .delete-widget-link {
  display: none;
}

/* Sidebar position: keep the filter block closer to the top */
@media (min-width: 1100px) {
  .page_layout > aside {
    align-self: flex-start;
  }
  .page_layout > aside section[data-sidebar] {
    margin-top: 0 !important;
  }
  .page_layout > aside section[data-sidebar] .filter {
    margin-top: 0 !important;
  }
  .page_layout > aside section[data-sidebar] .filter__content {
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  [style*="--is-editor:true"] .outside-widgets {
    display: none;
  }
  .edit-widget-buttons .widget-name {
    display: none !important;
  }
  [data-fixed-panels] [data-widget-add] {
    display: none;
  }
}
