/* Shared compact table on PDP and card dialog. Uses native cart controls. */
.product-relations{clear:both;display:flow-root;container-type:inline-size;min-width:0;margin:20px 0;padding:16px;background:#fffaf4;border:1px solid #ead8c4;border-radius:12px;color:#332c25;font-family:inherit;box-sizing:border-box}
.product-relations *{box-sizing:border-box}.product-relations__header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.product-relations__header h2{font-size:21px;line-height:1.25;margin:0 0 4px;font-weight:700;color:#382c22}.product-relations__header p{margin:0;color:#716459;font-size:13px;line-height:1.4}.product-relations__count{background:#f4e8d9;padding:4px 9px;border-radius:16px;white-space:nowrap;font-size:12px}
.product-relations__scroll{max-height:560px;overflow:auto;overscroll-behavior:contain;border:1px solid #e8dbce;border-radius:8px;background:#fff}.product-relations__table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0}.product-relations__table th{position:sticky;top:0;z-index:1;background:#f6eee5;text-align:left;padding:8px 10px;font-size:12px;font-weight:600}.product-relations__table th:first-child{width:auto}.product-relations__table th:nth-child(2){width:155px}.product-relations__table th:nth-child(3){width:170px}.product-relations__table td{border-top:1px solid #eadfd5;padding:10px;vertical-align:middle}.product-relations__row.is-current{background:#fff5e9}.product-relations__row.is-current .product-relations__variant{box-shadow:inset 3px 0 #ad4d19}
.product-relations a.product-relations__option{display:flex;gap:10px;align-items:center;color:#332c25;text-decoration:none;min-width:0}.product-relations__image{flex:0 0 56px;width:56px;height:56px;object-fit:contain;border-radius:5px;background:white}.product-relations__info{min-width:0;display:flex;flex-direction:column;gap:4px}.product-relations__label{font-size:14px;line-height:1.35;overflow-wrap:anywhere}.product-relations__meta{font-size:11px;line-height:1.35;color:#716459;overflow-wrap:anywhere}.product-relations__selected{font-size:10px;background:#99501e;color:white;padding:2px 5px;border-radius:4px;margin-left:4px}.product-relations__swatch{display:inline-block;vertical-align:middle;margin-right:5px;width:14px;height:14px;border:1px solid #b2a396;border-radius:50%;background:var(--option-color)}
.product-relations__prices>*{display:block}.product-relations__price{font-size:17px;line-height:1.35;white-space:nowrap}.product-relations__unit{font-size:12px;color:#716459;line-height:1.4}.product-relations__unit-price{font-weight:600;color:#563b24;margin-top:3px}.product-relations__net,.product-relations__old-price{font-size:10px;color:#716459;line-height:1.4}.product-relations__saving,.product-relations__discount{font-size:11px;color:#326035;font-weight:600;line-height:1.4;margin-top:3px}.product-relations__availability{display:block;font-size:11px;color:#75645a;margin-bottom:5px}.product-relations__availability.is-orderable{color:#37623b}.product-relations__note{font-size:12px;line-height:1.4;color:#716459;margin:0 0 10px}.product-relations__details{font-size:13px;color:#944719}
.product-relations .product-card-cart-controls{display:flex;flex-direction:column;gap:6px;padding:0;margin:0;width:100%}.product-relations .product-card-quantity{display:flex;width:100%;height:32px;margin:0;max-width:none}.product-relations .product-card-quantity__button{width:32px;min-width:32px;height:32px;padding:0;font-size:18px}.product-relations .product-card-quantity__input{width:100%;min-width:0;height:32px;padding:3px;text-align:center;font-size:14px}.product-relations .in-basket-btn{width:100%;min-width:0;min-height:36px;height:auto;margin:0;padding:7px 5px;font-size:13px;line-height:1.25;white-space:normal}.product-relations a:focus-visible,.product-relations button:focus-visible,.product-relations input:focus-visible,.product-relations__scroll:focus-visible{outline:3px solid #a75220;outline-offset:2px}
@media(max-width:700px){.product-relations{padding:10px;margin:14px 0}.product-relations__header h2{font-size:18px}.product-relations__count{font-size:11px;padding:4px 6px}.product-relations__table,.product-relations__table tbody{display:block}.product-relations__table thead{display:none}.product-relations__table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.8fr);gap:0;border-top:1px solid #eadfd5}.product-relations__table tr:first-child{border-top:0}.product-relations__table td{display:block;border:0;padding:8px}.product-relations__variant{grid-column:1/-1}.product-relations__table .product-relations__prices{padding-top:2px;padding-left:74px}.product-relations__table .product-relations__cart{padding-top:0}.product-relations__price{font-size:16px}.product-relations__scroll{max-height:530px}.product-relations__image{flex-basis:48px;width:48px;height:48px}.product-relations__table .product-relations__prices{padding-left:8px}.product-relations__label{font-size:13px}.product-relations__info{gap:3px}}
/* A narrow PDP column stacks independently of the browser viewport. */
@container(max-width:640px){.product-relations__header h2{font-size:18px}.product-relations__count{font-size:11px;padding:4px 6px}.product-relations__table,.product-relations__table tbody{display:block}.product-relations__table thead{display:none}.product-relations__table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.8fr);gap:0;border-top:1px solid #eadfd5}.product-relations__table tr:first-child{border-top:0}.product-relations__table td{display:block;border:0;padding:8px}.product-relations__variant{grid-column:1/-1}.product-relations__table .product-relations__prices{padding-top:2px;padding-left:74px}.product-relations__table .product-relations__cart{padding-top:0}.product-relations__price{font-size:16px}.product-relations__scroll{max-height:530px}.product-relations__image{flex-basis:48px;width:48px;height:48px}.product-relations__table .product-relations__prices{padding-left:8px}.product-relations__label{font-size:13px}.product-relations__info{gap:3px}}

.product-relation-links{display:flex;flex-direction:column;gap:4px;padding:6px 12px;width:100%;box-sizing:border-box}
.product-relation-links a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid #e7c39f;border-radius:7px;color:#93471b;background:#fff8ef;font-size:13px;line-height:1.35;padding:6px;text-decoration:none}
.product-relation-dialog{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);padding:24px}
.product-relation-dialog[hidden]{display:none}.product-relation-dialog__panel{width:100%;max-width:1050px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:20px;box-sizing:border-box}
.product-relation-dialog__top{position:sticky;top:0;z-index:1;background:#fff;padding-bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:16px}.product-relation-dialog__top h2{margin:0;font-size:22px;line-height:1.35}.product-relation-dialog__close{min-width:44px;min-height:44px;background:#fff;border:1px solid #cdbfae;border-radius:8px;font-size:22px;cursor:pointer}
.product-relation-dialog__status{padding:22px 0}.product-relation-dialog a:focus-visible,.product-relation-dialog button:focus-visible,.product-relation-links a:focus-visible{outline:3px solid #a75220;outline-offset:3px}
@media(max-width:600px){.product-relation-dialog{padding:0;align-items:flex-end}.product-relation-dialog__panel{max-height:90vh;border-radius:16px 16px 0 0;padding:14px}.product-relation-links{padding:4px 8px}.product-relation-links a{font-size:12px}}
