/* Brand & Navigation */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  padding: 0;
  border: none;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.lang-btn.active { color: var(--white); }
.lang-btn:hover:not(.active) { color: #cbd5e1; }

.btn-basket {
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.25s ease;
}

.btn-basket.empty { background-color: var(--basket-empty); }
.btn-basket.empty:hover { background-color: var(--basket-empty-hover); }
.btn-basket.active { background-color: var(--primary-blue); }
.btn-basket.active:hover { background-color: var(--primary-blue-hover); }

.btn-profile {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.icon-profile {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease;
}

.btn-profile:hover .icon-profile { transform: scale(1.1); }

.btn-back-nav {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding: 0.4rem;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
}

.btn-back-nav:hover {
  color: var(--primary-blue);
  background-color: var(--bg-card);
}

.btn-back-nav svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Search Bar */
.search-bar-wrapper {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  color: rgba(0, 0, 0, 0.6); /* 60% czerni dla spójności z placeholderem */
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.2rem 0.75rem 2.8rem;
  background-color: var(--white); /* Czysta biel pola */
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Tekst zastępczy (placeholder) - 60% czerni */
.search-input::placeholder {
  color: rgba(0, 0, 0, 0.6);
  opacity: 1; /* Reset domyślnego rozjaśnienia w przeglądarkach typu Firefox */
}

.search-input:focus {
  background-color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

/* Product Grid */
.product-grid {
  display: grid;
  gap: 2.5rem 3.5rem;
  margin-bottom: 2rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.3rem 2rem;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem 0;
  }

  .btn-basket {
    padding: 0.48rem 0.65rem;
    font-size: 0.92rem;
    gap: 0.3rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-photo {
  background-color: var(--bg-card);
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.1rem; /* Zwiększony odstęp pod zdjęciem */
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

.product-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-title {
  font-size: 0.95rem;
  margin-bottom: 1.1rem; /* Zwiększony odstęp pod tytułem przed ceną i przyciskiem */
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary-blue);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.btn-add {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-add:hover { background-color: var(--primary-blue-hover); }
.btn-add:active { transform: scale(0.98); }

.icon-ball {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.btn-remove-item:hover { color: #475569; }

/* Product Details Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

.gallery-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.thumb-item {
  aspect-ratio: 3 / 4;
  background-color: var(--bg-card);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s;
}

.thumb-item:hover, .thumb-item.active {
  border-color: var(--primary-blue);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.detail-era {
  font-size: 1.05rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-desc-sentences {
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.detail-desc-sentences p {
  margin-bottom: 0.5rem;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid #edf2f7;
  padding-top: 1.2rem;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 900;
}

/* Shipping Cards */
.shipping-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.shipping-option-card:hover {
  background-color: var(--bg-light-blue);
  border-color: var(--primary-blue);
}

.shipping-badge {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.shipping-badge.fedex { background-color: #4d148c; color: #ff6600; }
.shipping-badge.dhl { background-color: #ffcc00; color: #d40511; }
.shipping-badge.dpd { background-color: #dc0032; color: #ffffff; }

/* Forms & Cards */
.contact-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.contact-lead-text {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.contact-email-link {
  display: inline-block;
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

.input-field, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: var(--bg-light-blue);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus, textarea:focus, select:focus {
  border-color: var(--primary-blue);
}

textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  align-self: center;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.7rem 3.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover { background-color: var(--primary-blue-hover); }
.btn-submit:active { transform: scale(0.98); }

.card-box {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.8rem;
  max-width: 650px;
  margin: 1rem auto 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.btn-primary-full {
  width: 100%;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary-full:hover { background-color: var(--primary-blue-hover); }
.btn-primary-full:active { transform: scale(0.98); }

.quick-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 600px) {
  .quick-pay-grid { grid-template-columns: 1fr; }
}

.btn-payment-option {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-payment-option:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.btn-payment-option.apple { background-color: #000; color: #fff; border-color: #000; }
.btn-payment-option.paypal { background-color: #ffc439; color: #003087; border-color: #e0a51d; }

.auth-separator {
  text-align: center;
  position: relative;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-separator::before, .auth-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #e2e8f0;
}

.auth-separator::before { left: 0; }
.auth-separator::after { right: 0; }

/* Social Media Section */
.social-section {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.social-links-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.social-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.social-link-item:hover {
  opacity: 0.75;
}

.social-icon-wrapper {
  width: 52px;
  height: 52px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Cookie Consent Banner Styles --- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 900px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1.2rem 1.6rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: slideUpCookie 0.3s ease-out forwards;
}

@keyframes slideUpCookie {
  from {
    transform: translate(-50%, 30px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-content {
  flex: 1;
}

.cookie-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cookie-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 0;
}

.cookie-text a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-cookie {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cookie-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-cookie-primary:hover {
  background-color: var(--primary-blue-hover);
}

.btn-cookie-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cookie-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 650px) {
  .cookie-banner {
    bottom: 0.8rem;
    padding: 1.1rem;
  }

  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    display: flex;
    gap: 0.6rem;
  }

  .btn-cookie {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.8rem;
  }
}

/* Goal Animation */
.goal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.goal-overlay.show { opacity: 1; }

.flying-ball {
  font-size: 4rem;
  display: inline-block;
  opacity: 0;
}

.goal-overlay.show .flying-ball {
  animation: shootBall 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.goal-text {
  font-size: 4.5rem;
  font-weight: 900;
  color: #ffea00;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-blue);
  letter-spacing: 4px;
  opacity: 0;
  transform: scale(0.3);
}

.goal-overlay.show .goal-text {
  animation: popGoal 0.6s 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes shootBall {
  0% { transform: translate(-180px, 160px) scale(0.4) rotate(0deg); opacity: 1; }
  70% { transform: translate(30px, -40px) scale(1.3) rotate(540deg); opacity: 1; }
  100% { transform: translate(0, 0) scale(1) rotate(720deg); opacity: 1; }
}

@keyframes popGoal {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Back to Top Button --- */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--black);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-back-to-top:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  .btn-back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
  }
}