#pv-widget-root {
  font-family: 'Roboto', sans-serif;
  padding: 20px;
  background: #f8fafc;
  min-height: 100vh;
}

#pv-widget-root .pv-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

#pv-widget-root .pv-filters input,
#pv-widget-root .pv-filters select {
  padding: 8px 14px;
  min-height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

#pv-widget-root .pv-filters input:focus,
#pv-widget-root .pv-filters select:focus {
  border-color: #2657a4;
}

#pv-widget-root .pv-cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#pv-widget-root .pv-cart-status {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

#pv-widget-root .pv-cart-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

#pv-widget-root .pv-cart-actions .pv-btn {
  width: auto;
  margin-top: 0;
  min-height: 40px;
  white-space: nowrap;
}

#pv-widget-root #pv-cart-checkout {
  width: auto;
  min-width: 140px;
  margin-top: 0;
}

#pv-widget-root #pv-cart-view {
  width: auto;
  min-width: 190px;
  margin-top: 0;
}

#pv-widget-root #pv-cart-checkout:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

#pv-widget-root .pv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#pv-widget-root .pv-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

#pv-widget-root .pv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#pv-widget-root .pv-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#pv-widget-root .pv-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pv-widget-root .pv-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
  min-height: 54px;
}

#pv-widget-root .pv-card .pv-price {
  font-size: 15px;
  font-weight: 700;
  color: #2657a4;
  margin-top: auto;
  padding-top: 8px;
}

#pv-widget-root .pv-card .pv-delivery {
  font-size: 11px;
  color: #e30613;
  margin-top: 2px;
}

#pv-widget-root .pv-btn {
  margin-top: 10px;
  padding: 8px 12px;
  min-height: 42px;
  width: 100%;
  background: #2657a4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}

#pv-widget-root .pv-btn:hover {
  background: #1e4685;
}

#pv-widget-root .pv-btn.pv-btn-disabled {
  background: #9ca3af;
  cursor: default;
}

#pv-widget-root .pv-empty {
  text-align: center;
  color: #6b7280;
  padding: 40px;
  grid-column: 1 / -1;
}

#pv-widget-root .pv-loading {
  text-align: center;
  padding: 60px;
  color: #6b7280;
}

.pv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483000;
  padding: 16px;
}

.pv-modal.is-open {
  display: flex;
}

.pv-modal-dialog {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  position: relative;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.pv-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pv-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px;
}

.pv-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.pv-modal-main-img {
  display: block;
  width: 100%;
  height: min(62vh, 520px);
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.16));
}

.pv-modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pv-thumb {
  width: 74px;
  height: 74px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  min-width: 74px;
  overflow: hidden;
  appearance: none;
}

.pv-thumb.is-active {
  border-color: #2657a4;
  box-shadow: 0 0 0 2px rgba(38, 87, 164, 0.16);
}

.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.pv-modal-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv-modal-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-modal-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}

.pv-modal-price-pill {
  width: fit-content;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  padding: 8px 14px;
}

.pv-modal-chip-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pv-chip {
  background: #eff6ff;
  color: #1e4a8a;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.pv-modal-description {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.45;
}

.pv-delivery-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.pv-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.pv-modal-actions .pv-btn {
  margin-top: 0;
}

.pv-btn-cart {
  background: #27ae60;
}

.pv-btn-cart:hover {
  background: #218838;
}

.pv-btn-checkout {
  background: #2657a4;
}

.pv-btn-checkout:hover {
  background: #1e4a8a;
}

.pv-btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
  margin-top: 10px;
}

.pv-btn-secondary:hover {
  background: #d1d5db;
}

.pv-cart-feedback {
  min-height: 18px;
  margin-top: 8px;
  color: #10b981;
  font-size: 13px;
  font-weight: 500;
}

.pv-add-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483001;
  width: min(420px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  padding: 12px;
  display: none;
}

.pv-add-popup.is-open {
  display: block;
}

.pv-add-popup-title {
  font-size: 14px;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 4px;
}

.pv-add-popup-text {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 10px;
}

.pv-add-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pv-add-popup-actions .pv-btn {
  margin-top: 0;
}

.pv-cart-dialog {
  width: min(900px, 100%);
}

.pv-cart-body {
  padding: 24px;
}

.pv-cart-body h3 {
  margin: 0 0 14px;
  color: #2657a4;
  font-size: 24px;
}

.pv-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 56vh;
  overflow: auto;
}

.pv-cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
}

.pv-cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.pv-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.pv-cart-item-price {
  font-size: 13px;
  color: #6b7280;
}

.pv-cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-cart-qty button {
  width: 34px;
  height: 34px;
  border: 1px solid #1e4a8a;
  background: #2657a4;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  opacity: 1;
}

.pv-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-family: Roboto, sans-serif;
}

.pv-qty-symbol {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.pv-qty-btn:hover {
  background: #1e4a8a;
  border-color: #1e3a8a;
}

.pv-cart-remove {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.pv-cart-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pv-cart-total {
  font-size: 20px;
  color: #2657a4;
  font-weight: 700;
}

.pv-cart-footer-actions {
  display: flex;
  gap: 10px;
}

.pv-cart-footer-actions .pv-btn {
  margin-top: 0;
  min-width: 170px;
}

@media (max-width: 1200px) {
  #pv-widget-root .pv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #pv-widget-root .pv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pv-widget-root .pv-cart-bar {
    flex-direction: column;
    align-items: stretch;
  }

  #pv-widget-root #pv-cart-checkout {
    width: 100%;
  }

  #pv-widget-root #pv-cart-view {
    width: 100%;
  }

  #pv-widget-root .pv-cart-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #pv-widget-root .pv-cart-actions .pv-btn {
    width: 100%;
  }

  .pv-modal-body {
    grid-template-columns: 1fr;
  }

  .pv-modal-title {
    font-size: 30px;
  }

  .pv-modal-actions {
    grid-template-columns: 1fr;
  }

  .pv-add-popup {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .pv-add-popup-actions {
    grid-template-columns: 1fr;
  }

  .pv-cart-item {
    grid-template-columns: 60px 1fr;
  }

  .pv-cart-item img {
    width: 60px;
    height: 60px;
  }

  .pv-cart-qty {
    justify-content: flex-start;
  }

  .pv-cart-remove {
    width: 100%;
  }

  .pv-cart-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pv-cart-footer-actions {
    flex-direction: column;
  }

  .pv-cart-footer-actions .pv-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  #pv-widget-root .pv-grid {
    grid-template-columns: 1fr;
  }
}
