@import url("cart-sidebar.css");
@import url("cart-icon.css");

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #333;
}

body.sticky-toolbar-on {
  padding-bottom: 55px;
}

@media (min-width: 1025px) {
  body.sticky-toolbar-on {
    padding-bottom: 0;
  }
}

.ps-store-page {
  padding: 40px 20px;
}

.ps-store-main.container {
  max-width: 1100px;
  margin: 0 auto;
}

.ps-page-title {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.ps-checkout-grid,
.ps-form-row-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

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

.ps-checkout-panel,
.ps-cart-totals {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background: #1d1d22;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 35px;
  cursor: pointer;
}

.button.alt {
  background: #0693e3;
}

.woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

.woocommerce-message,
.woocommerce-error {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.woocommerce-message {
  background: #e8f7ee;
  color: #1f6b3b;
}

.woocommerce-error {
  background: #fdecec;
  color: #9b1c1c;
}

.ps-bitcoin-panel {
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0 24px;
}

.ps-bitcoin-panel code {
  word-break: break-all;
}

.ps-muted {
  color: #666;
  font-size: 0.92rem;
}

.ps-shipping-options {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.ps-shipping-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
}

.ps-shipping-option:has(input:checked) {
  border-color: #0693e3;
  background: #f2f9ff;
}

.ps-shipping-option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ps-shipping-option input {
  width: auto;
  margin-top: 4px;
}

.ps-shipping-option-body {
  display: grid;
  gap: 4px;
  flex: 1;
}

.ps-shipping-option-fee {
  font-weight: 700;
  color: #1d1d22;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.shop_table td,
.shop_table th {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.firebase-cart-qty {
  width: 80px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  pointer-events: auto;
  touch-action: manipulation;
  background: #fff;
  color: #222;
}

.ps-cart-qty-stepper {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.ps-cart-qty-btn {
  flex: 0 0 32px;
  width: 32px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f5f5f5;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ps-cart-qty-btn:hover {
  background: #ebebeb;
}

.ps-cart-qty-btn:active {
  background: #e0e0e0;
}

.ps-cart-qty-stepper .firebase-cart-qty {
  flex: 0 0 44px;
  width: 44px;
  min-width: 0;
  min-height: 36px;
  padding: 4px 2px;
  margin: 0;
  border: 0;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-radius: 0;
  text-align: center;
  font-size: 15px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.ps-cart-qty-stepper .firebase-cart-qty::-webkit-outer-spin-button,
.ps-cart-qty-stepper .firebase-cart-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-quantity .firebase-cart-qty {
  position: relative;
  z-index: 2;
}

.login-form-side.wd-opened form.login {
  display: block !important;
}

.login-form-side .woocommerce-notices-wrapper:not(:empty) {
  margin-bottom: 12px;
}

.login-form-side .woocommerce-error,
.login-form-side .woocommerce-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.login-form-side .woocommerce-error {
  background: #fdecea;
  color: #b42318;
}

.login-form-side .woocommerce-message {
  background: #ecfdf3;
  color: #027a48;
}

.product-detail-qty input[type="number"] {
  width: 88px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.ps-cart-item-image,
.product-thumbnail .ps-cart-item-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.ps-cart-item-image img,
.product-thumbnail img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.ps-checkout-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-checkout-cart-item .ps-cart-item-image {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.ps-checkout-cart-item .ps-cart-item-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.ps-checkout-cart-item-name {
  line-height: 1.4;
}

.ps-cart-totals {
  margin-top: 24px;
  max-width: 360px;
  margin-left: auto;
}

.ps-wishlist-grid {
  display: grid;
  gap: 16px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
}

.product-detail-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
}

.product-detail-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: #f0f0f0;
  color: #888;
  border-radius: 8px;
}

.product_title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.3;
}

.product-price-wrap {
  margin-bottom: 20px;
  font-size: 22px;
}

.product-description {
  margin-bottom: 24px;
  line-height: 1.6;
  color: #555;
}

.product-payment-note {
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-weight: 600;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.product-detail-qty {
  margin: 16px 0;
}

.product-detail-qty label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-detail-qty input {
  width: 88px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.product-stock {
  font-weight: 600;
  margin: 8px 0 12px;
}

.product-stock.instock {
  color: #1f6b3b;
}

.product-stock.outofstock {
  color: #9b1c1c;
}

.product-stock.onbackorder {
  color: #9a6700;
}

.product-detail-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.ps-product-navigable .product-wrapper {
  cursor: pointer;
}

.breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #0693e3;
  text-decoration: none;
}

@media (max-width: 768px) {
  .ps-checkout-grid,
  .ps-form-row-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

.ps-compare-root {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}

.ps-compare-empty {
  text-align: center;
  padding: 24px 12px;
}

.ps-compare-table-wrapper {
  overflow-x: auto;
}

.ps-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.ps-compare-table th,
.ps-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  text-align: left;
}

.ps-compare-table thead th {
  background: #fafafa;
}

.ps-compare-table tbody th {
  font-weight: 600;
  width: 140px;
  background: #fafafa;
}

.ps-compare-table h3 {
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.35;
}

.ps-compare-table h3 a,
.ps-compare-table .firebase-compare-remove {
  color: #0693e3;
  text-decoration: none;
}

.ps-compare-table img {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
}

.return-to-shop {
  margin-top: 20px;
}

body.ps-modal-open {
  overflow: hidden;
}

.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ps-modal[hidden] {
  display: none;
}

.ps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ps-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ps-modal-card h2 {
  margin: 0 0 12px;
}

.ps-modal-card p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.ps-modal-card .button {
  margin-top: 8px;
}

.ps-order-status-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.ps-order-status-banner p {
  margin: 6px 0 0;
}

.ps-order-status-banner--info {
  background: #eef6ff;
  border: 1px solid #b8d9ff;
  color: #1d4f91;
}

.ps-order-status-banner--success {
  background: #e8f7ee;
  border: 1px solid #a8ddb8;
  color: #1f6b3b;
}

.ps-auth-hidden {
  display: none !important;
}

.order-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.order-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.order-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

#checkout-cart-preview {
  margin-bottom: 20px;
}

.ps-checkout-auth-gate {
  max-width: 640px;
  margin: 0 auto 24px;
}

.ps-checkout-auth-gate + #checkout-cart-preview {
  margin-top: 0;
}

.ps-checkout-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ps-checkout-signed-in {
  background: #e8f7ee;
  border: 1px solid #b8e6c8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.ps-checkout-signed-in a {
  color: #0693e3;
}

#bitcoin-wallet {
  word-break: break-all;
}

