/* ==========================================================================
   ameeza — WordPress layer
   Loaded after site.css + custom.css. Adds only what WordPress and WooCommerce
   need on top of the storefront design system; it never restates a token.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. WordPress furniture
   -------------------------------------------------------------------------- */

.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}
.skip-link:focus{clip-path:none;background:var(--ink);color:#fff;height:auto;left:12px;padding:12px 16px;top:12px;width:auto;z-index:1000}

/* Admin bar must not sit on top of the sticky header. */
body.admin-bar .site-header{top:32px}
@media (width<=782px){body.admin-bar .site-header{top:46px}}
body.admin-bar [id]{scroll-margin-top:128px}

.alignwide{max-width:1400px;margin-inline:auto}
.alignfull{width:100%}
.aligncenter{margin-inline:auto;display:block}
.alignleft{float:left;margin:0 28px 20px 0}
.alignright{float:right;margin:0 0 20px 28px}

img,video{max-width:100%;height:auto}
.wp-caption{max-width:100%}
.wp-caption-text,figcaption{color:var(--muted);font-size:11px;margin-top:10px}

/* The cinematic wrapper (.new-cinema) is deliberately near-black because every
   homepage chapter paints its own background over it. Ordinary pages, the shop
   and the two documents sit on paper instead. */
.ameeza-main{background:var(--paper);color:var(--ink);overflow:clip}

/* --------------------------------------------------------------------------
   2. Prose — page and post body copy in the ameeza voice
   -------------------------------------------------------------------------- */

.ameeza-prose{max-width:820px;color:var(--ink);font-size:16px;line-height:1.85}
.ameeza-prose>*+*{margin-top:22px}
.ameeza-prose p{color:var(--muted)}
.ameeza-prose h2{font-family:var(--serif);font-size:clamp(38px,4vw,58px);font-weight:400;line-height:1;letter-spacing:-.04em;margin-top:64px}
.ameeza-prose h3{font-family:var(--serif);font-size:28px;font-weight:400;margin-top:44px}
.ameeza-prose h4{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--green);margin-top:38px}
.ameeza-prose a{border-bottom:1px solid;padding-bottom:2px}
.ameeza-prose ul,.ameeza-prose ol{padding-left:0;list-style:none}
.ameeza-prose ul li,.ameeza-prose ol li{border-top:1px solid var(--line);color:var(--muted);padding:13px 0;font-size:14px}
.ameeza-prose ol{counter-reset:ameeza}
.ameeza-prose ol li{counter-increment:ameeza}
.ameeza-prose ol li::before{content:counter(ameeza,decimal-leading-zero);color:var(--green);font-size:10px;margin-right:14px}
.ameeza-prose blockquote{font-family:var(--serif);font-size:clamp(26px,3vw,40px);line-height:1.15;letter-spacing:-.03em;margin:48px 0;color:var(--ink)}
.ameeza-prose blockquote p{color:inherit;font-size:inherit}
.ameeza-prose hr{border:0;border-top:1px solid var(--line);margin:56px 0}
.ameeza-prose table{width:100%;border-collapse:collapse;font-size:13px}
.ameeza-prose th,.ameeza-prose td{border-top:1px solid var(--line);padding:14px 0;text-align:left}
.ameeza-prose th{font-weight:500}
.ameeza-prose code{font-family:var(--font-geist-mono);font-size:.9em;background:var(--soft);padding:2px 6px}

.ameeza-page-figure{margin:0 0 60px}
.ameeza-page-figure img{width:100%;height:auto;display:block}

.ameeza-pagination{margin-top:60px;font-size:12px}
.ameeza-pagination .page-numbers{border-bottom:1px solid transparent;margin-right:16px;padding-bottom:5px}
.ameeza-pagination .page-numbers.current{border-bottom-color:var(--ink)}

/* --------------------------------------------------------------------------
   3. Editorial documents (Warranty, Products Guide)
   -------------------------------------------------------------------------- */

.ameeza-doc .inner-page{padding-bottom:0}

/* Design-system sections already carry their own horizontal rhythm, so only
   plain content and the section lead-ins get the page gutter. */
.ameeza-doc-body>.section-title,
.ameeza-doc-body>.ameeza-prose,
.ameeza-doc-body>.ameeza-needs-confirmation,
.ameeza-doc-body>p,
.ameeza-doc-body>h1,
.ameeza-doc-body>h2,
.ameeza-doc-body>h3,
.ameeza-doc-body>ul,
.ameeza-doc-body>ol,
.ameeza-doc-body>figure,
.ameeza-doc-body>details,
.ameeza-doc-body>.wp-block-image,
.ameeza-doc-body>.wp-block-table,
.ameeza-doc-body>.wp-block-quote{padding-left:5vw;padding-right:5vw}

/* Full-bleed grids run edge to edge with only the page gutter around them. */
.ameeza-doc-body>.guide-grid,
.ameeza-doc-body>.compare-grid,
.ameeza-doc-body>.cinema-product-grid{margin:0 5vw 90px;padding:0}

/* The comparison card's price line: one figure, one struck-through was-price. */
.compare-grid>article>strong strong{font-weight:inherit;font-size:inherit}
.compare-grid>article>strong del{margin-left:12px;color:var(--muted);font-size:13px;font-weight:400}

.ameeza-doc-body .ameeza-prose{max-width:820px;padding-bottom:90px}

/* Section lead-ins reuse .section-title from the design system. */
.ameeza-doc-body .section-title{padding-top:clamp(70px,8vw,120px)}

/* Editor-only marker for policy text the business still has to confirm.
   Hidden from visitors entirely — see ameeza_sc_needs_confirmation(). */
.ameeza-needs-confirmation{border:1px dashed var(--green);background:#f2f9f4;padding:24px 26px;margin:28px 0;position:relative}
.ameeza-needs-confirmation>span{display:inline-block;background:var(--green);color:#fff;font-size:9px;letter-spacing:.16em;text-transform:uppercase;padding:5px 9px;margin-bottom:14px}
.ameeza-needs-confirmation p{color:var(--muted);font-size:14px;line-height:1.75;margin:0 0 10px}

/* FAQ accordions (core/details). */
.ameeza-doc-body details,.ameeza-prose details{border-top:1px solid var(--line);padding:20px 0}
.ameeza-doc-body details summary,.ameeza-prose details summary{cursor:pointer;font-size:16px;list-style:none;display:flex;justify-content:space-between;gap:24px}
.ameeza-doc-body details summary::-webkit-details-marker,.ameeza-prose details summary::-webkit-details-marker{display:none}
.ameeza-doc-body details summary::after,.ameeza-prose details summary::after{content:"+";color:var(--green);font-size:18px;line-height:1}
.ameeza-doc-body details[open] summary::after,.ameeza-prose details[open] summary::after{content:"–"}
.ameeza-doc-body details p,.ameeza-prose details p{color:var(--muted);font-size:14px;line-height:1.8;margin:14px 0 0;max-width:720px}

/* --------------------------------------------------------------------------
   4. WooCommerce
   -------------------------------------------------------------------------- */

.ameeza-shop .woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;border:1px solid var(--line);background:#fff;padding:18px 22px;font-size:13px;margin:0 0 28px}
.woocommerce-error{border-color:#d68b8b}
.woocommerce-message{border-color:#b9d9c5;background:#f8fcf9}

.ameeza-loop{list-style:none;padding:0;margin:0}
.ameeza-loop-item{list-style:none}
.ameeza-loop-item .product-card{height:100%}

.woocommerce-result-count,.woocommerce-ordering{font-size:11px;color:var(--muted)}
.woocommerce-ordering select{background:0 0;border:0;color:var(--ink);font:inherit}
.ameeza-shop .woocommerce-products-header{margin-bottom:34px}

.woocommerce-breadcrumb{font-size:11px;color:var(--muted);margin-bottom:26px}
.woocommerce-breadcrumb a{border-bottom:1px solid var(--line)}

/* Single product ---------------------------------------------------------- */
.ameeza-shop .product-commerce{padding-inline:0}
.woocommerce-product-gallery{position:relative}
.woocommerce-product-gallery img{width:100%;height:auto;display:block}
.woocommerce-product-gallery__wrapper{margin:0}
.flex-control-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;list-style:none;padding:14px 0 0;margin:0}
.flex-control-thumbs img{cursor:pointer;opacity:.62;transition:opacity .25s}
.flex-control-thumbs img.flex-active,.flex-control-thumbs img:hover{opacity:1}

.ameeza-shop .entry-summary,.ameeza-shop .summary{padding:36px 0;position:sticky;top:158px}
.ameeza-shop .summary .product_title{font-family:var(--serif);font-size:clamp(46px,4vw,68px);font-weight:400;line-height:.94;letter-spacing:-.04em;margin-bottom:13px}
.ameeza-shop .summary .woocommerce-product-details__short-description{color:var(--muted);font-size:19px;line-height:1.5}
.ameeza-shop .summary .price{display:flex;align-items:baseline;gap:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:30px 0;padding:22px 0}
.ameeza-shop .summary .price strong{font-size:22px;font-weight:500}
.ameeza-shop .summary .price del{color:var(--muted);font-size:13px}
.ameeza-shop .stock{font-size:12px;margin:16px 0}
.ameeza-shop .stock::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:8px}
.ameeza-shop .out-of-stock::before{background:#c0705f}

.ameeza-enquiry{margin-top:26px}
.ameeza-enquiry .add-button{display:inline-block;text-align:center;color:#fff;padding:17px 28px}
.ameeza-enquiry-note{color:var(--muted);font-size:11px;line-height:1.6;margin-top:14px;max-width:420px}

.ameeza-shop form.cart{display:flex;gap:10px;align-items:stretch;margin-top:26px}
.ameeza-shop form.cart .quantity input{border:1px solid var(--line);background:#fff;padding:16px;width:88px;text-align:center}
.ameeza-shop form.cart button{background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:999px;padding:17px 26px;font-size:13px}

.woocommerce-tabs{border-top:1px solid var(--line);margin-top:70px;padding-top:40px}
.woocommerce-tabs .tabs{display:flex;gap:26px;list-style:none;padding:0;margin:0 0 30px;font-size:12px}
.woocommerce-tabs .tabs li a{border-bottom:1px solid transparent;padding-bottom:6px;display:inline-block}
.woocommerce-tabs .tabs li.active a{border-bottom-color:var(--ink)}
.woocommerce-tabs .panel{color:var(--muted);font-size:15px;line-height:1.85;max-width:820px}
.woocommerce-tabs .shop_attributes{width:100%;border-collapse:collapse;font-size:13px}
.woocommerce-tabs .shop_attributes th,.woocommerce-tabs .shop_attributes td{border-top:1px solid var(--line);padding:15px 0;text-align:left}

.related.products{padding:8vw 0 0}
.related.products>h2{font-family:var(--serif);font-size:52px;font-weight:400;margin-bottom:44px}

/* Cart, checkout, account ------------------------------------------------- */
.woocommerce-cart .ameeza-shop .inner-page,
.woocommerce-checkout .ameeza-shop .inner-page,
.woocommerce-account .ameeza-shop .inner-page{padding-top:70px}
.woocommerce table.shop_table{width:100%;border-collapse:collapse;font-size:13px}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-top:1px solid var(--line);padding:18px 0;text-align:left}
.woocommerce table.cart img{width:110px;height:110px;object-fit:cover}
.woocommerce .cart_totals{background:#e7eee9;padding:40px;margin-top:40px}
.woocommerce .cart_totals h2{font-family:var(--serif);font-size:31px;font-weight:400;margin-bottom:18px}
.woocommerce .button,.woocommerce button.button,.woocommerce input.button,.woocommerce a.button{background:var(--ink);color:#fff;border:0;border-radius:999px;padding:16px 24px;font-size:13px;display:inline-block;transition:transform .25s}
.woocommerce .button:hover{transform:translateY(-2px);color:#fff}
.woocommerce .button.alt,.woocommerce #place_order{width:100%;text-align:center;margin-top:18px}
.woocommerce form .form-row{display:grid;gap:8px;margin-bottom:18px}
.woocommerce form .form-row label{color:var(--muted);font-size:11px}
.woocommerce form .form-row input,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce .select2-container .select2-selection{border:1px solid var(--line);background:#fff;padding:16px;width:100%;font:inherit;height:auto}
.woocommerce-checkout .col2-set{display:grid;grid-template-columns:1fr 1fr;gap:5vw}
.woocommerce-checkout #order_review{background:#e7eee9;padding:40px}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0 0 30px;display:flex;flex-wrap:wrap;gap:22px;font-size:12px}
.woocommerce-account .woocommerce-MyAccount-navigation a{border-bottom:1px solid transparent;padding-bottom:5px}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{border-bottom-color:var(--ink)}
.woocommerce-form-login,.woocommerce-form-register{max-width:520px}

.woocommerce .onsale{position:absolute;top:16px;left:16px;background:var(--ink);color:#fff;font-size:9px;letter-spacing:.14em;text-transform:uppercase;padding:7px 10px;z-index:2}

/* --------------------------------------------------------------------------
   5. Responsive corrections
   -------------------------------------------------------------------------- */

@media (width<=1100px){
	.woocommerce-checkout .col2-set{grid-template-columns:1fr;gap:40px}
	.ameeza-shop .entry-summary,.ameeza-shop .summary{position:static;padding-top:24px}
}

@media (width<=900px){
.ameeza-doc-body>.section-title,
	.ameeza-doc-body>.ameeza-prose,
	.ameeza-doc-body>.ameeza-needs-confirmation,
	.ameeza-doc-body>p,
	.ameeza-doc-body>h1,
	.ameeza-doc-body>h2,
	.ameeza-doc-body>h3,
	.ameeza-doc-body>ul,
	.ameeza-doc-body>ol,
	.ameeza-doc-body>figure,
	.ameeza-doc-body>details,
	.ameeza-doc-body>.wp-block-image,
	.ameeza-doc-body>.wp-block-table,
	.ameeza-doc-body>.wp-block-quote{padding-left:6vw;padding-right:6vw}
	.ameeza-doc-body>.guide-grid,
	.ameeza-doc-body>.compare-grid,
	.ameeza-doc-body>.cinema-product-grid{margin:0 6vw 70px;padding:0}
	.related.products>h2{font-size:38px}
}

@media (width<=760px){
	.ameeza-prose{font-size:15px}
	.ameeza-prose h2{font-size:clamp(30px,7vw,40px);margin-top:48px}
	.woocommerce table.cart img{width:76px;height:76px}
	.woocommerce-tabs .tabs{flex-wrap:wrap;gap:16px}
	.ameeza-doc-body .ameeza-prose{padding-bottom:60px}
}

@media (width<=560px){
.ameeza-doc-body>.section-title,
	.ameeza-doc-body>.ameeza-prose,
	.ameeza-doc-body>.ameeza-needs-confirmation,
	.ameeza-doc-body>p,
	.ameeza-doc-body>h1,
	.ameeza-doc-body>h2,
	.ameeza-doc-body>h3,
	.ameeza-doc-body>ul,
	.ameeza-doc-body>ol,
	.ameeza-doc-body>figure,
	.ameeza-doc-body>details,
	.ameeza-doc-body>.wp-block-image,
	.ameeza-doc-body>.wp-block-table,
	.ameeza-doc-body>.wp-block-quote{padding-left:7vw;padding-right:7vw}
	.ameeza-doc-body>.guide-grid,
	.ameeza-doc-body>.compare-grid,
	.ameeza-doc-body>.cinema-product-grid{margin:0 7vw 56px;padding:0}
	.woocommerce .cart_totals,.woocommerce-checkout #order_review{padding:26px}
	.ameeza-enquiry .add-button{display:block}
}

/* Nothing on the page may scroll the document sideways. */
html,body{overflow-x:hidden}

/* --------------------------------------------------------------------------
   6. Mobile nav panel
   The reference build pins the panel with a hard pixel offset, which leaves a
   small gap under the header (and would break under the admin bar). Anchor it
   to the sticky header instead so it always sits flush, at any bar height.
   -------------------------------------------------------------------------- */

@media (width<=900px){
	.site-header nav{position:absolute;top:100%;left:0;right:0;width:100%}
	body.admin-bar .film-progress{top:auto}
}

/* --------------------------------------------------------------------------
   7. Block-editor equivalents of the design system's <article> grids
   Core blocks emit <div class="wp-block-group"> wrapped in
   .wp-block-group__inner-container. The inner container is made transparent
   with display:contents (below) so the real blocks become grid items; because
   display:contents does not change the DOM, the card rules use descendant
   rather than child combinators.
   -------------------------------------------------------------------------- */

.section-title>.wp-block-group__inner-container,
.ameeza-prose>.wp-block-group__inner-container,
.support-grid>.wp-block-group__inner-container,
.ownership-section>.wp-block-group__inner-container,
.service-triptych>.wp-block-group__inner-container,
.standard-steps>.wp-block-group__inner-container,
.feature-list>.wp-block-group__inner-container,
.feature-item>.wp-block-group__inner-container,
.support-grid .wp-block-group>.wp-block-group__inner-container,
.ownership-section .wp-block-group>.wp-block-group__inner-container,
.service-triptych .wp-block-group>.wp-block-group__inner-container,
.standard-steps .wp-block-group>.wp-block-group__inner-container{display:contents}

.ameeza-prose>.wp-block-group__inner-container>*+*{margin-top:22px}

.support-grid .wp-block-group{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:360px;padding:50px}
.support-grid .wp-block-group>p:first-child{color:var(--green);font-size:10px}
.support-grid .wp-block-group h2,.support-grid .wp-block-group h3{font-family:var(--serif);margin-top:80px;font-size:44px;font-weight:400;line-height:1}
.support-grid .wp-block-group p{max-width:620px;color:var(--muted);line-height:1.8}
.support-grid .wp-block-group a{border-bottom:1px solid;padding-bottom:7px;font-size:12px}

.ownership-section .wp-block-group{border-right:1px solid var(--line);min-height:440px;padding:5vw}
.ownership-section .wp-block-group>p:first-child{color:var(--green);font-size:10px;letter-spacing:.12em}
.ownership-section .wp-block-group h2,.ownership-section .wp-block-group h3{font-family:var(--serif);font-size:34px;font-weight:400;line-height:1.05;margin-top:70px}
.ownership-section .wp-block-group p{color:var(--muted);font-size:14px;line-height:1.75}
.ownership-section .wp-block-group a{border-bottom:1px solid;padding-bottom:6px;font-size:12px;color:var(--ink)}
.ownership-section .wp-block-group ul{padding:0;list-style:none;margin-top:18px}
.ownership-section .wp-block-group li{border-top:1px solid var(--line);color:var(--muted);padding:13px 0;font-size:13px}

.service-triptych .wp-block-group{border-right:1px solid var(--line);min-height:300px;padding:54px}
.service-triptych .wp-block-group>p:first-child{color:var(--green);font-size:10px;letter-spacing:.14em}
.service-triptych .wp-block-group h3{font-family:var(--serif);margin-top:68px;font-size:30px;font-weight:400;line-height:1.05}
.service-triptych .wp-block-group p{color:var(--muted);font-size:13px;line-height:1.7}

.standard-steps .wp-block-group{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:360px;padding:4vw}
.standard-steps .wp-block-group>p:first-child{color:var(--green);font-size:11px;letter-spacing:.12em}
.standard-steps .wp-block-group h2,.standard-steps .wp-block-group h3{font-family:var(--serif);margin-top:90px;font-size:42px;font-weight:400;line-height:1.02}
.standard-steps .wp-block-group p{color:var(--muted);line-height:1.7;font-size:14px}
.standard-steps .wp-block-group a{color:inherit;border-bottom:1px solid}

.feature-list .feature-items{align-self:start}
.feature-list .feature-item{border-top:1px solid var(--line);grid-template-columns:55px 1fr;padding:27px 0;display:grid}
.feature-list .feature-item>p:first-child{color:var(--green);font-size:10px;margin:0}
.feature-list .feature-item h3{font-family:var(--serif);margin:0;font-size:28px;font-weight:520;line-height:1.05}
.feature-list .feature-item .feature-item-body p{color:var(--muted);margin:10px 0 0;line-height:1.65;font-size:14px}

.spec-section>.wp-block-group>.wp-block-group{border-top:1px solid var(--line);grid-template-columns:1fr 1fr;padding:18px 0;display:grid}
.spec-section strong{font-weight:500}

/* Grid children stack on small screens like their <article> counterparts. */
@media (width<=900px){
	.support-grid .wp-block-group,
	.service-triptych .wp-block-group{min-height:0;padding:38px 6vw;border-right:0;border-bottom:1px solid var(--line)}
	.support-grid .wp-block-group h2{margin-top:44px;font-size:34px}
}
@media (width<=760px){
	.ownership-section .wp-block-group{min-height:auto;padding:70px 7vw;border-right:0;border-bottom:1px solid var(--line)}
	.standard-steps .wp-block-group{min-height:0;padding:50px 7vw;border-right:0}
	.standard-steps .wp-block-group h2,.standard-steps .wp-block-group h3{margin-top:48px;font-size:34px}
	.ownership-section .wp-block-group h2,.ownership-section .wp-block-group h3{margin-top:40px}
}

/* Four-step process grids read better as 2x2 than 3+1. */
.ameeza-steps-4{grid-template-columns:repeat(2,1fr)}
@media (width<=760px){.ameeza-steps-4{grid-template-columns:1fr}}

.spec-section>.wp-block-group>.wp-block-group{border-top:1px solid var(--line);grid-template-columns:1fr 1fr;padding:18px 0;display:grid}
.spec-section strong{font-weight:500}

/* Grid children stack on small screens like their <article> counterparts. */
@media (width<=900px){
	.support-grid>.wp-block-group,
	.ownership-section>.wp-block-group,
	.service-triptych>.wp-block-group,
	.standard-steps>.wp-block-group{min-height:0;padding:38px 6vw;border-right:0}
	.support-grid>.wp-block-group h2,
	.standard-steps>.wp-block-group h2{margin-top:44px;font-size:34px}
}
