@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* =========================================================
   MINIMALIST BLACK & WHITE THEME
   ========================================================= */
:root {
  /* Tekst */
  --color-text: #f5f5f5;
  --color-text-darker: #e5e5e5;
  --color-text-secondary: #9a9a9a;
  --color-text-dark: #0a0a0a;

  /* Tła */
  --color-bg: #0a0a0a;
  --color-brighter-bg: #131313;
  --color-card: #161616;

  /* Subtelne obramowania */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.14);

  /* Primary = biały */
  --color-primary: #ffffff;
  --color-primary-hover: #e5e5e5;
  --color-primary-text: #0a0a0a;
  --color-primary-text-hover: var(--color-primary-text);

  /* Secondary = ledwie widoczna szarość */
  --color-secondary: rgba(255, 255, 255, 0.08);
  --color-secondary-hover: rgba(255, 255, 255, 0.16);
  --color-secondary-text: #f5f5f5;
  --color-secondary-text-hover: #ffffff;

  /* Tertiary = duch */
  --color-tertiary: transparent;
  --color-tertiary-hover: rgba(255, 255, 255, 0.06);
  --color-tertiary-text: #e5e5e5;
  --color-tertiary-text-hover: #ffffff;

  --color-removed: #d96565;

  --color-sale-banner-bg: #ffffff;
  --color-sale-banner-text: #0a0a0a;

  --bg-image: none;
}

/* =========================================================
   GLOBAL
   ========================================================= */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(1200px 400px at 50% -50px, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0;
  transition: all 0.2s ease;
}

.btn-primary {
  border: 1px solid #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--color-border);
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--color-border-hover);
  box-shadow: none;
}

.btn-tertiary {
  border: 1px solid transparent;
}
.btn-tertiary:hover,
.btn-tertiary:focus {
  border-color: var(--color-border);
}

/* =========================================================
   QUANTITY FIELD
   ========================================================= */
.quantity-field {
  border-radius: 8px;
  border-color: var(--color-border);
  background: var(--color-bg);
}
.quantity-field input[type=number]:focus,
.quantity-field input[type=number]:hover {
  border-color: var(--color-border-hover);
}

/* =========================================================
   HEADER / INFO PANELS
   ========================================================= */
.site-header-inner .info .image {
  border-radius: 8px;
}
.site-header-inner .info .value {
  border-radius: 6px;
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
}
.site-header-inner .info .action {
  color: var(--color-text);
  font-weight: 500;
}
.site-header-inner .info:hover .action {
  color: var(--color-text-secondary);
}

/* =========================================================
   SALE BANNER
   ========================================================= */
.site-sale-banner {
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* =========================================================
   HOME CATEGORIES
   ========================================================= */
.site-home-categories .category {
  border-radius: 10px;
  padding: 24px var(--widget-padding);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}
.site-home-categories .category:hover {
  color: var(--color-text);
  background: var(--color-card);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

/* =========================================================
   CARDS / WIDGETS / TEXT BLOCKS
   ========================================================= */
.category-description,
.store-text,
.no-products,
.store-product-full,
.widget,
.store-category-tiered {
  border-radius: 10px;
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}

.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6,
.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
}

.no-products {
  color: var(--color-text-secondary);
}

/* =========================================================
   PRODUCT GRID – 3 kolumny, minimalistyczne karty
   ========================================================= */
.store-products-images {
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (width > 600px) {
  .store-products-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (width > 960px) {
  .store-products-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

/* Karta produktu */
.store-products-images .store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  gap: 12px;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.store-products-images .store-product:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Obraz */
.store-products-images .store-product .image-link {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--color-bg);
  overflow: hidden;
}
.store-products-images .store-product .image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.store-products-images .store-product:hover .image {
  transform: scale(1.06);
}
.store-products-images .store-product .image-default {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: var(--color-bg);
}

/* Tytuł */
.store-products-images .store-product .product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  margin: 2px 0 0;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-products-images .store-product .product-title a {
  transition: color 0.2s ease;
}
.store-products-images .store-product .product-title a:hover {
  color: var(--color-text-secondary);
}
.store-products-images .store-product .product-title .countdown {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
}

/* Tagi (ESX / QB / QBOX / OX / ND / ESCROW / OPEN SOURCE) */
.store-product .package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-product .package-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1;
}

/* Actions (cena + przyciski) */
.store-products-images .store-product .actions {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 10px;
}
.store-products-images .store-product .price {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.store-products-images .store-product .price strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.store-products-images .store-product .price .discount {
  font-size: 12px;
}
.store-products-images .store-product .actions .btn-primary,
.store-products-images .store-product .actions .btn-secondary,
.store-products-images .store-product .actions .btn-tertiary,
.store-products-images .store-product .actions .wide,
.store-products-images .store-product .actions .half {
  width: 100%;
  flex: 1 1 auto;
}
.store-products-images .store-product .actions .gift,
.store-products-images .store-product .actions .remove,
.store-products-images .store-product .actions .btn-icon {
  width: var(--btn-size);
  flex: none;
}
.store-products-images .store-product .actions .quantity-field {
  width: 100%;
}

/* =========================================================
   LIST VIEW PRODUCTS
   ========================================================= */
.store-products-list .store-product {
  border-radius: 10px;
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
}
.store-products-list .store-product:hover {
  border-color: var(--color-border-hover);
}

/* =========================================================
   PRODUCT FULL PAGE
   ========================================================= */
.store-product .product-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.store-product .descr {
  color: var(--color-text-secondary);
}
.store-product .quantity-field {
  border-radius: 8px;
  background: var(--color-bg);
  border-color: var(--color-border);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

/* Tiered */
.store-product-tiered {
  border-radius: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.store-product-tiered.store-product-cta {
  background-image: linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.04));
  border-color: var(--color-border-hover);
}

/* =========================================================
   WIDGETS
   ========================================================= */
.widget-title {
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.widget .store-product {
  text-align: center;
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
    border: none;
  }
}
.widget-gift-card .gift-card-input {
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.widget-top-donator .avatar {
  border-radius: 50%;
  border: 1px solid var(--color-border);
}
.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 999px;
  background: var(--color-text);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: 10px;
    border: 1px solid var(--color-border);
  }
  .navigation-horizontal .has-children > ul {
    border-radius: 10px;
    border: 1px solid var(--color-border);
  }
  .navigation-horizontal a:hover,
  .navigation-horizontal a.link-active,
  .navigation-vertical a:hover,
  .navigation-vertical a.link-active {
    color: var(--color-text);
  }
  .navigation-horizontal li li a:hover,
  .navigation-horizontal li li a.link-active {
    color: var(--color-primary-text) !important;
    background-color: var(--color-primary) !important;
  }
}

/* =========================================================
   POPUPS
   ========================================================= */
.popup-content {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.popup-close {
  border-radius: 0 12px 0 12px;
}
.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
  border: none;
}

/* =========================================================
   BASKET
   ========================================================= */
.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}
.basket-item {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-brighter-bg);
}
.basket-item .quantity {
  border-radius: 6px;
}
.basket .basket-item .price,
.basket .basket-second-header .total strong,
.basket .basket-checkout .total {
  color: var(--color-text);
}
.basket .basket-item .price strong {
  font-weight: 600;
}

/* =========================================================
   TOASTS
   ========================================================= */
.toast {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-brighter-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.toast-warning {
  background: #2a2410;
  border-color: rgba(202, 182, 0, 0.3);
}
.toast.toast-error {
  background: #2a1414;
  border-color: rgba(193, 46, 46, 0.3);
}
.toast.toast-success {
  background: #142a17;
  border-color: rgba(76, 175, 80, 0.3);
}
.toast-close {
  border-radius: 6px;
}

/* =========================================================
   MEDIA SLIDER
   ========================================================= */
.media-slider .slider,
.media-slider .thumb {
  border-radius: 10px;
}
.media-slider .open-lightbox {
  border-radius: 8px;
}
.popup.popup-media-slider .thumb {
  border-radius: 8px;
}
.popup.popup-media-slider .popup-close {
  border-radius: 8px;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
html {
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

::selection {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

