/* Product-scoped overrides loaded after all earlier theme styles. */
body.single-product .product-main{padding:16px 0 24px!important}
body.single-product .product-main>.row{align-items:flex-start;max-width:1280px;margin-inline:auto}
body.single-product .product-main .product-gallery{flex:0 0 43%;max-width:43%;padding:0 16px!important;background:transparent;border-radius:0}
body.single-product .product-main .product-info{flex:1 1 57%;max-width:57%;min-width:0;padding:0 16px!important}
body.single-product #product-sidebar{display:none!important}
body.single-product .product-main .product-title{font-size:clamp(20px,2vw,27px);line-height:1.6;margin:0 0 6px}
body.single-product .product-main .price-wrapper{padding:4px 0;margin:0 0 6px;font-size:19px}
body.single-product .product-main .is-divider{margin:8px 0}
body.single-product .product-main .product_meta{margin-top:10px;padding-top:8px}
body.single-product .product-main .woocommerce-product-details__short-description{font-size:12px;line-height:1.8}
body.single-product .ca-size-guide-trigger{margin:4px 0 8px;padding:6px 10px!important;font-size:12px}
.ca-gallery{width:100%;min-width:0}
.ca-gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:clamp(280px,49vh,500px);margin:0!important;padding:16px!important;border:1px solid #e9e5e2!important;border-radius:18px!important;background:#f7f6f4!important;cursor:zoom-in;overflow:hidden}
body.single-product .ca-gallery-stage img{width:100%;height:100%;max-height:100%;object-fit:contain!important;border-radius:4px}
.ca-gallery-stage>span{position:absolute;bottom:12px;left:12px;background:#fffefc;padding:5px 10px;border-radius:20px;font-size:11px;color:#444;box-shadow:0 2px 9px #0001}
.ca-gallery-thumbs,.ca-light-thumbs{display:flex;gap:8px;overflow-x:auto;padding:9px 2px;justify-content:flex-start}
.ca-gallery-thumbs button,.ca-light-thumbs button{flex:0 0 54px;width:54px;height:62px;border:1px solid #ddd!important;border-radius:9px!important;background:#fff!important;padding:4px!important;margin:0!important;min-width:0}
.ca-gallery-thumbs img,.ca-light-thumbs img{width:100%;height:100%;object-fit:contain}
.ca-gallery-thumbs button[aria-pressed=true],.ca-light-thumbs button[aria-pressed=true]{border:2px solid #ab1937!important;background:#fff4f6!important}
body.single-product .ca-multi-size{margin:4px 0 12px;padding:12px;border-radius:14px;box-shadow:none}
.ca-multi-head>div>span,.ca-multi-head p{display:none}
body.single-product .ca-multi-head h2{font-size:16px;margin:0 0 10px}
body.single-product .ca-multi-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0}
body.single-product .ca-multi-row{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #e6e1e3;border-radius:11px;padding:9px!important;min-width:0;align-content:start}
body.single-product .ca-multi-row.is-selected{border-color:#af1b39;background:#fff5f7}
body.single-product .ca-multi-info{flex:1 1 100%;gap:6px}
.ca-variant-title{display:flex;gap:8px;align-items:center;min-width:0}
body.single-product .ca-variant-thumb{width:35px;height:43px;object-fit:contain;flex-shrink:0;border-radius:4px;background:#f6f5f4}
body.single-product .ca-multi-info strong{font-size:13px;line-height:1.5}
body.single-product .ca-multi-info>span{font-size:12px;line-height:1.7;white-space:normal}
body.single-product .ca-multi-stepper{margin-inline-start:auto}
body.single-product .ca-multi-stepper button{height:32px;width:34px}
body.single-product .ca-multi-stepper input{width:35px!important;height:32px!important}
body.single-product .ca-multi-summary{padding:8px 10px;margin-top:9px}
body.single-product .ca-multi-summary>div{gap:2px}
body.single-product .ca-multi-summary strong{font-size:14px}
body.single-product .ca-multi-submit{min-height:44px;font-size:13px!important;margin-top:8px!important}
.ca-multi-status:empty{display:none}
.ca-image-lock{overflow:hidden!important}
.ca-image-dialog{position:fixed;inset:0;width:min(1100px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;margin:auto;padding:14px;border:0;border-radius:18px;background:#fff;color:#29272a;box-shadow:0 24px 90px #0006}
.ca-image-dialog[open]{display:flex;flex-direction:column;gap:8px}
.ca-image-dialog::backdrop{background:rgb(15 14 18 / 85%)}
.ca-image-dialog header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0}
.ca-image-dialog button{min-width:44px;min-height:44px;border-radius:10px;background:#f4f2f3;border:1px solid #e5e1e3;color:#7e1730;margin:0;padding:4px;font-size:22px}
.ca-light-stage{display:flex;align-items:center;gap:8px;flex:1;min-height:0;direction:rtl}
.ca-light-stage>img{width:0;flex:1;min-width:0;height:100%;object-fit:contain;touch-action:pan-y pinch-zoom}
.ca-image-dialog footer{text-align:center;flex-shrink:0;font-size:12px}
.ca-light-thumbs{justify-content:center;max-width:100%;overflow:auto}
.ca-image-dialog button:focus-visible,.ca-gallery button:focus-visible{outline:3px solid #b52142;outline-offset:3px}
@media(max-width:849px){
 body.single-product .product-main>.row{display:flex;flex-direction:column;margin:0!important}
 body.single-product .product-main .product-gallery,body.single-product .product-main .product-info{flex:0 0 auto;width:100%;max-width:100%;padding:0 12px!important}
 body.single-product .product-main{padding-top:8px!important}
 .ca-gallery-stage{height:clamp(160px,25svh,230px);padding:8px!important;border-radius:12px!important}
 .ca-gallery-thumbs{padding:5px 0;gap:6px}
 .ca-gallery-thumbs button{flex-basis:36px;width:36px;height:40px}
 body.single-product .product-main .product-title{font-size:18px;margin:3px 0;line-height:1.5}
 body.single-product .product-main .price-wrapper{font-size:16px;padding:2px 0}
 body.single-product .ca-multi-size{padding:8px}
 body.single-product .ca-multi-row{padding:7px!important;gap:5px}
 body.single-product .ca-multi-info{gap:3px}
 body.single-product .ca-variant-thumb{width:27px;height:32px}
 body.single-product .ca-multi-head h2{font-size:14px;margin-bottom:6px}
 body.single-product .ca-multi-info strong{font-size:12px}
 .ca-image-dialog{padding:10px;width:96vw;height:94dvh}
 .ca-light-stage{gap:3px}.ca-light-stage button{min-width:36px;width:36px}
}
@media(max-width:359px){body.single-product .ca-multi-rows{grid-template-columns:1fr}body.single-product .ca-multi-info{flex:1;min-width:0}}
body.single-product .product-main .next-prev-thumbs{display:none!important}
body.single-product .product-main .price-wrapper p{margin:0 0 5px}
body.single-product .product-main .woocommerce-breadcrumb{font-size:10px;margin-bottom:5px}
body.single-product .product-main .product-short-description{font-size:12px;line-height:1.9;margin-top:12px}
/* 3.6.1: one compact row per variant, without wrapping quantity below price. */
body.single-product .ca-multi-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important}
body.single-product .ca-multi-info{min-width:0;gap:4px;flex:auto}
body.single-product .ca-multi-stepper{margin:0;align-self:center;flex-shrink:0}
body.single-product .ca-multi-stepper button{width:29px;height:36px}
body.single-product .ca-multi-stepper input{width:29px!important;height:36px!important}
body.single-product .ca-multi-info>span{font-size:12px;overflow-wrap:anywhere}
@media(max-width:1060px){body.single-product .ca-multi-rows{grid-template-columns:minmax(0,1fr)!important}}
@media(min-width:1061px){body.single-product .ca-multi-row{padding:8px!important}.ca-variant-title{gap:5px}body.single-product .ca-variant-thumb{width:28px;height:35px}}
@media(max-width:849px){body.single-product .ca-multi-row{padding:7px 9px!important}body.single-product .ca-multi-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}body.single-product .ca-multi-info>span{font-size:11px}body.single-product .ca-multi-stepper button{width:30px}body.single-product .ca-multi-stepper input{width:27px!important}}
@media(max-width:389px){body.single-product .ca-multi-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px}}
body.single-product .ca-multi-total-price{direction:ltr;unicode-bidi:isolate;text-align:right}
/* 3.9: carpet sizes first; optional matching runners, round rugs and doormats below. */
body.single-product .ca-option-section{margin:0 0 12px}
body.single-product .ca-option-section-title{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:800;margin:0 0 9px;color:#3c3237;line-height:1.7}
body.single-product .ca-option-section-title:after{content:'';height:1px;flex:1;background:#ece5e8}
body.single-product .ca-option-section[data-option-group=extras]{padding-top:12px;border-top:1px solid #eee6e9}
body.single-product .ca-option-section[data-option-group=extras] .ca-multi-row{background:#faf9f7}
body.single-product .ca-multi-unavailable{opacity:1!important;background:#f6f5f5!important;border-style:dashed!important}
body.single-product .ca-multi-unavailable .ca-variant-thumb{filter:grayscale(1);opacity:.65}
body.single-product .ca-multi-unavailable em{display:inline-block;background:#f9e8ec;color:#a01836;font-size:11px;font-style:normal;font-weight:700;padding:2px 8px;border-radius:5px}
body.single-product .ca-multi-unavailable .ca-multi-stepper{opacity:.4;cursor:not-allowed}
