/* components.css is linked explicitly (with its own version) by every page - an unversioned @import here could
   stay stale in browser caches after a deploy. */
body{
   background:var(--surface);
}

/* Shared public-footer developer credit. This remains in the customer
   stylesheet so the MVP release does not need the unfinished auth stylesheet. */
.customer-footer .developer-credit{
   margin-top:0;
}

.customer-footer .developer-credit-inner{
   width:min(var(--container-width), calc(100% - 48px));
   margin:0 auto;
   padding:10px 0 22px;
   display:flex;
   flex-direction:column;
   align-items:center;
   justify-content:center;
   gap:7px;
   text-align:center;
}

.customer-footer .developer-credit-copy{
   min-width:0;
   text-align:center;
}

.customer-footer .developer-credit-title,
.customer-footer .developer-credit-services{ margin:0; }

.customer-footer .developer-credit-title{
   color:#edf4ff;
   font-size:1.28rem;
   font-weight:600;
   line-height:1.45;
}

.customer-footer .developer-credit-title a{
   color:#fff;
   font-weight:600;
   text-decoration:underline;
   text-decoration-color:rgba(255,255,255,.62);
   text-underline-offset:3px;
}

.customer-footer .developer-credit-title a:hover{
   color:#dce8ff;
   text-decoration-color:currentColor;
}

.customer-footer .developer-credit-title a:focus-visible{
   outline:3px solid #fff;
   outline-offset:3px;
   border-radius:3px;
}

.customer-footer .developer-credit-services{
   margin-top:3px;
   color:#aebfdd;
   font-size:1.15rem;
   line-height:1.5;
}

.pagination{
   width:min(var(--container), calc(100% - 32px));
   margin:22px auto 0;
   display:flex;
   align-items:center;
   justify-content:center;
   flex-wrap:wrap;
   gap:8px;
}

.pagination a,
.pagination span{
   min-width:38px;
   min-height:38px;
   display:inline-flex;
   align-items:center;
   justify-content:center;
   padding:0 12px;
   border:1px solid #e1e7df;
   border-radius:999px;
   background:#fff;
   color:var(--text);
   font-size:1.3rem;
   font-weight:600;
}

.pagination a.active{
   border-color:var(--primary-strong);
   background:var(--primary-strong);
   color:#fff;
}

.pagination a:not(.disabled):not(.active):hover{
   border-color:var(--secondary-strong);
   color:var(--secondary);
   transform:translateY(-1px);
   box-shadow:0 10px 18px rgba(7,141,206,.12);
}

.pagination a.disabled{
   pointer-events:none;
   opacity:.45;
}

.shopping-cart .cart-item-actions{
   position:static;
   display:flex;
   align-items:center;
   justify-content:flex-start;
   gap:8px;
   margin-bottom:2px;
}

.shopping-cart .cart-item-actions .fa-eye,
.shopping-cart .cart-item-actions .fa-times{
   position:static!important;
   inset:auto!important;
   width:36px;
   height:36px;
   display:inline-grid;
   place-items:center;
   border:1px solid #e5e7eb;
   border-radius:10px;
   background:#fff;
   color:var(--text);
   box-shadow:none;
   cursor:pointer;
}

.shopping-cart .cart-item-actions .fa-times{
   border-color:#fee2e2;
   background:#fff5f5;
   color:#dc2626;
}

.shopping-cart .cart-item-actions .fa-eye:hover{
   border-color:var(--secondary-strong);
   color:var(--secondary);
}

.shopping-cart .cart-item-actions .fa-times:hover{
   background:#fee2e2;
}

.order-card{
   gap:14px!important;
}

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

.order-card-head h3{
   color:var(--text);
   font-size:2rem;
   letter-spacing:-.03em;
}

.order-card-head p{
   display:block;
   padding:0;
   border:0;
   color:var(--muted);
}

.order-badges{
   display:flex;
   flex-wrap:wrap;
   justify-content:flex-end;
   gap:8px;
}

.order-status{
   display:inline-flex;
   align-items:center;
   width:max-content;
   padding:5px 10px;
   border-radius:999px;
   background:#eef2f7;
   color:#475569;
   font-size:1.18rem;
   font-weight:700;
}

.order-status.accepted,
.order-status.preparing,
.order-status.packed{
   background:var(--secondary-soft);
   color:var(--secondary);
}

.order-status.sent_out{
   background:#e0f2fe;
   color:#0369a1;
}

.order-status.completed{
   background:#dcfce7;
   color:#166534;
}

.order-status.cancelled{
   background:#fee2e2;
   color:#991b1b;
}

.order-card-grid{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:10px;
}

.order-card-grid p,
.order-address-block,
.order-products-block{
   display:grid!important;
   gap:5px!important;
   padding:11px!important;
   border:1px solid #eef2f7!important;
   border-radius:14px;
   background:#fbfcfa;
}

.order-card-grid span,
.order-address-block span,
.order-products-block span{
   color:var(--muted);
   font-size:1.1rem;
   font-weight:700;
   text-transform:uppercase;
}

.order-card-grid strong,
.order-address-block strong{
   color:var(--text);
   font-size:1.34rem;
   line-height:1.5;
   overflow-wrap:anywhere;
}

.order-products-block p{
   display:block!important;
   margin:0;
   padding:0!important;
   border:0!important;
   color:var(--text);
   line-height:1.55;
}

/* Ordered item lines are emitted without whitespace between the name and the
   quantity/price spans, so they need an explicit track layout to stay legible
   and to keep long product names inside the card. */
.order-item-lines{
   display:grid;
   gap:2px;
   min-width:0;
}

.order-item-line{
   display:grid;
   grid-template-columns:minmax(0,1fr) auto auto auto;
   align-items:baseline;
   gap:4px 12px;
   padding:6px 0;
   border-top:1px solid #eef2f7;
}

.order-item-line:first-child{
   border-top:0;
   padding-top:0;
}

.order-item-line strong{
   min-width:0;
   color:var(--text);
   font-size:1.34rem;
   line-height:1.5;
   overflow-wrap:anywhere;
}

.order-item-line span{
   justify-self:end;
   color:var(--muted);
   font-size:1.18rem;
   font-weight:700;
   text-transform:none;
   white-space:nowrap;
}

.see-more{
   width:max-content;
   min-height:36px;
   padding:0 14px;
   border:1px solid #cfe1f2;
   border-radius:999px;
   background:#fff;
   color:var(--secondary);
   font-weight:700;
   cursor:pointer;
}

.store-section{
   width:min(var(--container), calc(100% - 32px));
   margin:0 auto;
   padding:48px 0;
}

.store-hero{
   width:min(var(--container), calc(100% - 32px));
   margin:28px auto 0;
   border:1px solid #e5e7eb;
   border-radius:28px;
   background:
      linear-gradient(135deg, rgba(253,236,239,.9), rgba(255,255,255,.96) 48%, rgba(234,246,255,.85)),
      var(--white);
   box-shadow:var(--shadow-soft);
   overflow:hidden;
}

.store-hero .home{
   width:100%;
   display:grid;
   grid-template-columns:minmax(0,.92fr) minmax(340px,1fr);
   align-items:center;
   gap:44px;
   padding:56px;
}

.store-hero .content span,
.hero-kicker{
   display:inline-flex;
   align-items:center;
   gap:8px;
   width:max-content;
   margin-bottom:14px;
   padding:8px 12px;
   border-radius:999px;
   background:var(--white);
   color:var(--secondary);
   font-size:1.25rem;
   font-weight:600;
   letter-spacing:.02em;
}

.store-hero h3{
   max-width:620px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:clamp(3.8rem,5.2vw,6.8rem);
   font-weight:600;
   line-height:1.02;
   letter-spacing:-.035em;
   text-transform:none;
}

.store-hero p{
   max-width:560px;
   margin-top:18px;
   color:var(--text-soft);
   font-size:1.7rem;
}

.customer-chip{
   display:inline-flex;
   flex-wrap:wrap;
   width:auto;
   max-width:100%;
   margin-top:18px!important;
   padding:10px 13px;
   border:1px solid #e5e7eb;
   border-radius:999px;
   background:rgba(255,255,255,.84);
   color:var(--muted)!important;
   font-size:1.3rem!important;
}

.hero-actions{
   display:flex;
   align-items:center;
   flex-wrap:wrap;
   gap:12px;
   margin-top:24px;
}

.hero-actions .option-btn{
   background:var(--white);
   border-color:#e5e7eb;
   color:var(--primary);
}

.hero-visual{
   min-height:370px;
   border:10px solid rgba(255,255,255,.7);
   border-radius:26px;
   background:var(--surface-low);
   overflow:hidden;
   box-shadow:var(--shadow-hover);
}

.hero-visual img{
   width:100%;
   height:100%;
   min-height:370px;
   object-fit:cover;
}

.trust-strip{
   width:min(var(--container), calc(100% - 32px));
   margin:20px auto 0;
   display:grid;
   grid-template-columns:repeat(3,minmax(0,1fr));
   gap:14px;
}

.trust-card{
   display:flex;
   align-items:center;
   gap:12px;
   padding:16px;
   border:1px solid #e5e7eb;
   border-radius:16px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.trust-card i{
   width:42px;
   height:42px;
   display:grid;
   place-items:center;
   border-radius:14px;
   background:var(--secondary-soft);
   color:var(--primary);
   font-size:1.7rem;
}

.trust-card strong{
   display:block;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.45rem;
}

.trust-card span{
   color:var(--muted);
   font-size:1.25rem;
}

.home-category .box-container,
.category-grid{
   display:grid;
   grid-template-columns:repeat(auto-fill,minmax(155px,1fr));
   gap:18px;
}

.home-category .box{
   display:grid;
   gap:10px;
   align-content:start;
   padding:12px;
   border:1px solid #e5e7eb;
   border-radius:18px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
   text-align:center;
   transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-category .box:hover{
   transform:translateY(-3px);
   border-color:var(--outline-soft);
   box-shadow:var(--shadow-hover);
}

.home-category .box img{
   width:100%;
   height:136px;
   border-radius:16px;
   background:var(--surface-low);
   object-fit:cover;
}

.home-category .box h3{
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.5rem;
   font-weight:600;
}

.home-category .box p{
   color:var(--muted);
   font-size:1.22rem;
}

.home-category .box .btn{
   min-height:34px;
   padding:8px 10px;
   border:1px solid #e5e7eb;
   background:var(--white);
   color:var(--primary);
   box-shadow:none;
   font-size:1.2rem;
}

.promo-grid{
   width:min(var(--container), calc(100% - 32px));
   margin:0 auto;
   padding:10px 0 46px;
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:20px;
}

.promo-card{
   min-height:245px;
   display:grid;
   grid-template-columns:1fr minmax(170px,.75fr);
   align-items:center;
   gap:20px;
   padding:30px;
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:var(--primary-soft);
   overflow:hidden;
}

.promo-card.alt{
   background:var(--secondary-soft);
}

.promo-card span{
   display:inline-flex;
   margin-bottom:12px;
   padding:7px 12px;
   border-radius:999px;
   background:var(--white);
   color:var(--secondary);
   font-size:1.2rem;
   font-weight:600;
}

.promo-card h2{
   max-width:360px;
   margin-bottom:18px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:clamp(2.4rem,3vw,3.8rem);
   line-height:1.08;
   letter-spacing:-.025em;
}

.promo-card p{
   max-width:34rem;
   margin:0 0 18px;
   color:var(--muted);
   font-size:1.36rem;
   line-height:1.6;
}

.promo-card img{
   width:100%;
   height:205px;
   border-radius:18px;
   object-fit:cover;
}

.page-hero{
   width:min(var(--container), calc(100% - 32px));
   margin:28px auto 0;
   padding:30px;
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:linear-gradient(135deg,var(--white),var(--secondary-soft));
   box-shadow:var(--shadow-soft);
}

.page-hero h1{
   color:var(--text);
   font-family:var(--font-heading);
   font-size:clamp(3rem,4vw,4.8rem);
   line-height:1.08;
   letter-spacing:-.03em;
}

.page-hero p{
   max-width:680px;
   margin-top:10px;
   color:var(--muted);
   font-size:1.55rem;
}

.products{
   width:min(var(--container), calc(100% - 32px));
   max-width:none;
   margin:0 auto;
   padding:42px 0;
   background:transparent;
}

.products .title{
   margin-bottom:22px;
}

.products .box-container{
   display:grid;
   grid-template-columns:repeat(auto-fill,minmax(205px,1fr));
   gap:18px;
}

.products .box{
   position:relative;
   display:flex;
   flex-direction:column;
   gap:12px;
   min-height:100%;
   padding:12px;
   border:1px solid #e5e7eb;
   border-radius:18px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
   text-align:left;
   transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.products .box:hover{
   transform:translateY(-3px);
   border-color:var(--outline-soft);
   box-shadow:var(--shadow-hover);
}

.products .image-container,
.products .box-content,
.product-image-wrap{
   position:relative;
}

.products .image-container,
.product-image-wrap{
   height:168px;
   border-radius:16px;
   background:var(--surface-low);
   overflow:hidden;
}

.products .image-container img,
.products .box-content img,
.product-image-wrap img{
   width:100%;
   height:168px;
   border-radius:16px;
   background:#fff;
   object-fit:contain;
}

.products .box-content{
   display:grid;
   gap:10px;
}

.products .fa-eye{
   position:absolute;
   top:10px;
   right:10px;
   width:36px;
   height:36px;
   display:grid;
   place-items:center;
   border:1px solid #e5e7eb;
   border-radius:50%;
   background:rgba(255,255,255,.92);
   color:var(--text);
   font-size:1.35rem;
}

.products .fa-eye:hover{
   color:var(--primary);
   background:var(--secondary-soft);
}

.products .product-info,
.products .box-footer,
.product-card-body{
   display:grid;
   gap:9px;
   margin-top:auto;
}

.products .product-name,
.products .name{
   min-height:38px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.48rem;
   font-weight:600;
   line-height:1.32;
}

.products .price{
   color:var(--primary);
   font-family:var(--font-heading);
   font-size:1.45rem;
   font-weight:600;
}

.products .price span{
   color:var(--primary);
   font-size:2rem;
}

.qty,
.products .qty,
.quick-view .qty{
   width:100%;
   height:40px;
   padding:0 12px;
   border:1px solid #e5e7eb;
   border-radius:12px;
   background:#f9fafb;
   color:var(--text);
   font-size:1.35rem;
}

.products .btn{
   width:100%;
   min-height:38px;
   font-size:1.25rem;
}

.products .option-btn{
   width:100%;
   min-height:38px;
   font-size:1.25rem;
}

.unit{
   color:var(--muted);
   font-size:1.2rem;
   font-weight:600;
}

.search-form{
   padding-bottom:10px;
}

.search-form form{
   display:grid;
   grid-template-columns:1fr auto;
   gap:10px;
   padding:16px;
   border:1px solid #e5e7eb;
   border-radius:18px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.search-form .suggestions-box{
   grid-column:1/-1;
   border-radius:14px;
   /* Same defect as the header list: overflow:hidden cropped the results.
      It bit hardest below 1024px, where components.css caps the height at
      min(52vh,360px) but declares no overflow, leaving rows unreachable.
      The cap matches the header dropdown so both behave alike. */
   max-height:320px;
   overflow-y:auto;
   overflow-x:hidden;
}

.quick-view{
   padding-top:44px;
}

.quick-view .box{
   max-width:1080px;
   margin:0 auto;
   padding:20px;
   display:grid;
   grid-template-columns:minmax(280px,460px) 1fr;
   gap:34px;
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.quick-view .box img{
   width:100%;
   height:430px;
   border-radius:20px;
   background:var(--surface-low);
   object-fit:contain;
}

.quick-info{
   display:grid;
   align-content:center;
   gap:14px;
}

.quick-view .price{
   width:max-content;
   padding:8px 12px;
   border-radius:999px;
   background:var(--primary-soft-2);
   color:var(--primary);
   font-family:var(--font-heading);
   font-size:2rem;
   font-weight:600;
}

.quick-view .price span{
   font-size:2.8rem;
}

.quick-view .name{
   color:var(--text);
   font-family:var(--font-heading);
   font-size:clamp(2.8rem,4vw,4.2rem);
   font-weight:600;
   line-height:1.08;
   letter-spacing:-.03em;
}

.quick-view .product-detail-copy{
   color:var(--muted);
   font-size:1.55rem;
}

.quick-view .detail-actions{
   display:grid;
   gap:10px;
   margin-top:8px;
}

.quick-view .btn{
   width:100%;
}

/* Visual QA: about and contact direct-reference tightening */
.about-hero{
   width:min(var(--container), calc(100% - 32px));
   margin:28px auto 0;
   padding:34px;
   display:grid;
   grid-template-columns:minmax(0,1fr) minmax(280px,430px);
   align-items:center;
   gap:34px;
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:linear-gradient(135deg,var(--white),var(--primary-soft-2));
   box-shadow:var(--shadow-soft);
}

.about-copy h1{
   max-width:760px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:clamp(3.2rem,4.5vw,5.4rem);
   line-height:1.05;
   letter-spacing:-.035em;
}

.about-copy p,
.contact-head p{
   max-width:720px;
   margin-top:12px;
   color:var(--muted);
   font-size:1.6rem;
}

.about-actions{
   display:flex;
   flex-wrap:wrap;
   gap:12px;
   margin-top:22px;
}

.about-image{
   min-height:300px;
   display:grid;
   place-items:center;
   border-radius:22px;
   background:var(--surface-low);
   overflow:hidden;
}

.about-image img{
   width:100%;
   height:320px;
   object-fit:contain;
}

.about .row{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:20px;
}

.about .box{
   display:grid;
   grid-template-columns:190px minmax(0,1fr);
   gap:20px;
   align-items:center;
   padding:20px;
   border:1px solid #e5e7eb;
   border-radius:20px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.about .box img{
   width:100%;
   height:190px;
   border-radius:18px;
   background:var(--surface-low);
   object-fit:contain;
}

/* The two stock photos here (about-img-1/2.png) were leftover SUNSIRI
   grocery imagery - no book-themed photo exists to replace them with,
   so an icon panel fills the same slot honestly instead of a
   mismatched picture. */
.about-image-icon{
   font-size:4rem;
   color:var(--primary);
}

.about .box-icon{
   display:grid;
   place-items:center;
   width:100%;
   height:190px;
   border-radius:18px;
   background:var(--surface-low);
   font-size:3rem;
   color:var(--primary);
}

.about .box h2,
.about .box h3{
   margin-bottom:8px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:2.2rem;
   line-height:1.15;
}

.about .box p{
   margin-bottom:16px;
   color:var(--muted);
   font-size:1.42rem;
}

.reviews .box-container{
   display:grid;
   grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
   gap:16px;
}

.reviews .box,
.review-form{
   padding:18px;
   border:1px solid #e5e7eb;
   border-radius:18px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.reviews .box h3,
.review-form h3{
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.8rem;
}

.reviews .box p{
   margin:8px 0;
   color:var(--muted);
   font-size:1.35rem;
}

.review-form{
   /* .reviews already sits at the shared page width via its own width:min(...)
      rule; this used to additionally cap the form to 760px and centre it,
      shrinking it to a narrow card instead of matching the reviews grid
      above it. */
   margin-top:22px;
}

/* The logged-out "you must login to review" prompt is .review-form's
   sibling in the other branch of the same if/else (about.php) - it needs
   the same gap from the reviews grid above it, or it sits flush against
   .box-container with zero space (.empty has no margin of its own). */
.reviews > p.empty{
   margin-top:22px;
}

.review-form form{
   display:grid;
   gap:12px;
   margin-top:12px;
}

.star-rating{
   display:flex;
   flex-direction:row-reverse;
   justify-content:flex-end;
   gap:4px;
}

.star-rating input{
   display:none;
}

.star-rating label{
   color:#cbd5e1;
   font-size:2rem;
   cursor:pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label{
   color:var(--primary-strong);
}

.contact{
   padding-top:48px;
}

.contact-head{
   margin-bottom:24px;
}

.contact-head .title{
   margin-bottom:0;
}

.contact-layout{
   display:grid;
   grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);
   gap:22px;
   align-items:start;
}

.contact-layout form,
.contact-info-card{
   padding:24px;
   border:1px solid #e5e7eb;
   border-radius:20px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.contact-layout form{
   order:1;
   display:grid;
   /* Single column keeps every label directly above a full-width control so
      the text inputs match the textarea and submit button. */
   grid-template-columns:minmax(0,1fr);
   gap:8px;
}

.contact-layout form label{
   margin-top:10px;
}

.contact-layout form label:first-of-type{
   margin-top:0;
}

.contact-info-card{
   order:2;
}

.contact-layout form h3,
.contact-info-card h2{
   grid-column:1/-1;
   margin-bottom:4px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:2.2rem;
}

.contact-layout textarea,
.contact-layout input[name="send"]{
   grid-column:1/-1;
}

.contact-layout textarea{
   min-height:150px;
   max-width:100%;
   resize:vertical;
}

.contact-layout form .box{
   width:100%;
   max-width:100%;
}

.contact-info-card p{
   margin-bottom:18px;
   color:var(--muted);
   font-size:1.42rem;
}

.contact-list{
   display:grid;
   gap:14px;
   list-style:none;
}

.contact-list li{
   display:flex;
   align-items:flex-start;
   gap:12px;
   color:var(--muted);
   font-size:1.38rem;
}

.contact-list i{
   width:42px;
   height:42px;
   flex:0 0 42px;
   display:grid;
   place-items:center;
   border-radius:50%;
   background:var(--secondary-soft);
   color:var(--secondary);
}

.contact-list strong{
   display:block;
   color:var(--text);
}

@media (max-width:940px){
   .store-hero .home,
   .promo-grid,
   .promo-card,
   .about-hero,
   .about .row,
   .contact-layout,
   .quick-view .box{
      grid-template-columns:1fr;
   }

   .contact-layout form,
   .contact-info-card{
      order:initial;
   }

   .trust-strip{
      grid-template-columns:1fr;
   }

   .hero-visual,
   .hero-visual img{
      min-height:280px;
   }
}

/* UI rescue layer: storefront quality */
.store-hero{
   margin-top:24px;
   border:1px solid #e1e7df;
   border-radius:30px;
   background:
      linear-gradient(135deg, rgba(255,246,235,.96), rgba(255,255,255,.92) 50%, rgba(232,248,238,.95)),
      #fff;
}

.store-hero .home{
   gap:36px;
   padding:44px;
}

.store-hero .content span,
.hero-kicker{
   padding:7px 11px;
   border:1px solid #e1e7df;
   color:var(--secondary);
   font-size:1.18rem;
}

.store-hero h3{
   max-width:660px;
   font-size:clamp(3.6rem,5vw,6rem);
   line-height:1.03;
}

.store-hero p{
   color:var(--text-soft);
}

.customer-chip{
   border-radius:14px;
}

.hero-visual{
   min-height:330px;
   border:0;
   border-radius:24px;
   box-shadow:none;
}

.hero-visual img{
   min-height:330px;
}

.trust-strip{
   gap:12px;
}

.trust-card{
   padding:14px;
   border-color:#e1e7df;
   box-shadow:none;
}

.home-category .box,
.products .box,
.shopping-cart .box,
.wishlist .box,
.placed-orders .box,
.checkout-orders form,
.update-profile form,
.cart-total,
.wishlist-total,
.about .box,
.reviews .box,
.review-form,
.contact-layout form,
.contact-info-card{
   border-color:#e1e7df;
   box-shadow:0 8px 24px rgba(23,32,26,.045);
}

.home-category .box:hover,
.products .box:hover{
   transform:translateY(-2px);
   box-shadow:0 14px 34px rgba(23,32,26,.08);
}

.home-category .box img{
   height:126px;
   object-fit:contain;
}

.promo-grid{
   padding-bottom:36px;
}

.homepage-section-block{
   width:min(var(--container), calc(100% - 40px));
   margin:0 auto 34px;
   display:grid;
   gap:18px;
}

.homepage-section-banner{
   display:grid;
   grid-template-columns:minmax(0,1fr) minmax(260px,380px);
   gap:24px;
   align-items:center;
   padding:28px;
   border:1px solid #e5e7eb;
   border-radius:28px;
   background:linear-gradient(135deg,#fff8ef 0%,#ffffff 50%,#eef9f1 100%);
}

.homepage-section-copy{
   display:grid;
   gap:12px;
}

.homepage-section-copy h2{
   color:var(--text);
   font-size:clamp(2.6rem,4vw,4rem);
   line-height:1.08;
}

.homepage-section-copy p{
   color:var(--muted);
   font-size:1.55rem;
   line-height:1.65;
}

.homepage-section-visual{
   border-radius:22px;
   overflow:hidden;
   background:#fff;
   min-height:220px;
}

.homepage-section-visual img{
   width:100%;
   height:100%;
   min-height:220px;
   object-fit:cover;
   display:block;
}

.home-section-products{
   width:100%;
}

.promo-card{
   min-height:210px;
   padding:24px;
   border-color:#e1e7df;
   border-radius:22px;
}

.promo-card h2{
   font-size:clamp(2.25rem,2.5vw,3.1rem);
}

.promo-card img{
   height:178px;
}

.page-hero,
.commerce-hero{
   margin-top:24px;
   padding:26px 30px;
   border-color:#e1e7df;
   border-radius:22px;
   background:linear-gradient(135deg,#fff,#fff8ef);
}

.page-hero h1,
.commerce-hero h1{
   font-size:clamp(2.8rem,3.7vw,4.2rem);
}

.products{
   padding:36px 0;
}

.products .box-container{
   grid-template-columns:repeat(auto-fill,minmax(218px,1fr));
   gap:16px;
}

.products .box{
   gap:10px;
   padding:12px;
   border-radius:18px;
}

.products .image-container,
.product-image-wrap{
   height:156px;
   border-radius:15px;
}

.products .image-container img,
.products .box-content img,
.product-image-wrap img{
   height:156px;
   border-radius:15px;
}

.products .product-name,
.products .name{
   min-height:auto;
   font-size:1.42rem;
}

.products .price{
   font-size:1.28rem;
}

.products .price span{
   font-size:1.8rem;
}

.products .qty,
.qty,
.quick-view .qty{
   height:38px;
   border-color:#dfe5dc;
   background:#fff;
}

.products .btn,
.products .option-btn{
   min-height:38px;
   border-radius:12px;
}

.quick-view .box{
   border-color:#e1e7df;
   box-shadow:0 10px 32px rgba(23,32,26,.055);
}

.shopping-cart,
.wishlist{
   gap:18px;
}

.shopping-cart .box,
.wishlist .box{
   grid-template-columns:96px minmax(0,1fr);
   padding:14px;
}

.shopping-cart .box img,
.wishlist .box img{
   width:96px;
   height:96px;
}

.cart-total,
.wishlist-total{
   top:84px;
   padding:18px;
}

.display-orders{
   grid-template-columns:minmax(0,1fr) 280px;
}

.checkout-orders form,
.update-profile form{
   padding:22px;
   border-radius:20px;
}

.checkout-orders form h3{
   font-size:2.6rem;
}

/* Phase 3: customer commerce and account flows */
.commerce-hero{
   width:min(var(--container), calc(100% - 32px));
   margin:28px auto 0;
   padding:30px;
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:linear-gradient(135deg,var(--white),var(--primary-soft-2));
   box-shadow:var(--shadow-soft);
}

.commerce-hero h1{
   color:var(--text);
   font-family:var(--font-heading);
   font-size:clamp(3rem,4vw,4.8rem);
   line-height:1.08;
   letter-spacing:-.03em;
}

.commerce-hero p{
   max-width:680px;
   margin-top:10px;
   color:var(--muted);
   font-size:1.55rem;
}

.shopping-cart,
.wishlist{
   display:grid;
   grid-template-columns:minmax(0,1fr) 340px;
   gap:22px;
   align-items:start;
}

.shopping-cart .title,
.wishlist .title{
   grid-column:1/-1;
}

.shopping-cart .box-container,
.wishlist .box-container{
   display:grid;
   gap:14px;
}

.shopping-cart .box,
.wishlist .box{
   position:relative;
   display:grid;
   grid-template-columns:110px minmax(0,1fr);
   gap:15px;
   padding:15px;
   border:1px solid #e5e7eb;
   border-radius:18px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.shopping-cart .box img,
.wishlist .box img{
   width:110px;
   height:110px;
   border-radius:16px;
   background:var(--surface-low);
   object-fit:contain;
}

.shopping-cart .fa-times,
.shopping-cart .fa-eye,
.wishlist .fa-times,
.wishlist .fa-eye{
   position:absolute;
   top:10px;
   width:34px;
   height:34px;
   display:grid;
   place-items:center;
   border-radius:50%;
   color:var(--white);
   font-size:1.3rem;
}

.shopping-cart .fa-times,
.wishlist .fa-times{
   left:10px;
   background:var(--error);
}

.shopping-cart .fa-eye,
.wishlist .fa-eye{
   right:10px;
   background:var(--secondary);
}

.shopping-cart .name,
.wishlist .name{
   padding-right:38px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.55rem;
   font-weight:600;
}

.shopping-cart .price,
.wishlist .price{
   color:var(--primary);
   font-family:var(--font-heading);
   font-weight:600;
}

.shopping-cart .flex-btn,
.shopping-cart .sub-total,
.wishlist .qty,
.wishlist input[type="hidden"],
.wishlist .btn{
   grid-column:1/-1;
}

.shopping-cart .sub-total{
   padding-top:10px;
   border-top:1px solid #f1f5f9;
   color:var(--muted);
   font-size:1.35rem;
}

.shopping-cart .sub-total span{
   color:var(--text);
   font-weight:600;
}

.cart-total,
.wishlist-total{
   position:sticky;
   top:96px;
   padding:20px;
   border:1px solid #e5e7eb;
   border-radius:20px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.cart-total p,
.wishlist-total p{
   margin-bottom:14px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:2rem;
   font-weight:600;
}

.cart-total span,
.wishlist-total span{
   color:var(--primary);
}

.cart-total a,
.wishlist-total a{
   width:100%;
   margin-top:8px;
}

.cart-total .summary-action-form,
.wishlist-total .summary-action-form{
   width:100%;
   margin-top:8px;
}

.cart-total .summary-action-form .delete-btn,
.wishlist-total .summary-action-form .delete-btn{
   width:100%;
   display:flex;
   align-items:center;
   justify-content:center;
}

.display-orders{
   display:grid;
   grid-template-columns:minmax(0,1fr) 300px;
   gap:18px;
   align-items:start;
}

.display-orders p{
   display:inline-flex;
   align-items:center;
   gap:6px;
   margin:0 8px 8px 0;
   padding:9px 11px;
   border:1px solid #e5e7eb;
   border-radius:12px;
   background:var(--white);
   color:var(--text);
   font-size:1.35rem;
}

.display-orders .grand-total{
   padding:18px;
   border:1px solid var(--outline-soft);
   border-radius:18px;
   background:var(--primary-soft-2);
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.8rem;
   font-weight:600;
}

.display-orders .grand-total span{
   color:var(--primary);
}

.checkout-totals-card{
   display:grid;
   gap:10px;
   margin-top:14px;
   padding:18px;
   border:1px solid var(--outline-soft);
   border-radius:18px;
   background:var(--primary-soft-2);
}

.checkout-total-line{
   display:flex;
   align-items:center;
   justify-content:space-between;
   gap:14px;
   color:var(--text);
   font-size:1.45rem;
}

.checkout-total-line strong{
   color:var(--text);
   font-family:var(--font-heading);
   font-size:1.6rem;
}

.checkout-total-line.grand-line{
   padding-top:10px;
   border-top:1px solid rgba(23,36,90,.1);
}

.checkout-total-line.grand-line strong{
   color:var(--primary);
   font-size:1.9rem;
}

.checkout-orders form,
.update-profile form{
   padding:24px;
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.checkout-orders form h3{
   margin-bottom:20px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:3rem;
   font-weight:600;
   letter-spacing:-.03em;
   text-transform:none;
}

.checkout-orders form .flex,
.update-profile form .flex{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:14px;
}

.checkout-orders .inputBox :is(span, label),
.update-profile .inputBox :is(span, label){
   display:block;
   margin:8px 0 5px;
   color:var(--muted);
   font-size:1.3rem;
   font-weight:600;
}

.checkout-orders .btn{
   margin-top:18px;
}

.checkout-delivery-methods{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:12px;
   margin-bottom:18px;
}

.delivery-choice{
   display:flex;
   gap:12px;
   padding:16px;
   border:1px solid #d8e0ea;
   border-radius:18px;
   background:#fff;
   cursor:pointer;
   transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.delivery-choice:hover{
   border-color:var(--secondary-strong);
   box-shadow:var(--shadow-soft);
}

.delivery-choice input{
   margin-top:3px;
   accent-color:var(--primary-strong);
}

.delivery-choice.is-selected{
   border-color:var(--primary-strong);
   background:#fff7f8;
   box-shadow:0 0 0 1px rgba(226,27,45,.08);
}

.delivery-choice-copy{
   display:grid;
   gap:3px;
}

.delivery-choice-copy strong{
   color:var(--text);
   font-size:1.55rem;
}

.delivery-choice-copy small{
   color:var(--muted);
   font-size:1.24rem;
}

.pickup-note{
   margin:0 0 16px;
   padding:12px 14px;
   border:1px solid rgba(7,141,206,.18);
   border-radius:14px;
   background:var(--secondary-soft);
   color:var(--secondary);
   font-size:1.32rem;
   font-weight:700;
}

.pickup-note.is-hidden{
   display:none;
}

.delivery-area-notice{
   margin:0 0 16px;
   padding:12px 14px;
   border:1px solid rgba(7,141,206,.18);
   border-radius:14px;
   background:var(--secondary-soft);
   color:var(--secondary);
}

.delivery-area-notice.is-hidden{
   display:none;
}

.delivery-area-notice-text{
   margin:0 0 8px;
   font-size:1.18rem;
   font-weight:600;
   line-height:1.5;
}

.delivery-area-list{
   display:flex;
   flex-wrap:wrap;
   gap:6px;
   margin:0;
   padding:0;
   list-style:none;
}

.delivery-area-list li{
   padding:4px 10px;
   border-radius:999px;
   background:#fff;
   font-size:1.1rem;
   font-weight:600;
}

.delivery-address-field.is-muted{
   opacity:.8;
}

.placed-orders .box-container{
   display:grid;
   grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
   gap:16px;
}

.placed-orders .box{
   display:grid;
   gap:7px;
   padding:18px;
   border:1px solid #e5e7eb;
   border-radius:18px;
   background:var(--white);
   box-shadow:var(--shadow-soft);
}

.placed-orders p{
   color:var(--muted);
   font-size:1.35rem;
}

.placed-orders span{
   color:var(--text);
   font-weight:600;
}

.status-pill{
   display:inline-flex;
   width:max-content;
   padding:5px 9px;
   border-radius:999px;
   font-size:1.2rem;
   font-weight:600;
}

.status-pill.pending{
   background:var(--secondary-soft);
   color:var(--secondary);
}

.status-pill.completed{
   background:#dcfce7;
   color:#166534;
}

.fulfilment-badge{
   display:inline-flex;
   align-items:center;
   justify-content:center;
   width:max-content;
   padding:6px 10px;
   border-radius:999px;
   font-size:1.08rem;
   font-weight:700;
   letter-spacing:.04em;
   text-transform:uppercase;
}

.fulfilment-badge.delivery{
   background:#fee2e2;
   color:#991b1b;
}

.fulfilment-badge.pickup{
   background:var(--secondary-soft);
   color:var(--secondary);
}

.modal{
   display:none;
   position:fixed;
   inset:0;
   z-index:1500;
   overflow:auto;
   padding:24px;
   background:rgba(15,23,42,.48);
}

.modal-content{
   width:min(620px,100%);
   max-height:80vh;
   overflow:auto;
   margin:6vh auto;
   padding:24px;
   border-radius:20px;
   background:var(--white);
   box-shadow:var(--shadow-hover);
   position:relative;
}

.modal-content h3{
   margin-bottom:14px;
   font-family:var(--font-heading);
   font-size:2.2rem;
}

.modal-content ul{
   padding-left:20px;
   color:var(--muted);
   line-height:1.8;
}

.close{
   position:absolute;
   right:16px;
   top:12px;
   color:var(--muted);
   font-size:2.6rem;
   cursor:pointer;
}

.update-profile form{
   /* .update-profile already sits at the shared page width via its own
      width:min(...) rule; this used to additionally cap the form to 900px
      and centre it, leaving a narrow card with excess gutters instead of
      matching the section's real width. */
}

.update-profile form img{
   width:112px;
   height:112px;
   margin:0 auto 16px;
   border-radius:50%;
   background:var(--surface-low);
   object-fit:cover;
}

.update-profile .flex-btn{
   margin-top:16px;
}

@media (max-width:940px){
   .shopping-cart,
   .wishlist,
   .display-orders{
      grid-template-columns:1fr;
   }

   .cart-total,
   .wishlist-total{
      position:static;
   }

   .checkout-orders form .flex,
   .update-profile form .flex{
      grid-template-columns:1fr;
   }

   .checkout-delivery-methods{
      grid-template-columns:1fr;
   }
}

/* Reference refinement layer: customer pages */
.store-section,
.products,
.home-category,
.about,
.reviews,
.contact,
.shopping-cart,
.wishlist,
.checkout-orders,
.placed-orders,
.update-profile{
   width:min(var(--container), calc(100% - 40px));
}

.store-hero{
   width:min(var(--container), calc(100% - 40px));
   margin-top:34px;
   border:0;
   border-radius:34px;
   background:
      linear-gradient(120deg,#fff5f6 0%,#ffffff 52%,#eaf6ff 100%);
   box-shadow:none;
}

.store-hero .home{
   grid-template-columns:minmax(0,.9fr) minmax(420px,1fr);
   gap:54px;
   padding:64px;
}

.store-hero .content span,
.hero-kicker{
   border:1px solid rgba(7,141,206,.16);
   background:#fff;
   color:var(--secondary);
}

.store-hero h3{
   font-size:clamp(4.6rem,5.5vw,7.6rem);
   letter-spacing:-.07em;
}

.store-hero p{
   color:var(--muted);
   font-size:1.72rem;
   line-height:1.75;
}

.hero-visual{
   min-height:420px;
   border:0;
   border-radius:32px;
   background:#efe8d8;
   box-shadow:0 22px 70px rgba(31,41,51,.13);
}

.hero-visual img{
   min-height:420px;
}

.trust-strip{
   width:min(var(--container), calc(100% - 40px));
   margin-top:22px;
}

.trust-card,
.home-category .box,
.products .box,
.shopping-cart .box,
.wishlist .box,
.cart-total,
.wishlist-total,
.checkout-orders form,
.display-orders .grand-total,
.placed-orders .box,
.modal-content{
   border:1px solid #e5e7eb;
   background:#fff;
   box-shadow:0 10px 30px rgba(31,41,51,.045);
}

.trust-card{
   border-radius:18px;
}

.home-category .box-container,
.category-grid{
   grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
   gap:16px;
}

.home-category .box{
   min-height:190px;
   padding:13px;
   border-radius:20px;
}

.home-category .box img{
   height:112px;
   border-radius:16px;
   background:#f3f4ef;
   object-fit:contain;
}

.home-category .box h3{
   color:var(--text);
   font-size:1.45rem;
}

.products{
   padding-top:42px;
}

.products .box-container{
   grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
   gap:18px;
}

.products .box{
   min-height:auto;
   padding:12px;
   border-radius:22px;
   overflow:hidden;
   transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.products .box:hover{
   transform:translateY(-3px);
   border-color:#d4ddd4;
   box-shadow:0 18px 44px rgba(31,41,51,.08);
}

.products .image-container,
.products .box-content img{
   height:180px;
   border-radius:18px;
   background:#f4f5ef;
}

.products .image-container img,
.products .box-content img{
   padding:12px;
   object-fit:contain;
}

.products .box-content{
   padding:12px 4px 2px;
}

.products .product-info,
.products .box-footer{
   gap:10px;
}

.products .product-name,
.products .name{
   min-height:0;
   color:var(--text);
   font-size:1.48rem;
   line-height:1.35;
   letter-spacing:-.02em;
}

.products .price{
   align-self:flex-start;
   padding:6px 10px;
   border-radius:999px;
   background:var(--primary-soft-2);
   color:var(--primary);
   font-size:1.42rem;
}

.products .qty,
.quick-view .qty{
   width:72px;
   min-height:38px;
   border-radius:12px;
   text-align:center;
}

.products .btn,
.products .option-btn{
   min-height:38px;
   padding:9px 13px;
   font-size:1.25rem;
}

.quick-view .box{
   grid-template-columns:minmax(300px,.9fr) minmax(0,1fr);
   gap:34px;
   padding:26px;
   border-radius:28px;
}

.quick-view .box img{
   height:430px;
   border-radius:24px;
   background:#f4f5ef;
   object-fit:contain;
}

.quick-view .name{
   font-size:clamp(2.7rem,3vw,4.2rem);
   letter-spacing:-.05em;
}

.commerce-hero,
.about-hero,
.contact-hero{
   width:min(var(--container), calc(100% - 40px));
   border:0;
   border-radius:30px;
   background:linear-gradient(120deg,#fbf4e8,#fff,#effaf2);
   box-shadow:none;
}

.shopping-cart,
.wishlist{
   grid-template-columns:minmax(0,1fr) 330px;
   gap:22px;
}

.shopping-cart .box-container,
.wishlist .box-container{
   gap:14px;
}

.shopping-cart .box,
.wishlist .box{
   grid-template-columns:122px minmax(0,1fr);
   gap:16px;
   padding:14px;
   border-radius:22px;
}

.shopping-cart .box img,
.wishlist .box img{
   width:122px;
   height:122px;
   border-radius:18px;
   background:#f4f5ef;
   object-fit:contain;
}

.shopping-cart .name,
.wishlist .name{
   font-size:1.55rem;
}

.cart-total,
.wishlist-total{
   top:102px;
   padding:22px;
   border-radius:24px;
}

.cart-total p,
.wishlist-total p{
   font-size:2.05rem;
   letter-spacing:-.035em;
}

.display-orders{
   grid-template-columns:minmax(0,1fr) 340px;
   gap:22px;
}

.display-orders p{
   border-radius:999px;
   background:#fff;
}

.checkout-orders form,
.update-profile form{
   padding:28px;
   border-radius:28px;
}

.checkout-orders form h3{
   font-size:clamp(2.45rem,2.7vw,3.55rem);
}

.checkout-orders form .flex,
.update-profile form .flex{
   gap:16px;
}

.checkout-orders .inputBox :is(span, label),
.update-profile .inputBox :is(span, label){
   color:var(--text-soft);
   font-size:1.28rem;
}

.placed-orders .box-container{
   grid-template-columns:repeat(auto-fill,minmax(330px,1fr));
}

.placed-orders .box{
   padding:20px;
   border-radius:22px;
}

.placed-orders p{
   display:flex;
   justify-content:space-between;
   gap:14px;
   border-bottom:1px solid #f1f5f9;
   padding-bottom:7px;
}

.placed-orders p:last-child{
   border-bottom:0;
}

.about-story,
.about-values,
.contact-layout{
   gap:24px;
}

.about-card,
.value-card,
.contact-card,
.contact-form-card,
.review-form-card{
   border:1px solid #e5e7eb;
   border-radius:24px;
   background:#fff;
   box-shadow:0 12px 32px rgba(31,41,51,.045);
}

.contact-form-card form .box,
.review-form-card form .box{
   border-radius:14px;
}

.category-card{
   overflow:hidden;
}

.category-card-image{
   display:grid;
   place-items:center;
   min-height:124px;
   border-radius:18px;
   background:#f3f4ef;
}

.category-card-body{
   display:grid;
   gap:8px;
}

.product-card{
   display:flex;
   flex-direction:column;
}

.product-card-media{
   position:relative;
}

.product-card-body{
   flex:1;
   display:flex;
   flex-direction:column;
   gap:12px;
}

.product-card-copy{
   display:grid;
   gap:8px;
}

.product-card-actions{
   margin-top:auto;
   display:grid;
   grid-template-columns:auto auto minmax(0,1fr);
   align-items:end;
   gap:8px;
}

.qty-control{
   display:grid;
   gap:5px;
   color:var(--muted);
   font-size:1.15rem;
   font-weight:600;
}

.qty-control span{
   text-transform:uppercase;
   letter-spacing:.08em;
}

.unit{
   align-self:end;
   min-height:38px;
   display:inline-flex;
   align-items:center;
   color:var(--muted);
   font-size:1.25rem;
   font-weight:600;
}

.product-detail-shell{
   align-items:stretch;
}

.product-detail-info{
   display:flex;
   flex-direction:column;
   justify-content:center;
   gap:14px;
}

.detail-benefits{
   display:flex;
   flex-wrap:wrap;
   gap:8px;
}

.detail-benefits span{
   display:inline-flex;
   align-items:center;
   gap:7px;
   padding:8px 11px;
   border:1px solid #dce9dd;
   border-radius:999px;
   background:#fff;
   color:var(--secondary);
   font-size:1.25rem;
   font-weight:600;
}

.cart-layout{
   align-items:start;
}

.cart-main{
   min-width:0;
}

.cart-items{
   display:grid;
   gap:14px;
}

.cart-item-card{
   position:relative;
}

.cart-item-media{
   display:grid;
   place-items:center;
}

.cart-item-info{
   min-width:0;
   display:grid;
   grid-template-columns:minmax(0,1fr) auto;
   grid-template-areas:
      "name actions"
      "price price"
      "qty qty"
      "sub sub";
   align-items:start;
   gap:8px;
}

.cart-item-actions{
   display:flex;
   grid-area:actions;
   align-items:center;
   justify-content:flex-end;
   justify-self:end;
   gap:8px;
}

.cart-item-actions a{
   position:static!important;
}

.cart-item-info .name{
   grid-area:name;
   padding-top:4px;
}

.cart-item-info .price{
   grid-area:price;
}

.cart-qty-row{
   grid-area:qty;
   align-items:end;
}

.cart-item-info .sub-total{
   grid-area:sub;
}

.checkout-layout{
   width:min(var(--container), calc(100% - 40px));
   display:grid;
   grid-template-columns:360px minmax(0,1fr);
   gap:24px;
   align-items:start;
   margin-inline:auto;
}

.checkout-summary{
   position:sticky;
   top:102px;
   display:block;
   width:100%;
}

.checkout-summary-head{
   margin-bottom:14px;
}

.checkout-summary-head h2{
   color:var(--text);
   font-size:2rem;
   letter-spacing:-.035em;
}

.checkout-form-panel{
   width:100%;
}

.checkout-form-head{
   margin-bottom:18px;
}

.checkout-form-head p{
   color:var(--muted);
   font-size:1.4rem;
}

.profile-note{
   margin-top:8px;
   padding:12px;
   border:1px solid #dce9dd;
   border-radius:14px;
   background:#f0fdf4;
   color:var(--text-soft);
   font-size:1.28rem;
   line-height:1.6;
}

@media (max-width:1080px){
   .store-hero .home{
      grid-template-columns:1fr;
      padding:42px;
   }

   .homepage-section-banner{
      grid-template-columns:1fr;
      padding:22px;
   }

   .hero-visual,
   .hero-visual img{
      min-height:320px;
   }

   .quick-view .box{
      grid-template-columns:1fr;
   }

   .shopping-cart,
   .wishlist,
   .display-orders,
   .checkout-layout{
      grid-template-columns:1fr;
   }

   .checkout-summary{
      position:static;
   }
}

/* Final dynamic customer layout polish */
img{
   height:auto;
}

.products .box,
.wishlist .box,
.shopping-cart .box,
.placed-orders .box,
.checkout-summary,
.checkout-form-panel,
.update-profile form,
.contact-card,
.contact-form-card,
.about-card{
   min-width:0;
}

.products .product-name,
.products .name,
.wishlist .name,
.shopping-cart .name,
.placed-orders span,
.placed-orders p,
.checkout-summary p,
.grand-total{
   overflow-wrap:anywhere;
}

.products .box-container,
.home-category .box-container{
   grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}

.products .image-container,
.products .box-content img{
   aspect-ratio:4 / 3;
   height:auto;
   min-height:0;
}

.products .image-container img,
.products .box-content img{
   width:100%;
   height:100%;
   object-fit:contain;
}

.product-card-actions{
   align-items:stretch;
}

.product-card-actions .qty,
.products .qty,
.wishlist .qty{
   min-height:42px;
}

.quick-view .box,
.product-detail-shell{
   grid-template-columns:minmax(280px,460px) minmax(0,1fr);
}

.shopping-cart,
.wishlist,
.checkout-layout{
   align-items:start;
}

.shopping-cart .box-container,
.wishlist .box-container{
   min-width:0;
}

.cart-total,
.wishlist-total{
   position:sticky;
   top:96px;
}

.checkout-summary{
   top:96px;
}

.checkout-orders form .flex,
.update-profile form .flex{
   grid-template-columns:repeat(2,minmax(0,1fr));
}

.checkout-orders form .box,
.update-profile form .box,
.contact form .box,
.search-form form .box{
   width:100%;
}

@media (max-width:1024px){
   .store-hero .home,
   .quick-view .box,
   .product-detail-shell,
   .contact-layout,
   .about-grid,
   .checkout-layout,
   .shopping-cart,
   .wishlist{
      grid-template-columns:1fr;
   }

   .cart-total,
   .wishlist-total,
   .checkout-summary{
      position:static;
   }

   .checkout-summary{
      order:2;
   }

   .checkout-form-panel{
      order:1;
   }
}

/* SUNSIRI grocery storefront redesign */
body{
   background:var(--background-main);
}

.store-section,
.products,
.home-category,
.about,
.reviews,
.contact,
.shopping-cart,
.wishlist,
.checkout-orders,
.placed-orders,
.update-profile,
.trust-strip,
.promo-grid,
.homepage-section-block,
.checkout-layout{
   width:min(var(--container),calc(100% - 40px));
}

.section-head{
   align-items:center;
   margin-bottom:22px;
}

.section-head .title,
.title{
   font-size:3rem;
   line-height:1.18;
   letter-spacing:0;
}

.section-head > a{
   min-height:38px;
   display:inline-flex;
   align-items:center;
   padding:0 14px;
   border:1px solid #CDD3EA;
   border-radius:12px;
   color:var(--brand-primary);
   text-decoration:none;
}

.eyebrow{
   color:var(--brand-primary);
   letter-spacing:.04em;
}

.store-hero{
   width:min(var(--container),calc(100% - 40px));
   margin-top:26px;
   border:1px solid #DCE2F8;
   border-radius:24px;
   background:var(--brand-primary-soft);
   box-shadow:none;
}

.store-hero .home{
   grid-template-columns:minmax(0,.92fr) minmax(380px,1fr);
   gap:42px;
   padding:48px;
}

.store-hero .content span,
.hero-kicker{
   border:1px solid #D6DCF5;
   border-radius:12px;
   background:#fff;
   color:var(--brand-primary);
}

.store-hero h3{
   max-width:640px;
   color:var(--brand-dark);
   font-size:5.2rem;
   line-height:1.04;
   letter-spacing:0;
}

.store-hero p{
   color:#555E7A;
   font-size:1.6rem;
   line-height:1.7;
}

.customer-chip{
   margin-top:12px!important;
   border:1px solid rgba(48,59,143,.12);
   border-radius:12px;
   background:rgba(255,255,255,.74);
}

.hero-actions{
   gap:10px;
   margin-top:22px;
}

.hero-actions .option-btn{
   border-color:#C8CFEA;
   background:#fff;
   color:var(--brand-primary);
}

.hero-visual{
   min-height:340px;
   border:8px solid rgba(255,255,255,.5);
   border-radius:20px;
   background:#fff;
   box-shadow:none;
}

.hero-visual img{
   min-height:340px;
   object-fit:cover;
}

.trust-strip{
   margin-top:18px;
   gap:12px;
}

.trust-card{
   min-width:0;
   padding:15px;
   border:1px solid var(--border-color);
   border-radius:16px;
   background:#fff;
   box-shadow:none;
}

.trust-card i{
   border-radius:12px;
   background:var(--brand-primary-soft);
   color:var(--brand-primary);
}

.home-category{
   padding-top:50px;
}

.home-category .box-container,
.category-grid{
   grid-template-columns:repeat(6,minmax(0,1fr));
   gap:14px;
}

.home-category .box{
   min-height:190px;
   padding:12px;
   border:1px solid var(--border-color);
   border-radius:16px;
   background:#fff;
   box-shadow:none;
}

.home-category .box:hover{
   border-color:#C7D2FE;
   box-shadow:0 12px 28px rgba(48,59,143,.08);
}

.home-category .box img,
.category-card-image{
   width:100%;
   height:112px;
   border-radius:14px;
   background:var(--surface-muted);
   object-fit:contain;
}

.home-category .box h3{
   color:var(--text-primary);
   font-size:1.4rem;
}

.home-category .box .btn{
   border-color:transparent;
   background:var(--brand-primary-pale);
   color:var(--brand-primary);
}

.products{
   padding:46px 0;
}

.products .box-container{
   grid-template-columns:repeat(4,minmax(0,1fr));
   gap:16px;
}

.products .box,
.product-card{
   min-width:0;
   min-height:100%;
   gap:10px;
   padding:12px;
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
   overflow:hidden;
}

.products .box:hover,
.product-card:hover{
   transform:translateY(-2px);
   border-color:#C7D2FE;
   box-shadow:0 14px 32px rgba(48,59,143,.09);
}

.products .image-container,
.products .box-content img,
.product-image-wrap,
.product-card-media{
   width:100%;
   height:auto;
   aspect-ratio:4 / 3;
   border-radius:14px;
   background:var(--surface-muted);
   overflow:hidden;
}

.products .image-container img,
.products .box-content img,
.product-image-wrap img,
.product-card-media img{
   width:100%;
   height:100%;
   padding:12px;
   border-radius:14px;
   object-fit:contain;
}

.products .fa-eye{
   top:9px;
   right:9px;
   width:36px;
   height:36px;
   border:1px solid var(--border-color);
   background:rgba(255,255,255,.94);
   color:var(--brand-primary);
}

.product-card-body,
.products .product-info,
.products .box-footer{
   flex:1;
   display:flex;
   flex-direction:column;
   gap:10px;
}

.products .product-name,
.products .name{
   min-height:40px;
   color:var(--text-primary);
   font-size:1.45rem;
   font-weight:600;
   line-height:1.38;
   letter-spacing:0;
   display:-webkit-box;
   -webkit-line-clamp:2;
   -webkit-box-orient:vertical;
   overflow:hidden;
}

.products .price,
.quick-view .price{
   width:max-content;
   padding:0;
   border-radius:0;
   background:transparent;
   color:var(--brand-primary);
   font-size:1.3rem;
}

.products .price span{
   color:var(--brand-primary);
   font-size:1.9rem;
}

.product-card-actions{
   width:100%;
   margin-top:auto;
   display:grid;
   grid-template-columns:72px minmax(0,1fr);
   align-items:end;
   gap:8px;
}

.product-card-actions .unit{
   display:none;
}

.qty-control{
   min-width:0;
}

.products .qty,
.quick-view .qty,
.wishlist .qty,
.qty{
   width:100%;
   min-height:42px;
   border:1px solid var(--border-color);
   border-radius:12px;
   background:#fff;
   text-align:center;
}

.product-card-actions .btn,
.products .btn,
.products .option-btn{
   width:100%;
   min-height:42px;
   border-radius:12px;
}

.homepage-section-block{
   margin:0 auto 36px;
   gap:16px;
}

.homepage-section-banner,
.promo-card{
   border:1px solid #DCE2F8;
   border-radius:20px;
   background:var(--brand-primary-pale);
   box-shadow:none;
}

.homepage-section-banner{
   grid-template-columns:minmax(0,1fr) minmax(260px,380px);
   padding:28px;
}

.homepage-section-copy h2,
.promo-card h2{
   color:var(--brand-dark);
   letter-spacing:0;
}

.homepage-section-visual,
.promo-card img{
   border-radius:16px;
   background:#fff;
}

.promo-grid{
   padding-bottom:36px;
   gap:16px;
}

.promo-card.alt{
   background:#EEF2FF;
}

.commerce-hero,
.page-hero,
.about-hero,
.contact-hero{
   width:min(var(--container),calc(100% - 40px));
   margin-top:26px;
   padding:30px;
   border:1px solid #DCE2F8;
   border-radius:20px;
   background:var(--brand-primary-pale);
   box-shadow:none;
}

.commerce-hero h1,
.page-hero h1,
.about-copy h1{
   color:var(--brand-dark);
   font-size:3.8rem;
   line-height:1.12;
   letter-spacing:0;
}

.search-form form{
   border:1px solid var(--border-color);
   border-radius:16px;
   background:#fff;
   box-shadow:none;
}

.quick-view .box,
.product-detail-shell{
   grid-template-columns:minmax(300px,460px) minmax(0,1fr);
   gap:36px;
   padding:24px;
   border:1px solid var(--border-color);
   border-radius:20px;
   background:#fff;
   box-shadow:none;
}

.quick-view .box img{
   height:430px;
   padding:22px;
   border-radius:16px;
   background:var(--surface-muted);
   object-fit:contain;
}

.quick-view .name{
   color:var(--brand-dark);
   font-size:3.6rem;
   letter-spacing:0;
}

.detail-benefits span{
   border-color:#D6DCF5;
   background:var(--brand-primary-pale);
   color:var(--brand-primary);
}

.shopping-cart,
.wishlist{
   grid-template-columns:minmax(0,1fr) 340px;
   gap:22px;
}

.shopping-cart .box-container,
.wishlist .box-container{
   min-width:0;
   gap:12px;
}

.shopping-cart .box,
.wishlist .box{
   grid-template-columns:118px minmax(0,1fr);
   gap:16px;
   padding:14px;
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
}

.shopping-cart .box img,
.wishlist .box img{
   width:118px;
   height:118px;
   padding:8px;
   border-radius:14px;
   background:var(--surface-muted);
   object-fit:contain;
}

.shopping-cart .cart-item-actions .fa-eye,
.shopping-cart .cart-item-actions .fa-times{
   border-radius:11px;
}

.cart-total,
.wishlist-total{
   top:94px;
   padding:22px;
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
}

.cart-total p,
.wishlist-total p{
   color:var(--brand-dark);
   font-size:2rem;
   letter-spacing:0;
}

.cart-total .summary-action-form,
.wishlist-total .summary-action-form,
.cart-total a,
.wishlist-total a,
.cart-total button,
.wishlist-total button{
   width:100%;
}

.checkout-layout{
   grid-template-columns:360px minmax(0,1fr);
   gap:22px;
}

.checkout-summary,
.checkout-form-panel,
.checkout-orders form,
.update-profile form{
   min-width:0;
   padding:24px;
   border:1px solid var(--border-color);
   border-radius:20px;
   background:#fff;
   box-shadow:none;
}

.checkout-summary{
   top:94px;
}

.checkout-delivery-methods{
   gap:10px;
}

.checkout-method-card{
   border:1px solid var(--border-color);
   border-radius:16px;
   background:#fff;
}

.checkout-method-card:has(input:checked){
   border-color:var(--brand-primary);
   background:var(--brand-primary-pale);
   box-shadow:0 0 0 3px rgba(48,59,143,.08);
}

.profile-note{
   border-color:#C7D2FE;
   background:var(--brand-primary-pale);
}

.update-profile .profile-security-form{
   margin-top:20px;
}

.profile-security-head{
   margin-bottom:18px;
}

.profile-security-head h2{
   margin:4px 0 6px;
   color:var(--text);
   font-family:var(--font-heading);
   font-size:2.4rem;
}

.profile-security-head p{
   color:var(--muted);
   font-size:1.35rem;
}

.profile-password-grid{
   display:grid;
   grid-template-columns:repeat(3,minmax(0,1fr));
   gap:14px;
   margin-bottom:18px;
}

.profile-password-grid label{
   display:grid;
   gap:6px;
   color:var(--muted);
   font-size:1.3rem;
   font-weight:600;
}

.placed-orders .box-container{
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:16px;
}

.placed-orders .box,
.order-card{
   padding:18px;
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
}

/* The shared .empty state still uses a dashed border everywhere else (Reviews,
   Wishlist, Cart); scope the "No orders placed yet" box to a solid border that
   matches the order cards' own border color/contrast, without touching the
   other pages using .empty. Specificity has to beat ".placed-orders
   p:last-child" (which zeroes out border-bottom on the last <p> in the list —
   this empty state is a lone <p>, so it's always that last child), hence the
   extra ".box-container" ancestor instead of plain ".placed-orders .empty". */
.placed-orders .box-container .empty{
   border:1px solid var(--border-color);
   /* ".placed-orders p" (styled for the "Order placed successfully" banner)
      also matches this <p> and turns it into a space-between flex row with a
      trimmed bottom padding, which pushed the message off both axes: no
      longer centered horizontally, and sitting closer to the bottom edge
      than the top. Drop back to a plain centered block so the box's own
      text-align/padding (unchanged) center it on both axes again. */
   display:block;
   padding-bottom:32px;
}

/* The "Order placed successfully" banner itself (<p class="message">) is the
   same ".placed-orders p" collision as the .empty override above: it swaps
   the alert's own block padding/border (components.css .message) for a
   list-row's flex layout, 7px bottom padding, and a near-invisible bottom
   border color, which visually clipped the alert's rounded bottom edge. */
.placed-orders .message{
   display:block;
   padding-bottom:14px;
   border-bottom:1px solid #C7D2FE;
}

.order-card-grid p,
.order-address-block,
.order-products-block{
   border-color:#ECEEF5!important;
   border-radius:12px;
   background:var(--surface-muted);
}

.order-status.accepted,
.order-status.preparing,
.order-status.packed,
.order-status.sent_out,
.status-pill.pending,
.fulfilment-badge.pickup{
   background:var(--brand-primary-soft);
   color:var(--brand-primary);
}

.order-status.completed,
.status-pill.completed{
   background:#E8F7ED;
   color:var(--success);
}

.order-status.cancelled{
   background:#FEECEC;
   color:var(--danger);
}

.about-hero{
   grid-template-columns:minmax(0,1fr) minmax(280px,420px);
}

.about-image,
.about .box img{
   background:#fff;
}

.about .box,
.reviews .box,
.review-form,
.contact-layout form,
.contact-info-card{
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
}

.contact-list i{
   background:var(--brand-primary-soft);
   color:var(--brand-primary);
}

.pagination a,
.pagination span{
   border-color:var(--border-color);
   border-radius:11px;
}

.pagination a.active{
   border-color:var(--brand-primary);
   background:var(--brand-primary);
}

@media (max-width:1100px){
   .home-category .box-container,
   .category-grid{
      grid-template-columns:repeat(4,minmax(0,1fr));
   }

   .products .box-container{
      grid-template-columns:repeat(3,minmax(0,1fr));
   }

   .store-hero .home,
   .quick-view .box,
   .product-detail-shell,
   .shopping-cart,
   .wishlist,
   .checkout-layout,
   .contact-layout,
   .about-hero{
      grid-template-columns:1fr;
   }

   .hero-visual,
   .hero-visual img{
      min-height:300px;
   }

   .cart-total,
   .wishlist-total,
   .checkout-summary{
      position:static;
   }

   .checkout-summary{
      order:2;
   }
}

/* Phase 2: customer homepage only. Existing commerce page selectors remain intact. */
body.homepage-redesign{
   background:var(--page-background);
   color:var(--text-primary);
}

.homepage-redesign main{
   overflow:hidden;
}

.homepage-redesign .store-hero,
.homepage-redesign .home-category,
.homepage-redesign .products,
.homepage-redesign .homepage-section-block,
.homepage-redesign .promo-grid,
.homepage-redesign .home-range-banner,
.homepage-redesign .homepage-benefits{
   width:min(var(--container-width), calc(100% - 48px));
   margin-left:auto;
   margin-right:auto;
}

.homepage-redesign .store-hero{
   margin-top:26px;
}

.homepage-redesign .hero-composition{
   display:grid;
   grid-template-columns:minmax(0, 1.95fr) minmax(280px, 1fr);
   gap:16px;
   padding:0;
   background:transparent;
   align-items:stretch;
}

.homepage-redesign .hero-main-banner{
   min-height:370px;
   overflow:hidden;
   display:grid;
   grid-template-columns:minmax(0, 1fr) minmax(260px, .92fr);
   align-items:stretch;
   border:1px solid #d9e5f5;
   border-radius:var(--radius-large);
   background:linear-gradient(125deg, #f6f9ff 0%, #e8f1ff 100%);
   box-shadow:var(--shadow-card);
}

.homepage-redesign .hero-main-banner .content{
   max-width:none;
   padding:50px 18px 42px 42px;
   align-self:center;
   text-align:left;
}

.homepage-redesign .hero-kicker{
   display:inline-flex;
   align-items:center;
   gap:8px;
   margin:0 0 16px;
   padding:7px 11px;
   border-radius:999px;
   background:#fff;
   color:var(--brand-primary-dark);
   font-size:1.1rem;
   font-weight:600;
   letter-spacing:.04em;
   text-transform:uppercase;
}

.homepage-redesign .hero-main-banner h1{
   max-width:530px;
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:clamp(3.3rem, 4.1vw, 5.4rem);
   font-weight:600;
   line-height:1.04;
   letter-spacing:0;
}

.homepage-redesign .hero-main-banner p{
   max-width:470px;
   margin:17px 0 0;
   color:var(--text-secondary);
   font-size:1.5rem;
   line-height:1.65;
}

.homepage-redesign .hero-main-banner .customer-chip{
   display:inline-flex;
   margin-top:15px;
   padding:7px 10px;
   border:1px solid #d7e4f7;
   border-radius:8px;
   background:rgba(255,255,255,.78);
   color:#4c5d79;
   font-size:1.15rem;
}

.homepage-redesign .hero-actions{
   display:flex;
   flex-wrap:wrap;
   gap:10px;
   margin-top:25px;
}

.homepage-redesign .hero-actions .btn,
.homepage-redesign .home-range-banner .btn{
   min-height:44px;
   padding:0 17px;
   border-radius:10px;
   background:var(--brand-primary);
   color:#fff;
   display:inline-flex;
   align-items:center;
   gap:9px;
   font-size:1.25rem;
   font-weight:600;
}

.homepage-redesign .hero-actions .btn:hover,
.homepage-redesign .home-range-banner .btn:hover{
   background:var(--brand-primary-hover);
   transform:translateY(-1px);
}

.homepage-redesign .hero-actions .option-btn{
   min-height:44px;
   padding:0 17px;
   border:1px solid #c8d9ef;
   border-radius:10px;
   background:#fff;
   color:var(--brand-primary-dark);
   display:inline-flex;
   align-items:center;
   font-size:1.25rem;
   font-weight:600;
}

.homepage-redesign .hero-visual{
   min-height:100%;
   overflow:hidden;
   padding:22px 22px 22px 0;
   background:none;
}

.homepage-redesign .hero-visual img{
   width:100%;
   height:100%;
   min-height:300px;
   border-radius:16px;
   object-fit:cover;
   object-position:center;
   box-shadow:0 10px 22px rgba(18, 60, 131, .12);
}

.homepage-redesign .hero-side-banners{
   display:grid;
   grid-template-rows:repeat(2, minmax(0, 1fr));
   gap:16px;
}

.homepage-redesign .hero-side-banner{
   position:relative;
   min-height:177px;
   overflow:hidden;
   display:grid;
   grid-template-columns:minmax(0, 1fr) 116px;
   gap:8px;
   padding:24px 17px 18px 23px;
   border:1px solid #e8dcc3;
   border-radius:var(--radius-medium);
   background:#fff3d9;
}

.homepage-redesign .hero-side-banner-2{
   border-color:#d6e4f5;
   background:#e8f3ff;
}

.homepage-redesign .hero-side-banner > div{
   position:relative;
   z-index:1;
}

.homepage-redesign .hero-side-banner span{
   color:var(--brand-primary-dark);
   font-size:1.05rem;
   font-weight:600;
   letter-spacing:.05em;
   text-transform:uppercase;
}

.homepage-redesign .hero-side-banner h2{
   max-width:190px;
   margin:7px 0 7px;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:2rem;
   line-height:1.12;
}

.homepage-redesign .hero-side-banner p{
   max-width:190px;
   margin:0;
   color:#50617d;
   font-size:1.18rem;
   line-height:1.4;
}

.homepage-redesign .mini-banner-link{
   display:inline-flex;
   align-items:center;
   gap:7px;
   margin-top:13px;
   color:var(--brand-primary-dark);
   font-size:1.14rem;
   font-weight:600;
}

.homepage-redesign .hero-side-banner img{
   align-self:end;
   width:116px;
   height:118px;
   object-fit:contain;
   filter:drop-shadow(0 7px 10px rgba(44, 72, 110, .13));
}

.homepage-redesign .homepage-benefits{
   display:grid;
   grid-template-columns:repeat(3, minmax(0, 1fr));
   gap:12px;
   margin-top:18px;
   padding:0;
   background:transparent;
}

.homepage-redesign .homepage-benefits .trust-card{
   min-height:76px;
   padding:15px 17px;
   border:1px solid #dce8f7;
   border-radius:var(--radius-medium);
   background:#eff6ff;
   display:flex;
   align-items:center;
   gap:12px;
}

.homepage-redesign .homepage-benefits .trust-card i{
   width:38px;
   height:38px;
   border-radius:50%;
   background:#fff;
   color:var(--brand-primary);
   display:grid;
   place-items:center;
   font-size:1.55rem;
}

.homepage-redesign .homepage-benefits strong{
   display:block;
   color:var(--text-primary);
   font-size:1.25rem;
}

.homepage-redesign .homepage-benefits span{
   display:block;
   margin-top:2px;
   color:var(--text-secondary);
   font-size:1.1rem;
   line-height:1.35;
}

.homepage-redesign .home-category,
.homepage-redesign .products,
.homepage-redesign .homepage-section-block,
.homepage-redesign .promo-grid,
.homepage-redesign .home-range-banner{
   margin-top:var(--section-spacing);
}

.homepage-redesign .section-head{
   display:flex;
   align-items:end;
   justify-content:space-between;
   gap:18px;
   margin-bottom:16px;
}

.homepage-redesign .section-head .eyebrow{
   display:block;
   margin-bottom:5px;
   color:var(--brand-primary);
   font-size:1.05rem;
   font-weight:600;
   letter-spacing:.06em;
   text-transform:uppercase;
}

.homepage-redesign .section-head .title{
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:2.35rem;
   line-height:1.15;
}

.homepage-redesign .section-head > a{
   color:var(--brand-primary);
   font-size:1.22rem;
   font-weight:600;
   white-space:nowrap;
}

.homepage-redesign .section-head > a::after{
   content:'\\f061';
   margin-left:8px;
   font-family:'Font Awesome 6 Free';
   font-weight:700;
}

.homepage-redesign .home-category .box-container{
   display:grid;
   grid-template-columns:repeat(10, minmax(0, 1fr));
   gap:12px;
}

.homepage-redesign .home-category .box{
   min-height:178px;
   padding:12px;
   border:1px solid var(--border-color);
   border-radius:var(--radius-medium);
   background:#fff;
   box-shadow:none;
   display:flex;
   flex-direction:column;
   transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.homepage-redesign .home-category .box:hover{
   border-color:#b9d2f6;
   box-shadow:var(--shadow-small);
   transform:translateY(-3px);
}

.homepage-redesign .category-card-image{
   height:85px;
   display:grid;
   place-items:center;
}

.homepage-redesign .home-category .box img,
.homepage-redesign .category-card-image img{
   width:100%;
   height:100%;
   object-fit:contain;
}

.homepage-redesign .category-card-body{
   display:flex;
   flex:1;
   flex-direction:column;
}

.homepage-redesign .home-category .box h3{
   min-height:34px;
   margin:7px 0 0;
   color:var(--text-primary);
   font-size:1.2rem;
   line-height:1.32;
   text-align:center;
}

.homepage-redesign .home-category .box p:empty,
.homepage-redesign .home-category .box p{
   display:none;
}

.homepage-redesign .home-category .box .btn{
   width:100%;
   min-height:32px;
   margin-top:auto;
   padding:0 8px;
   border-radius:8px;
   background:var(--brand-primary-soft);
   color:var(--brand-primary-dark);
   display:flex;
   align-items:center;
   justify-content:center;
   font-size:1.08rem;
   font-weight:600;
}

.homepage-redesign .home-category .box .btn:hover{
   background:var(--brand-primary);
   color:#fff;
}

.homepage-redesign .products .box-container{
   display:grid;
   grid-template-columns:repeat(6, minmax(0, 1fr));
   gap:14px;
}

.homepage-redesign .products .box,
.homepage-redesign .product-card{
   min-width:0;
   min-height:338px;
   padding:12px;
   border:1px solid var(--border-color);
   border-radius:var(--radius-medium);
   background:#fff;
   box-shadow:none;
   display:flex;
   flex-direction:column;
}

.homepage-redesign .products .box:hover,
.homepage-redesign .product-card:hover{
   border-color:#bfd5f5;
   box-shadow:var(--shadow-card);
   transform:translateY(-3px);
}

.homepage-redesign .product-card-media{
   position:relative;
   height:150px;
   overflow:hidden;
   display:grid;
   place-items:center;
   border-radius:11px;
   background:#f8fafc;
}

.homepage-redesign .product-card-media img{
   width:100%;
   height:100%;
   object-fit:contain;
   mix-blend-mode:multiply;
}

.homepage-redesign .products .fa-eye{
   position:absolute;
   top:8px;
   right:8px;
   width:32px;
   height:32px;
   border:1px solid #dce6f4;
   border-radius:50%;
   background:#fff;
   color:var(--brand-primary);
   display:grid;
   place-items:center;
   font-size:1.2rem;
}

.homepage-redesign .product-card-body{
   flex:1;
   display:flex;
   flex-direction:column;
   padding-top:11px;
}

.homepage-redesign .product-pack{
   display:block;
   min-height:16px;
   margin-bottom:4px;
   color:var(--text-secondary);
   font-size:1rem;
}

.homepage-redesign .products .product-name{
   display:-webkit-box;
   min-height:39px;
   margin:0;
   overflow:hidden;
   color:var(--text-primary);
   font-size:1.23rem;
   line-height:1.35;
   -webkit-box-orient:vertical;
   -webkit-line-clamp:2;
}

.homepage-redesign .products .price{
   min-height:25px;
   margin-top:6px;
   color:var(--brand-primary);
   font-size:1.55rem;
   font-weight:700;
}

.homepage-redesign .products .price span{
   color:inherit;
   font-size:inherit;
}

.homepage-redesign .product-card-actions{
   display:grid;
   grid-template-columns:58px minmax(0, 1fr);
   align-items:end;
   gap:8px;
   margin-top:auto;
   padding-top:11px;
}

.homepage-redesign .qty-control{
   min-width:0;
   display:block;
}

.homepage-redesign .qty-control > span{
   display:block;
   margin:0 0 4px;
   color:var(--text-secondary);
   font-size:1rem;
   font-weight:700;
}

.homepage-redesign .products .qty{
   width:100%;
   height:35px;
   padding:0 4px;
   border:1px solid #d4e0ef;
   border-radius:8px;
   background:#fff;
   color:var(--text-primary);
   text-align:center;
}

.homepage-redesign .product-card-actions .unit{
   display:none;
}

.homepage-redesign .products .btn{
   min-height:35px;
   padding:0 8px;
   border-radius:8px;
   background:var(--brand-primary);
   color:#fff;
   font-size:1.05rem;
   font-weight:600;
}

.homepage-redesign .products .btn:hover{
   background:var(--brand-primary-hover);
}

.homepage-redesign .homepage-section-banner{
   min-height:255px;
   overflow:hidden;
   display:grid;
   grid-template-columns:minmax(0, 1fr) minmax(280px, .9fr);
   border:1px solid #d8e6f7;
   border-radius:var(--radius-large);
   background:var(--brand-primary-soft);
}

.homepage-redesign .homepage-section-copy{
   align-self:center;
   padding:34px 40px;
}

.homepage-redesign .homepage-section-copy h2{
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:3rem;
}

.homepage-redesign .homepage-section-visual img{
   width:100%;
   height:100%;
   object-fit:cover;
}

.homepage-redesign .home-range-banner{
   min-height:255px;
   overflow:hidden;
   display:grid;
   grid-template-columns:minmax(0, 1fr) minmax(320px, 1.05fr);
   border-radius:var(--radius-large);
   background:linear-gradient(120deg, var(--brand-navy), var(--brand-primary));
   color:#fff;
   box-shadow:var(--shadow-card);
}

.homepage-redesign .home-range-copy{
   align-self:center;
   padding:38px 18px 38px 42px;
}

.homepage-redesign .home-range-copy > span{
   color:#b9d9ff;
   font-size:1.1rem;
   font-weight:600;
   letter-spacing:.07em;
   text-transform:uppercase;
}

.homepage-redesign .home-range-copy h2{
   margin:8px 0;
   color:#fff;
   font-family:var(--font-heading);
   font-size:3.2rem;
   line-height:1.08;
}

.homepage-redesign .home-range-copy p{
   max-width:430px;
   color:#d4e6ff;
   font-size:1.35rem;
   line-height:1.6;
}

.homepage-redesign .home-range-copy .btn{
   margin-top:16px;
   background:#fff;
   color:var(--brand-primary-dark);
}

.homepage-redesign .home-range-copy .btn:hover{
   background:#eaf3ff;
}

.homepage-redesign .home-range-visuals{
   min-height:255px;
   display:flex;
   align-items:end;
   justify-content:center;
   gap:10px;
   padding:20px 28px 0;
   background:linear-gradient(90deg, transparent, rgba(255,255,255,.1));
}

.homepage-redesign .home-range-visuals img{
   width:50%;
   max-width:230px;
   height:205px;
   object-fit:contain;
   filter:drop-shadow(0 13px 14px rgba(1, 12, 38, .3));
}

.homepage-redesign .homepage-promo-grid{
   display:grid;
   grid-template-columns:repeat(2, minmax(0, 1fr));
   gap:16px;
}

@media (max-width:1180px){
   .homepage-redesign .hero-main-banner{
      grid-template-columns:minmax(0, 1fr) minmax(230px, .8fr);
   }

   .homepage-redesign .products .box-container{
      grid-template-columns:repeat(4, minmax(0, 1fr));
   }

   .homepage-redesign .home-category .box-container{
      grid-template-columns:repeat(5, minmax(0, 1fr));
   }
}

@media (max-width:900px){
   .homepage-redesign .store-hero,
   .homepage-redesign .home-category,
   .homepage-redesign .products,
   .homepage-redesign .homepage-section-block,
   .homepage-redesign .promo-grid,
   .homepage-redesign .home-range-banner,
   .homepage-redesign .homepage-benefits{
      width:calc(100% - 36px);
   }

   .homepage-redesign .hero-composition{
      grid-template-columns:1fr;
   }

   .homepage-redesign .hero-side-banners{
      grid-template-columns:repeat(2, minmax(0, 1fr));
      grid-template-rows:none;
   }

   .homepage-redesign .hero-side-banner{
      min-height:190px;
   }

   .homepage-redesign .products .box-container{
      grid-template-columns:repeat(3, minmax(0, 1fr));
   }

   .homepage-redesign .home-category .box-container{
      grid-template-columns:repeat(4, minmax(0, 1fr));
   }
}

/* Phase 2B: homepage visual-fidelity refinements. */
body.homepage-redesign{
   background:#fff;
}

.homepage-redesign main{
   background:linear-gradient(#fff 0 72%, #f8fbff 100%);
}

.homepage-redesign .store-hero,
.homepage-redesign .home-category,
.homepage-redesign .products,
.homepage-redesign .homepage-section-block,
.homepage-redesign .promo-grid,
.homepage-redesign .home-range-banner,
.homepage-redesign .homepage-benefits{
   margin-top:30px;
}

.homepage-redesign .store-hero{
   margin-top:22px;
}

.homepage-redesign .hero-main-banner{
   min-height:390px;
   grid-template-columns:minmax(0, .9fr) minmax(330px, 1.1fr);
   background:linear-gradient(120deg, #f8fbff 0%, #e8f2ff 100%);
}

.homepage-redesign .hero-main-banner .content{
   padding:44px 12px 38px 40px;
}

.homepage-redesign .hero-main-banner h1{
   max-width:460px;
   font-size:clamp(3.6rem, 4vw, 5.5rem);
}

.homepage-redesign .hero-main-banner p{
   max-width:410px;
   font-size:1.45rem;
}

.homepage-redesign .hero-visual{
   padding:14px 14px 14px 0;
}

.homepage-redesign .hero-visual img{
   min-height:360px;
   border-radius:15px;
   object-fit:cover;
   object-position:78% center;
   transform:scale(1.05);
}

.homepage-redesign .hero-side-banner{
   grid-template-columns:minmax(0, 1fr) 148px;
   padding:22px 15px 18px 24px;
}

.homepage-redesign .hero-side-banner h2{
   max-width:220px;
   font-size:2.2rem;
}

.homepage-redesign .hero-side-banner p{
   max-width:210px;
}

.homepage-redesign .hero-side-banner img{
   width:148px;
   height:138px;
}

.homepage-redesign .homepage-benefits{
   gap:9px;
}

.homepage-redesign .homepage-benefits .trust-card{
   min-height:66px;
   padding:11px 15px;
   border-radius:12px;
}

.homepage-redesign .homepage-benefits .trust-card i{
   width:34px;
   height:34px;
   font-size:1.35rem;
}

.homepage-redesign .homepage-benefits strong{
   font-size:1.2rem;
}

.homepage-redesign .homepage-benefits span{
   font-size:1.04rem;
}

.homepage-redesign .section-head{
   margin-bottom:12px;
}

.homepage-redesign .section-head .eyebrow{
   display:none;
}

.homepage-redesign .section-head .title{
   font-size:2.65rem;
}

.homepage-redesign .section-head > a{
   font-size:1.18rem;
}

.homepage-redesign .home-category .box{
   min-height:150px;
   padding:10px;
   border-radius:12px;
}

.homepage-redesign .category-card-image.category-card-icon{
   height:80px;
   display:grid;
   place-items:center;
}

.homepage-redesign .category-card-icon i{
   width:58px;
   height:58px;
   border-radius:17px;
   /* Was --brand-primary-soft (a pale tint), which read as a second
      bordered box nested inside the card's own border - a "nested
      outline" look. White + the card's existing spacing/rounded corners
      carry the separation instead; the icon keeps its brand color. */
   background:#fff;
   color:var(--brand-primary);
   display:grid;
   place-items:center;
   font-size:2.4rem;
}

.homepage-redesign .home-category .box h3{
   min-height:31px;
   margin-top:4px;
   font-size:1.13rem;
}

.homepage-redesign .home-category .box .btn{
   min-height:28px;
   background:transparent;
   color:var(--brand-primary);
   font-size:1rem;
}

.homepage-redesign .home-category .box .btn:hover{
   background:var(--brand-primary-soft);
   color:var(--brand-primary-dark);
}

.homepage-redesign .products .box-container{
   gap:12px;
}

.homepage-redesign .products .box,
.homepage-redesign .product-card{
   min-height:358px;
   padding:13px;
   border-radius:13px;
   box-shadow:0 3px 10px rgba(17, 48, 96, .035);
}

.homepage-redesign .product-card-media{
   height:180px;
   background:#f7faff;
}

.homepage-redesign .product-card-media img{
   padding:5px;
   mix-blend-mode:normal;
}

.homepage-redesign .product-pack{
   min-height:14px;
   margin-bottom:3px;
   font-size:.96rem;
   text-transform:none;
}

.homepage-redesign .products .product-name{
   min-height:42px;
   font-size:1.3rem;
   line-height:1.34;
}

.homepage-redesign .products .price{
   min-height:28px;
   margin-top:7px;
   font-size:1.75rem;
}

.homepage-redesign .product-card-actions{
   grid-template-columns:53px minmax(0, 1fr);
   gap:7px;
   padding-top:10px;
}

.homepage-redesign .qty-control > span{
   display:none;
}

.homepage-redesign .products .qty,
.homepage-redesign .products .btn{
   height:38px;
   min-height:38px;
   border-radius:8px;
}

.homepage-redesign .products .btn{
   font-size:1.08rem;
}

.homepage-redesign .home-range-banner{
   min-height:280px;
   grid-template-columns:minmax(0, .85fr) minmax(420px, 1.15fr);
}

.homepage-redesign .home-range-copy{
   padding:36px 12px 34px 42px;
}

.homepage-redesign .home-range-copy h2{
   font-size:3.5rem;
}

.homepage-redesign .home-range-visuals{
   min-height:280px;
   gap:18px;
   padding:8px 32px 0;
}

.homepage-redesign .home-range-visuals img{
   width:48%;
   max-width:280px;
   height:245px;
}

@media (max-width:1180px){
   .homepage-redesign .hero-main-banner{
      grid-template-columns:minmax(0, .9fr) minmax(290px, 1fr);
   }

   .homepage-redesign .hero-main-banner h1{
      font-size:4.1rem;
   }

   .homepage-redesign .hero-side-banner{
      grid-template-columns:minmax(0, 1fr) 124px;
   }

   .homepage-redesign .hero-side-banner img{
      width:124px;
   }

   .homepage-redesign .products .box-container{
      grid-template-columns:repeat(5, minmax(0, 1fr));
   }
}

@media (max-width:900px){
   .homepage-redesign .products .box-container{
      grid-template-columns:repeat(4, minmax(0, 1fr));
   }

   .homepage-redesign .hero-main-banner{
      grid-template-columns:minmax(0, 1fr) minmax(255px, .85fr);
   }

   .homepage-redesign .hero-main-banner .content{
      padding-left:30px;
   }

   .homepage-redesign .hero-main-banner h1{
      font-size:3.65rem;
   }
}

/* Final homepage polish: tighter vertical rhythm and stronger merchandise cards. */
.homepage-redesign .store-hero{
   margin-top:18px;
}

.homepage-redesign .home-category,
.homepage-redesign .products,
.homepage-redesign .homepage-section-block,
.homepage-redesign .promo-grid,
.homepage-redesign .home-range-banner,
.homepage-redesign .homepage-benefits{
   margin-top:24px;
}

.homepage-redesign .section-head{
   margin-bottom:9px;
}

.homepage-redesign .section-head .title{
   font-size:2.8rem;
}

.homepage-redesign .home-category .box{
   min-height:138px;
   padding:8px;
}

.homepage-redesign .category-card-image.category-card-icon{
   height:70px;
}

.homepage-redesign .category-card-icon i{
   width:54px;
   height:54px;
   border-radius:16px;
   font-size:2.25rem;
}

.homepage-redesign .home-category .box h3{
   min-height:28px;
   font-size:1.16rem;
}

.homepage-redesign .products .box,
.homepage-redesign .product-card{
   min-height:340px;
   padding:11px;
}

.homepage-redesign .product-card-media{
   height:188px;
}

/* Canonical product-card type scale. The same values are mirrored on
   .shop-product-grid and the search results grid so a card reads identically
   wherever it appears. */
.homepage-redesign .products .product-name{
   min-height:41px;
   font-size:1.5rem;
   font-weight:600;
   line-height:1.35;
}

.homepage-redesign .products .price{
   min-height:29px;
   margin-top:5px;
   font-size:1.8rem;
   font-weight:700;
}

.homepage-redesign .product-card-actions{
   grid-template-columns:50px minmax(0, 1fr);
   gap:8px;
   padding-top:8px;
}

.homepage-redesign .products .qty,
.homepage-redesign .products .btn{
   height:4.6rem;
   min-height:4.6rem;
}

.homepage-redesign .products .qty{
   font-size:1.4rem;
}

.homepage-redesign .products .btn{
   font-size:1.4rem;
   font-weight:600;
}

.homepage-redesign .home-range-banner{
   min-height:252px;
   grid-template-columns:minmax(0, .8fr) minmax(470px, 1.2fr);
}

.homepage-redesign .home-range-copy{
   padding:30px 8px 26px 40px;
}

.homepage-redesign .home-range-copy h2{
   font-size:3.65rem;
}

.homepage-redesign .home-range-visuals{
   min-height:252px;
   gap:0;
   padding:0 22px 0 0;
}

.homepage-redesign .home-range-visuals img{
   width:57%;
   max-width:300px;
   height:244px;
}

.homepage-redesign .home-range-visuals img + img{
   width:48%;
   margin-left:-42px;
   transform:translateY(8px);
}

/* Final homepage micro-polish: compact section flow without changing structure. */
.homepage-redesign .homepage-benefits{
   margin-bottom:17px;
}

.homepage-redesign .home-category,
.homepage-redesign .products,
.homepage-redesign .homepage-section-block,
.homepage-redesign .promo-grid,
.homepage-redesign .home-range-banner{
   margin-top:18px;
}

.homepage-redesign .home-range-banner{
   margin-bottom:18px;
}

.homepage-redesign .section-head{
   margin-bottom:7px;
}

.homepage-redesign .section-head > a::after{
   content:'\2192';
   display:inline-block;
   margin-left:8px;
   font-family:inherit;
   font-weight:700;
}

.homepage-redesign .home-category .box{
   min-height:142px;
}

.homepage-redesign .home-category .box h3{
   min-height:2.55em;
   margin:0;
   font-size:1.08rem;
   line-height:1.25;
   overflow-wrap:normal;
   word-break:normal;
}

/* Shop catalogue redesign: scoped so the approved homepage remains unchanged. */
.shop-page-shell{
   width:min(1420px, calc(100% - 48px));
   margin:0 auto;
   padding:26px 0 48px;
}

.shop-breadcrumb{
   display:flex;
   align-items:center;
   gap:9px;
   margin:0 0 14px;
   color:var(--text-secondary);
   font-size:1.18rem;
}

.shop-breadcrumb a{
   color:var(--brand-primary);
   font-weight:700;
}

.shop-breadcrumb i{
   color:#9aacc6;
   font-size:1.05rem;
}

.shop-heading{
   display:flex;
   align-items:center;
   min-height:154px;
   margin-bottom:22px;
   padding:28px 34px;
   border:1px solid #dce8f9;
   border-radius:var(--radius-large);
   background:linear-gradient(112deg, #f2f7ff 0%, #f8fbff 62%, #e8f3ff 100%);
}

/* Heading panels live inside the shared customer page shell. Override the
   generic section container so breadcrumb, heading and page layout share one
   exact outer boundary without altering heading text padding. */
.shop-page-shell > :is(.shop-heading, .cart-page-heading, .wishlist-page-heading){
   width:100%;
   margin-inline:0;
   box-sizing:border-box;
}

.shop-heading .eyebrow,
.shop-category-panel .eyebrow{
   display:block;
   margin-bottom:6px;
   color:var(--brand-primary);
   font-size:1.02rem;
   font-weight:600;
   letter-spacing:.06em;
   text-transform:uppercase;
}

.shop-heading h1{
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:3.35rem;
   line-height:1.08;
}

.shop-heading p{
   max-width:680px;
   margin:10px 0 0;
   color:var(--text-secondary);
   font-size:1.35rem;
   line-height:1.55;
}

.shop-catalogue-layout{
   display:grid;
   grid-template-columns:245px minmax(0, 1fr);
   align-items:start;
   gap:22px;
}

.shop-category-panel{
   position:sticky;
   top:18px;
   padding:17px;
   border:1px solid var(--border-color);
   border-radius:var(--radius-medium);
   background:#fff;
   box-shadow:var(--shadow-small);
}

.shop-category-panel-heading{
   padding:3px 5px 12px;
   border-bottom:1px solid #e9eef6;
}

.shop-category-panel h2{
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:1.78rem;
}

.shop-category-link{
   display:flex;
   align-items:center;
   justify-content:space-between;
   gap:8px;
   min-height:38px;
   padding:8px 6px;
   border-bottom:1px solid #eef2f7;
   color:#42516a;
   font-size:1.19rem;
   line-height:1.28;
}

.shop-category-link:last-child{
   border-bottom:0;
}

.shop-category-link i{
   color:#9aacc6;
   font-size:1rem;
}

.shop-category-link:hover,
.shop-category-link:focus-visible,
.shop-category-link.is-current{
   color:var(--brand-primary);
}

.shop-category-link.is-current{
   margin:10px 0 4px;
   padding:9px 10px;
   border:0;
   border-radius:9px;
   background:var(--brand-primary-soft);
   font-weight:600;
}

.shop-listing-toolbar{
   display:flex;
   align-items:center;
   justify-content:space-between;
   gap:18px;
   margin:0 0 14px;
}

.shop-listing-toolbar h2{
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:2.25rem;
   line-height:1.15;
}

.shop-listing-toolbar p{
   margin:5px 0 0;
   color:var(--text-secondary);
   font-size:1.18rem;
}

.shop-toolbar-actions{
   display:flex;
   align-items:center;
   gap:10px;
}

.shop-sort-note,
.shop-mobile-categories summary{
   display:inline-flex;
   align-items:center;
   justify-content:center;
   gap:7px;
   min-height:38px;
   padding:0 12px;
   border:1px solid #d8e3f2;
   border-radius:9px;
   color:#4a5a72;
   background:#fff;
   font-size:1.13rem;
   font-weight:700;
}

.shop-sort-note i,
.shop-mobile-categories summary i{
   color:var(--brand-primary);
}

.shop-sort-note{
   color:var(--text-secondary);
   text-decoration:none;
}

.shop-sort-note:hover,
.shop-sort-note:focus-visible{
   border-color:var(--brand-primary);
   background:var(--brand-primary-pale);
   color:var(--brand-primary);
}

.shop-mobile-categories{
   display:none;
   position:relative;
}

.shop-mobile-categories summary{
   list-style:none;
   cursor:pointer;
}

.shop-mobile-categories summary::-webkit-details-marker{
   display:none;
}

.shop-mobile-category-list{
   position:absolute;
   z-index:8;
   top:calc(100% + 8px);
   right:0;
   width:min(285px, calc(100vw - 36px));
   padding:11px 14px;
   border:1px solid var(--border-color);
   border-radius:var(--radius-medium);
   background:#fff;
   box-shadow:var(--shadow-card);
}

.shop-mobile-category-list .shop-category-link{
   padding-left:4px;
}

.shop-product-grid{
   display:grid;
   grid-template-columns:repeat(4, minmax(0, 1fr));
   gap:14px;
   width:100%;
}

.shop-product-grid .product-card{
   min-width:0;
   min-height:335px;
   padding:11px;
   border:1px solid var(--border-color);
   border-radius:var(--radius-medium);
   background:#fff;
   box-shadow:0 4px 14px rgba(21, 49, 89, .045);
}

.shop-product-grid .product-card:hover{
   border-color:#bdd5f6;
   box-shadow:0 8px 22px rgba(21, 76, 155, .10);
   transform:translateY(-2px);
}

.shop-product-grid .product-card-media{
   height:174px;
   margin-bottom:10px;
   border-radius:10px;
   background:#f3f7fd;
}

.shop-product-grid .product-card-media img{
   width:100%;
   height:100%;
   object-fit:contain;
}

.shop-product-grid .product-card-body{
   display:flex;
   flex:1;
   flex-direction:column;
   min-height:0;
}

.shop-product-grid .product-name{
   display:-webkit-box;
   min-height:41px;
   margin:0;
   overflow:hidden;
   color:var(--text-primary);
   font-size:1.5rem;
   font-weight:600;
   line-height:1.35;
   -webkit-box-orient:vertical;
   -webkit-line-clamp:2;
}

.shop-product-grid .price{
   min-height:29px;
   margin:6px 0 0;
   color:var(--brand-primary);
   font-size:1.8rem;
   font-weight:700;
}

.shop-product-grid .product-card-actions{
   display:grid;
   grid-template-columns:48px minmax(0, 1fr);
   gap:7px;
   margin-top:auto;
   padding-top:9px;
}

.shop-product-grid .qty-control{
   min-width:0;
}

.shop-product-grid .qty-control > span{
   display:none;
}

.shop-product-grid .qty,
.shop-product-grid .btn{
   width:100%;
   height:4.6rem;
   min-height:4.6rem;
}

.shop-product-grid .qty{
   padding:0 3px;
   text-align:center;
   font-size:1.4rem;
}

.shop-product-grid .btn{
   padding:0 8px;
   font-size:1.4rem;
   font-weight:600;
}

.shop-product-grid .unit{
   display:none;
}

/* Phase 9: shared customer product links remain independent from card forms. */
.product-card-image-link{
   display:block;
   width:100%;
   height:100%;
   border-radius:inherit;
}

.product-card-image-link:focus-visible,
.product-card-name-link:focus-visible{
   outline:3px solid rgba(20, 87, 184, .38);
   outline-offset:3px;
}

.product-card-image-link img{
   display:block;
}

.product-card-name-link{
   color:inherit;
   text-decoration:none;
}

.product-card-name-link:hover{
   color:var(--brand-primary);
   text-decoration:underline;
   text-underline-offset:3px;
}

.cart-page-shell .cart-item-media .product-card-image-link{
   display:block;
   width:100%;
   height:100%;
}

.cart-page-shell .cart-live-status{
   min-height:0;
   margin:0;
   color:var(--text-secondary);
   font-size:1.2rem;
}

/* Reserve height/spacing only once JS actually populates this AJAX status
   line, so it can still update in place without a layout jump. Empty on
   first load, it was reserving that height anyway, pushing "Cart items"
   ~27px below where "Order summary" starts in the aside next to it. */
.cart-page-shell .cart-live-status:not(:empty){
   min-height:18px;
   margin:0 0 9px;
}

.cart-page-shell .cart-quantity-control{
   display:grid;
   grid-template-columns:40px minmax(0, 1fr) 40px;
   align-items:center;
   width:100%;
   overflow:hidden;
   border:1px solid var(--border-color);
   border-radius:10px;
   background:#fff;
}

.cart-page-shell .qty-control > .cart-quantity-control{
   margin:0;
   color:inherit;
   font-size:inherit;
   font-weight:inherit;
   letter-spacing:normal;
   text-transform:none;
}

.cart-page-shell .cart-quantity-control .qty{
   width:100%;
   min-width:0;
   height:40px;
   min-height:40px;
   padding:0 3px;
   border:0;
   border-radius:0;
   text-align:center;
}

.cart-page-shell .cart-quantity-control .qty:focus{
   outline:0;
   box-shadow:inset 0 0 0 2px rgba(20, 87, 184, .25);
}

.cart-page-shell .cart-quantity-button{
   width:40px;
   height:40px;
   padding:0;
   border:0;
   border-right:1px solid var(--border-color);
   background:var(--surface-muted);
   color:var(--brand-primary);
   cursor:pointer;
}

.cart-page-shell .cart-quantity-button:last-child{
   border-right:0;
   border-left:1px solid var(--border-color);
}

.cart-page-shell .cart-quantity-button:hover:not(:disabled){
   background:var(--brand-primary-pale);
}

.cart-page-shell .cart-quantity-button:focus-visible{
   position:relative;
   z-index:1;
   outline:3px solid rgba(20, 87, 184, .38);
   outline-offset:-3px;
}

.cart-page-shell .cart-item-card.is-updating{
   opacity:1;
}

.cart-page-shell .cart-item-card.is-updating .cart-quantity-control{
   opacity:.68;
}

.shop-listing .pagination{
   justify-content:center;
   margin:26px 0 0;
}

.shop-listing .pagination a{
   min-width:36px;
   min-height:36px;
   display:inline-flex;
   align-items:center;
   justify-content:center;
   border-radius:9px;
}

.shop-empty-state{
   grid-column:1 / -1;
   margin:0;
   padding:42px 24px;
   border:1px dashed #b9cde9;
   border-radius:var(--radius-medium);
   background:#f8fbff;
   color:var(--text-secondary);
   text-align:center;
}

@media (max-width:1180px){
   .shop-catalogue-layout{
      grid-template-columns:220px minmax(0, 1fr);
      gap:18px;
   }

   .shop-product-grid{
      grid-template-columns:repeat(3, minmax(0, 1fr));
   }
}

@media (max-width:860px){
   .shop-page-shell{
      width:min(100% - 32px, 760px);
      padding-top:20px;
   }

   .shop-heading{
      min-height:0;
      padding:24px;
   }

   .shop-heading h1{
      font-size:2.75rem;
   }

   .shop-catalogue-layout{
      display:block;
   }

   .shop-category-panel{
      display:none;
   }

   .shop-mobile-categories{
      display:block;
   }

   .shop-product-grid{
      grid-template-columns:repeat(3, minmax(0, 1fr));
   }
}

/* Product detail redesign: scoped to preserve the approved listing pages. */
.product-page-shell{
   padding-bottom:50px;
}

.product-breadcrumb{
   margin-bottom:18px;
}

.product-breadcrumb span{
   max-width:min(440px, 36vw);
   overflow:hidden;
   text-overflow:ellipsis;
   white-space:nowrap;
}

.product-detail-layout{
   display:grid;
   grid-template-columns:minmax(0, .96fr) minmax(360px, 1fr);
   gap:32px;
   align-items:start;
   padding:26px;
   border:1px solid var(--border-color);
   border-radius:var(--radius-large);
   background:#fff;
   box-shadow:var(--shadow-small);
}

.product-detail-media{
   display:flex;
   align-items:center;
   justify-content:center;
   min-height:455px;
   padding:26px;
   border:1px solid #e1eaf6;
   border-radius:var(--radius-medium);
   background:#f7faff;
}

.product-detail-media img{
   display:block;
   width:100%;
   height:400px;
   object-fit:contain;
}

.product-detail-info{
   min-width:0;
   padding:9px 4px;
}

.product-category-label{
   display:inline-flex;
   align-items:center;
   min-height:27px;
   margin-bottom:10px;
   padding:0 10px;
   border-radius:999px;
   background:var(--brand-primary-soft);
   color:var(--brand-primary);
   font-size:1.05rem;
   font-weight:600;
}

.product-detail-info h1{
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:3.35rem;
   line-height:1.13;
   overflow-wrap:anywhere;
}

.product-price-row{
   display:flex;
   flex-wrap:wrap;
   align-items:baseline;
   gap:13px;
   margin:19px 0 21px;
}

.product-current-price{
   color:var(--brand-primary);
   font-family:var(--font-heading);
   font-size:3.2rem;
   font-weight:700;
   line-height:1;
}

.product-original-price{
   color:#8793a7;
   font-size:1.45rem;
   font-weight:700;
   text-decoration:line-through;
}

.product-meta-list{
   display:grid;
   gap:9px;
   margin:0;
   padding:17px 0;
   border-top:1px solid #e8eef6;
   border-bottom:1px solid #e8eef6;
}

.product-meta-list > div{
   display:grid;
   grid-template-columns:116px minmax(0, 1fr);
   gap:12px;
}

.product-meta-list dt{
   color:var(--text-secondary);
   font-size:1.15rem;
   font-weight:700;
}

.product-meta-list dd{
   margin:0;
   color:var(--text-primary);
   font-size:1.17rem;
   font-weight:600;
   overflow-wrap:anywhere;
}

.product-detail-actions{
   display:grid;
   grid-template-columns:minmax(16rem, 19rem) minmax(180px, 1fr);
   gap:10px;
   align-items:end;
   margin-top:23px;
}

.product-detail-actions .qty-control{
   display:grid;
   gap:6px;
}

.product-detail-actions .qty-control > span{
   color:var(--text-secondary);
   font-size:1.08rem;
   font-weight:600;
}

.product-detail-actions .qty{
   width:100%;
   height:46px;
   min-height:46px;
   padding:0 8px;
   border:1px solid #cad9ee;
   border-radius:9px;
   color:var(--text-primary);
   text-align:center;
   font-size:1.25rem;
}

.product-detail-actions .btn,
.product-wishlist-btn{
   width:100%;
   height:46px;
   min-height:46px;
   border-radius:9px;
   font-size:1.22rem;
   font-weight:600;
}

.product-wishlist-btn{
   grid-column:2;
   display:inline-flex;
   align-items:center;
   justify-content:center;
   gap:8px;
   border:1px solid #b9cff0;
   color:var(--brand-primary);
   background:#fff;
   cursor:pointer;
}

.product-wishlist-btn:hover,
.product-wishlist-btn:focus-visible{
   border-color:var(--brand-primary);
   background:var(--brand-primary-soft);
}

.product-detail-actions .unit{
   align-self:center;
   justify-self:center;
   grid-column:1;
   grid-row:2;
   margin-top:29px;
   color:var(--text-secondary);
   font-size:1.12rem;
   font-weight:600;
}

.product-information-panel{
   max-width:570px;
   margin-top:24px;
   padding:21px 24px;
   border:1px solid #dfe9f6;
   border-radius:var(--radius-medium);
   background:#f8fbff;
}

.product-information-panel h2{
   margin:0;
   color:var(--text-primary);
   font-family:var(--font-heading);
   font-size:1.8rem;
}

.product-information-panel p{
   margin:9px 0 0;
   color:var(--text-secondary);
   font-size:1.22rem;
   line-height:1.55;
}

.product-detail-empty{
   margin:0;
   padding:42px 24px;
   border:1px dashed #b9cde9;
   border-radius:var(--radius-medium);
   background:#f8fbff;
   color:var(--text-secondary);
   text-align:center;
}

@media (max-width:940px){
   .product-detail-layout{
      grid-template-columns:minmax(300px, .9fr) minmax(0, 1fr);
      gap:22px;
      padding:20px;
   }

   .product-detail-media{
      min-height:370px;
      padding:18px;
   }

   .product-detail-media img{
      height:332px;
   }

   .product-detail-info h1{
      font-size:2.75rem;
   }

   .product-current-price{
      font-size:2.65rem;
   }
}

/* Phase 6: customer cart page. Scoped so approved catalogue pages retain their layout. */
.cart-page-shell{
   padding-bottom:52px;
}

.cart-page-shell .shop-breadcrumb{
   margin-bottom:14px;
}

.cart-page-shell .cart-page-heading{
   display:flex;
   align-items:center;
   min-height:132px;
   margin-bottom:22px;
   padding:24px 30px;
   border:1px solid #d7e4f5;
   border-radius:18px;
   background:linear-gradient(110deg, #f7fbff 0%, var(--brand-primary-pale) 100%);
}

.cart-page-shell .cart-page-heading h1,
.cart-page-shell .cart-section-heading h2,
.cart-page-shell .cart-total h2{
   margin:0;
   color:var(--brand-dark);
   letter-spacing:0;
}

.cart-page-shell .cart-page-heading h1{
   font-size:3rem;
}

.cart-page-shell .cart-page-heading p{
   margin:7px 0 0;
   color:var(--text-secondary);
   font-size:1.45rem;
}

.cart-page-shell .cart-page-layout{
   width:100%;
   margin:0;
}

.cart-page-shell .cart-section-heading{
   display:flex;
   align-items:center;
   justify-content:space-between;
   margin:0 0 12px;
}

.cart-page-shell .cart-section-heading h2{
   font-size:2.2rem;
}

.cart-page-shell .cart-items{
   gap:12px;
}

.cart-page-shell .cart-item-card{
   grid-template-columns:124px minmax(0, 1fr);
   gap:18px;
   min-height:152px;
   padding:16px;
   border-radius:16px;
}

.cart-page-shell .cart-item-media{
   width:124px;
   height:124px;
   overflow:hidden;
   border-radius:13px;
   background:var(--surface-muted);
}

.cart-page-shell .cart-item-media img{
   width:100%;
   height:100%;
   padding:8px;
   border-radius:0;
   background:transparent;
   object-fit:contain;
}

.cart-page-shell .cart-item-info{
   grid-template-columns:minmax(0, 1fr) auto;
   grid-template-areas:
      "name actions"
      "price actions"
      "qty qty"
      "sub sub";
   align-content:start;
   gap:7px 14px;
}

.cart-page-shell .cart-item-info .name{
   padding:1px 0 0;
   color:var(--brand-dark);
   font-size:1.7rem;
   font-weight:600;
   line-height:1.3;
}

.cart-page-shell .cart-item-info .price{
   color:var(--brand-primary);
   font-size:1.7rem;
   font-weight:600;
}

.cart-page-shell .cart-item-actions{
   gap:7px;
}

.cart-page-shell .cart-item-actions .fa-eye,
.cart-page-shell .cart-item-actions .fa-times{
   display:grid;
   width:36px;
   height:36px;
   place-items:center;
   border-radius:10px;
}

.cart-page-shell .cart-qty-row{
   display:grid;
   grid-template-columns:minmax(130px, 180px);
   gap:10px;
   align-items:end;
   margin-top:2px;
}

.cart-page-shell .qty-control{
   display:block;
}

.cart-page-shell .qty-control span{
   display:block;
   margin-bottom:5px;
   color:var(--text-secondary);
   font-size:1.05rem;
   font-weight:600;
   letter-spacing:.03em;
   text-transform:uppercase;
}

.cart-page-shell .cart-qty-row .qty{
   width:100%;
   height:42px;
   min-height:42px;
   margin:0;
}

.cart-page-shell .cart-item-info .sub-total{
   margin-top:3px;
   padding-top:10px;
   color:var(--text-secondary);
   font-size:1.3rem;
}

.cart-page-shell .cart-item-info .sub-total span{
   color:var(--brand-dark);
}

.cart-page-shell .cart-item-warning{
   grid-column:1 / -1;
   margin:0;
}

.cart-page-shell .cart-total{
   padding:24px;
   border-radius:18px;
}

.cart-page-shell .cart-total .eyebrow{
   margin-bottom:6px;
}

.cart-page-shell .cart-total h2{
   font-size:2.2rem;
}

.cart-page-shell .cart-summary-total{
   display:flex;
   align-items:baseline;
   justify-content:space-between;
   gap:16px;
   margin:22px 0 18px;
   padding:18px 0;
   border-top:1px solid var(--border-color);
   border-bottom:1px solid var(--border-color);
}

.cart-page-shell .cart-summary-total span{
   color:var(--text-secondary)!important;
   font-size:1.4rem;
   font-weight:700;
}

.cart-page-shell .cart-summary-total strong{
   color:var(--brand-primary);
   font-size:2.35rem;
   line-height:1;
   white-space:nowrap;
}

.cart-page-shell .cart-total > a,
.cart-page-shell .cart-total .summary-action-form,
.cart-page-shell .cart-total .btn{
   margin-top:10px;
}

.cart-page-shell .cart-total > a:first-of-type{
   border-color:#cbdcf4;
   background:#fff;
   color:var(--brand-primary);
}

.cart-page-shell .cart-total > a:first-of-type:hover{
   background:var(--brand-primary-pale);
}

.cart-page-shell .cart-empty-state{
   display:grid;
   justify-items:center;
   gap:10px;
   padding:48px 24px;
   border:1px dashed #c9d9ee;
   border-radius:16px;
   background:#fff;
   text-align:center;
}

.cart-page-shell .cart-empty-state i{
   display:grid;
   width:54px;
   height:54px;
   place-items:center;
   border-radius:50%;
   background:var(--brand-primary-pale);
   color:var(--brand-primary);
   font-size:2.1rem;
}

.cart-page-shell .cart-empty-state h2,
.cart-page-shell .cart-empty-state p{
   margin:0;
}

.cart-page-shell .cart-empty-state h2{
   color:var(--brand-dark);
   font-size:2rem;
}

.cart-page-shell .cart-empty-state p{
   color:var(--text-secondary);
}

.cart-page-shell .cart-empty-state .option-btn{
   width:auto;
   margin-top:5px;
   padding-inline:20px;
}

@media (max-width:940px){
   .cart-page-shell .cart-total{
      position:static;
   }
}

/* Phase 7: customer checkout page. Scoped to preserve all approved page styles. */
.checkout-page-shell{
   padding-bottom:52px;
}

.checkout-page-shell .shop-breadcrumb{
   margin-bottom:14px;
}

.checkout-page-shell .checkout-page-heading{
   min-height:132px;
   margin-bottom:22px;
   padding:24px 30px;
   border:1px solid #d7e4f5;
   border-radius:18px;
   background:linear-gradient(110deg, #f7fbff 0%, var(--brand-primary-pale) 100%);
}

.checkout-page-shell .checkout-page-heading h1{
   margin:5px 0 0;
   color:var(--brand-dark);
   font-size:3rem;
   letter-spacing:0;
}

.checkout-page-shell .checkout-page-heading p{
   max-width:700px;
   margin:7px 0 0;
   color:var(--text-secondary);
   font-size:1.45rem;
   line-height:1.55;
}

.checkout-page-shell .checkout-layout{
   display:grid;
   grid-template-columns:minmax(0, 1fr) 360px;
   gap:24px;
   width:100%;
   margin:0;
   align-items:start;
}

.checkout-page-shell .checkout-form-panel{
   order:1;
   width:100%;
   min-width:0;
   padding:0;
   border:0;
   border-radius:0;
   background:transparent;
}

.checkout-page-shell .checkout-orders form{
   padding:28px;
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
}

.checkout-page-shell .checkout-form-head{
   margin-bottom:18px;
}

.checkout-page-shell .checkout-form-head h3{
   margin:5px 0 0;
   color:var(--brand-dark);
   font-size:2.65rem;
   letter-spacing:0;
   line-height:1.2;
}

.checkout-page-shell .checkout-form-head p{
   margin:8px 0 0;
   color:var(--text-secondary);
   font-size:1.38rem;
   line-height:1.55;
}

.checkout-page-shell .checkout-delivery-methods{
   gap:12px;
   margin-bottom:14px;
}

.checkout-page-shell .delivery-choice{
   min-height:94px;
   padding:17px;
   border-color:#cbdcf4;
   border-radius:14px;
   background:#fff;
}

.checkout-page-shell .delivery-choice:hover{
   border-color:var(--brand-primary);
   box-shadow:0 0 0 3px rgba(48,59,143,.06);
}

.checkout-page-shell .delivery-choice.is-selected{
   border-color:var(--brand-primary);
   background:var(--brand-primary-pale);
   box-shadow:0 0 0 3px rgba(48,59,143,.06);
}

.checkout-page-shell .delivery-choice input{
   width:17px;
   height:17px;
   margin-top:2px;
   accent-color:var(--brand-primary);
}

.checkout-page-shell .delivery-choice-copy strong{
   color:var(--brand-dark);
   font-size:1.6rem;
}

.checkout-page-shell .delivery-choice-copy small{
   color:var(--text-secondary);
   font-size:1.22rem;
   line-height:1.35;
}

.checkout-page-shell .pickup-note{
   margin:0 0 16px;
   border-color:#c7d7f2;
   border-radius:12px;
   background:#f7fbff;
   color:var(--brand-dark);
}

.checkout-page-shell .delivery-area-notice{
   margin:0 0 16px;
   border-color:#c7d7f2;
   border-radius:12px;
   background:#f7fbff;
   color:var(--brand-dark);
}

.checkout-page-shell .checkout-fields-heading{
   margin:22px 0 2px;
   padding-top:20px;
   border-top:1px solid var(--border-color);
}

.checkout-page-shell .checkout-fields-heading h4{
   margin:0;
   color:var(--brand-dark);
   font-size:1.8rem;
   letter-spacing:0;
}

.checkout-page-shell .checkout-fields-heading p{
   margin:5px 0 0;
   color:var(--text-secondary);
   font-size:1.28rem;
}

.checkout-page-shell .checkout-orders form .flex{
   gap:15px 16px;
}

.checkout-page-shell .checkout-orders .inputBox :is(span, label){
   margin:12px 0 6px;
   color:var(--brand-dark);
   font-size:1.22rem;
   font-weight:600;
}

.checkout-page-shell .checkout-orders .inputBox .box{
   width:100%;
   height:46px;
   min-height:46px;
   padding:0 14px;
   border-color:#d7e0ef;
   border-radius:11px;
   background:#fff;
   color:var(--text-primary);
   font-size:1.4rem;
}

.checkout-page-shell .checkout-orders .inputBox .box:focus{
   border-color:var(--brand-primary);
   box-shadow:0 0 0 3px rgba(48,59,143,.10);
}

.checkout-page-shell .delivery-address-field.is-muted{
   opacity:.62;
}

.checkout-page-shell .checkout-orders .btn{
   width:min(260px, 100%);
   min-height:46px;
   margin-top:24px;
   border-radius:10px;
   font-size:1.4rem;
}

.checkout-page-shell .checkout-summary{
   order:2;
   position:sticky;
   top:94px;
   width:100%;
   min-width:0;
   padding:24px;
   border:1px solid var(--border-color);
   border-radius:18px;
   background:#fff;
   box-shadow:none;
}

.checkout-page-shell .checkout-summary-head{
   margin-bottom:14px;
}

.checkout-page-shell .checkout-summary-head h2{
   margin:5px 0 0;
   color:var(--brand-dark);
   font-size:2.2rem;
   letter-spacing:0;
}

.checkout-page-shell .checkout-summary > p:not(.empty){
   display:block;
   margin:0;
   /* .display-orders p (style.css ~1718/2365) still supplies this rounded-
      card look's border/border-radius/background - only the padding is set
      here, and it was vertical-only, so item text ran flush to the card's
      own left/right border. */
   padding:11px 16px;
   border-bottom:1px solid #edf1f7;
   color:var(--brand-dark);
   font-size:1.32rem;
   font-weight:700;
   line-height:1.4;
}

.checkout-page-shell .checkout-summary > p:not(.empty) span{
   display:block;
   margin-top:3px;
   color:var(--text-secondary);
   font-size:1.18rem;
   font-weight:600;
}

.checkout-page-shell .checkout-summary .empty{
   margin:0;
   padding:24px 12px;
   border:1px dashed #c9d9ee;
   border-radius:12px;
   background:#f8fbff;
   color:var(--text-secondary);
   text-align:center;
}

.checkout-page-shell .checkout-totals-card{
   gap:12px;
   margin-top:18px;
   padding:17px;
   border-color:#d7e4f5;
   border-radius:14px;
   background:var(--brand-primary-pale);
}

.checkout-page-shell .checkout-total-line{
   color:var(--text-secondary);
   font-size:1.35rem;
}

.checkout-page-shell .checkout-total-line strong{
   color:var(--brand-dark);
   font-size:1.45rem;
}

.checkout-page-shell .checkout-total-line.grand-line{
   margin-top:2px;
   padding-top:14px;
   border-top-color:#c8d7ee;
}

.checkout-page-shell .checkout-total-line.grand-line strong{
   color:var(--brand-primary);
   font-size:2.2rem;
}

@media (max-width:1100px){
   .checkout-page-shell .checkout-layout{
      grid-template-columns:1fr;
   }

   .checkout-page-shell .checkout-summary{
      position:static;
   }
}

/* Phase 9 Cart interaction refinements. This late, Cart-scoped override keeps
   the approved shared and Checkout controls unchanged. */
.cart-page-shell .cart-live-status.is-error{
   color:var(--danger, #c43232);
}

.cart-page-shell .cart-quantity-control .qty,
.cart-page-shell .cart-quantity-button{
   height:40px;
   min-height:40px;
}

/* Phase 10: compact, progressive cart-aware product controls. */
.product-cart-actions{
   position:relative;
   display:grid;
   grid-template-columns:minmax(4.6rem, .7fr) minmax(7.5rem, 1.3fr);
   gap:.7rem;
   align-items:center;
}

.product-cart-actions .product-cart-quantity-control{
   display:grid;
   grid-template-columns:1fr;
   min-width:0;
}

.product-cart-quantity-button,
.product-cart-status:empty{
   display:none;
}

.product-cart-actions .product-cart-add,
.product-cart-actions .product-cart-quantity-control .qty{
   height:3.8rem;
   min-height:3.8rem;
   margin:0;
}

.product-cart-form.is-in-cart .product-cart-actions{
   grid-template-columns:minmax(8.5rem, 11rem);
   justify-content:start;
}

.product-cart-form.is-in-cart .product-cart-quantity-control{
   grid-template-columns:2.6rem minmax(0, 1fr) 2.6rem;
   align-items:center;
   width:100%;
}

.product-cart-form.is-in-cart .product-cart-quantity-button{
   display:inline-grid;
   place-items:center;
   width:2.6rem;
   height:3.8rem;
   border:1px solid var(--border-color);
   background:var(--brand-primary-pale);
   color:var(--brand-primary);
   font-weight:600;
   cursor:pointer;
}

.product-cart-form.is-in-cart .product-cart-add{
   display:none;
}

.product-cart-form.is-in-cart .product-cart-status{
   display:block;
   position:absolute;
   right:0;
   bottom:-1.45rem;
   min-height:1.4rem;
   margin:0;
   color:var(--brand-primary);
   font-size:1rem;
   font-weight:700;
}

.product-cart-status[data-state="loading"]{ color:var(--text-secondary); }
.product-cart-form.is-cart-updating .product-cart-quantity-control,
.product-cart-form.is-cart-updating .product-cart-add{ opacity:.68; }
.product-cart-form :is(.product-cart-quantity-button, .product-cart-add):focus-visible{
   outline:3px solid rgba(32, 100, 202, .28);
   outline-offset:2px;
}

.cart-toast-region{
   position:fixed;
   z-index:3000;
   right:1.6rem;
   bottom:1.6rem;
   width:min(34rem, calc(100vw - 3.2rem));
   pointer-events:none;
}

.cart-toast{
   padding:1.2rem 1.5rem;
   border:1px solid rgba(17, 82, 57, .18);
   border-radius:1rem;
   background:#effbf4;
   box-shadow:0 12px 32px rgba(14, 37, 70, .16);
   color:#145c40;
   font-size:1.3rem;
   font-weight:700;
   opacity:0;
   transform:translateY(.8rem);
   transition:opacity .18s ease, transform .18s ease;
}

.cart-toast.is-error{
   border-color:rgba(164, 41, 41, .18);
   background:#fff2f2;
   color:#9c2929;
}

.cart-toast.is-visible{
   opacity:1;
   transform:translateY(0);
}

/* Persistent (error/warning) toasts carry their own dismiss control; the
   region ignores pointer events, so the toast itself must take them. */
.cart-toast.is-persistent{
   display:flex;
   align-items:flex-start;
   gap:1rem;
   pointer-events:auto;
}

.cart-toast.is-persistent > span{
   flex:1 1 auto;
}

.cart-toast-close{
   flex:0 0 auto;
   padding:0 .2rem;
   border:0;
   background:transparent;
   color:inherit;
   font-size:1.8rem;
   line-height:1;
   cursor:pointer;
}

/* Focused customer card footer repair. The status owns a stable row inside the
   card instead of being absolutely positioned below a clipped card edge. */
.product-card.product-cart-form{
   overflow:visible;
}

.product-card.product-cart-form .product-card-body{
   min-height:0;
}

/* Catalogue cards own a compact second footer action.  Product-detail pages
   intentionally keep their separate two-column action layout below. */
.product-card.product-cart-form .product-wishlist-btn{
   width:100%;
   min-height:3.8rem;
   height:3.8rem;
   margin-top:8px;
   grid-column:auto;
   border-radius:9px;
   font-size:1.05rem;
}

.product-card.product-cart-form .product-wishlist-btn.is-saved{
   border-color:#9fcdb9;
   background:#effbf4;
   color:#146341;
}

.product-cart-actions{
   width:100%;
   margin-top:auto;
   grid-template-columns:minmax(4.6rem, .7fr) minmax(7.5rem, 1.3fr);
   grid-template-areas:
      "quantity add"
      "status status";
   grid-template-rows:3.8rem minmax(1.4rem, auto);
   align-items:center;
   align-content:end;
}

.product-cart-actions > .unit{
   display:none;
}

.product-cart-actions .product-cart-quantity-control{
   grid-area:quantity;
   height:3.8rem;
   align-self:center;
}

.product-cart-actions .product-cart-add{
   grid-area:add;
   align-self:center;
}

.product-cart-actions .product-cart-status,
.product-cart-status:empty{
   grid-area:status;
   position:static;
   display:block;
   visibility:visible;
   min-width:0;
   min-height:1.4rem;
   margin:0;
   overflow:hidden;
   color:var(--brand-primary);
   font-size:1rem;
   font-weight:700;
   line-height:1.4;
   text-overflow:ellipsis;
   white-space:nowrap;
}

.product-cart-status:empty{
   visibility:hidden;
}

.product-cart-form.is-in-cart .product-cart-actions{
   width:100%;
   grid-template-columns:minmax(9.2rem, 11rem);
   grid-template-areas:
      "quantity"
      "status";
   grid-template-rows:3.8rem minmax(1.4rem, auto);
   justify-content:start;
}

/* Phase 13: Cart and wishlist layout polish. These page-scoped rules preserve
   the approved catalogue, checkout and account layouts. */
.cart-page-shell,
.wishlist-page-shell{
   padding-bottom:40px;
}

.cart-page-shell .cart-page-heading,
.wishlist-page-shell .wishlist-page-heading{
   min-height:0;
   margin:0 0 22px;
   padding:24px 30px;
   border:1px solid #d7e4f5;
   border-radius:18px;
   background:linear-gradient(110deg, #f7fbff 0%, var(--brand-primary-pale) 100%);
   box-shadow:none;
}

.cart-page-shell .cart-page-heading h1,
.wishlist-page-shell .wishlist-page-heading h1{
   margin:4px 0 0;
   color:var(--brand-dark);
   font-size:clamp(2.35rem, 3vw, 3.2rem);
   letter-spacing:-.035em;
}

.cart-page-shell .cart-page-heading p,
.wishlist-page-shell .wishlist-page-heading p{
   margin:7px 0 0;
   color:var(--text-secondary);
   font-size:1.35rem;
}

.cart-page-shell .cart-page-layout,
.wishlist-page-shell .wishlist-page-layout{
   display:grid;
   grid-template-columns:minmax(0, 1.7fr) minmax(300px, .8fr);
   align-items:start;
   gap:24px;
   width:100%;
   margin:0;
}

.cart-page-shell .cart-section-heading,
.wishlist-page-shell .wishlist-section-heading{
   margin:0 0 12px;
}

.cart-page-shell .cart-section-heading h2,
.wishlist-page-shell .wishlist-section-heading h2{
   margin:0;
   color:var(--brand-dark);
   font-size:2rem;
   letter-spacing:-.02em;
}

.cart-page-shell .cart-items,
.wishlist-page-shell .wishlist-items{
   gap:10px;
}

.cart-page-shell .cart-column-headings{
   --cart-row-columns:minmax(0, 2.2fr) minmax(100px, .8fr) minmax(150px, 1fr) minmax(110px, .8fr) 48px;
   display:grid;
   grid-template-columns:var(--cart-row-columns);
   gap:16px;
   padding:0 17px 9px;
   color:var(--text-secondary);
   font-size:1.08rem;
   font-weight:600;
   letter-spacing:.04em;
   text-transform:uppercase;
}

.cart-page-shell .cart-item-card{
   display:grid;
   --cart-row-columns:minmax(0, 2.2fr) minmax(100px, .8fr) minmax(150px, 1fr) minmax(110px, .8fr) 48px;
   grid-template-columns:var(--cart-row-columns);
   align-items:center;
   gap:16px;
   min-height:116px;
   padding:13px 15px;
   border:1px solid #dce7f4;
   border-radius:14px;
   background:#fff;
   box-shadow:none;
}

/* Explicit desktop placement prevents legacy cart grid-area rules from
   creating implicit rows beneath the product media. */
.cart-page-shell .cart-item-card > .cart-item-product{ grid-column:1; min-width:0; }
.cart-page-shell .cart-item-card > .cart-item-price{ grid-column:2; min-width:0; }
.cart-page-shell .cart-item-card > .cart-qty-row{ grid-column:3; grid-area:auto; min-width:0; }
.cart-page-shell .cart-item-card > .sub-total{ grid-column:4; grid-area:auto; min-width:0; }
.cart-page-shell .cart-item-card > .cart-remove-button{
   position:static;
   grid-column:5;
   justify-self:center;
   align-self:center;
}

.cart-page-shell .cart-item-product{
   display:grid;
   grid-template-columns:78px minmax(0, 1fr);
   align-items:center;
   gap:12px;
   min-width:0;
}

.cart-page-shell .cart-item-media{
   width:78px;
   height:78px;
   overflow:hidden;
   border-radius:11px;
   background:var(--surface-muted);
}

.cart-page-shell .cart-item-media img{
   width:100%;
   height:100%;
   padding:6px;
   object-fit:contain;
}

.cart-page-shell .cart-item-product .name{
   padding:0;
   color:var(--brand-dark);
   font-size:1.34rem;
   line-height:1.32;
   min-width:0;
   word-break:normal;
   overflow-wrap:anywhere;
}

.cart-page-shell .cart-item-product .name a{
   min-width:0;
   overflow-wrap:anywhere;
}

.cart-page-shell .cart-item-price strong,
.cart-page-shell .sub-total strong{
   color:var(--brand-dark);
   font-size:1.3rem;
   white-space:nowrap;
}

.cart-page-shell .cart-qty-row{
   display:block;
   margin:0;
}

.cart-page-shell .cart-qty-row .qty-control{
   display:block;
}

.cart-page-shell .cart-quantity-label,
.cart-mobile-label{
   display:none!important;
}

.cart-page-shell .cart-quantity-control{
   display:grid;
   grid-template-columns:42px minmax(54px, 1fr) 42px;
   max-width:140px;
}

.cart-page-shell .cart-quantity-control .qty,
.cart-page-shell .cart-quantity-button{
   height:42px;
   min-height:42px;
}

.cart-page-shell .cart-quantity-control .qty{
   width:100%;
   margin:0;
   border-radius:0;
   text-align:center;
}

.cart-page-shell .cart-quantity-button{
   border:1px solid var(--border-color);
   background:var(--brand-primary-pale);
   color:var(--brand-primary);
}

.cart-page-shell .cart-quantity-button:first-child{ border-radius:10px 0 0 10px; }
.cart-page-shell .cart-quantity-button:last-child{ border-radius:0 10px 10px 0; }

.cart-page-shell .sub-total{
   margin:0;
   padding:0;
   border:0;
}

.cart-page-shell .cart-remove-button,
.wishlist-page-shell .wishlist-remove-button{
   display:grid;
   width:36px;
   height:36px;
   place-items:center;
   padding:0;
   border:1px solid #ffd6d6;
   border-radius:10px;
   background:#fff7f7;
   color:var(--error);
   cursor:pointer;
}

.cart-page-shell .cart-remove-button:hover,
.wishlist-page-shell .wishlist-remove-button:hover{ background:#ffecec; }

.cart-page-shell .cart-continue-link{
   display:inline-flex;
   align-items:center;
   gap:8px;
   margin-top:16px;
   color:var(--brand-primary);
   font-size:1.2rem;
   font-weight:600;
}

.cart-page-shell .cart-total,
.wishlist-page-shell .wishlist-total{
   position:sticky;
   top:96px;
   padding:22px;
   border:1px solid #dce7f4;
   border-radius:16px;
   background:#fff;
   box-shadow:0 8px 22px rgba(14, 52, 102, .06);
}

.cart-page-shell .cart-total h2,
.wishlist-page-shell .wishlist-total h2{
   margin:4px 0 0;
   color:var(--brand-dark);
   font-size:2rem;
}

.cart-page-shell .cart-summary-line,
.wishlist-page-shell .wishlist-summary-line{
   display:flex;
   align-items:center;
   justify-content:space-between;
   gap:14px;
   margin-top:22px;
   color:var(--text-secondary);
   font-size:1.25rem;
}

.cart-page-shell .cart-summary-line strong,
.wishlist-page-shell .wishlist-summary-line strong{ color:var(--brand-dark); }

.cart-page-shell .cart-summary-total{
   margin:16px 0 18px;
   padding:17px 0;
}

.cart-page-shell .cart-total > a,
.cart-page-shell .cart-total .summary-action-form,
.cart-page-shell .cart-total .btn,
.wishlist-page-shell .wishlist-total > a,
.wishlist-page-shell .wishlist-total .summary-action-form{
   width:100%;
   margin-top:9px;
}

.cart-page-shell .cart-total .btn{ order:3; }
.cart-page-shell .cart-total .delete-btn,
.wishlist-page-shell .wishlist-total .delete-btn{ min-height:44px; border-radius:11px; }

.wishlist-page-shell .wishlist-item-card{
   display:grid;
   grid-template-columns:82px minmax(150px, .8fr) minmax(215px, 1.1fr) 36px;
   align-items:center;
   gap:16px;
   min-height:108px;
   padding:12px;
   border:1px solid #dce7f4;
   border-radius:14px;
   background:#fff;
   box-shadow:none;
}

.wishlist-page-shell .wishlist-item-media{
   display:block;
   width:82px;
   height:82px;
   overflow:hidden;
   border-radius:11px;
   background:var(--surface-muted);
}

.wishlist-page-shell .wishlist-item-media img{
   width:100%; height:100%; padding:6px; object-fit:contain;
}

.wishlist-page-shell .wishlist-item-details .name{
   padding:0;
   color:var(--brand-dark);
   font-size:1.35rem;
   line-height:1.32;
}

.wishlist-page-shell .wishlist-item-details .price{
   margin-top:7px;
   color:var(--brand-primary);
   font-size:1.38rem;
   font-weight:600;
}

.wishlist-page-shell .product-cart-actions{
   grid-template-columns:minmax(5rem, .62fr) minmax(9rem, 1.38fr);
   grid-template-rows:42px minmax(1.4rem, auto);
}

.wishlist-page-shell .product-cart-actions .product-cart-add,
.wishlist-page-shell .product-cart-actions .product-cart-quantity-control .qty,
.wishlist-page-shell .product-cart-form.is-in-cart .product-cart-quantity-button{
   height:42px;
   min-height:42px;
}

.wishlist-page-shell .wishlist-empty-state,
.cart-page-shell .cart-empty-state{
   min-height:250px;
}

.wishlist-page-shell .wishlist-empty-state{
   display:grid;
   justify-items:center;
   gap:10px;
   padding:44px 24px;
   border:1px dashed #c9d9ee;
   border-radius:15px;
   background:#fff;
   text-align:center;
}

.wishlist-page-shell .wishlist-empty-state i{
   display:grid; width:54px; height:54px; place-items:center;
   border-radius:50%; background:var(--brand-primary-pale); color:var(--brand-primary); font-size:2rem;
}

.wishlist-page-shell .wishlist-empty-state h2,
.wishlist-page-shell .wishlist-empty-state p{ margin:0; }

@media (max-width:940px){
   .cart-page-shell .cart-page-layout,
   .wishlist-page-shell .wishlist-page-layout{ grid-template-columns:1fr; }
   .cart-page-shell .cart-total,
   .wishlist-page-shell .wishlist-total{ position:static; }
}

.product-cart-form.is-in-cart .product-cart-status{
   position:static;
   right:auto;
   bottom:auto;
   justify-self:stretch;
}

.product-cart-form.is-in-cart .product-cart-quantity-button,
.product-cart-actions .product-cart-quantity-control .qty,
.product-cart-actions .product-cart-add{
   height:3.8rem;
   min-height:3.8rem;
}

/* ==========================================================================
   Frontend audit 2026-08 - product details
   ========================================================================== */

/* The category chip is a flex child of the info column, so it stretched to the
   full column width and read as a banner rather than a tag. */
.product-category-label{
   align-self:flex-start;
   max-width:100%;
   min-height:30px;
   padding:0 12px;
   font-size:1.2rem;
}

/* Buy row: quantity, then the primary action, then the secondary save.
   Previously "Save" occupied a 1fr column and rendered nearly four times wider
   than "Add to cart", inverting the action hierarchy. */
.product-detail-actions{
   display:flex;
   flex-wrap:wrap;
   align-items:flex-end;
   gap:12px;
}

.product-detail-actions .product-cart-actions{
   flex:1 1 320px;
   grid-template-columns:118px minmax(0, 1fr);
   gap:10px;
}

.product-detail-actions .qty-control > span{
   font-size:1.2rem;
}

.product-detail-actions .qty{
   font-size:1.5rem;
}

.product-detail-actions .btn{
   width:100%;
   height:4.6rem;
   min-height:4.6rem;
   font-size:1.5rem;
}

.product-detail-actions .product-wishlist-btn{
   flex:0 0 auto;
   width:auto;
   min-width:160px;
   grid-column:auto;
   font-size:1.5rem;
}

/* The panel inherited `margin-inline:auto` from the generic `section` rule and
   floated to the middle of the page, out of line with the card above it. */
.product-information-panel{
   width:100%;
   max-width:none;
   margin-inline:0;
}

/* Shared cart controls: 3.8rem left the quantity field and its +/- buttons
   below a comfortable touch target and out of line with the 4.6rem primary
   button beside them. One height for every product surface. */
.product-cart-form.is-in-cart .product-cart-quantity-button,
.product-cart-actions .product-cart-quantity-control .qty,
.product-cart-actions .product-cart-add{
   height:4.6rem;
   min-height:4.6rem;
}

.product-detail-actions{
   align-items:flex-start;
}

.product-detail-actions .product-wishlist-btn{
   height:4.6rem;
   min-height:4.6rem;
}

.product-detail-actions .product-cart-actions{
   align-items:start;
}

.product-detail-actions .product-cart-add{
   align-self:start;
}

/* ==========================================================================
   Frontend audit 2026-08 - homepage
   ========================================================================== */

/* Catalogue banner: the two photos were overlapped with a negative margin and
   a nudge, which reads as a layout fault because they carry different aspect
   ratios and hard rectangular edges. Present them as two matched, cropped
   tiles instead. */
.homepage-redesign .home-range-visuals{
   align-items:center;
   gap:14px;
   padding:22px;
}

.homepage-redesign .home-range-visuals img{
   width:50%;
   max-width:260px;
   height:210px;
   border-radius:16px;
   object-fit:cover;
   filter:none;
   box-shadow:0 14px 30px rgba(1, 12, 38, .26);
}

.homepage-redesign .home-range-visuals img + img{
   width:50%;
   margin-left:0;
   transform:none;
}

/* Keep every card in a featured row on the same baseline even when a product
   carries no pack size. */
.homepage-redesign .product-pack:empty{
   display:block;
}

/* Hero headline: 5.5rem in a half-width column broke the sentence over five
   lines and read as a marketing splash rather than a shop front. */
.homepage-redesign .hero-main-banner h1{
   max-width:15ch;
   font-size:clamp(2.8rem, 3vw, 4rem);
   line-height:1.12;
}

/* Hero category cards: the photos were contained inside a fixed box, leaving
   the lower half of each card empty and the image edges unfinished. */
.homepage-redesign .hero-side-banner img{
   align-self:stretch;
   height:100%;
   min-height:118px;
   border-radius:12px;
   object-fit:cover;
   filter:none;
}

/* The signed-in greeting was a white pill with a hard grey border, which read
   as a disabled input rather than a greeting. */
.homepage-redesign .customer-chip{
   border-color:#cfe0f7;
   border-radius:999px;
   background:var(--brand-primary-soft);
   color:var(--brand-primary-dark)!important;
   font-weight:600;
}

/* Category tiles: a 124px media well held a 54px icon, so two thirds of the
   tile read as empty, and the label and link were 10-11px. Tighten the well,
   grow the mark, and let the whole tile be the target instead of a 10px link. */
.homepage-redesign .category-card{
   position:relative;
}

.homepage-redesign .category-card-image.category-card-icon{
   height:88px;
}

.homepage-redesign .category-card-icon i{
   width:62px;
   height:62px;
   font-size:2.6rem;
}

.homepage-redesign .home-category .box h3{
   display:-webkit-box;
   min-height:32px;
   overflow:hidden;
   font-size:1.25rem;
   line-height:1.28;
   -webkit-box-orient:vertical;
   -webkit-line-clamp:2;
}

.homepage-redesign .category-card .btn{
   min-height:34px;
   font-size:1.2rem;
}

.homepage-redesign .category-card .btn::after{
   content:'';
   position:absolute;
   inset:0;
   border-radius:inherit;
}

.homepage-redesign .category-card:hover{
   border-color:#bdd5f6;
}

.homepage-redesign .category-card .btn:focus-visible{
   outline:3px solid rgba(20, 87, 184, .38);
   outline-offset:3px;
}

/* Homepage rhythm: 44px + 46px of stacked section padding left ~90px of blank
   page between every band. One consistent, tighter step instead. */
.homepage-redesign .home-category,
.homepage-redesign .products,
.homepage-redesign .homepage-section-block,
.homepage-redesign .homepage-catalog-section{
   padding-block:32px;
}

.homepage-redesign .trust-strip{
   padding-block:0;
}

/* ==========================================================================
   Homepage hero artwork framing (2026-08, corrected 2026-08-31).

   This panel was previously tuned around one specific 1507x1044 upload,
   deliberately over-sizing the image to 159% of the panel width and
   anchoring it to the right edge so only that image's populated right-hand
   region showed - i.e. object-fit:cover with a fixed crop window. Any
   differently-proportioned upload (in particular a taller/portrait banner)
   had most of its content cropped away by the same window.

   Fix (2026-08-31): the image box is sized to exactly match the panel
   (inset:0, width/height 100%) and `object-fit:contain` scales the WHOLE
   uploaded image to fit inside it, centered, so nothing is ever cropped
   regardless of the source's aspect ratio.

   2026-09-01: added a white background so contain's letterbox area (when a
   source's aspect ratio doesn't exactly fill the panel) reads as a clean
   image mat instead of showing the `.hero-main-banner` gradient through it.

   2026-09-02: the panel itself still had a fixed `min-height` (360px down
   to 170px, hand-tuned per breakpoint across half a dozen separate media
   query rules) completely decoupled from its actual WIDTH, which is fluid
   (a flexible grid column). On wide viewports the column gets very wide
   while the height stayed capped low, so `contain` had huge left/right
   letterbox bars around a comparatively tiny image - the "awkward
   boxed/framed, unbalanced composition" this panel was reported to have.
   Replaced the fixed heights with a single `aspect-ratio`, matched to the
   real production hero photo (1507x1044 = ~3:2), so the panel's height
   always tracks its own current width at every viewport with no
   breakpoint-specific overrides needed, and `contain` has far less
   mismatch to letterbox for a typically-shaped photo upload. A source with
   a very different aspect ratio still just letterboxes more on a white
   mat - it is still never cropped or distorted. */
.homepage-redesign .hero-visual{
   position:relative;
   /* The banner's own 22px radius and overflow:hidden round the two outer
      corners, so the panel must not inset or round itself as well. */
   padding:0;
   border:0;
   border-radius:0;
   overflow:hidden;
   aspect-ratio:3 / 2;
   min-height:0;
   background:#fff;
}

.homepage-redesign .hero-visual img{
   /* Out of flow so the panel's own aspect-ratio keeps governing the row,
      not the image's natural size. */
   position:absolute;
   top:0;
   right:0;
   bottom:0;
   left:0;
   width:100%;
   max-width:none;
   height:100%;
   min-height:0;
   max-height:none;
   margin:0;
   border-radius:0;
   object-fit:contain;
   object-position:center;
   transform:none;
}

/* ==========================================================================
   Product details - in-cart quantity field sizing
   ========================================================================== */

/* Before the item is in the cart the field is the full 118px control. Adding
   it swaps in the - / + stepper, and the field was being squeezed to a 46px
   border box - 29px of usable text width once padding and borders are taken
   off. "0.25" needs 28px and "10.5" needs 28px at this font size, so decimal
   and gram quantities sat right on the clipping edge, and the native spinner
   covered what was left.

   Two things caused it: the actions grid capped the whole control at 11rem,
   and the middle column was minmax(0, 1fr), which let the field collapse to
   whatever the two 2.6rem buttons left behind. Scoped to the product detail
   buy row so the catalogue and wishlist cards are untouched. */

.product-cart-form.is-in-cart .product-detail-actions .product-cart-actions{
   /* 7.2rem field + two 2.6rem buttons + the control's two 0.6rem gaps. */
   grid-template-columns:minmax(13.6rem, 14rem);
}

.product-cart-form.is-in-cart .product-detail-actions .product-cart-quantity-control{
   /* A floor on the middle track, so the buttons can no longer take width
      away from the value. */
   grid-template-columns:2.6rem minmax(7.2rem, 1fr) 2.6rem;
}

.product-cart-form.is-in-cart .product-detail-actions .product-cart-quantity-control .qty{
   width:100%;
   min-width:7.2rem;
   box-sizing:border-box;
   text-align:center;
}

/* The - and + buttons are the stepper here, so the native spinner is
   redundant; at this width it also sits on top of the value. Only hidden in
   the in-cart state - before that the field has no buttons beside it. */
.product-cart-form.is-in-cart .product-detail-actions .product-cart-quantity-control .qty{
   appearance:textfield;
   -moz-appearance:textfield;
}

.product-cart-form.is-in-cart .product-detail-actions .product-cart-quantity-control .qty::-webkit-outer-spin-button,
.product-cart-form.is-in-cart .product-detail-actions .product-cart-quantity-control .qty::-webkit-inner-spin-button{
   -webkit-appearance:none;
   appearance:none;
   margin:0;
}

/* ---------------------------------------------------------------------
   Product image presentation: clean white behind every product photo
   (cards, cart/wishlist rows, and the product detail page), replacing
   the pale surface-muted/blue tint these containers used before. Sizing,
   radius and object-fit are unchanged (set by the rules above) - this is
   only a background override, kept as one shared rule instead of
   duplicating it per page. Transparent PNG/WebP now visually sits on
   white instead of showing the page background through it.
   --------------------------------------------------------------------- */
.products .image-container,
.product-image-wrap,
.product-card-media,
.homepage-redesign .product-card-media,
.shop-product-grid .product-card-media,
.cart-page-shell .cart-item-media,
.wishlist-page-shell .wishlist-item-media,
.product-detail-media{
   background:#fff;
}

/* ==========================================================================
   STOREFRONT UI POLISH 2026-09-04  (v2 - regression-repaired 2026-09-04b)
   Narrowly scoped, no !important, no broad `.btn` selectors. Only the
   minimum needed for the 5 goals; the historical control-sizing passes
   above are left intact where they were already fine.
   ========================================================================== */

/* ---------- 1. Product-card quantity controls -------------------------- */
/* Remove the native number spinners (JS drives the value) and widen the
   qty column a little so "1.00" / "0.5" are not clipped. Heights, radius
   and the button system are left untouched. */
.product-cart-actions .qty{
   -moz-appearance:textfield;
}
.product-cart-actions .qty::-webkit-outer-spin-button,
.product-cart-actions .qty::-webkit-inner-spin-button{
   -webkit-appearance:none;
   margin:0;
}
.shop-product-grid .product-card-actions{
   grid-template-columns:54px minmax(0,1fr);
}
.homepage-redesign .product-card-actions{
   grid-template-columns:54px minmax(0,1fr);
}

/* ---------- 2. Product-detail action row ----------------------------- */
/* The qty+Add group had flex:1 1 320px and grew wide, so "Add to cart"
   filled ~270px while "Save" floated far right. Size the group to its
   content and cap the button so the row reads [qty] [Add] [Save]. */
.product-detail-actions .product-cart-actions{
   flex:0 1 auto;
   width:auto;
   grid-template-columns:100px minmax(140px,190px);
}
.product-detail-actions .product-wishlist-btn{
   flex:0 0 auto;
   width:auto;
   min-width:130px;
}
/* In-cart state has no Add button - just the - / value / + stepper. Keep
   it to its natural compact width so it and Save sit on one line and the
   stepper is not stretched apart (esp. on mobile). */
.product-cart-form.is-in-cart .product-detail-actions .product-cart-actions{
   flex:0 1 auto;
   width:auto;
   grid-template-columns:minmax(150px,180px);
}

/* ---------- 3. Customer "My Orders" ---------------------------------- */
/* Full-width single column instead of a half-width card with a dead
   column beside it; the meta tiles flow across the available width. */
.page-main .placed-orders .box-container{
   grid-template-columns:1fr;
}
.page-main .order-card-grid{
   grid-template-columns:repeat(auto-fit,minmax(158px,1fr));
}

/* ---------- 4. Delivery-coverage notice ---------------------------- */
/* Sit it snug under the delivery choices and tint it like the selected
   Home Delivery card so it reads as coverage for that choice. The
   "Delivery coverage" heading markup is in checkout.php. */
.checkout-page-shell .checkout-delivery-methods{
   margin-bottom:8px;
}
.checkout-page-shell .delivery-area-notice{
   border-color:#cbdcf4;
   background:var(--brand-primary-pale);
   color:var(--brand-dark);
}
.checkout-page-shell .delivery-area-notice-title{
   margin:0 0 3px;
   color:var(--brand-dark);
   font-size:1.2rem;
   font-weight:700;
}
.checkout-page-shell .delivery-area-notice-text{
   margin:0 0 7px;
}

/* ---------- 5. Checkout intro -> content gap --------------------- */
/* The void was a 132px min-height reserve on the heading plus the
   generic section top padding on .checkout-layout. Remove both causes. */
.checkout-page-shell .checkout-page-heading{
   min-height:0;
   margin-bottom:24px;
}
.checkout-page-shell .checkout-layout{
   padding-top:0;
}

/* ==========================================================================
   MY ORDERS — COMPACT ORDER HISTORY  2026-09-04
   Replaces the large card / metadata-tile layout with a clickable
   one-row-per-order list that expands details underneath.
   ========================================================================== */
/* Share the storefront content boundary (same as the generic `section`
   rule and `.placed-orders` / `.checkout-layout`): container-capped width
   with 40px page gutters, centred. No narrow max-width of its own. */
.page-main .orders-history-page{
   width:min(var(--container), calc(100% - 40px));
   margin-inline:auto;
   padding:26px 0 52px;
}
.orders-history-head{ margin-bottom:16px; }
.orders-history-head .title{ margin:0 0 4px; }
.orders-history-head p{ margin:0; color:var(--text-secondary,#5b6b7c); }
.orders-history-page .message{ margin:0 0 16px; }
.orders-history-page .empty{ padding:32px 4px; color:var(--text-secondary,#5b6b7c); }

.orders-history-list{ border-top:1px solid var(--border-color,#e4e9ef); }
.order-history-item{ border-bottom:1px solid var(--border-color,#e4e9ef); }

.orders-history-headrow,
.order-history-row{
   display:grid;
   grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr) minmax(160px,1.15fr) 18px;
   gap:16px;
   align-items:center;
   width:100%;
}
/* STATUS sits on the right of the row, directly left of the chevron. */
.orders-history-headrow > :nth-child(4),
.order-history-row .ohr-status{ justify-self:end; }
.ohr-chev{
   display:flex;
   align-items:center;
   justify-content:center;
   color:var(--muted,#8a97a5);
   font-size:.82rem;
   transition:transform .15s ease;
}
.order-history-row[aria-expanded="true"] .ohr-chev{ transform:rotate(180deg); }
.orders-history-headrow{
   padding:10px 12px;
   font-size:.74rem;
   letter-spacing:.07em;
   text-transform:uppercase;
   font-weight:700;
   color:var(--muted,#8a97a5);
}
.order-history-row{
   margin:0;
   padding:14px 12px;
   border:0;
   background:none;
   font:inherit;
   color:inherit;
   text-align:left;
   cursor:pointer;
   transition:background .12s ease;
}
.order-history-row:hover{ background:var(--brand-primary-pale,#eef4fd); }
.order-history-row:focus-visible{ outline:2px solid var(--brand-primary,#1450a3); outline-offset:-2px; }
.order-history-row[aria-expanded="true"]{ background:var(--brand-primary-pale,#eef4fd); }

.order-history-row .ohr-ref{ font-weight:700; color:var(--brand-dark,#0e2a4d); overflow-wrap:anywhere; }
.order-history-row .ohr-total{ font-weight:700; }
.order-history-row .ohr-date{ color:var(--text-secondary,#5b6b7c); }
.order-history-row .ohr-status{
   display:flex;
   flex-wrap:wrap;
   gap:6px;
   align-items:center;
   justify-content:flex-end;
}
.order-history-row .ohr-status .fulfilment-badge{ font-size:.72rem; padding:3px 8px; }
.order-history-row .ohr-status .order-status{ font-size:.82rem; padding:3px 9px; }

.order-history-detail{
   padding:8px 12px 22px;
   background:var(--brand-primary-pale,#eef4fd);
}
.order-history-detail .ohd-facts{
   display:grid;
   grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
   gap:10px 28px;
   margin:0 0 16px;
}
.order-history-detail .ohd-facts > div{ display:flex; flex-direction:column; gap:2px; }
.order-history-detail .ohd-facts span{
   font-size:.72rem;
   letter-spacing:.06em;
   text-transform:uppercase;
   font-weight:700;
   color:var(--muted,#8a97a5);
}
.order-history-detail .ohd-facts strong{ font-weight:600; color:var(--brand-dark,#0e2a4d); overflow-wrap:anywhere; }

.order-history-detail .ohd-items{
   margin:0 0 14px;
   border-top:1px solid var(--border-color,#dbe3ec);
}
.order-history-detail .ohd-item{
   display:grid;
   grid-template-columns:minmax(0,1fr) auto auto;
   gap:14px;
   padding:8px 0;
   border-bottom:1px solid var(--border-color,#dbe3ec);
}
.order-history-detail .ohd-item .ohd-item-name{ overflow-wrap:anywhere; }
.order-history-detail .ohd-item .ohd-item-qty{ color:var(--text-secondary,#5b6b7c); white-space:nowrap; }
.order-history-detail .ohd-item .ohd-item-total{ font-weight:600; white-space:nowrap; }

.order-history-detail .ohd-totals{
   display:flex;
   flex-direction:column;
   gap:5px;
   max-width:300px;
   margin-left:auto;
}
.order-history-detail .ohd-totals > div{ display:flex; justify-content:space-between; gap:24px; }
.order-history-detail .ohd-totals .ohd-grand{
   font-weight:700;
   border-top:1px solid var(--border-color,#dbe3ec);
   padding-top:6px;
   margin-top:2px;
}

/* 403/404/500: intentionally self-contained (style.css only, no header/
   footer) so they render reliably even if something else on the page is
   broken - but .error-page/.error-card/.error-actions had no rules at
   all anywhere, so they rendered as an unstyled block pinned to the
   top-left corner. Centered card, brand-matching colors with literal
   fallbacks (this file defines no :root tokens of its own). */
.error-page{
   display:flex;
   align-items:center;
   justify-content:center;
   min-height:100vh;
   padding:24px;
   background:var(--surface-muted,#F3F5F9);
   box-sizing:border-box;
}

.error-card{
   width:100%;
   max-width:480px;
   padding:40px 32px;
   border-radius:16px;
   background:var(--surface,#FFFFFF);
   box-shadow:0 20px 45px rgba(15,23,42,.08);
   text-align:center;
}

.error-card h1{
   margin:0 0 12px;
   font-size:1.75rem;
   font-weight:700;
   color:var(--text-primary,#16203A);
}

.error-card p{
   margin:0 0 24px;
   font-size:1rem;
   line-height:1.55;
   color:var(--text-secondary,#5B6472);
}

.error-card > a.btn{
   margin:0 0 0;
}

.error-actions{
   display:flex;
   flex-wrap:wrap;
   align-items:center;
   justify-content:center;
   gap:12px;
   margin:0;
}

.error-actions .btn,
.error-actions .option-btn{
   flex:0 0 auto;
}


/* 403/404/500 phone sizing (these pages load style.css only) */
@media (max-width:600px){
   .error-page{padding:16px}
   .error-card{padding:28px 18px}
   .error-card h1{font-size:22px}
   .error-card p{font-size:14px;margin-bottom:18px}
   .error-actions{flex-direction:column;align-items:stretch}
}
