/* Rugs.com product-page structure, with Tuoling colours and verified product media. */
.product-view.pdp-ready{background:#f0f1e9}
.pdp-ready #main.contain{max-width:1490px;padding-inline:26px}
.pdp-ready .breadcrumbs{margin-block:24px 20px;font-size:12px}
.pdp-ready .product-main{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,1fr);gap:30px;align-items:start}
.pdp-ready .product-media{display:flex;flex-direction:column;gap:18px;min-width:0;margin:0}
.pdp-ready .media-focus{order:0;width:100%;min-width:0}
.pdp-ready .main-image{width:100%;aspect-ratio:1;max-height:none;border:0;border-radius:10px;overflow:visible;background:#fff}
.pdp-ready .main-image>img{width:100%;height:100%;object-fit:contain;border-radius:10px}
.pdp-ready .main-image .zoom-window{z-index:15}
.pdp-ready .image-help{display:none}
.pdp-ready .gallery-strip{margin-top:14px;justify-content:flex-start;gap:8px;max-width:100%;overflow-x:auto}
.pdp-ready .gallery-strip button{flex:0 0 61px;height:61px;border-radius:5px}
.pdp-image-step{position:absolute;top:50%;transform:translateY(-50%);z-index:3;display:grid;place-items:center;width:35px;height:35px;background:#fffef9eb;color:#294e3b;border:1px solid #d9ddd2;border-radius:50%;font-size:23px;line-height:1;cursor:pointer;box-shadow:0 2px 7px #223f3212}
.pdp-image-step[data-pdp-step="-1"]{left:10px}.pdp-image-step[data-pdp-step="1"]{right:10px}
.pdp-media-actions{display:flex;justify-content:space-between;gap:12px;margin-top:13px;align-items:center;flex-wrap:wrap}
.pdp-media-actions button{display:flex;align-items:center;gap:7px;background:#fffdf8;color:#335b4a;border:1px solid #d4d9cb;border-radius:22px;padding:9px 14px;font:inherit;font-size:12px;cursor:pointer}
.pdp-media-actions button:hover{background:#e4eadf}
.pdp-media-actions svg{width:16px;height:16px;flex:none}
.pdp-editorial-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;order:1;width:100%}
.pdp-editorial-media button{position:relative;display:block;border:0;background:#fff;border-radius:8px;padding:0;overflow:hidden;cursor:pointer;aspect-ratio:1}
.pdp-editorial-media img{width:100%;height:100%;object-fit:contain;transition:transform .25s}
.pdp-editorial-media button:hover img{transform:scale(1.025)}
.pdp-editorial-media button>span{position:absolute;left:12px;bottom:12px;background:#fffef9ee;border-radius:20px;padding:6px 10px;font-size:11px;color:#335b4a;display:flex;gap:7px;align-items:center}
.pdp-editorial-media .pdp-video-tile:before{content:"";position:absolute;inset:0;background:#19362322;z-index:1}
.pdp-video-tile .pdp-video-play{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;margin:auto;width:53px;height:53px;border-radius:50%!important;padding:0!important;background:#fffef9f5!important;font-size:20px!important;z-index:2}
.pdp-ready .sibling-rail{order:2;display:flex;width:100%;max-height:none;flex-direction:row;gap:10px;overflow-x:auto;padding-block:5px;align-items:flex-start;margin:0}
.pdp-ready .sibling-rail h2{display:none}.pdp-ready .sibling-card{flex:0 0 74px;width:74px;min-width:0;margin:0;border-radius:6px;padding:4px}
.pdp-ready .sibling-card img{width:64px;height:64px;object-fit:cover}.pdp-ready .sibling-card>span{font-size:10px;line-height:1.5;display:block;padding-top:4px;white-space:normal}
.pdp-ready .product-info{background:#fffefa;border:1px solid #e3e3d7;border-radius:25px;padding:30px;position:sticky;top:var(--pdp-sticky-top,105px);align-self:start;min-width:0;max-width:none;width:100%;margin:0;box-shadow:0 8px 32px #283f3110}
.pdp-ready .product-info:has(.family-colors){position:static}
.pdp-ready .product-info h1{font-size:25px;font-weight:500;line-height:1.45;letter-spacing:-.035em}
.pdp-ready .product-code{font-size:11px;margin-block:9px 20px;color:#7b8277}
.pdp-ready .price-band{display:flex;background:none;padding:0;align-items:baseline;gap:7px;border-radius:0;margin-bottom:11px;flex-wrap:wrap}
.pdp-ready .product-price{font-size:33px!important;color:#335b4a;line-height:1.1}
.pdp-series-price{display:block;flex-basis:100%;width:100%;font-size:11px;color:#848a7e;line-height:1.8;margin-top:5px}
.pdp-series-price:empty{display:none}
.pdp-ready .product-info>.fees-note{margin-block:9px 24px;font-size:12px}
.pdp-ready .family-colors{border-top:1px solid #e5e7dc;padding-top:19px;margin-bottom:22px}
.pdp-ready .family-color-options{gap:14px}.pdp-ready .family-color-dot{width:38px;height:38px}.pdp-ready .family-color-option{font-size:11px}
.pdp-ready .family-selected-preview{padding-block:10px}.pdp-ready .family-selected-preview img{width:54px;height:54px}
.pdp-ready .pattern-options{gap:7px}.pdp-ready .pattern-options button{border-radius:6px;min-height:45px;font-size:11px}
.pdp-ready .retail-size-selector{padding-top:16px;border-top:1px solid #e5e7dc}
.pdp-ready .retail-size-heading{gap:10px;align-items:baseline}.pdp-ready .retail-size-heading h2{font-size:13px;line-height:1.8}
.pdp-ready .retail-sizes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pdp-ready .retail-sizes button{border-radius:6px;min-height:43px;font-size:12px;background:#fffefa;line-height:1.4;padding:8px}
.pdp-ready .retail-sizes button[aria-pressed=true]{background:#edf2e8;border-color:#335b4a;box-shadow:inset 0 0 0 1px #335b4a}
.pdp-ready .retail-unit{font-size:11px;line-height:1.8}.pdp-ready .retail-quantity-row{margin-block:18px}
.pdp-ready .bulk-specifications{font-size:11px}.pdp-ready .order-summary{font-size:12px;padding-top:15px}
.pdp-ready .order-actions{grid-template-columns:1fr}.pdp-ready .order-actions button{min-height:46px;border-radius:6px;font-size:14px}
.pdp-ready .product-quick-actions{justify-content:space-between;gap:10px;padding-top:17px}.pdp-ready .product-quick-actions button{font-size:12px}
.pdp-ready .order-help{font-size:11px;line-height:1.7}
.pdp-ready .product-details{margin-top:42px;background:#fffefa;border-top:1px solid #d9ddcf;padding:0 28px;border-radius:12px}
.pdp-ready .detail-tabs{background:#fffefa}.pdp-ready .related-section{margin-top:40px}
.image-dialog.pdp-media-dialog{padding:20px;width:min(1180px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);background:#fffef9;border:1px solid #dedfd4;border-radius:12px;overflow:auto;color:#294635}
.pdp-media-dialog .dialog-close{z-index:5;right:16px;top:16px}
.pdp-dialog-tabs{display:flex;gap:8px;padding:0 44px 16px 0;border-bottom:1px solid #e0e3d7}
.pdp-dialog-tabs button{background:none;border:1px solid #d9dece;color:#556650;border-radius:20px;padding:8px 16px;font:inherit;font-size:13px;cursor:pointer}
.pdp-dialog-tabs button[aria-selected=true]{background:#335b4a;border-color:#335b4a;color:#fff}
.pdp-media-dialog .image-dialog-content{max-width:none;display:flex;flex-direction:column;align-items:stretch;padding:16px 0 0}
.pdp-photo-viewport{position:relative;min-height:150px;display:flex;align-items:center;justify-content:center;overflow:auto;border-radius:8px;background:#f0f0e9}
.pdp-media-dialog .pdp-photo-viewport>img{max-width:100%;width:auto;height:auto;max-height:min(64dvh,720px);object-fit:contain;border-radius:0;cursor:zoom-in;margin:0}
.pdp-media-dialog .pdp-photo-viewport.pdp-zoomed{display:block}.pdp-media-dialog .pdp-photo-viewport.pdp-zoomed>img{max-width:none;max-height:none;min-width:100%;width:150%;cursor:zoom-out}
.pdp-viewer-nav{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px;padding-top:12px}
.pdp-viewer-nav button{background:none;border:1px solid #d9dece;border-radius:5px;padding:7px 13px;font-size:13px;color:#335b4a;cursor:pointer}
.pdp-dialog-thumbs{display:flex;gap:8px;overflow-x:auto;padding-top:12px}.pdp-dialog-thumbs button{padding:2px;flex:0 0 56px;width:56px;height:56px;border:1px solid #dce1d3;border-radius:4px;cursor:pointer;background:#fff}
.pdp-dialog-thumbs button[aria-current=true]{border:2px solid #335b4a}.pdp-dialog-thumbs img{width:100%!important;height:100%!important;object-fit:cover;border-radius:0!important;margin:0!important}
.pdp-dialog-film video{width:100%;height:min(65dvh,700px);object-fit:contain;background:#172a20;border-radius:8px}
.pdp-dialog-film p{font-size:11px;color:#75806e;line-height:1.7;margin-top:9px}
.pdp-media-dialog [hidden]{display:none!important}.pdp-media-dialog [data-image-caption]{font-size:12px;color:#737f6d;padding-top:12px;text-align:center}
@media(max-width:1100px){.pdp-ready .product-main{grid-template-columns:minmax(0,1fr) minmax(350px,1fr);gap:20px}.pdp-ready .product-info{padding:23px}.pdp-ready .product-info h1{font-size:22px}.pdp-ready .product-price{font-size:29px!important}.pdp-ready .retail-sizes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.pdp-ready #main.contain{padding-inline:18px}.pdp-ready .breadcrumbs{font-size:10px;line-height:1.6;margin-block:15px}.pdp-ready .product-main{display:flex;flex-direction:column;gap:20px}.pdp-ready .product-media{gap:12px}.pdp-ready .product-info{position:static;top:auto;width:100%;padding:22px 19px;border-radius:16px}.pdp-ready .main-image{border-radius:7px}.pdp-ready .product-info h1{font-size:25px}.pdp-ready .gallery-strip button{flex-basis:52px;height:52px}.pdp-ready .product-info>.fees-note{margin-bottom:17px}.pdp-ready .retail-sizes{grid-template-columns:repeat(3,minmax(0,1fr))}.pdp-editorial-media{display:none}.pdp-ready .sibling-rail{max-height:98px;padding-block:0}.pdp-ready .sibling-card{flex-basis:62px;width:62px}.pdp-ready .sibling-card img{width:52px;height:52px}.pdp-media-actions{gap:7px}.pdp-media-actions button{font-size:11px;padding:9px 12px}.pdp-ready .product-details{padding-inline:18px;margin-top:25px;border-radius:10px}.pdp-ready .detail-tabs{gap:23px}.image-dialog.pdp-media-dialog{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:9px}.pdp-dialog-tabs{padding-right:28px;gap:5px}.pdp-dialog-tabs button{font-size:12px;padding-inline:12px}.pdp-dialog-film video{height:55dvh}.pdp-media-dialog .pdp-photo-viewport>img{max-height:60dvh}.pdp-dialog-thumbs button{flex-basis:44px;width:44px;height:44px}}
@media(max-width:370px){.pdp-ready #main.contain{padding-inline:13px}.pdp-ready .product-info{padding:19px 15px}.pdp-ready .product-info h1{font-size:22px}.pdp-ready .product-price{font-size:27px!important}.pdp-ready .retail-sizes button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.pdp-editorial-media img{transition:none}}
.pdp-ready .media-focus[data-gallery-layout=grid] .gallery-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; overflow: visible; }
.pdp-ready .media-focus[data-gallery-layout=grid] .gallery-strip button { width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 4px; }
.pdp-ready .media-focus[data-gallery-layout=grid] .gallery-strip img { width: 100%; height: 100%; object-fit: contain; }
.pdp-ready .media-focus[data-gallery-layout=grid] + .pdp-editorial-media > [data-pdp-photo] { display: none; }
@media (min-width:821px) {
  .pdp-ready .media-focus[data-gallery-layout=side] { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 12px; align-items: start; }
  .pdp-ready .media-focus[data-gallery-layout=side] .main-image { grid-area: 1 / 2; }
  .pdp-ready .media-focus[data-gallery-layout=side] .gallery-strip { grid-area: 1 / 1; flex-direction: column; flex-wrap: nowrap; align-items: stretch; max-height: clamp(200px, 40vw, 600px); min-width: 0; overflow: auto; margin-top: 0; }
  .pdp-ready .media-focus[data-gallery-layout=side] .gallery-strip button { width: 100%; }
  .pdp-ready .media-focus[data-gallery-layout=side] .pdp-media-actions { grid-column: 1 / -1; }
}
