*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f4f6f8;color:#1f2937}header{background:#0d6efd;color:#fff;padding:16px}h1{margin:0;font-size:22px}header small{opacity:.9}main{max-width:900px;margin:auto;padding:16px}.toolbar{display:flex;gap:10px;margin-bottom:16px}input,textarea{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px}button{border:0;border-radius:10px;padding:12px 16px;background:#0d6efd;color:#fff;font-weight:700;cursor:pointer}button:disabled{opacity:.6}.secondary{background:#e5e7eb;color:#111827}.card{background:#fff;border-radius:14px;padding:12px;margin-bottom:12px;display:grid;grid-template-columns:80px minmax(0,1fr) 130px auto;gap:16px;align-items:center;box-shadow:0 2px 8px #0001}.card img,.noimg{width:80px;height:80px;object-fit:cover;border-radius:10px;background:#e5e7eb}.noimg{display:flex;align-items:center;justify-content:center;font-size:28px}.card h3{margin:0 0 6px}.product-no{font-size:12px;font-weight:700;color:#0d6efd;margin-bottom:4px;letter-spacing:.2px}.green{color:#198754;font-weight:700}.actions{display:flex;gap:8px}.empty{background:#fff;padding:30px;text-align:center;border-radius:12px}dialog{border:0;border-radius:16px;padding:0;width:min(94vw,500px);box-shadow:0 15px 50px #0005}dialog::backdrop{background:#0008}.dialog{padding:20px}.dialog label{display:block;font-weight:700;margin:12px 0}.dialog label input{margin-top:6px}.profit{display:flex;justify-content:space-between;background:#eef7f0;padding:13px;border-radius:10px;margin:12px 0}.profit b{color:#198754}.preview{width:100%;max-height:280px;object-fit:contain;margin-top:8px;border-radius:10px}.hidden{display:none}.dialog>.actions{justify-content:flex-end;margin-top:16px}.ok{color:#198754;font-weight:700;min-height:22px}.error{color:#dc3545;font-weight:700;min-height:22px}@media(max-width:600px){.toolbar{flex-direction:column}.card{grid-template-columns:60px 1fr}.card img,.noimg{width:60px;height:60px}.card>.actions{grid-column:2}.dialog{padding:16px}}

.subtitle{font-size:14px;font-weight:700;color:#475569;margin-bottom:5px}.description{font-size:13px;color:#64748b;margin-bottom:7px;line-height:1.4;white-space:pre-wrap;word-break:break-word}

select{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px;background:#fff}
.store-status{font-size:13px;font-weight:700;margin:5px 0 7px}
.store-status.available{color:#198754}
.store-status.sold{color:#dc3545}

.store-column{text-align:center;min-width:110px}
.store-label{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}
.store-status{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:8px 14px;border-radius:20px;font-size:14px;font-weight:800}
.store-status.available{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.store-status.sold{background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5}
@media(max-width:700px){
  .card{grid-template-columns:60px 1fr;gap:10px}
  .card img,.noimg{width:60px;height:60px}
  .store-column{grid-column:1 / -1;text-align:center;padding:4px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}
  .card>.actions{grid-column:2}
}

.store-toggle{border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:8px 18px;border-radius:20px;font-size:14px;font-weight:800}
.store-toggle.available{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.store-toggle.sold{background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5}
.store-toggle:hover{filter:brightness(.96)}
.quantity-label{margin-top:12px}
.quantity-control{display:flex;align-items:center;justify-content:center;gap:8px}
.qty-btn{width:32px;height:32px;padding:0;border-radius:8px;font-size:20px;line-height:1}
.qty-value{min-width:34px;text-align:center;font-weight:800;font-size:16px}

.sensitive-price{display:block}
.hide-sensitive-price .sensitive-price{display:none}

/* Actual Price and Profit are controlled together by the same display button. */
.sensitive-price{display:block}
.hide-sensitive-price .sensitive-price{display:none !important}

/* Actual Price and Profit are always hidden/shown together. */
.sensitive-price{display:block}
.hide-sensitive-price .sensitive-price{display:none !important}

.price-visibility-btn{
  width:58px;
  min-width:58px;
  height:56px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#111827;
  border:2px solid #111827;
  border-radius:10px;
}
.price-visibility-btn:hover{
  background:#f3f4f6;
}
.price-visibility-btn:active{
  transform:scale(.97);
}
.eye-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}
.eye-icon svg{
  display:block;
}

/* Compact Actual/Profit visibility icon */
.price-visibility-btn{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  padding:0 !important;
  border-radius:8px !important;
  border-width:1px !important;
}
.price-visibility-btn .eye-icon svg{
  width:18px !important;
  height:18px !important;
}

/* Small eye icon without square/button background */
.price-visibility-btn{
  width:24px !important;
  min-width:24px !important;
  height:24px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.price-visibility-btn .eye-icon svg{
  width:16px !important;
  height:16px !important;
}

/* Password-protected price visibility icon */
.price-visibility-btn{
  width:24px !important;
  min-width:24px !important;
  height:24px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.price-visibility-btn .eye-icon svg{
  width:16px !important;
  height:16px !important;
}

/* Compact product grid: products appear as small boxes side-by-side. */
.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}

.product-grid .card{
  margin-bottom:0;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  height:100%;
  box-sizing:border-box;
}

.product-grid .card img,
.product-grid .card .noimg{
  width:100%;
  height:130px;
  object-fit:cover;
  border-radius:9px;
  display:block;
}

.product-grid .card .info{
  min-width:0;
}

.product-grid .card .product-no{
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.product-grid .card h3{
  font-size:16px;
  margin:2px 0 3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.product-grid .card .subtitle{
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.product-grid .card .description{
  font-size:12px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-grid .card .store-column{
  margin-top:auto;
  width:100%;
  min-width:0;
  padding-top:7px;
  border-top:1px solid #e5e7eb;
}

.product-grid .card .actions{
  width:100%;
  display:flex;
  gap:6px;
}

.product-grid .card .actions button{
  flex:1;
  min-width:0;
  padding:8px 6px;
}

.product-grid .card .quantity-control{
  gap:6px;
}

.product-grid .card .qty-btn{
  width:28px;
  height:28px;
}

.product-grid .card .price-visibility-btn{
  /* Keep the global eye icon compact. */
  width:24px !important;
}

@media(max-width:1100px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-grid .card{padding:8px}
  .product-grid .card img,
  .product-grid .card .noimg{height:110px}
  .product-grid .card h3{font-size:14px}
  .product-grid .card .store-label{font-size:10px}
  .product-grid .card .store-toggle{min-width:58px;padding:6px 10px;font-size:12px}
}

@media(max-width:420px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .product-grid .card img,
  .product-grid .card .noimg{height:95px}
}

.search-help{display:block;margin-top:3px;color:#6b7280;font-size:10px}

.sensitive-import{display:none!important}

.sensitive-edit{display:none}

.sensitive-add{display:none}

.sensitive-delete{display:none}

.sensitive-stock{display:none}

#profit[readonly]{background:#f3f4f6}

.collection-header{
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:18px 16px;
}
.collection-header h1{
  margin:0;
  font-size:26px;
  font-weight:700;
}

header.collection-header{
  width:100%;
  box-sizing:border-box;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  margin:0;
}
header.collection-header h1{
  width:100%;
  margin:0 auto !important;
  text-align:center !important;
}

/* Tight product cards: remove unused white space when management controls are hidden. */
.product-grid{
  align-items:start !important;
}
.product-grid .card{
  height:auto !important;
  align-self:start !important;
}

/* Final compact layout: independent card heights, no equal-height rows. */
.product-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  align-content:flex-start !important;
  gap:12px !important;
}
.product-grid .card{
  flex:0 0 calc((100% - 36px) / 4) !important;
  width:calc((100% - 36px) / 4) !important;
  height:auto !important;
  min-height:0 !important;
  align-self:flex-start !important;
  box-sizing:border-box !important;
}
@media(max-width:900px){
  .product-grid .card{
    flex-basis:calc((100% - 12px) / 2) !important;
    width:calc((100% - 12px) / 2) !important;
  }
}
@media(max-width:420px){
  .product-grid .card{
    flex-basis:100% !important;
    width:100% !important;
  }
}

/* Equal-size product cards for a clean catalogue view. */
.product-grid .card{
  height:270px !important;
  min-height:270px !important;
  overflow:hidden !important;
}
body:not(.hide-sensitive-price) .product-grid .card{
  height:430px !important;
  min-height:430px !important;
}
.product-grid .card .info{
  overflow:hidden !important;
}
.product-grid .card .description{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
@media(max-width:900px){
  .product-grid .card{
    height:270px !important;
    min-height:270px !important;
  }
  body:not(.hide-sensitive-price) .product-grid .card{
    height:430px !important;
    min-height:430px !important;
  }
}
@media(max-width:420px){
  .product-grid .card,
  body:not(.hide-sensitive-price) .product-grid .card{
    height:auto !important;
    min-height:270px !important;
  }
}

/* Five equal product cards per row on desktop. */
.product-grid .card{
  flex:0 0 calc((100% - 48px) / 5) !important;
  width:calc((100% - 48px) / 5) !important;
}
@media(max-width:1100px){
  .product-grid .card{
    flex-basis:calc((100% - 36px) / 4) !important;
    width:calc((100% - 36px) / 4) !important;
  }
}
@media(max-width:900px){
  .product-grid .card{
    flex-basis:calc((100% - 24px) / 3) !important;
    width:calc((100% - 24px) / 3) !important;
  }
}
@media(max-width:650px){
  .product-grid .card{
    flex-basis:calc((100% - 12px) / 2) !important;
    width:calc((100% - 12px) / 2) !important;
  }
}
@media(max-width:420px){
  .product-grid .card{
    flex-basis:100% !important;
    width:100% !important;
  }
}

.sensitive-reset{display:none}

.contact-info{position:absolute;right:16px;top:12px;display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:12px;text-align:right}.contact-info a{color:#fff;text-decoration:none;font-weight:700}.contact-info span{font-size:11px;opacity:.95}.collection-header{position:relative;padding-right:320px!important}@media(max-width:700px){.collection-header{padding-right:16px!important}.contact-info{position:static;align-items:center;text-align:center;margin-top:8px}.photo-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.photo-thumb{position:relative;width:90px;height:90px}.photo-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.photo-thumb button{position:absolute;right:3px;top:3px;width:24px;height:24px;padding:0;border-radius:50%;background:#dc3545;color:#fff;font-size:18px;line-height:1}}
.photo-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.photo-thumb{position:relative;width:90px;height:90px}.photo-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.photo-thumb button{position:absolute;right:3px;top:3px;width:24px;height:24px;padding:0;border-radius:50%;background:#dc3545;color:#fff;font-size:18px;line-height:1}.card{cursor:pointer}.card:focus{outline:2px solid #0d6efd}

.detail-main{max-width:1100px;margin:auto;padding:18px}.back-link{display:inline-block;margin-bottom:14px;color:#0d6efd;font-weight:700;text-decoration:none}.detail-card{background:#fff;border-radius:16px;padding:18px;box-shadow:0 2px 10px #0001}.detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:24px}.main-photo{width:100%;max-height:600px;object-fit:contain;background:#f1f5f9;border-radius:12px}.detail-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.detail-thumb{padding:0;border:2px solid transparent;background:#fff;width:78px;height:78px}.detail-thumb.active{border-color:#0d6efd}.detail-thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px}.detail-info h2{margin:8px 0 5px;font-size:28px}.detail-info h3{margin:0 0 10px;color:#475569}.detail-description{font-size:16px;line-height:1.6;white-space:pre-wrap;color:#475569}.detail-price{font-size:22px;font-weight:700;margin:18px 0}.detail-store{display:inline-block;padding:8px 14px;border-radius:20px;font-weight:800}.detail-store.available{background:#dcfce7;color:#15803d}.detail-store.sold{background:#fee2e2;color:#b91c1c}.detail-qty{margin-top:12px;font-weight:700}.sensitive-detail{display:none;margin-top:14px;font-size:18px}.unlock-btn{margin-top:14px}.detail-noimg{height:400px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border-radius:12px;font-size:50px}@media(max-width:700px){.detail-layout{grid-template-columns:1fr}.detail-main{padding:10px}.detail-info h2{font-size:24px}}

/* Product details: medium photos displayed horizontally. */
.product-detail-page .detail-layout{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.product-detail-page .detail-gallery{
  width:100%;
  overflow:hidden;
}
.product-detail-page .detail-photo-row{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 2px 12px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.product-detail-page .detail-photo{
  flex:0 0 190px;
  width:190px;
  height:190px;
  padding:0;
  border:0;
  border-radius:12px;
  overflow:hidden;
  background:#e5e7eb;
  box-shadow:0 2px 8px #0002;
}
.product-detail-page .detail-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.product-detail-page .detail-photo:focus,
.product-detail-page .detail-photo:hover{
  outline:2px solid #0d6efd;
  outline-offset:2px;
}
.product-detail-page .detail-info{
  width:100%;
}
.product-detail-page .sensitive-detail,
.product-detail-page #unlock{
  display:none !important;
}
@media(max-width:600px){
  .product-detail-page .detail-photo{
    flex-basis:150px;
    width:150px;
    height:150px;
  }
}

/* One photo: show only that single medium-size photo. */
.product-detail-page .detail-single-photo{
  display:flex;
  justify-content:center;
  width:100%;
}
.product-detail-page .detail-single-photo img{
  width:420px;
  height:420px;
  max-width:100%;
  object-fit:cover;
  border-radius:12px;
  display:block;
  box-shadow:0 2px 8px #0002;
}
@media(max-width:600px){
  .product-detail-page .detail-single-photo img{
    width:100%;
    height:auto;
    max-height:420px;
    object-fit:contain;
  }
}

/* Multiple product photos in Add/Edit Product. */
.photo-upload-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 10px;
}
.photo-upload-row button{
  width:auto;
}
.photo-count{
  font-size:13px;
  color:#64748b;
  font-weight:600;
}
.photo-preview{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}
.photo-thumb{
  position:relative;
  width:90px;
  height:90px;
}
.photo-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:9px;
  border:1px solid #cbd5e1;
}
.photo-thumb button{
  position:absolute;
  top:-7px;
  right:-7px;
  width:24px;
  height:24px;
  padding:0;
  border-radius:50%;
  background:#dc2626;
  color:#fff;
  font-size:16px;
  line-height:24px;
}

.photo-upload-row #addMorePhotosBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* v43: robust responsive collection header/contact layout */
.collection-header{
  position:relative !important;
  width:100% !important;
  min-height:76px !important;
  padding:14px 18px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.collection-title{
  width:100% !important;
  text-align:center !important;
  font-size:26px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  margin:0 !important;
}
.collection-header .contact-info{
  position:absolute !important;
  right:18px !important;
  top:10px !important;
  width:auto !important;
  max-width:390px !important;
  text-align:right !important;
  color:#fff !important;
  font-size:13px !important;
  line-height:1.45 !important;
  font-weight:600 !important;
  z-index:5 !important;
}
.collection-header .contact-info a{
  color:#fff !important;
  text-decoration:none !important;
  font-weight:800 !important;
}
.collection-header .contact-line{
  white-space:nowrap !important;
}
.collection-header .hours-line{
  margin-top:3px !important;
  white-space:nowrap !important;
  color:#fff !important;
}
@media(max-width:900px){
  .collection-header{
    min-height:112px !important;
    padding:12px 12px 16px !important;
    align-items:flex-start !important;
  }
  .collection-title{
    font-size:24px !important;
    padding-top:2px !important;
  }
  .collection-header .contact-info{
    top:54px !important;
    right:12px !important;
    left:12px !important;
    max-width:none !important;
    text-align:center !important;
    font-size:12px !important;
  }
  .collection-header .contact-line,
  .collection-header .hours-line{
    white-space:normal !important;
  }
}
@media(max-width:520px){
  .collection-header{min-height:128px !important;}
  .collection-title{font-size:21px !important;}
  .collection-header .contact-info{top:50px !important;font-size:11px !important;}
}

/* v44: collection title only */
.collection-title{
  font-size:34px !important;
  font-weight:900 !important;
  color:#111827 !important;
}
@media(max-width:900px){
  .collection-title{font-size:30px !important;}
}
@media(max-width:520px){
  .collection-title{font-size:27px !important;}
}

/* v45: align top-right contact details cleanly */
.collection-header .contact-info{
  top:10px !important;
  right:16px !important;
  width:360px !important;
  max-width:360px !important;
  text-align:right !important;
  font-size:13px !important;
  line-height:1.5 !important;
}
.collection-header .contact-line{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:7px !important;
  white-space:nowrap !important;
}
.collection-header .contact-line a{
  display:inline-block !important;
}
.collection-header .contact-sep{
  opacity:.8 !important;
}
.collection-header .hours-line{
  margin-top:4px !important;
  white-space:nowrap !important;
  font-size:12px !important;
}
@media(max-width:900px){
  .collection-header .contact-info{
    top:54px !important;
    left:10px !important;
    right:10px !important;
    width:auto !important;
    max-width:none !important;
    text-align:center !important;
  }
  .collection-header .contact-line{
    justify-content:center !important;
    flex-wrap:wrap !important;
    white-space:normal !important;
  }
  .collection-header .hours-line{
    white-space:normal !important;
  }
}

/* v46 FINAL: larger Rucha's Collection title */
header.collection-header .collection-title,
.collection-header > .collection-title{
  font-size: 42px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  color: #111827 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
}
@media (max-width: 900px){
  header.collection-header .collection-title,
  .collection-header > .collection-title{
    font-size: 36px !important;
  }
}
@media (max-width: 520px){
  header.collection-header .collection-title,
  .collection-header > .collection-title{
    font-size: 30px !important;
  }
}

/* v47: final responsive header layout */
@media(max-width:900px){
  .collection-header{
    min-height:118px !important;
    padding:12px 10px 16px !important;
    align-items:flex-start !important;
  }
  .collection-header .collection-title{
    font-size:34px !important;
  }
  .collection-header .contact-info{
    top:58px !important;
    left:10px !important;
    right:10px !important;
    width:auto !important;
    max-width:none !important;
    text-align:center !important;
  }
  .collection-header .contact-line{
    justify-content:center !important;
    flex-wrap:wrap !important;
    white-space:normal !important;
  }
  .collection-header .hours-line{
    white-space:normal !important;
  }
}
@media(max-width:520px){
  .collection-header{min-height:132px !important;}
  .collection-header .collection-title{font-size:29px !important;}
  .collection-header .contact-info{top:52px !important;font-size:11px !important;}
  .collection-header .hours-line{font-size:11px !important;}
}

/* v48: hide search helper labels from the public page */
.search-help{display:none !important;}

/* v49: public toolbar must not display the search-helper text */
.search-help{display:none !important;visibility:hidden !important;width:0 !important;height:0 !important;overflow:hidden !important;margin:0 !important;padding:0 !important;}

/* v50: remove Available Time from public header on desktop and mobile */
.collection-header .hours-line{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important;}

/* V50 FINAL MOBILE FIX
   Keep Rucha's Collection centered and put Call/WhatsApp underneath.
   Available Time remains removed. */
@media (max-width: 900px) {
  header.collection-header {
    position: relative !important;
    min-height: 145px !important;
    height: 145px !important;
    padding: 14px 10px 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  header.collection-header .collection-title {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    color: #111827 !important;
  }

  header.collection-header .contact-info {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #fff !important;
  }

  header.collection-header .contact-line {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    white-space: normal !important;
  }

  header.collection-header .contact-line a {
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }

  header.collection-header .hours-line {
    display: none !important;
  }
}

@media (max-width: 520px) {
  header.collection-header {
    min-height: 138px !important;
    height: 138px !important;
    padding: 12px 8px 10px !important;
  }

  header.collection-header .collection-title {
    font-size: 29px !important;
  }

  header.collection-header .contact-info {
    margin-top: 14px !important;
    font-size: 11px !important;
  }
}

/* V51: Admin login gate for Unhide */
.admin-login-dialog{
  border:0;
  border-radius:16px;
  padding:0;
  width:min(92vw,420px);
  max-width:420px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.admin-login-dialog::backdrop{
  background:rgba(0,0,0,.62);
}
.admin-login-card{
  box-sizing:border-box;
  padding:26px;
  background:#fff;
  border-radius:16px;
}
.admin-login-card h2{
  margin:0 0 7px;
  font-size:24px;
  color:#111827;
}
.admin-login-subtitle{
  margin:0 0 20px;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
}
.admin-login-card label{
  display:block;
  margin:12px 0 6px;
  font-weight:700;
  color:#111827;
}
.admin-login-card input{
  width:100%;
  box-sizing:border-box;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  font-size:16px;
  outline:none;
}
.admin-login-card input:focus{
  border-color:#1677ff;
  box-shadow:0 0 0 2px rgba(22,119,255,.12);
}
.admin-login-error{
  min-height:20px;
  margin-top:9px;
  color:#dc2626;
  font-size:13px;
  font-weight:700;
}
.admin-login-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}
.admin-login-actions button{
  min-height:42px;
  padding:9px 18px;
  border:0;
  border-radius:9px;
  font-weight:800;
  cursor:pointer;
}
.admin-login-actions .primary{
  background:#1677ff;
  color:#fff;
}
.admin-login-actions .secondary{
  background:#e5e7eb;
  color:#111827;
}
@media(max-width:520px){
  .admin-login-dialog{width:calc(100vw - 28px);}
  .admin-login-card{padding:22px;}
}

/* V52: public prices have no "Sell" label */
.public-price{font-size:16px;line-height:1.35;margin-top:4px;}

/* V52: product detail purchase prompt + WhatsApp thumb */
.buy-hint{
  margin:18px 0 10px;
  padding:12px 14px;
  border:1px solid #f0c36d;
  border-radius:8px;
  background:#fff8df;
  color:#7a4d00;
  font-size:15px;
  font-weight:700;
}
.thumb-buy-button{
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:#25a244;
  color:#fff;
  font-size:29px;
  line-height:58px;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .12s ease, box-shadow .12s ease;
}
.thumb-buy-button:hover{
  transform:scale(1.06);
  box-shadow:0 7px 18px rgba(0,0,0,.23);
}
.thumb-buy-button:active{transform:scale(.96);}

/* Multiple photos: medium horizontal row */
.detail-photo-row{
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  overflow-x:auto;
  padding:4px 2px 10px;
  width:100%;
  box-sizing:border-box;
}
.detail-photo{
  flex:0 0 120px;
  width:120px;
  height:120px;
  padding:0;
  border:2px solid transparent;
  border-radius:8px;
  background:#eee;
  overflow:hidden;
  cursor:pointer;
}
.detail-photo.active{border-color:#1677ff;}
.detail-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.detail-single-photo{
  width:100%;
  max-width:520px;
  border-radius:10px;
  overflow:hidden;
}
.detail-single-photo img{
  display:block;
  width:100%;
  max-height:520px;
  object-fit:contain;
}
@media(max-width:700px){
  .buy-hint{font-size:14px;margin-top:14px;}
  .detail-photo{flex-basis:105px;width:105px;height:105px;}
  .thumb-buy-button{width:54px;height:54px;font-size:27px;}
}

/* V52 Customer Details -> WhatsApp enquiry popup */
.customer-enquiry-dialog{
  border:0;
  border-radius:16px;
  padding:0;
  width:min(92vw,440px);
  max-width:440px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.customer-enquiry-dialog::backdrop{
  background:rgba(0,0,0,.62);
}
.customer-enquiry-card{
  box-sizing:border-box;
  padding:26px;
  background:#fff;
  border-radius:16px;
}
.customer-enquiry-card h2{
  margin:0 0 7px;
  font-size:24px;
  color:#111827;
}
.customer-enquiry-subtitle{
  margin:0 0 18px;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
}
.customer-enquiry-card label{
  display:block;
  margin:12px 0 6px;
  font-weight:700;
  color:#111827;
}
.customer-enquiry-card label span{
  color:#dc2626;
}
.customer-enquiry-card input{
  width:100%;
  box-sizing:border-box;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  font-size:16px;
  outline:none;
}
.customer-enquiry-card input:focus{
  border-color:#1677ff;
  box-shadow:0 0 0 2px rgba(22,119,255,.12);
}
.customer-enquiry-error{
  min-height:20px;
  margin-top:9px;
  color:#dc2626;
  font-size:13px;
  font-weight:700;
}
.customer-enquiry-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}
.customer-enquiry-actions button{
  min-height:42px;
  padding:9px 18px;
  border:0;
  border-radius:9px;
  font-weight:800;
  cursor:pointer;
}
.customer-enquiry-actions .primary{
  background:#25a244;
  color:#fff;
}
.customer-enquiry-actions .secondary{
  background:#e5e7eb;
  color:#111827;
}
@media(max-width:520px){
  .customer-enquiry-dialog{
    width:calc(100vw - 24px);
  }
  .customer-enquiry-card{
    padding:21px;
  }
  .customer-enquiry-actions{
    position:sticky;
    bottom:0;
    background:#fff;
    padding-top:8px;
  }
}

/* V54: small WhatsApp enquiry thumb beside price on main product cards */
.public-price-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
}
.card-thumb-button{
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#25a244;
  color:#fff;
  font-size:17px;
  line-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.16);
  flex:0 0 30px;
}
.card-thumb-button:hover{transform:scale(1.06);}
.card-thumb-button:active{transform:scale(.95);}

/* Customer enquiry dialog is shared visually with the product detail page. */
.customer-enquiry-dialog{
  border:0;
  border-radius:16px;
  padding:0;
  width:min(92vw,440px);
  max-width:440px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.customer-enquiry-dialog::backdrop{background:rgba(0,0,0,.62);}
.customer-enquiry-card{
  box-sizing:border-box;
  padding:26px;
  background:#fff;
  border-radius:16px;
}
.customer-enquiry-card h2{margin:0 0 7px;font-size:24px;color:#111827;}
.customer-enquiry-subtitle{margin:0 0 18px;color:#64748b;font-size:13px;line-height:1.4;}
.customer-enquiry-card label{display:block;margin:12px 0 6px;font-weight:700;color:#111827;}
.customer-enquiry-card label span{color:#dc2626;}
.customer-enquiry-card input{
  width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;
  border:1px solid #cbd5e1;border-radius:9px;font-size:16px;outline:none;
}
.customer-enquiry-card input:focus{
  border-color:#1677ff;box-shadow:0 0 0 2px rgba(22,119,255,.12);
}
.customer-enquiry-error{min-height:20px;margin-top:9px;color:#dc2626;font-size:13px;font-weight:700;}
.customer-enquiry-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;}
.customer-enquiry-actions button{
  min-height:42px;padding:9px 18px;border:0;border-radius:9px;font-weight:800;cursor:pointer;
}
.customer-enquiry-actions .primary{background:#25a244;color:#fff;}
.customer-enquiry-actions .secondary{background:#e5e7eb;color:#111827;}
@media(max-width:520px){
  .customer-enquiry-dialog{width:calc(100vw - 24px);}
  .customer-enquiry-card{padding:21px;}
  .public-price-row{gap:7px;}
  .card-thumb-button{width:29px;height:29px;flex-basis:29px;font-size:16px;}
}

/* V55: compact admin Actual + Profit on one line */
.compact-sensitive-price{
  display:flex !important;
  align-items:baseline;
  gap:7px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.compact-sensitive-price .compact-profit{
  font-size:12px;
  font-weight:800;
  color:#079447;
}
@media(max-width:520px){
  .compact-sensitive-price{gap:5px;}
  .compact-sensitive-price .compact-profit{font-size:11px;}
}

/* V56: admin mode hides the enquiry thumb; profit is calculated as Sell - Actual */
.compact-profit{
  color:#079447 !important;
  font-size:12px !important;
  font-weight:800 !important;
}
@media(max-width:520px){
  .compact-profit{font-size:11px !important;}
}

/* V57: robust admin/visitor card state */
/* V57: do not clip protected Actual/Profit information */
.product-grid .card{
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
}
.product-grid .card .info{
  min-width:0 !important;
  overflow:visible !important;
}
.compact-sensitive-price{
  display:flex !important;
  align-items:baseline !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  line-height:1.25 !important;
}
.compact-sensitive-price .compact-profit{
  color:#079447 !important;
  font-size:12px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
@media(max-width:520px){
  .compact-sensitive-price .compact-profit{font-size:11px !important;}
}

/* V59: Call Now removed; WhatsApp contact remains visible. */
.contact-line{
  justify-content:flex-end !important;
}

/* V60: enquiry thumb is available in both visitor and admin/unhide modes. */
.public-price-row{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:100% !important;
}
.card-thumb-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  cursor:pointer !important;
  font-size:20px !important;
  line-height:1 !important;
}

/* V61: main-card enquiry thumb is visitor-only.
   Admin/unhide mode must not display it. */
.admin-price-visible .card-thumb-button{
  display:none !important;
}


/* V62: product detail editing in admin/unhide mode */
.admin-edit-product-button{display:inline-flex;align-items:center;justify-content:center;margin:14px 0;padding:11px 18px;border-radius:10px;background:#0d6efd;color:#fff;font-weight:800;border:0;cursor:pointer}
.admin-edit-dialog{border:0;border-radius:16px;padding:0;width:min(94vw,560px);max-height:92vh;box-shadow:0 15px 50px #0005}
.admin-edit-card{padding:20px;max-height:92vh;overflow:auto}
.admin-edit-card h2{margin:0 0 6px;font-size:22px}
.admin-edit-card label{display:block;font-weight:700;margin:12px 0}
.admin-edit-card input,.admin-edit-card textarea,.admin-edit-card select{margin-top:6px}
.admin-edit-note{font-size:13px;color:#64748b;margin:5px 0 12px}
.edit-profit-preview{background:#eef7f0;padding:12px;border-radius:10px;margin:12px 0;color:#198754;font-weight:700}
.admin-edit-error{min-height:22px;color:#dc3545;font-weight:700;margin-top:8px}
.admin-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.edit-photo-preview{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.edit-photo-item{position:relative;width:92px;height:92px}
.edit-photo-item img{width:92px;height:92px;object-fit:cover;border-radius:10px;background:#e5e7eb}
.edit-photo-item button{position:absolute;right:-5px;top:-5px;width:26px;height:26px;padding:0;border-radius:50%;background:#dc3545;color:#fff;font-size:18px;line-height:26px}
@media(max-width:600px){.admin-edit-card{padding:16px}.admin-edit-dialog{width:96vw}}


/* New Stock main-page menu */
.main-menu-left{display:flex;justify-content:flex-start;margin:0 0 10px 0}
.new-stock-menu{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;background:#111827;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 2px 7px #0002}
.new-stock-menu:hover{filter:brightness(.96)}
@media(max-width:600px){.new-stock-menu{width:100%}}

/* Latest stock page */
.stock-page{max-width:1100px;margin:auto;padding:16px}
.stock-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.stock-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.visitor-stock-message{background:#fff;border-radius:12px;padding:12px 14px;margin:0 0 14px;color:#475569;font-size:13px;line-height:1.5;font-weight:600;text-align:center;box-shadow:0 2px 8px #0001}
.stock-grid{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:12px}
.stock-card{background:#fff;border-radius:14px;padding:8px;box-shadow:0 2px 8px #0001;display:flex;flex-direction:column;min-width:0;flex:0 0 calc((100% - 48px) / 5);width:calc((100% - 48px) / 5);box-sizing:border-box;align-self:flex-start;height:auto;min-height:0}
.stock-card img,.stock-noimg{width:100%;height:110px;object-fit:cover;border-radius:10px;background:#e5e7eb}
.stock-noimg{display:flex;align-items:center;justify-content:center;font-size:40px}
.stock-card h3{margin:7px 0 3px;font-size:14px}
.stock-no{font-size:11px;font-weight:800;color:#0d6efd}
.stock-subtitle{font-size:13px;font-weight:700;color:#475569;margin:3px 0}
.stock-description{font-size:12px;color:#64748b;line-height:1.35;margin:4px 0 7px;white-space:pre-wrap;word-break:break-word}
.stock-price{font-size:16px;font-weight:900;margin-top:auto}
.stock-admin-price{font-size:12px;font-weight:800;margin-top:4px}
.stock-profit{color:#198754}
.stock-meta{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-top:8px;font-size:12px;font-weight:800}
.stock-status-yes{color:#15803d;background:#dcfce7;border:1px solid #86efac;padding:5px 8px;border-radius:16px}
.stock-status-no{color:#b91c1c;background:#fee2e2;border:1px solid #fca5a5;padding:5px 8px;border-radius:16px}
.stock-card-actions{display:flex;gap:6px;margin-top:10px}
.stock-card-actions button{flex:1;padding:8px 10px;font-size:12px}
.stock-empty{background:#fff;border-radius:14px;padding:30px;text-align:center;color:#64748b}
.stock-back{color:#0d6efd;text-decoration:none;font-weight:800}
.stock-hidden-badge{font-size:11px;color:#b91c1c;font-weight:800}
@media(max-width:1100px){.stock-card{flex-basis:calc((100% - 36px) / 4);width:calc((100% - 36px) / 4)}}
@media(max-width:900px){.stock-card{flex-basis:calc((100% - 24px) / 3);width:calc((100% - 24px) / 3)}}
@media(max-width:650px){.stock-card{flex-basis:calc((100% - 12px) / 2);width:calc((100% - 12px) / 2)}.stock-card img,.stock-noimg{height:110px}}
@media(max-width:420px){.stock-card{flex-basis:100%;width:100%}.stock-card img,.stock-noimg{height:180px}}
.stock-photo-row{display:flex;gap:8px;overflow-x:auto;padding:6px 0}.stock-photo-row img{width:80px;height:80px;object-fit:cover;border-radius:8px;flex:0 0 auto}
