/* Basic page reset */
/* /* body { font-family: 'Segoe UI', Arial, sans-serif; margin:0; color:#222; background:#f8f9fb; } */
/*#products-container { max-width:1200px; margin:30px auto; padding:0 20px; }*/

/* Layout */
.page-title { padding:40px 0; background: url('images/background/3.jpg') center/cover no-repeat; color:#fff; text-align:center; }
.page-title h1 { margin:0; font-size:32px; letter-spacing:1px; }
.row { display:flex; gap:20px; align-items:flex-start; }
.sidebar { width:280px; flex-shrink:0; }
.content { flex:1; }

/* Sidebar */
.card { background:#fff; border-radius:8px; padding:16px; box-shadow:0 4px 12px rgba(0,0,0,0.05); margin-bottom:18px; }
.text-title h6 { margin:0 0 10px 0; font-size:14px; color:#003366; }
/* .search-box input[type="search"] { width:100%; height:50px; font-size: 15px; line-height: 26px; padding:10px 20px; font-weight: 400; color: #777777; background: #ffffff; border:1px solid #ececec; } */
.categorise-list { list-style:none; padding:0; margin:0; }
.categorise-list li { margin:8px 0; }
.categorise-list a { color:#2b2b2b; text-decoration:none; display:flex; justify-content:space-between; align-items:center; }
.categorise-list a span { color:#888; font-size:13px; }

.tag-list a { display:inline-block; margin:6px 6px 6px 0; padding:6px 10px; background:#f1f6fb; color:#004078; border-radius:20px; text-decoration:none; font-size:13px; }

/* Product grid */
.grid { display:flex; flex-wrap:wrap; gap:22px; }
.item-holder { width: calc(33.333% - 14.66px); background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 6px 18px rgba(16,24,40,0.04); transition:transform .18s ease, box-shadow .18s ease; display:flex; flex-direction:column; }
.item-holder:hover { transform:translateY(-6px); box-shadow:0 14px 36px rgba(16,24,40,0.08); }
/* .image-box img { height:200px; object-fit:cover; display:block; margin-left: auto; margin-right: auto; min-width: 50%;} */
/* .image-box img { max-width: 100%; max-height: 100vh; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; } */

.image-box {
    pointer-events: auto;
    cursor: pointer;
}

.image-box img {
  max-width: 100%;
  max-height: 250px;
  /*max-height: calc(100vh - var(--some-offset, 0px));*/
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.content-text { padding:14px; flex:1; display:flex; flex-direction:column; }
.content-text span.code { color:#48bdc5; font-size:13px; margin-bottom:6px; }
.content-text h6 { margin:6px 0; font-size:16px; color:#0b2540; }
.content-text .cat { font-size:13px; color:#48bdc5; margin-bottom:8px; }
.content-text p { color:#444; font-size:14px; margin:6px 0 12px 0; flex:1; line-height:1.45; }
.link-btn { text-align:center; margin-top:10px; }
.btn-add { display:inline-block; background:#48bdc5; border-color:#48bdc5; color:#fff; padding:8px 12px; border-radius:6px; text-decoration:none; font-size:14px; }
.btn-add:hover { background:#299299; }

/* Pagination */
.pagination { display:flex; justify-content:center; margin:22px 0; gap:6px; flex-wrap:wrap; }
.pagination a { padding:8px 12px; background:#fff; border-radius:6px; border:1px solid #e6eef7; color:#48bdc5; text-decoration:none; }
.pagination a.active { background:#48bdc5; color:#fff; border-color:#48bdc5; }
.pagination a.disabled { opacity:0.5; pointer-events:none; }

/* Top controls */
.controls { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.controls .left { font-size:14px; color:#333; }
.controls .right { display:flex; gap:8px; align-items:center; }
.controls select, .controls input[type="number"] { padding:6px 8px; border-radius:6px; border:1px solid #e1e6ef; }

/* Responsive */
@media (max-width:1000px) {
  .item-holder { width: calc(50% - 11px); }
  .sidebar { width: 240px; }
}

@media (max-width:700px) {
  .row { flex-direction:column; }
  .sidebar { width:100%; order:2; }
  .content { order:1; }
  .item-holder { width:100%; }
}



/* small optional toast tweaks */
#mhaToastContainer .mha-toast { font-weight:500; }

/* Floating cart button + modal styles */
#mhaFloatingCartBtn { position: fixed; right: 18px; bottom: 18px; z-index: 9999; background:#48bdc5; color:#fff; border:none; border-radius:50px; padding:12px 16px; box-shadow:0 8px 28px rgba(2,6,23,0.2); display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:600; font-size:14px; }
#mhaFloatingCartBtn .ct-count { background: rgba(255,255,255,0.2); padding:6px 8px; border-radius:20px; font-weight:700; }
#mhaCartModal { position: fixed; inset: 0; display: none; z-index: 10000; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); }
#mhaCartModal .mha-modal-dialog { width: 95%; max-width: 820px; background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 12px 48px rgba(2,6,23,0.3); max-height: 86vh; overflow: auto;}
.mha-modal-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.mha-modal-body { margin-bottom:12px; }
.mha-cart-list { list-style:none; margin:0; padding:0; }
.mha-cart-list li { display:flex; gap:12px; align-items:flex-start; padding:10px 8px; border-bottom:1px solid #f0f2f7; }
.mha-cart-item-image { width:78px; height:56px; object-fit:cover; border-radius:6px; background:#f6f8fb; flex-shrink:0; }
.mha-cart-item-meta { flex:1; }
.mha-cart-item-meta h6 { margin:0 0 6px 0; font-size:15px; color:#0b2540; }
.mha-cart-item-meta .small { color:#666; font-size:13px; }
.mha-cart-controls { display:flex; flex-direction:column; align-items:flex-end; gap:8px; min-width:120px; }
.mha-cart-controls input[type="number"] { width:72px; padding:6px; border-radius:6px; border:1px solid #e6eef7; }
.mha-cart-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
.mha-btn { padding:8px 12px; border-radius:8px; border:0; cursor:pointer; }
.mha-btn.primary { background:#48bdc5; color:#fff; }
.mha-btn.gray { background:#f1f5f9; color:#222; border:1px solid #e6eef7; }
.mha-close { background:transparent; border:0; font-size:18px; cursor:pointer; color:#666; }
.mha-empty { padding:32px; text-align:center; color:#666; }
.add-to-cart.in-cart { background:#dc3545 !important; color:#fff !important; border-color:transparent; }



/* Overlay */
.img-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

/* Image */
.img-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    object-fit: contain;
}

/* Close button */
.img-modal-close {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 100000;
    line-height: 30px;
}

.img-modal-close:hover {
    color: #e0e0e0;
}
