@charset "UTF-8";

.product-page { max-width: 1160px; margin: 0 auto; }
.product-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.product-back:hover { color: var(--ink); }
.product-preview-notice { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 20px; border: 1px solid #decfe6; border-radius: 10px; background: var(--green-pale); }
.product-preview-notice strong { color: var(--ink); }
.product-preview-notice span { color: var(--muted); font-size: 13px; }
.product-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.product-overview.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-cover { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--green-pale); }
.product-cover img { width: 100%; height: 330px; object-fit: contain; }
.product-cover-error { padding: 70px 24px; text-align: center; color: var(--muted); }
.product-intro { min-width: 0; }
.product-type { display: inline-block; max-width: 100%; margin-bottom: 14px; padding: 4px 12px; border-radius: 6px; background: var(--green-pale); color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
#product-name { font-size: 29px; line-height: 1.5; overflow-wrap: anywhere; }
.product-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.95; }
.product-summary { margin-top: 18px; color: var(--muted); }
.product-offer { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-price-label { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
#product-price { display: block; color: var(--orange-dark); font-size: 28px; font-weight: 650; line-height: 1.5; }
#product-purchase-state { display: inline-block; margin-top: 14px; padding: 9px 20px; color: var(--muted); background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.product-sections { display: grid; gap: 20px; margin-top: 24px; }
.product-section { padding: 28px 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.product-section h2 { margin-bottom: 14px; font-size: 19px; }
.product-unfilled { color: var(--muted); }
.product-state { padding: 70px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; }
.product-state h1 { font-size: 23px; }
.product-state p { margin: 12px 0 24px; color: var(--muted); }
.product-purchase-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 16px 0 10px; }
.product-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.product-catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.product-catalog-card > div:not(.product-catalog-placeholder) { padding: 22px; }
.product-catalog-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-catalog-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--green-pale); color: var(--ink); }
.product-catalog-placeholder svg { width: 48px; height: 48px; }
.product-catalog-card h2 { font-size: 20px; overflow-wrap: anywhere; }
.product-catalog-card p { margin-top: 12px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.product-catalog-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.product-catalog-card footer strong { font-size: 22px; color: var(--orange-dark); }
.purchase-records { display: grid; gap: 18px; }
#purchases-page .customers-tabs a { display: inline-flex; align-items: center; padding: 14px 4px; border-bottom: 3px solid transparent; border-radius: 0; }
.purchase-records .product-section h2 { font-size: 20px; }
.purchase-records .product-section p { margin-bottom: 12px; }
#purchase-content .product-section h3 { margin: 22px 0 10px; font-size: 16px; }
#product-checkout h3 { margin-bottom: 16px; }
