/* Shared dynamic-page components. Consolidated in original cascade order. */
.function-page{padding:48px 0;background:#f9fafb;min-height:60vh}.function-wrap{width:min(1080px,calc(100% - 32px));margin:0 auto}.function-wrap.narrow{max-width:620px}.function-title{font-family:var(--font-serif);font-size:32px;color:var(--brand-dark);margin:0 0 24px}.function-grid{display:grid;grid-template-columns:1fr;gap:24px}.function-card{background:#fff;border:1px solid var(--border-color);border-radius:8px;padding:24px}.function-form{display:grid;gap:18px}.function-field{display:grid;gap:7px}.function-field label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.function-input{width:100%;border:1px solid var(--border-color);border-radius:5px;padding:12px 14px;background:#fff;color:var(--text-main)}textarea.function-input{min-height:100px;resize:vertical}.function-alert{padding:12px 14px;border-radius:5px;margin-bottom:18px}.function-alert.error{background:#fff1f2;color:#9f1239}.function-alert.success{background:#ecfdf5;color:#065f46}.function-muted{color:var(--text-muted);font-size:14px}.function-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.account-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.account-nav a{padding:9px 13px;border:1px solid var(--border-color);border-radius:99px;font-size:12px;font-weight:700}.function-table{width:100%;border-collapse:collapse}.function-table th,.function-table td{text-align:left;border-bottom:1px solid var(--border-color);padding:13px 8px;vertical-align:top}.function-table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em}.product-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.product-result{border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background:#fff}.product-result img{width:100%;aspect-ratio:1;object-fit:cover;background:#f3f4f6}.product-result-body{padding:14px}.product-result-title{font-family:var(--font-serif);font-size:17px;line-height:1.3}.function-price{font-weight:700;color:var(--brand-red);margin-top:8px}.cart-line{display:grid;grid-template-columns:82px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--border-color)}.cart-line img{width:82px;height:82px;object-fit:cover;background:#f3f4f6}.cart-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;font-size:20px}.checkout-grid{display:grid;gap:24px}.address-card{border:1px solid var(--border-color);border-radius:7px;padding:16px}.order-items{display:grid;gap:10px}.order-item{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border-color)}.pagination{display:flex;gap:8px;justify-content:center;margin-top:24px}.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--border-color);border-radius:4px}.pagination .current{background:var(--brand-dark);color:#fff}.inline-form{display:inline}.danger-link{color:#b91c1c;background:none;border:0;cursor:pointer}.empty-state{text-align:center;padding:48px 20px}.summary-list{display:grid;gap:10px}.summary-row{display:flex;justify-content:space-between;gap:16px}.function-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.function-kpi{padding:18px;background:#f9fafb;border-radius:6px}.function-kpi strong{display:block;font-size:22px;margin-top:4px}@media(min-width:760px){.function-grid.two{grid-template-columns:1fr 1fr}.checkout-grid{grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr)}.product-results{grid-template-columns:repeat(4,minmax(0,1fr))}.function-kpis{grid-template-columns:repeat(4,1fr)}.cart-line{grid-template-columns:110px 1fr auto}.cart-line img{width:110px;height:110px}}

/* Checkout components. */
.checkout-section-title{font-family:var(--font-serif);font-size:21px;margin:14px 0 2px}.checkout-summary h2{font-family:var(--font-serif);font-size:22px;margin-bottom:18px}.checkout-order-item,.order-detail-item{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border-color)}.checkout-order-item img,.order-detail-item img{width:64px;height:64px;object-fit:cover;background:#f3f4f6}.checkout-confirm{display:flex;gap:10px;margin:24px 0;font-size:13px;line-height:1.45}.registration-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}@media(max-width:520px){.checkout-order-item,.order-detail-item{grid-template-columns:54px 1fr}.checkout-order-item img,.order-detail-item img{width:54px;height:54px}.checkout-order-item>strong,.order-detail-item>strong{grid-column:2}}

/* Search, registration and order-detail pages. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.btn-block{display:flex;width:100%;align-items:center;justify-content:center}
.search-page{background:linear-gradient(180deg,#fff 0,#f9fafb 280px)}
.search-heading{text-align:center;max-width:680px;margin:0 auto 28px}
.search-heading .function-title{margin-bottom:8px}
.search-eyebrow{margin:0 0 7px;color:var(--brand-red);font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.search-form{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;max-width:880px;margin:0 auto 34px;padding:10px;background:#fff;border:1px solid var(--border-color);border-radius:10px;box-shadow:0 12px 35px rgba(17,24,39,.07)}
.search-form .function-input{border:0;box-shadow:none;padding-left:0;font-size:16px}
.search-form .function-input:focus{outline:0}
.search-icon{padding-left:8px;color:var(--text-muted);font-size:24px}
.search-clear{font-size:12px;font-weight:700;color:var(--text-muted)}
.search-empty{max-width:720px;margin:0 auto;text-align:center;padding:58px 24px}
.search-empty h2{font-family:var(--font-serif);font-size:25px;margin:8px 0}
.search-empty p{color:var(--text-muted);margin:0 auto 22px;max-width:510px}
.search-empty-icon{display:block;color:var(--brand-red);font-size:38px}
.search-result-bar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--border-color);font-size:14px;color:var(--text-muted)}
.search-result-bar strong{color:var(--text-main)}
.product-results{gap:22px}
.product-result{display:flex;flex-direction:column;border-radius:10px;transition:transform .2s ease,box-shadow .2s ease}
.product-result:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(17,24,39,.1)}
.product-result-image{display:block;overflow:hidden;background:#f5f3f1;aspect-ratio:1}
.product-result-image img{height:100%;transition:transform .35s ease}
.product-result:hover .product-result-image img{transform:scale(1.025)}
.product-image-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:42px;color:#d1a3ad}
.product-result-body{display:flex;flex:1;flex-direction:column;padding:17px}
.product-result-code{margin-bottom:7px;color:var(--text-light);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.product-result-body h2{margin:0}
.product-result-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:18px}
.product-result-type{display:-webkit-box;overflow:hidden;margin:8px 0;color:var(--text-muted);font-size:12px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.product-result-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px}
.product-result-footer .function-price{margin:0;font-size:18px}
.product-view-link{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.search-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;margin-top:34px}
.page-link{display:inline-flex;min-width:39px;height:39px;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--border-color);border-radius:6px;background:#fff;font-size:13px;font-weight:700}
.page-link:hover{border-color:var(--brand-dark)}
.page-link.current{border-color:var(--brand-dark);background:var(--brand-dark);color:#fff}
.page-direction{padding:0 16px}.page-gap{color:var(--text-muted)}
.registration-card{padding:32px}
.order-detail-page{background:#f7f7f6}
.order-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:26px;color:var(--text-muted);font-size:12px}
.order-breadcrumb a{color:var(--text-main)}
.order-page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}
.order-page-header .function-title{margin:0 0 6px;font-size:34px}
.order-status-badge{display:inline-flex;align-items:center;padding:9px 15px;border-radius:999px;background:#111827;color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em}
.order-payment-card{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:24px;padding:20px 22px;border:1px solid #f0c3ce;border-left:4px solid var(--brand-red);border-radius:8px;background:#fff8fa}
.order-payment-card strong{font-family:var(--font-serif);font-size:20px}.order-payment-card p{margin:4px 0 0;color:var(--text-muted);font-size:13px}
.order-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);align-items:start;gap:24px}
.order-main{display:grid;gap:20px}
.order-section{padding:25px}
.order-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--border-color)}
.order-section-heading h2{margin:0;font-family:var(--font-serif);font-size:21px}
.order-section-number{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:var(--brand-dark);color:#fff;font-size:11px;font-weight:700}
.order-data-list{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;margin:0}
.order-data-list>div{display:grid;gap:5px}.order-data-list .full{grid-column:1/-1}
.order-data-list dt{color:var(--text-light);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.order-data-list dd{margin:0;color:var(--text-main);font-size:14px;line-height:1.6}
.order-note{padding:14px 16px;border-radius:6px;background:#f9fafb}
.order-card-message{margin:0;padding:20px 22px;border:0;border-radius:7px;background:#fff8fa;color:#5f3440;font-family:var(--font-serif);font-size:17px;font-style:italic;line-height:1.65}
.order-summary-card{position:sticky;top:90px;padding:24px}
.order-summary-card>h2{margin:0 0 20px;font-family:var(--font-serif);font-size:23px}
.order-summary-items{display:grid;gap:16px}
.order-summary-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--border-color)}
.order-summary-image{position:relative;display:flex;width:64px;height:64px;align-items:center;justify-content:center;border:1px solid var(--border-color);border-radius:6px;background:#f3f4f6;color:#d1a3ad;overflow:visible}
.order-summary-image img{width:100%;height:100%;border-radius:6px;object-fit:cover;overflow:hidden}
.order-summary-image b{position:absolute;top:-8px;right:-8px;display:flex;width:22px;height:22px;align-items:center;justify-content:center;border:2px solid #fff;border-radius:50%;background:var(--brand-dark);color:#fff;font-size:10px}
.order-summary-name{display:-webkit-box;overflow:hidden;color:var(--text-main);font-size:13px;font-weight:700;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.order-summary-item small{display:block;margin-top:5px;color:var(--text-muted);font-size:11px}
.order-summary-item>strong{font-size:13px}
.order-summary-meta,.order-summary-total{display:flex;justify-content:space-between;gap:18px;margin-top:16px;font-size:13px}
.order-summary-meta{color:var(--text-muted)}
.order-summary-total{align-items:center;margin:18px 0;padding-top:18px;border-top:1px solid var(--brand-dark);font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.order-summary-total strong{color:var(--brand-dark);font-family:var(--font-serif);font-size:25px}
@media(max-width:820px){.order-layout{grid-template-columns:1fr}.order-summary-card{position:static}.search-result-bar{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:600px){.function-page{padding:32px 0}.search-form{grid-template-columns:auto minmax(0,1fr);gap:6px}.search-form .btn{grid-column:1/-1;width:100%}.search-clear{padding-right:8px}.search-icon{display:none}.product-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-result-body{padding:12px}.product-result-title{font-size:15px}.product-view-link{display:none}.page-direction{width:100%}.order-page-header,.order-payment-card{align-items:flex-start;flex-direction:column}.order-page-header .function-title{font-size:27px}.order-data-list{grid-template-columns:1fr}.order-data-list .full{grid-column:auto}.order-section{padding:20px}.order-summary-item{grid-template-columns:56px minmax(0,1fr) auto}.order-summary-image{width:56px;height:56px}.registration-card{padding:23px}}

/* Search waterfall and content-index additions. */
.search-waterfall{display:grid;justify-items:center;gap:12px;margin-top:28px;text-align:center}
.search-waterfall[hidden]{display:none}
.search-load-more{min-width:190px}
.search-load-status{min-height:22px;margin:0;color:var(--text-muted);font-size:13px}
.search-load-sentinel{width:100%;height:2px}
.search-result-count{font-variant-numeric:tabular-nums}
.content-index-heading{margin-bottom:24px;text-align:center}
.content-index-heading .function-title{margin-bottom:8px}
.content-index-list{display:grid;gap:14px}
.content-index-item{padding:20px 22px}
.content-index-item h2{margin:5px 0 7px;font-family:var(--font-serif);font-size:22px;line-height:1.3}
.content-index-item p{margin:0;color:var(--text-muted);line-height:1.65}
.content-index-meta{display:flex;gap:12px;color:var(--text-light);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:600px){.search-load-more{width:100%}.content-index-item{padding:17px}.content-index-item h2{font-size:19px}}
@media(max-width:767px){.search-page .function-wrap{width:min(1080px,calc(100% - 16px))}.search-page .product-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.search-page .product-result-image{aspect-ratio:4/5}.search-page .product-result-body{padding:10px 8px}.search-page .product-result-title{font-size:15px;-webkit-line-clamp:1}.search-page .product-result-type{margin:5px 0;-webkit-line-clamp:1}.search-page .product-result-footer{padding-top:7px}.search-page .product-view-link{display:none}}
