/* ================================================
   Crypto Gemidzija — Shop Styles
   Продавница за маици, качулки и капи со лого
   ================================================ */

/* ----------- Shop Hero ----------- */
.shop-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg, #0f1115) 0%, var(--bg-alt, #181b21) 100%);
  border-bottom: 1px solid rgba(245, 164, 37, 0.12);
}

.shop-hero .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent, #f5a425);
  margin-bottom: 14px;
}

.shop-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.shop-hero p {
  font-size: 1.1rem;
  color: var(--text-dim, #9aa2b1);
  max-width: 600px;
  margin: 0 auto 32px;
}

.shop-hero .crypto-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.crypto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 164, 37, 0.1);
  border: 1px solid rgba(245, 164, 37, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent, #f5a425);
  letter-spacing: 0.3px;
}

.crypto-badge .badge-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ----------- Products Grid ----------- */
.shop-section {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 0;
}

/* ----------- Product Card ----------- */
.product-card {
  background: var(--bg-alt, #181b21);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 164, 37, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 164, 37, 0.1);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a1d24, #232830);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

/* Placeholder кога нема слика */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim, #9aa2b1);
}

.product-img-placeholder .placeholder-icon {
  font-size: 64px;
  opacity: 0.35;
}

.product-img-placeholder .placeholder-logo {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent, #f5a425);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
}

.product-badge.new {
  background: #10b981;
  color: #fff;
}

/* ----------- Product Info ----------- */
.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent, #f5a425);
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text, #f5f7fa);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-dim, #9aa2b1);
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}

.product-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.size-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim, #9aa2b1);
  letter-spacing: 0.3px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent, #f5a425);
}

.product-price .price-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim, #9aa2b1);
  display: block;
  margin-top: 2px;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f5a425, #ffb347);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-order:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
  color: #000;
}

/* ----------- Payment Instructions Modal ----------- */
.shop-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shop-modal-overlay.open {
  display: flex;
}

.shop-modal {
  background: var(--bg-alt, #181b21);
  border: 1px solid rgba(245, 164, 37, 0.2);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  animation: shopModalIn 0.28s ease;
}

@keyframes shopModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.shop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  margin-bottom: 20px;
}

.shop-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.shop-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-dim, #9aa2b1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.shop-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text, #f5f7fa);
}

.shop-modal-body {
  padding: 0 28px 28px;
}

.modal-product-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.modal-product-summary .summary-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.modal-product-summary .summary-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.modal-product-summary .summary-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim, #9aa2b1);
}

.modal-steps {
  margin-bottom: 24px;
}

.modal-steps h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim, #9aa2b1);
  margin: 0 0 14px;
}

.modal-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5a425, #ffb347);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text, #f5f7fa);
  line-height: 1.55;
}

.step-text strong {
  color: var(--accent, #f5a425);
}

/* ----------- Wallet Addresses ----------- */
.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.wallet-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
}

.wallet-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wallet-coin-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.wallet-coin-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #f5f7fa);
}

.wallet-coin-network {
  font-size: 0.7rem;
  color: var(--text-dim, #9aa2b1);
  margin-left: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
}

.wallet-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-address {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--text-dim, #9aa2b1);
  word-break: break-all;
  flex: 1;
  line-height: 1.4;
  user-select: all;
}

.copy-btn {
  background: rgba(245, 164, 37, 0.1);
  border: 1px solid rgba(245, 164, 37, 0.2);
  border-radius: 8px;
  color: var(--accent, #f5a425);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.copy-btn:hover {
  background: rgba(245, 164, 37, 0.2);
  border-color: rgba(245, 164, 37, 0.4);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* ----------- Order Form ----------- */
.order-form {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-top: 4px;
}

.order-form h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim, #9aa2b1);
  margin: 0 0 14px;
}

.order-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.order-form .form-field.full {
  grid-column: 1 / -1;
}

.order-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim, #9aa2b1);
}

.order-form input,
.order-form select,
.order-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text, #f5f7fa);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: rgba(245, 164, 37, 0.5);
}

.order-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa2b1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.order-form select option {
  background: #1a1d24;
}

.order-form textarea {
  resize: vertical;
  min-height: 80px;
}

.order-submit {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-submit-order {
  background: linear-gradient(135deg, #f5a425, #ffb347);
  color: #000;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  font-family: inherit;
}

.btn-submit-order:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.order-note {
  font-size: 0.78rem;
  color: var(--text-dim, #9aa2b1);
  line-height: 1.5;
}

.order-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.order-success .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.order-success h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #10b981;
  text-transform: none;
  letter-spacing: 0;
}

.order-success p {
  font-size: 0.88rem;
  color: var(--text-dim, #9aa2b1);
  margin: 0;
}

/* ----------- Shop Preview Section (index.html) ----------- */
.shop-preview-section {
  padding: 80px 0;
}

.shop-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.shop-preview-card {
  background: var(--bg-alt, #181b21);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.shop-preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 164, 37, 0.3);
  text-decoration: none;
  color: inherit;
}

.preview-img-box {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a1d24, #232830);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.08);
}

.preview-img-box .preview-emoji {
  font-size: 80px;
  filter: drop-shadow(0 4px 16px rgba(245, 164, 37, 0.25));
}

.preview-info {
  padding: 20px;
}

.preview-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text, #f5f7fa);
}

.preview-info .preview-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent, #f5a425);
}

.shop-preview-cta {
  text-align: center;
}

.shop-preview-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  padding: 14px 36px;
}

/* ----------- Info Banner ----------- */
.shop-info-banner {
  background: rgba(245, 164, 37, 0.06);
  border: 1px solid rgba(245, 164, 37, 0.18);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 40px;
}

.shop-info-banner .info-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.shop-info-banner .info-text h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent, #f5a425);
}

.shop-info-banner .info-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim, #9aa2b1);
  line-height: 1.6;
}

/* ----------- Responsive ----------- */
@media (max-width: 640px) {
  .shop-hero {
    padding: 100px 0 60px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .order-form .form-row {
    grid-template-columns: 1fr;
  }

  .shop-modal {
    border-radius: 18px 18px 0 0;
    max-height: 95vh;
  }

  .shop-modal-overlay.open {
    align-items: flex-end;
    padding: 0;
  }

  .wallet-address {
    font-size: 0.68rem;
  }

  .shop-info-banner {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .shop-preview-grid {
    grid-template-columns: 1fr;
  }
}
