/* BONDOK | Fluid responsive layout, public site | 2026-10-30
   Loaded after legacy bundles. Presentation only; no product/auth/order logic. */
:root { --bondok-page-gutter: clamp(14px, 3.4vw, 58px); }
html { -webkit-text-size-adjust:100%; }
body:not(.admin-page) { min-width:0; }
body:not(.admin-page) *, body:not(.admin-page) *::before, body:not(.admin-page) *::after { box-sizing:border-box; }
body:not(.admin-page) :is(main,section,article,aside,form,fieldset,.profile-content,.profile-page,.collection-page,.collection-grid,.collection-tools,.profile-form-grid,.profile-field,.perfume-card) { min-width:0; }
body:not(.admin-page) :is(img,video,svg) { max-width:100%; }
body:not(.admin-page) :is(input,select,textarea) { max-width:100%; min-width:0; }
body:not(.admin-page) :is(.profile-field,.profile-info-card,.profile-form-grid,.collection-header,.collection-header p,.perfume-card) { overflow-wrap:anywhere; }
/* Use the screen's available width rather than a device-model specific fixed card count. */
body .collection.collection-page { padding-inline:var(--bondok-page-gutter) !important; }
body .collection-page .collection-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:clamp(12px,2vw,24px) !important;
  width:min(100%,1360px);
  max-width:100%;
  margin-inline:auto;
  align-items:start !important;
}
body .collection-page .collection-grid > * { min-width:0; max-width:100%; }
body .collection-page .collection-grid > .perfume-card {
  width:100% !important; min-width:0 !important; max-width:none !important;
  height:auto !important; min-height:0 !important;
  display:flex; flex-direction:column; align-items:center;
  padding:clamp(12px,1.5vw,21px) !important;
}
body .collection-page .perfume-card-media,
body .collection-page .perfume-card-media > a { width:100%; max-width:100%; min-width:0; }
body .collection-page .perfume-card-media img {
  display:block; width:100% !important; max-width:100%; height:clamp(165px,17vw,235px) !important;
  object-fit:contain !important;
}
body .collection-page .perfume-card h3 { max-width:100%; font-size:clamp(16px,1.6vw,20px) !important; overflow-wrap:anywhere; }
body .collection-page .perfume-card :is(.perfume-from-price,.perfume-rating,.perfume-category,.perfume-sizes) { max-width:100%; }
body .collection-page .perfume-size-display { min-width:0; }
body .collection-page .perfume-size-display :is(span,strong,small) { min-width:0; max-width:100%; overflow-wrap:anywhere; white-space:normal !important; }
body .collection-page .collection-header h1 { font-size:clamp(30px,4.3vw,51px) !important; line-height:1.14; }
body .collection-page .collection-tools { width:min(100%,1360px); max-width:100%; flex-wrap:wrap; gap:12px 18px; }
body .collection-page .collection-search { flex:1 1 235px; width:auto; min-width:0; max-width:420px; }
body .collection-page .collection-search input { min-width:0; }
body .collection-page .collection-sort-label { min-width:0; max-width:100%; flex-wrap:wrap; }
body .collection-page .collection-sort { min-width:0; width:auto; max-width:100%; }
body .collection-page .filter-buttons { gap:clamp(12px,3vw,42px) !important; }
body .collection-page .filter-btn { letter-spacing:clamp(.6px,.18vw,2.8px); }
/* Only the main catalogue is a grid: leave the homepage swipe carousel untouched. */
@media (min-width:1580px) {
  body .collection-page .collection-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (min-width:980px) and (max-width:1179px) {
  body .collection-page .collection-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (min-width:521px) and (max-width:979px) {
  body .collection-page .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body .collection-page .perfume-card-media img { height:clamp(165px,24vw,215px) !important; }
}
@media (max-width:520px) {
  body .collection-page .collection-grid { grid-template-columns:minmax(0,1fr) !important; }
  body .collection-page .collection-grid > .perfume-card { max-width:440px !important; justify-self:center; }
  body .collection-page .perfume-card-media img { height:clamp(185px,53vw,245px) !important; }
  body .collection-page .collection-header h1 { font-size:clamp(28px,8.8vw,38px) !important; }
  body .collection-page .collection-tools { display:grid; grid-template-columns:minmax(0,1fr); }
  body .collection-page .collection-search { width:100%; max-width:none; }
  body .collection-page .collection-sort-label { justify-content:space-between; }
  body .collection-page .filter-buttons { gap:10px 17px !important; }
  body .collection-page .filter-btn { font-size:12px; letter-spacing:.8px; }
}
/* Account: wide screens use the luxury sidebar; narrower screens switch to a
   full-width compact account navigation, not a squeezed 220px side column. */
body .profile-page { padding-inline:var(--bondok-page-gutter) !important; }
body .profile-dashboard, body .profile-content { max-width:100%; min-width:0; }
body .profile-form-grid { min-width:0; }
body .profile-form-grid > *, body .profile-field :is(input,textarea,select) { min-width:0; max-width:100%; }
body .profile-field :is(input[type="email"],input[type="text"]) { width:100%; }
body .profile-side-btn { min-width:0; }
body .profile-side-btn > :is(span,i,svg) { min-width:0; }
body .profile-side-btn span { overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1100px) {
  body .profile-dashboard { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:18px !important; }
  body .profile-sidebar {
    position:static !important; top:auto !important; width:100% !important;
    margin:0 !important; padding:clamp(14px,2vw,22px) !important;
    display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:14px !important;
  }
  body .profile-sidebar-member { padding:0 !important; margin:0 !important; min-width:0; }
  body .profile-sidebar-footer { display:none !important; }
  body .profile-side-nav { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:9px !important; }
  body .profile-side-btn {
    display:flex !important; align-items:center !important; justify-content:flex-start !important;
    gap:10px !important; min-height:46px !important; height:auto !important; padding:10px 12px !important;
    max-width:100% !important; text-align:start;
  }
  body .profile-side-btn > :is(i:last-child,svg:last-child) { display:none !important; }
  body .profile-side-btn span { font-size:clamp(12px,1.5vw,14px) !important; white-space:normal; line-height:1.4; }
  body .profile-content { margin:0 !important; width:100% !important; }
}
@media (max-width:600px) {
  body .profile-side-nav { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body .profile-side-btn { padding:10px !important; }
  body .profile-form-grid { grid-template-columns:minmax(0,1fr) !important; }
  body .profile-field-full { grid-column:1/-1 !important; }
}
@media (max-width:350px) {
  body .profile-side-nav { gap:6px !important; }
  body .profile-side-btn { gap:7px !important; padding:9px 7px !important; }
  body .profile-side-btn span { font-size:11px !important; }
}
/* Header across intermediate widths: preserve controls without overlap. */
@media (min-width:769px) and (max-width:1199px) {
  body:not(.admin-page) .navbar { padding-inline:clamp(14px,2vw,26px) !important; gap:clamp(8px,1.4vw,18px) !important; }
  body:not(.admin-page) .navbar .logo { flex:0 1 auto; min-width:0; }
  body:not(.admin-page) .navbar .logo-main { font-size:clamp(23px,3.2vw,35px) !important; letter-spacing:clamp(2px,.55vw,7px) !important; white-space:nowrap; }
  body:not(.admin-page) .navbar .logo-sub { font-size:clamp(8px,1vw,11px) !important; letter-spacing:clamp(1px,.3vw,3px) !important; white-space:nowrap; }
  body:not(.admin-page) .navbar .social-links { flex:0 1 auto; min-width:0; gap:clamp(4px,.75vw,10px) !important; }
  body:not(.admin-page) .navbar .social-links > a { width:clamp(34px,3.8vw,42px) !important; min-width:clamp(34px,3.8vw,42px) !important; height:clamp(34px,3.8vw,42px) !important; }
  body:not(.admin-page) .navbar .menu-toggle { flex:none; }
  body:not(.admin-page) .navbar .language-toggle { flex:none; }
}
/* Tiny phones: make the brand and checkout/actions fit in the fixed navbar. */
@media (max-width:420px) {
  body:not(.admin-page) header.navbar { padding-inline:10px !important; gap:6px !important; }
  body:not(.admin-page) header.navbar .logo-main { font-size:clamp(19px,6.6vw,27px) !important; letter-spacing:.09em !important; }
  body:not(.admin-page) header.navbar .social-links { gap:4px !important; }
  body:not(.admin-page) header.navbar .social-links > a,
  body:not(.admin-page) #guestTrackOrderLink { width:36px !important; min-width:36px !important; height:36px !important; }
}
/* Keep dialogs and pages inside their own viewport, rather than hiding clipped fields. */
body:not(.admin-page) :is(.modal-content,.order-details-box,.perfume-request-dialog,.popup-content) {
  max-width:min(100%, calc(100dvw - 24px)) !important;
  max-height:calc(100dvh - 28px);
  overflow-y:auto;
}
@media (max-width:700px) {
  body:not(.admin-page) :is(.profile-welcome-card,.profile-form,.profile-extras-card,.profile-card) { max-width:100%; min-width:0; }
  body:not(.admin-page) .profile-form-grid > * { grid-column:auto; }
}
/* Prioritize shopping/account actions in the tablet header over decorative social links. */
@media (min-width:769px) and (max-width:1199px) {
  body:not(.admin-page) .navbar .social-links > a[href*="wa.me"],
  body:not(.admin-page) .navbar .social-links > a[href*="facebook"],
  body:not(.admin-page) .navbar .social-links > a[href*="instagram"],
  body:not(.admin-page) .navbar .social-links > a[href*="tiktok"] { display:none !important; }
  body:not(.admin-page) .navbar > nav { gap:clamp(8px,1.1vw,15px) !important; }
  body:not(.admin-page) .navbar > nav > a { font-size:clamp(11px,1.1vw,13px) !important; white-space:nowrap; }
}
body .collection-page .collection-grid > .collection-empty { grid-column:1/-1 !important; width:100%; }
