/* R-models responsive corrections: phone header, category cards, single companion product. */
/* Scoped and deliberately separate from the companion module's working files. */
@media (max-width:600px){
  .rmodels-theme .rm-c1-main{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding-top:10px;padding-bottom:10px}
  .rmodels-theme .rm-c1-brand{gap:9px;min-width:0;align-items:center}
  .rmodels-theme .rm-c1-mark{flex:0 0 36px;width:36px;height:36px;border-radius:50%;font-size:12px;line-height:1}
  .rmodels-theme .rm-c1-brand strong{font-size:20px;line-height:25px;font-weight:750;white-space:nowrap}
  .rmodels-theme .rm-c1-brand small{font-size:11px;line-height:15px}
  .rmodels-theme .rm-c1-actions{justify-content:flex-end;flex:0 0 auto}
  .rmodels-theme .rm-c1-actions>a{width:40px;min-width:40px}
  .rmodels-theme .rm-c1-actions img{width:22px;height:22px}
  .rmodels-theme .rm-h1-category-section .rm-h1-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rmodels-theme .rm-h1-categories .rm-h1-category-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;min-height:225px;padding:10px;gap:9px;overflow:hidden}
  .rmodels-theme .rm-h1-category-art{width:100%;height:112px;min-height:112px;flex:0 0 auto;align-self:stretch;border-radius:10px}
  .rmodels-theme .rm-h1-category-art img{width:100%;height:100%;object-fit:contain}
  .rmodels-theme .rm-h1-category-copy{min-width:0;width:100%;flex:1;align-items:flex-start;justify-content:flex-start}
  .rmodels-theme .rm-h1-category-copy strong{font-size:14px;line-height:19px;font-weight:700;white-space:normal;overflow-wrap:anywhere;hyphens:auto}
  .rmodels-theme .rm-h1-category-more{display:block;margin-top:auto;padding-top:6px;font-size:12px;line-height:18px;white-space:normal}
  .rmodels-theme .rm-product .rm-product-accessories{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0}
  .rmodels-theme .rm-product .rm-product-accessory{display:flex;flex-direction:column;min-width:0;width:100%;max-width:none}
  .rmodels-theme .rm-product .rm-product-accessory-top{width:100%;padding:12px 14px 0}
  .rmodels-theme .rm-product .rm-product-accessory-image{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:calc(100% - 28px);height:165px;margin:6px 14px 0}
  .rmodels-theme .rm-product .rm-product-accessory-image img{width:100%;height:100%;object-fit:contain}
  .rmodels-theme .rm-product .rm-product-accessory-body{display:flex;flex-direction:column;width:100%;min-width:0;gap:9px;padding:12px 14px 15px}
  .rmodels-theme .rm-product .rm-product-accessory-name{min-height:0;font-size:15px;line-height:21px;overflow-wrap:anywhere}
  .rmodels-theme .rm-product .rm-product-accessory-restriction{font-size:12px;line-height:18px}
  .rmodels-theme .rm-product .rm-product-accessory-price strong{font-size:21px;line-height:28px}
  .rmodels-theme .rm-product .rm-product-accessory-add{min-height:44px;font-size:14px;width:100%}
  .rmodels-theme .rm-product #assembly-glue .rm-product-selection-bar{width:100%;max-width:none}
}
@media(max-width:359px){
  .rmodels-theme .rm-c1-mark{flex-basis:31px;width:31px;height:31px;font-size:11px}
  .rmodels-theme .rm-c1-brand strong{font-size:17px;line-height:22px}
  .rmodels-theme .rm-c1-brand small{font-size:10px}
  .rmodels-theme .rm-c1-actions>a{width:35px;min-width:35px}
  .rmodels-theme .rm-h1-categories .rm-h1-category-card{min-height:212px}
  .rmodels-theme .rm-h1-category-art{height:92px;min-height:92px}
}

/* Tablet: two readable category tiles instead of four cramped columns. */
@media(min-width:601px) and (max-width:1199px){
 .rmodels-theme .rm-h1-category-section .rm-h1-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .rmodels-theme .rm-h1-categories .rm-h1-category-card{min-width:0}
}
@media(min-width:601px) and (max-width:767px){
 .rmodels-theme .rm-product #assembly-glue .rm-product-accessories:has(>.rm-product-accessory:only-child){grid-template-columns:minmax(0,1fr)}
}


/* Phone refinements: never hyphenate category names mid-word; compact truthful dispatch. */
.rm-h1 .rm-h1-dispatch-short{display:none}
@media(max-width:600px){
  .rmodels-theme .rm-h1-category-copy strong{
    font-size:13px;line-height:18px;
    hyphens:none;-webkit-hyphens:none;
    overflow-wrap:normal;word-break:normal;
  }
  .rmodels-theme .rm-h1-category-copy{min-width:0}
  .rmodels-theme .rm-h1-products .rm-h1-dispatch{
    display:flex;flex-wrap:nowrap;align-items:baseline;gap:5px;
    font-size:11px;line-height:16px;min-height:16px;
  }
  .rmodels-theme .rm-h1-products .rm-h1-dispatch img{
    width:6px;height:6px;align-self:baseline;flex:0 0 6px;
  }
  .rmodels-theme .rm-h1-products .rm-h1-dispatch-long{display:none}
  .rmodels-theme .rm-h1-products .rm-h1-dispatch-short{display:inline}
}
@media(max-width:359px){
  .rmodels-theme .rm-h1-category-copy strong{font-size:12.5px;line-height:17px}
  .rmodels-theme .rm-h1-products .rm-h1-dispatch{font-size:10px;line-height:15px}
}


/* Tablet product merchandising: a single glue option should use the available
   space, not sit as a narrow 420px column with an equally narrow checkout bar. */
@media(min-width:768px) and (max-width:1199px){
  .rmodels-theme .rm-product #assembly-glue:has(.rm-product-accessories>.rm-product-accessory:only-child) .rm-product-accessories{
    width:100%;
    grid-template-columns:minmax(0,1fr);
  }
  .rmodels-theme .rm-product #assembly-glue .rm-product-accessories>.rm-product-accessory:only-child{
    display:grid;
    grid-template-columns:minmax(0,42%) minmax(0,58%);
    grid-template-rows:auto 1fr;
    width:100%;
    max-width:none;
    align-items:start;
  }
  .rmodels-theme .rm-product #assembly-glue .rm-product-accessories>.rm-product-accessory:only-child .rm-product-accessory-top{
    grid-column:1 / -1;
    grid-row:1;
  }
  .rmodels-theme .rm-product #assembly-glue .rm-product-accessories>.rm-product-accessory:only-child .rm-product-accessory-image{
    grid-column:1;
    grid-row:2;
    align-self:center;
    width:calc(100% - 24px);
    height:230px;
    margin:0 12px 12px;
  }
  .rmodels-theme .rm-product #assembly-glue .rm-product-accessories>.rm-product-accessory:only-child .rm-product-accessory-body{
    grid-column:2;
    grid-row:2;
    min-width:0;
    padding:12px 14px 16px;
  }
  .rmodels-theme .rm-product #assembly-glue:has(.rm-product-accessories>.rm-product-accessory:only-child) .rm-product-selection-bar{
    width:100%;
    flex-direction:row;
    align-items:center;
  }
  .rmodels-theme .rm-product #assembly-glue:has(.rm-product-accessories>.rm-product-accessory:only-child) .rm-product-selection-bar button{
    width:auto;
  }
}
