@charset "UTF-8";

.shop-header { background: var(--navy); color: white; position: relative; z-index: 20; border-bottom: 1px solid #263249; }
.shop-header-inner { min-height: 74px; display: flex; align-items: center; gap: 1.25rem; }
.shop-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex: 1; }
.shop-nav a { color: #dce5f5; text-decoration: none; font-weight: 650; font-size: .92rem; padding-block: .65rem; white-space: nowrap; }
.shop-nav a:hover, .shop-nav a[aria-current="page"] { color: var(--cyan); }
.shop-header-actions { display: flex; align-items: center; gap: .55rem; }
.shop-icon-button { appearance: none; border: 1px solid #43516a; background: transparent; color: white; min-height: 42px; padding: .48rem .7rem; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; font-weight: 700; text-decoration: none; }
.shop-icon-button:hover { border-color: var(--cyan); }
.shop-cart-button { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.cart-count { min-width: 1.45rem; height: 1.45rem; padding-inline: .3rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--navy); color: white; font-size: .75rem; }
.shop-mobile-menu { display: none; }
.shop-hero { background: linear-gradient(120deg, #090d23 0%, #151b35 58%, #153e4b 100%); color: white; padding-block: clamp(2.4rem, 6vw, 5.5rem); }
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 2rem; align-items: center; }
.shop-hero h1 { font-size: clamp(2.4rem, 5.3vw, 4.9rem); max-width: 13ch; margin-bottom: 1rem; }
.shop-hero .lede { color: #d1e0ee; max-width: 42rem; }
.shop-hero .button-primary { background: var(--cyan); color: var(--navy); }
.shop-hero .button-outline { color: white; background: transparent; border-color: #7793a6; }
.shop-hero-card { border: 1px solid #4d6778; border-radius: 1rem; background: rgb(255 255 255 / 7%); padding: 1.4rem; backdrop-filter: blur(12px); }
.shop-hero-card h2 { font-size: 1.3rem; }
.shop-hero-card ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.shop-hero-card li { display: flex; align-items: flex-start; gap: .65rem; color: #dce8f2; line-height: 1.45; }
.shop-hero-card li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
.shop-kicker { color: var(--cyan); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: .8rem; }
html[lang="ar"] .shop-kicker { letter-spacing: 0; }
.shop-staging { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem; border: 1px solid #4d6778; border-radius: 999px; color: #dce8f2; font-size: .78rem; font-weight: 700; margin-bottom: 1rem; }
.shop-staging::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #f6c760; }
.shop-toolbar-section { padding-block: 1.5rem 0; }
.shop-toolbar { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr)); gap: .75rem; align-items: end; }
.shop-toolbar .field input, .shop-toolbar .field select { background: white; }
.shop-category-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.shop-category-chip { border: 1px solid #c6d4dc; border-radius: 999px; background: white; color: var(--ink); padding: .48rem .85rem; font-weight: 700; font-size: .84rem; cursor: pointer; }
.shop-category-chip:hover, .shop-category-chip.is-active { background: var(--navy); border-color: var(--navy); color: white; }
.shop-results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 1.4rem 1rem; }
.shop-results-head p { margin: 0; color: var(--muted); }
.shop-results-head a { color: var(--cyan-dark); font-weight: 700; font-size: .88rem; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.shop-product-card { min-width: 0; border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; background: white; display: flex; flex-direction: column; transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.shop-product-card:hover { border-color: #82c4d1; box-shadow: var(--shadow); transform: translateY(-2px); }
.shop-product-image { display: block; aspect-ratio: 5 / 4; background: #f8f8f6; overflow: hidden; border-bottom: 1px solid var(--line); }
.shop-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 180ms ease; }
.shop-product-image:hover img { transform: scale(1.035); }
.shop-product-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.shop-brand { color: var(--cyan-dark); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
html[lang="ar"] .shop-brand { letter-spacing: 0; }
.shop-product-body h2, .shop-product-body h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: .5rem; }
.shop-product-body h2 a, .shop-product-body h3 a { text-decoration: none; }
.shop-product-body h2 a:hover, .shop-product-body h3 a:hover { color: var(--cyan-dark); }
.shop-model { color: var(--muted); font-size: .78rem; margin-bottom: .6rem; overflow-wrap: anywhere; }
.shop-summary { color: var(--muted); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-price-row { margin-top: auto; padding-top: .8rem; display: flex; align-items: end; justify-content: space-between; gap: .5rem; }
.shop-price { font-size: 1.25rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.shop-price-label { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; margin-bottom: .2rem; }
.shop-market-low { color: var(--muted); font-size: .72rem; text-align: end; max-width: 9rem; }
.shop-card-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: .85rem; }
.shop-card-actions .button { min-height: 42px; padding: .6rem .7rem; font-size: .85rem; }
.shop-add-icon { width: 42px; padding-inline: 0 !important; }
.shop-empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; border: 1px dashed #aebdc7; border-radius: .8rem; }
.shop-benefits { background: var(--paper); border-block: 1px solid var(--line); margin-top: 3rem; }
.shop-benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.shop-benefit { padding: 1rem; border-left: 2px solid #7bc4d2; }
html[dir="rtl"] .shop-benefit { border-left: 0; border-right: 2px solid #7bc4d2; }
.shop-benefit h3 { font-size: 1rem; }
.shop-benefit p { color: var(--muted); font-size: .86rem; margin: 0; }
.shop-breadcrumb { padding-block: 1rem 0; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.shop-product-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.shop-detail-image { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: #fafaf8; border: 1px solid var(--line); border-radius: .9rem; }
.shop-detail-info h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.shop-detail-info .shop-price { font-size: 2rem; }
.shop-detail-price { padding-block: 1rem; border-block: 1px solid var(--line); margin-block: 1rem; }
.shop-feature-list { padding-inline-start: 1.2rem; line-height: 1.6; color: var(--muted); }
.shop-feature-list li { margin-bottom: .45rem; }
.shop-feature-list li::marker { color: var(--cyan-dark); }
.shop-purchase-row { display: flex; gap: .65rem; align-items: stretch; flex-wrap: wrap; margin-block: 1rem; }
.shop-quantity { width: 86px; min-height: 46px; border: 1px solid #a9b8c8; border-radius: .55rem; padding: .6rem; }
.shop-note { padding: .9rem 1rem; background: #edf7f8; border: 1px solid #c5e0e5; border-radius: .65rem; color: #244b55; font-size: .9rem; line-height: 1.55; }
.shop-note.warning { background: #fff8e8; border-color: #ebd49e; color: #5d4612; }
.shop-note.error { background: #fff0f2; border-color: #efb8c2; color: #822b40; }
.shop-market-section { background: var(--paper); border-block: 1px solid var(--line); }
.shop-market-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); }
.shop-market-table th, .shop-market-table td { padding: .75rem .85rem; text-align: start; border-bottom: 1px solid var(--line); }
.shop-market-table th { font-size: .8rem; color: var(--muted); background: #f2f3ef; }
.shop-market-table tr:last-child td { border-bottom: 0; }
.shop-market-table a { color: var(--cyan-dark); font-weight: 700; }
.shop-table-wrap { overflow-x: auto; border-radius: .6rem; }
.shop-source-note { color: var(--muted); font-size: .8rem; margin-top: .7rem; }
.shop-related { padding-bottom: 4rem; }
.shop-related .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cart-dialog { border: 0; padding: 0; width: min(100% - 1.5rem, 470px); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; background: white; color: var(--ink); box-shadow: -1rem 0 3rem rgb(0 0 0 / 20%); }
html[dir="rtl"] .cart-dialog { margin: 0 auto 0 0; }
.cart-dialog::backdrop { background: rgb(4 9 24 / 60%); backdrop-filter: blur(2px); }
.cart-panel { height: 100%; display: flex; flex-direction: column; }
.cart-head { padding: 1.2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.45rem; margin: 0; }
.cart-close { border: 1px solid var(--line); background: white; border-radius: .45rem; width: 40px; height: 40px; cursor: pointer; font-size: 1.2rem; }
.cart-lines { padding: 1rem 1.2rem; display: grid; gap: .85rem; overflow-y: auto; flex: 1; }
.cart-line { display: grid; grid-template-columns: 70px 1fr; gap: .75rem; border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
.cart-line img { width: 70px; height: 65px; object-fit: contain; background: #fafaf8; border: 1px solid var(--line); border-radius: .4rem; }
.cart-line h3 { font-size: .9rem; margin-bottom: .25rem; }
.cart-line-brand { font-size: .73rem; color: var(--muted); }
.cart-line-bottom { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .5rem; }
.cart-line-price { font-weight: 800; font-size: .9rem; }
.cart-qty-control { display: flex; align-items: center; gap: .35rem; }
.cart-qty-control button { width: 28px; height: 28px; border: 1px solid #b7c2c9; background: white; border-radius: .35rem; cursor: pointer; }
.cart-qty-control span { min-width: 1.2rem; text-align: center; font-weight: 700; }
.cart-remove { border: 0; background: none; color: #8d3346; padding: .2rem 0; font-size: .75rem; cursor: pointer; text-decoration: underline; }
.cart-total { padding: 1rem 1.2rem; border-top: 1px solid var(--line); background: var(--paper); }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin-bottom: .75rem; }
.cart-total .button { width: 100%; }
.cart-empty { text-align: center; color: var(--muted); padding-block: 3rem; }
.shop-footer { background: var(--navy); color: #c8d5e9; padding-block: 2rem; }
.shop-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shop-footer a { color: #d8f7fc; margin-inline-start: 1rem; }
.shop-footer small { display: block; margin-top: .5rem; color: #9fb0c8; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 2rem; align-items: start; }
.checkout-form { display: grid; gap: 1rem; }
.checkout-section { border: 1px solid var(--line); border-radius: .75rem; padding: 1.2rem; }
.checkout-section h2 { font-size: 1.25rem; }
.checkout-section .grid-two { gap: .8rem; }
.checkout-radios { display: grid; gap: .55rem; }
.checkout-radio { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem; border: 1px solid #c5cfd5; border-radius: .55rem; cursor: pointer; }
.checkout-radio:has(input:checked) { border-color: var(--cyan-dark); background: #eef9fa; }
.checkout-radio input { margin-top: .3rem; }
.checkout-radio strong { display: block; }
.checkout-radio small { display: block; color: var(--muted); margin-top: .2rem; line-height: 1.4; }
.checkout-summary { position: sticky; top: 1rem; }
.checkout-summary-lines { display: grid; gap: .65rem; margin-block: 1rem; }
.checkout-summary-line { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; }
.checkout-summary-line span:last-child { font-weight: 700; white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .8rem; font-size: 1.2rem; font-weight: 800; }
.installment-fields { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.checkout-receipt { max-width: 760px; margin-inline: auto; text-align: center; }
.checkout-receipt-id { display: inline-block; padding: .7rem 1rem; background: var(--navy); color: var(--cyan); border-radius: .55rem; font-size: 1.3rem; font-weight: 800; margin-block: .8rem; }
.design-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 1.5rem; align-items: start; }
.design-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.design-progress span { padding: .55rem; text-align: center; border-bottom: 3px solid #d4dce0; color: var(--muted); font-size: .82rem; font-weight: 700; }
.design-progress span.is-active { border-color: var(--cyan-dark); color: var(--cyan-dark); }
.design-step { border: 1px solid var(--line); border-radius: .75rem; padding: 1.2rem; }
.design-step h2 { font-size: 1.35rem; }
.design-step .field input[type="number"] { max-width: 100%; }
.design-step-actions { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1rem; }
.design-preview { position: sticky; top: 1rem; }
.design-roof-area { padding: .65rem; background: #eef7f8; border-radius: .45rem; font-weight: 700; color: var(--cyan-dark); }
.design-kit { display: grid; gap: .65rem; margin-block: .8rem; }
.design-kit-item { display: grid; grid-template-columns: 50px 1fr; gap: .6rem; align-items: center; }
.design-kit-item img { width: 50px; height: 50px; object-fit: contain; border: 1px solid var(--line); border-radius: .35rem; }
.design-kit-item strong { display: block; font-size: .82rem; }
.design-kit-item small { color: var(--muted); }
.design-price-estimate { border-top: 1px solid var(--line); padding-top: .75rem; font-weight: 800; }
.design-terms { color: var(--muted); font-size: .82rem; line-height: 1.5; }

@media (max-width: 1120px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-nav { gap: .7rem; }
  .shop-nav a { font-size: .84rem; }
  .shop-benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shop-mobile-menu { display: inline-flex; }
  .shop-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--navy); padding: 1rem 1.5rem; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid #38465f; }
  .shop-nav.is-open { display: grid; }
  .shop-header-inner { gap: .65rem; }
  .shop-header-actions { margin-inline-start: auto; }
  .shop-hero-grid, .shop-product-layout, .checkout-layout, .design-layout { grid-template-columns: 1fr; }
  .shop-hero-card { max-width: 600px; }
  .checkout-summary, .design-preview { position: static; }
  .shop-toolbar { grid-template-columns: repeat(2, 1fr); }
  .shop-related .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-header-inner { min-height: 64px; }
  .shop-header .brand-detail, .shop-header-actions .shop-quote-link { display: none; }
  .shop-header .brand-word { font-size: 1.1rem; }
  .shop-header .brand img { width: 34px; height: 34px; }
  .shop-icon-button { min-height: 38px; padding: .4rem .55rem; }
  .shop-grid, .shop-related .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .shop-product-body { padding: .75rem; }
  .shop-product-body h2, .shop-product-body h3 { font-size: .92rem; }
  .shop-summary, .shop-market-low { display: none; }
  .shop-price { font-size: 1.05rem; }
  .shop-card-actions { grid-template-columns: 1fr; }
  .shop-add-icon { display: none; }
  .shop-toolbar { grid-template-columns: 1fr; }
  .shop-results-head { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .shop-benefit-grid { grid-template-columns: 1fr; }
  .shop-hero h1 { font-size: 2.5rem; }
  .shop-market-table { min-width: 650px; }
  .design-step .grid-two, .checkout-section .grid-two { grid-template-columns: 1fr; }
  .cart-dialog { width: 100%; }
}
@media (max-width: 390px) {
  .shop-grid, .shop-related .shop-grid { grid-template-columns: 1fr; }
  .shop-summary, .shop-market-low { display: block; }
  .shop-card-actions { grid-template-columns: 1fr auto; }
  .shop-add-icon { display: inline-flex; }
}
@media print {
  .env-banner, .shop-header, .shop-footer, #cart-root, .checkout-receipt .actions { display: none !important; }
  .checkout-receipt { text-align: start; }
}

.center-actions { justify-content: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 1rem; }
.mt-08 { margin-top: .8rem; }
.mt-06 { margin-top: .6rem; }

/* Customer policies page */
.policy-body { max-width: 52rem; }
.policy-section { margin-block-end: 2rem; }
.policy-section h2 { margin-block-end: 0.5rem; }
.policy-section ul { padding-inline-start: 1.25rem; line-height: 1.7; }
#shop-more-wrap { margin-block-start: 1.5rem; }
