/* ==========================================================================
   Halal Meat Order — Premium Butcher Shop Design v2
   ========================================================================== */

:root {
    --hmo-red:       #b91c1c;
    --hmo-red-dark:  #7f1d1d;
    --hmo-red-light: #fef2f2;
    --hmo-gold:      #d97706;
    --hmo-green:     #15803d;
    --hmo-text:      #1a1a1a;
    --hmo-muted:     #6b7280;
    --hmo-border:    #e5e7eb;
    --hmo-bg:        #fafafa;
    --hmo-white:     #ffffff;
    --hmo-radius:    10px;
    --hmo-shadow:    0 4px 24px rgba(0,0,0,.08);
    --hmo-shadow-lg: 0 8px 40px rgba(0,0,0,.13);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ==========================================================================
   SHOP HEADER
   ========================================================================== */
.hmo-shop-header {
    background: linear-gradient(135deg, #1a0a0a 0%, var(--hmo-red-dark) 45%, var(--hmo-red) 100%);
    position: relative;
    overflow: hidden;
}
.hmo-shop-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hmo-shop-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}
.hmo-shop-branding { display: flex; align-items: center; gap: 16px; }
.hmo-shop-logo-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
}
.hmo-shop-name {
    font-size: 26px; font-weight: 800; color: #fff;
    margin: 0 0 4px; line-height: 1.1;
    letter-spacing: -.3px;
}
.hmo-shop-tagline { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; }
.hmo-shop-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hmo-shop-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600;
    background: rgba(255,255,255,.1); padding: 7px 13px; border-radius: 25px;
    border: 1px solid rgba(255,255,255,.15);
}
.hmo-shop-wa-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; background: #25d366; color: #fff !important;
    border-radius: 25px; font-size: 14px; font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37,211,102,.4);
    transition: all .2s;
}
.hmo-shop-wa-btn:hover { background: #1da851; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* Category pills */
.hmo-cat-pills {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px 20px;
    display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; position: relative;
}
.hmo-cat-pills::-webkit-scrollbar { display: none; }
.hmo-cat-pill {
    padding: 8px 18px; white-space: nowrap; flex-shrink: 0;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
    border-radius: 25px; font-size: 13px; font-weight: 600;
    text-decoration: none; border: 1px solid rgba(255,255,255,.2);
    transition: all .15s;
}
.hmo-cat-pill:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.hmo-cat-pill.active { background: #fff; color: var(--hmo-red); border-color: #fff; }

/* ==========================================================================
   SHOP GRID
   ========================================================================== */
.hmo-shop {
    max-width: 1200px; margin: 0 auto; padding: 28px 20px 50px;
}
.hmo-filters {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 24px; align-items: center;
}
.hmo-filters input[type="search"],
.hmo-filters select {
    padding: 10px 16px; border: 2px solid var(--hmo-border);
    border-radius: var(--hmo-radius); font-size: 14px;
    flex: 1; min-width: 140px; background: var(--hmo-white); color: var(--hmo-text);
    transition: border-color .15s;
}
.hmo-filters input:focus, .hmo-filters select:focus {
    outline: none; border-color: var(--hmo-red);
}
.hmo-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border-radius: var(--hmo-radius);
    font-size: 14px; font-weight: 700; cursor: pointer;
    text-decoration: none; border: none; transition: all .2s; line-height: 1.4;
}
.hmo-btn-red { background: var(--hmo-red); color: #fff; }
.hmo-btn-red:hover { background: var(--hmo-red-dark); color: #fff; transform: translateY(-1px); }

/* Product grid */
.hmo-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.hmo-product-card {
    background: var(--hmo-white); border-radius: 14px;
    overflow: hidden; position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid var(--hmo-border);
    transition: box-shadow .25s, transform .25s;
    display: flex; flex-direction: column;
}
.hmo-product-card:hover {
    box-shadow: var(--hmo-shadow-lg);
    transform: translateY(-4px);
}
.hmo-product-img {
    display: block; width: 100%; height: 220px; overflow: hidden;
    background: #f5f0ee; position: relative;
}
.hmo-product-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.hmo-product-card:hover .hmo-product-img img { transform: scale(1.06); }
.hmo-product-img .hmo-no-img {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 64px; background: #fdf5f5;
}
.hmo-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hmo-product-card h3 { font-size: 15px; font-weight: 700; color: var(--hmo-text); line-height: 1.3; }
.hmo-product-card h3 a { color: inherit; text-decoration: none; }
.hmo-product-card h3 a:hover { color: var(--hmo-red); }
.hmo-price { font-size: 18px; font-weight: 800; color: var(--hmo-red); }
.hmo-card-footer { padding: 0 16px 16px; }
.hmo-view-btn {
    display: block; width: 100%; padding: 11px;
    background: var(--hmo-red); color: #fff; border: none;
    border-radius: var(--hmo-radius); font-size: 14px; font-weight: 700;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: background .2s;
}
.hmo-view-btn:hover { background: var(--hmo-red-dark); color: #fff; text-decoration: none; }

/* Badges on card */
.hmo-halal-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--hmo-green); color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800;
    letter-spacing: .3px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hmo-stock-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff;
}
.hmo-stock-badge.out { background: #dc2626; }
.hmo-stock-badge.pre { background: var(--hmo-gold); }

/* Pagination */
.hmo-pagination { margin: 36px 0 0; text-align: center; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.hmo-pagination a {
    padding: 9px 16px; border: 2px solid var(--hmo-border);
    text-decoration: none; color: var(--hmo-text); border-radius: 8px;
    font-size: 14px; font-weight: 600; transition: all .15s;
}
.hmo-pagination a:hover { border-color: var(--hmo-red); color: var(--hmo-red); }
.hmo-pagination a.active { background: var(--hmo-red); color: #fff; border-color: var(--hmo-red); }

.hmo-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--hmo-muted); font-size: 16px; }

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
#hmo-sp {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 24px 20px 60px !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    color: var(--hmo-text) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#hmo-sp * { box-sizing: border-box; }
.hmo-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--hmo-red); text-decoration: none; font-size: 14px; font-weight: 600;
    margin-bottom: 24px; padding: 8px 16px; border-radius: 25px;
    background: var(--hmo-red-light); border: 1px solid #fecaca;
    transition: all .15s;
}
.hmo-back:hover { background: var(--hmo-red); color: #fff; text-decoration: none; }

.hmo-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
}

/* Gallery */
.hmo-gal { position: sticky; top: 24px; }
.hmo-gal-main {
    position: relative; border-radius: 16px; overflow: hidden;
    background: #f5f0ee; aspect-ratio: 1/1; box-shadow: var(--hmo-shadow);
}
.hmo-gal-slide { display: none; width: 100%; height: 100%; position: absolute; inset: 0; }
.hmo-gal-slide.on { display: block; }
.hmo-gal-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.hmo-arr {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; background: rgba(255,255,255,.95);
    border: none; border-radius: 50%; font-size: 22px; font-weight: 700;
    cursor: pointer; z-index: 20;
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; color: var(--hmo-text);
}
.hmo-arr:hover { background: var(--hmo-red); color: #fff; transform: translateY(-50%) scale(1.08); }
.hmo-arr-l { left: 12px; }
.hmo-arr-r { right: 12px; }
.hmo-ctr {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.55); color: #fff; padding: 4px 14px;
    border-radius: 20px; font-size: 13px; font-weight: 600; pointer-events: none;
    backdrop-filter: blur(4px);
}
.hmo-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hmo-thumb {
    width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
    cursor: pointer; border: 3px solid transparent; transition: all .15s; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.hmo-thumb:hover { border-color: var(--hmo-red); transform: scale(1.04); }
.hmo-thumb.on { border-color: var(--hmo-red); }
.hmo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmo-no-img {
    width: 100%; aspect-ratio: 1/1; background: #fdf5f5;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 90px;
}
.hmo-sp-cats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.hmo-tag {
    padding: 5px 14px; background: var(--hmo-red-light); color: var(--hmo-red);
    border-radius: 20px; font-size: 12px; font-weight: 700; text-decoration: none;
    border: 1px solid #fecaca; transition: all .15s;
}
.hmo-tag:hover { background: var(--hmo-red); color: #fff; }

/* Info column */
.hmo-info { display: flex; flex-direction: column; gap: 0; }
.hmo-info h1 {
    font-size: 30px; font-weight: 800; color: var(--hmo-text);
    line-height: 1.15; margin-bottom: 14px; letter-spacing: -.4px;
}
.hmo-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hmo-bdg {
    padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 800;
    letter-spacing: .3px;
}
.hmo-bdg-halal { background: #dcfce7; color: #166534; border: 1.5px solid #86efac; }
.hmo-bdg-in    { background: #dbeafe; color: #1d4ed8; border: 1.5px solid #93c5fd; }
.hmo-bdg-out   { background: #fee2e2; color: #991b1b; border: 1.5px solid #fca5a5; }
.hmo-bdg-pre   { background: #fef9c3; color: #854d0e; border: 1.5px solid #fde047; }

.hmo-range {
    font-size: 32px; font-weight: 900; color: var(--hmo-red);
    margin-bottom: 18px; letter-spacing: -.5px;
}
.hmo-excerpt {
    color: var(--hmo-muted); line-height: 1.75; font-size: 15px;
    margin-bottom: 22px; padding-bottom: 22px;
    border-bottom: 2px solid var(--hmo-border);
}

/* Form fields */
.hmo-fg { margin-bottom: 20px; }
.hmo-lbl {
    display: block; font-size: 13px; font-weight: 800; color: var(--hmo-muted);
    text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}
.hmo-lbl-opt { font-weight: 500; color: #9ca3af; text-transform: none; letter-spacing: 0; font-size: 12px; }
.hmo-req { color: var(--hmo-red); }

/* Weight/Count tiles */
.hmo-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.hmo-tile {
    padding: 10px 18px; border: 2px solid var(--hmo-border);
    border-radius: 10px; font-size: 14px; font-weight: 700;
    color: #374151; background: var(--hmo-white); cursor: pointer;
    transition: all .15s; user-select: none; white-space: nowrap;
    line-height: 1.3;
}
.hmo-tile:hover { border-color: var(--hmo-red); background: var(--hmo-red-light); color: var(--hmo-red); }
.hmo-tile.sel {
    border-color: var(--hmo-red); background: var(--hmo-red); color: #fff;
    box-shadow: 0 4px 14px rgba(185,28,28,.3);
}

/* Select */
.hmo-sel {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--hmo-border); border-radius: 10px;
    font-size: 15px; color: var(--hmo-text); background: var(--hmo-white);
    cursor: pointer; appearance: auto; transition: border-color .15s;
}
.hmo-sel:focus { outline: none; border-color: var(--hmo-red); }

/* Skin pills */
.hmo-skin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hmo-skin-lbl {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 2px solid var(--hmo-border);
    border-radius: 10px; cursor: pointer; font-weight: 700;
    font-size: 14px; transition: all .15s; user-select: none;
}
.hmo-skin-lbl:hover { border-color: var(--hmo-red); background: var(--hmo-red-light); }
.hmo-skin-lbl input { accent-color: var(--hmo-red); width: 17px; height: 17px; }

/* Quantity */
.hmo-qty-wrap {
    display: inline-flex; align-items: center;
    border: 2px solid var(--hmo-border); border-radius: 10px; overflow: hidden;
    background: var(--hmo-white);
}
.hmo-qbtn {
    width: 50px; height: 50px; background: var(--hmo-bg); border: none;
    font-size: 22px; font-weight: 800; cursor: pointer; color: var(--hmo-text);
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.hmo-qbtn:hover { background: var(--hmo-red); color: #fff; }
.hmo-qinput {
    width: 68px; height: 50px; border: none;
    border-left: 2px solid var(--hmo-border); border-right: 2px solid var(--hmo-border);
    text-align: center; font-size: 18px; font-weight: 800; color: var(--hmo-text);
    background: var(--hmo-white); -moz-appearance: textfield;
}
.hmo-qinput::-webkit-inner-spin-button,
.hmo-qinput::-webkit-outer-spin-button { -webkit-appearance: none; }
.hmo-qinput:focus { outline: none; }

/* Textarea */
.hmo-textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--hmo-border); border-radius: 10px;
    font-size: 14px; color: var(--hmo-text); resize: vertical;
    font-family: inherit; min-height: 80px; transition: border-color .15s;
    background: var(--hmo-white);
}
.hmo-textarea:focus { outline: none; border-color: var(--hmo-red); }

/* Trust strip */
.hmo-trust {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.hmo-trust-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: var(--hmo-green);
    background: #f0fdf4; padding: 5px 12px; border-radius: 20px;
    border: 1px solid #bbf7d0;
}

/* Total row */
.hmo-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: var(--hmo-red-light);
    border: 2px solid #fecaca; border-radius: 12px; margin-bottom: 16px;
}
.hmo-total-row span { font-size: 15px; font-weight: 700; color: #6b1414; }
.hmo-total-val { font-size: 28px; font-weight: 900; color: var(--hmo-red); letter-spacing: -.5px; }

/* Add to Cart button */
.hmo-atc-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 17px; background: var(--hmo-red); color: #fff;
    border: none; border-radius: 12px; font-size: 17px; font-weight: 800;
    cursor: pointer; transition: all .2s; margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(185,28,28,.35); letter-spacing: .2px;
}
.hmo-atc-btn:hover { background: var(--hmo-red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(185,28,28,.45); }
.hmo-atc-btn:disabled { background: #9ca3af; box-shadow: none; transform: none; cursor: not-allowed; }

/* WhatsApp button */
.hmo-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; background: #f0fdf4;
    color: #166534 !important; border: 2px solid #86efac;
    border-radius: 12px; font-size: 15px; font-weight: 700;
    text-decoration: none !important; transition: all .2s;
}
.hmo-wa-btn:hover { background: #25d366; color: #fff !important; border-color: #25d366; }

/* Out of stock */
.hmo-oos {
    background: #fef2f2; border: 2px solid #fecaca;
    border-left: 5px solid var(--hmo-red);
    padding: 16px 20px; border-radius: 10px;
    color: #7f1d1d; margin-bottom: 20px; line-height: 1.7; font-size: 15px;
}

/* Message */
.hmo-msg { min-height: 24px; font-size: 14px; font-weight: 700; text-align: center; margin-top: 10px; padding: 6px; border-radius: 8px; }
.hmo-msg-ok  { color: var(--hmo-green); background: #f0fdf4; border: 1px solid #bbf7d0; }
.hmo-msg-err { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }

/* Sticky Add to Cart bar */
.hmo-sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
    background: var(--hmo-white); border-top: 2px solid var(--hmo-border);
    padding: 14px 20px; display: flex; align-items: center;
    gap: 16px; box-shadow: 0 -4px 24px rgba(0,0,0,.12);
    transform: translateY(100%); transition: transform .3s ease;
}
.hmo-sticky-bar.visible { transform: translateY(0); }
.hmo-sticky-bar-name { font-weight: 800; font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmo-sticky-bar-price { font-weight: 900; font-size: 18px; color: var(--hmo-red); white-space: nowrap; }
.hmo-sticky-bar-btn {
    padding: 12px 28px; background: var(--hmo-red); color: #fff;
    border: none; border-radius: 10px; font-size: 15px; font-weight: 800;
    cursor: pointer; white-space: nowrap; transition: background .2s;
}
.hmo-sticky-bar-btn:hover { background: var(--hmo-red-dark); }

/* Description */
.hmo-desc { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--hmo-border); }
.hmo-desc h3 {
    font-size: 18px; font-weight: 800; margin-bottom: 12px;
    color: var(--hmo-text); letter-spacing: -.2px;
}
.hmo-desc p { line-height: 1.8; color: var(--hmo-muted); margin-bottom: 12px; font-size: 15px; }

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.hmo-cart { max-width: 1000px; margin: 40px auto; padding: 0 20px 60px; }
.hmo-cart h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; color: var(--hmo-text); }
.hmo-empty-cart { text-align: center; padding: 60px 20px; color: var(--hmo-muted); }
.hmo-empty-cart p { font-size: 18px; margin-bottom: 20px; }
.hmo-cart-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.hmo-cart-table th {
    background: var(--hmo-bg); padding: 12px 16px; text-align: left;
    font-weight: 800; color: var(--hmo-muted); font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--hmo-border);
}
.hmo-cart-table td { padding: 16px; border-bottom: 1px solid var(--hmo-border); vertical-align: middle; }
.hmo-qty-input {
    width: 72px; padding: 8px; border: 2px solid var(--hmo-border);
    border-radius: 8px; font-size: 15px; font-weight: 700; text-align: center;
}
.hmo-remove-item {
    background: none; border: none; color: #d1d5db; cursor: pointer;
    font-size: 18px; padding: 6px; border-radius: 6px; transition: all .15s;
}
.hmo-remove-item:hover { color: var(--hmo-red); background: var(--hmo-red-light); }
.hmo-line-total { font-weight: 800; color: var(--hmo-text); }
.hmo-cart-totals {
    background: var(--hmo-bg); border: 2px solid var(--hmo-border);
    border-radius: 14px; padding: 24px; text-align: right; max-width: 380px; margin-left: auto;
}
.hmo-cart-totals p { font-size: 16px; margin-bottom: 16px; }
.hmo-subtotal { font-weight: 900; font-size: 22px; color: var(--hmo-red); }
.hmo-cart-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.hmo-checkout { max-width: 1100px; margin: 40px auto; padding: 0 20px 60px; }
.hmo-checkout h2 { font-size: 28px; font-weight: 800; margin-bottom: 28px; color: var(--hmo-text); }
.hmo-checkout-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; align-items: start; }
.hmo-checkout-fields h3,
.hmo-checkout-summary h3 {
    font-size: 16px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: var(--hmo-muted);
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--hmo-border);
}
.hmo-checkout-fields h3:not(:first-child) { margin-top: 28px; }
.hmo-checkout-fields label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
.hmo-checkout-fields input,
.hmo-checkout-fields select,
.hmo-checkout-fields textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--hmo-border);
    border-radius: 10px; font-size: 15px; background: var(--hmo-white);
    color: var(--hmo-text); transition: border-color .15s;
}
.hmo-checkout-fields input:focus,
.hmo-checkout-fields select:focus,
.hmo-checkout-fields textarea:focus { outline: none; border-color: var(--hmo-red); }
.hmo-payment-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hmo-payment-option {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    border: 2px solid var(--hmo-border); border-radius: 10px; cursor: pointer;
    font-weight: 600; font-size: 15px; transition: all .15s;
}
.hmo-payment-option:hover { border-color: var(--hmo-red); background: var(--hmo-red-light); }
.hmo-payment-option input[type="radio"] { accent-color: var(--hmo-red); width: 18px; height: 18px; }
.hmo-bank-details {
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 8px; padding: 14px 18px; margin-top: 10px;
}
.hmo-bank-details pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; color: #78350f; }
.hmo-checkout-summary {
    background: var(--hmo-bg); border: 2px solid var(--hmo-border);
    padding: 24px; border-radius: 16px; position: sticky; top: 20px;
}
.hmo-summary-items { list-style: none; padding: 0; margin: 0 0 16px; }
.hmo-summary-items li {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hmo-border);
    font-size: 14px;
}
.hmo-summary-items li:last-child { border-bottom: none; }
.hmo-summary-items li span { white-space: nowrap; font-weight: 800; color: var(--hmo-red); }
.hmo-summary-totals { border-top: 2px solid var(--hmo-border); padding-top: 14px; margin-top: 8px; }
.hmo-summary-totals p { display: flex; justify-content: space-between; margin: 8px 0; font-size: 15px; }
.hmo-total {
    font-size: 20px !important; border-top: 2px solid var(--hmo-text);
    padding-top: 12px !important; margin-top: 8px !important; font-weight: 900;
}
#hmo-checkout-msg {
    margin-top: 12px; font-size: 14px; font-weight: 700;
    text-align: center; padding: 8px; border-radius: 8px;
}
#hmo-checkout-msg.error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
#hmo-checkout-msg.success { color: var(--hmo-green); background: #f0fdf4; }

/* Checkout button */
.hmo-fc-checkout-btn,
.hmo-btn-lg {
    display: block; width: 100%; padding: 15px;
    background: var(--hmo-red); color: #fff !important;
    border: none; border-radius: 12px; font-size: 16px; font-weight: 800;
    text-align: center; text-decoration: none !important; cursor: pointer;
    transition: all .2s; margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(185,28,28,.3);
}
.hmo-fc-checkout-btn:hover, .hmo-btn-lg:hover {
    background: var(--hmo-red-dark); transform: translateY(-1px);
}

/* ==========================================================================
   ORDER CONFIRMATION
   ========================================================================== */
.hmo-confirmation { max-width: 720px; margin: 40px auto; padding: 0 20px 60px; }
.hmo-confirm-banner {
    text-align: center; padding: 40px 28px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 16px; margin-bottom: 28px; border: 2px solid #bbf7d0;
}
.hmo-confirm-icon { font-size: 54px; display: block; margin-bottom: 12px; }
.hmo-confirm-banner h2 { margin: 0; font-size: 26px; color: #15803d; font-weight: 800; }
.hmo-confirm-banner--error { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; }
.hmo-confirm-banner--error h2 { color: #991b1b; }
.hmo-confirm-details {
    background: var(--hmo-white); border: 2px solid var(--hmo-border);
    border-radius: 12px; padding: 22px 26px; margin-bottom: 24px; line-height: 1.9;
}
.hmo-confirm-note {
    background: #eff6ff; border-left: 4px solid #3b82f6;
    padding: 14px 18px; border-radius: 8px; margin: 20px 0;
    font-size: 14px; color: #1e40af; line-height: 1.6;
}

/* ==========================================================================
   FLOATING CART
   ========================================================================== */
#hmo-float-cart { position: fixed; bottom: 28px; right: 28px; z-index: 99999; font-family: 'Segoe UI', system-ui, sans-serif; }
#hmo-fc-trigger {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--hmo-red); border: none; cursor: pointer;
    box-shadow: 0 6px 24px rgba(185,28,28,.45);
    display: flex; align-items: center; justify-content: center;
    position: relative; transition: all .2s; outline: none;
}
#hmo-fc-trigger:hover { background: var(--hmo-red-dark); transform: scale(1.08); }
#hmo-fc-trigger.hmo-fc-active { background: var(--hmo-red-dark); transform: scale(.97); }
.hmo-fc-icon { font-size: 26px; line-height: 1; }
#hmo-fc-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--hmo-green); color: #fff;
    border-radius: 50%; min-width: 22px; height: 22px;
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; padding: 0 4px; line-height: 1;
}
.hmo-fc-has-items #hmo-fc-badge { animation: hmo-pop .35s ease; }
@keyframes hmo-pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
#hmo-fc-panel {
    position: absolute; bottom: 76px; right: 0; width: 360px;
    background: var(--hmo-white); border-radius: 18px;
    box-shadow: 0 12px 50px rgba(0,0,0,.18);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; transform: translateY(14px) scale(.97);
    pointer-events: none; transition: all .22s ease;
    border: 1px solid var(--hmo-border);
}
#hmo-fc-panel.hmo-fc-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.hmo-fc-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: var(--hmo-red); color: #fff;
    font-weight: 800; font-size: 16px; flex-shrink: 0;
}
#hmo-fc-close {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 16px; cursor: pointer; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background .15s; line-height: 1;
}
#hmo-fc-close:hover { background: rgba(255,255,255,.3); }
.hmo-fc-body { flex: 1; overflow-y: auto; padding: 14px 18px; min-height: 80px; }
.hmo-fc-body::-webkit-scrollbar { width: 4px; }
.hmo-fc-body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.hmo-fc-empty { text-align: center; padding: 30px 20px; color: var(--hmo-muted); }
.hmo-fc-empty span { font-size: 44px; display: block; margin-bottom: 10px; }
.hmo-fc-empty p { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.hmo-fc-shop-link { color: var(--hmo-red); font-weight: 700; text-decoration: none; font-size: 14px; }
.hmo-fc-shop-link:hover { text-decoration: underline; }
.hmo-fc-items { list-style: none; padding: 0; margin: 0; }
.hmo-fc-item {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--hmo-border);
}
.hmo-fc-item:last-child { border-bottom: none; }
.hmo-fc-item-info strong { display: block; font-size: 14px; font-weight: 700; }
.hmo-fc-item-info small { color: var(--hmo-muted); font-size: 12px; }
.hmo-fc-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hmo-fc-item-price { font-weight: 800; color: var(--hmo-red); font-size: 14px; }
.hmo-fc-item-qty { background: var(--hmo-bg); color: var(--hmo-muted); font-size: 12px; padding: 2px 7px; border-radius: 12px; }
.hmo-fc-remove {
    background: none; border: none; color: #d1d5db; cursor: pointer;
    font-size: 14px; padding: 4px 6px; border-radius: 6px; transition: all .15s;
}
.hmo-fc-remove:hover { color: var(--hmo-red); background: var(--hmo-red-light); }
.hmo-fc-footer { padding: 16px 18px; border-top: 2px solid var(--hmo-border); background: var(--hmo-bg); flex-shrink: 0; }
.hmo-fc-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hmo-fc-subtotal span { font-size: 14px; font-weight: 700; color: var(--hmo-muted); }
.hmo-fc-subtotal strong { font-size: 20px; font-weight: 900; color: var(--hmo-red); }
.hmo-fc-view-cart {
    display: block; text-align: center; font-size: 13px;
    color: var(--hmo-muted); text-decoration: none; padding: 6px;
    transition: color .15s; font-weight: 600;
}
.hmo-fc-view-cart:hover { color: var(--hmo-red); }

/* Cart icon shortcode */
.hmo-cart-icon { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 22px; text-decoration: none; color: inherit; padding: 4px 8px; }
.hmo-cart-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--hmo-red); color: #fff; border-radius: 10px;
    font-size: 12px; font-weight: 800; line-height: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .hmo-checkout-grid { grid-template-columns: 1fr; }
    .hmo-checkout-summary { position: static; }
}
@media (max-width: 768px) {
    .hmo-grid { grid-template-columns: 1fr; gap: 28px; }
    .hmo-gal { position: static; }
    .hmo-gal-main { max-height: 320px; }
    .hmo-info h1 { font-size: 24px; }
    .hmo-range { font-size: 26px; }
    .hmo-atc-btn { font-size: 16px; padding: 15px; }
    .hmo-shop-header-inner { flex-direction: column; align-items: flex-start; }
    .hmo-cart-table { display: block; overflow-x: auto; }
    #hmo-fc-panel { width: calc(100vw - 32px); }
}
@media (max-width: 480px) {
    #hmo-sp { padding: 14px 14px 50px; }
    .hmo-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .hmo-tiles { flex-direction: column; }
    .hmo-tile { text-align: center; }
    #hmo-float-cart { bottom: 16px; right: 16px; }
    #hmo-fc-trigger { width: 56px; height: 56px; }
    .hmo-sticky-bar { padding: 10px 14px; gap: 10px; }
    .hmo-sticky-bar-btn { padding: 10px 16px; font-size: 14px; }
}

/* ==========================================================================
   THEME INTERFERENCE FIXES
   ========================================================================== */

/* Hide WordPress page title on shop page and product page */
.page-title,
.entry-title,
h1.entry-title,
h1.page-title,
.page-header,
.page .entry-header,
.site-main .page-header,
body.page .entry-title,
body.single-hmo_product .entry-title,
body.single-hmo_product h1.entry-title,
body.single-hmo_product .page-title,
body.single-hmo_product .site-header .site-title,
body.single-hmo_product .site-header,
body.single-hmo_product header.site-header,
body.single-hmo_product .site-branding {
    display: none !important;
}

/* Hide "Proudly powered by WordPress" on product pages */
body.single-hmo_product .site-footer,
body.single-hmo_product footer.site-footer,
body.single-hmo_product .site-info,
body.single-hmo_product .powered-by {
    display: none !important;
}

/* Remove padding/margin WordPress adds around page content */
body.page .entry-content,
body.page .hentry {
    padding: 0 !important;
    margin: 0 !important;
}



/* Fix shop container max-width constraint from theme */
body.page .entry-content > .hmo-shop-header + * {
    margin-top: 0;
}

/* Remove top margin from shop section */
.hmo-shop {
    padding-top: 20px;
}

/* Hide filter bar on shop — category pills already handle it */
/* Keep filter for search and sort only */
.hmo-filters {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--hmo-border);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    margin-bottom: 28px;
}

/* Better product grid spacing */
.hmo-products-grid {
    gap: 24px;
}

/* Product card — remove top gap from image */
.hmo-product-card {
    border-radius: 14px;
    overflow: hidden;
}

/* Category pill — remove Camel (handled via PHP but CSS safety) */
.hmo-cat-pill[href*="camel"] {
    display: none !important;
}

/* ==========================================================================
   REIMAGINED SHOP — Hero + Clean Grid
   ========================================================================== */


.hmo-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,.06) 0%, transparent 70%);
    pointer-events: none;
}
/* hero bottom line removed */
.hmo-hero-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 28px 28px;
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 28px; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.hmo-hero-left { display: flex; align-items: flex-start; gap: 18px; flex: 1; min-width: 260px; }
.hmo-hero-icon {
    width: 70px; height: 70px; flex-shrink: 0;
    background: rgba(255,255,255,.1);
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 38px; border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}
.hmo-hero-title {
    font-size: 30px; font-weight: 900; color: #fff;
    margin: 0 0 6px; line-height: 1.1; letter-spacing: -.4px;
}
.hmo-hero-sub {
    font-size: 14px; color: rgba(255,255,255,.72); margin: 0 0 14px; font-weight: 500;
}
.hmo-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hmo-hbdg {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
    padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.15);
}
.hmo-hbdg-green { background: rgba(21,128,61,.35); border-color: rgba(134,239,172,.4); color: #bbf7d0; }

/* Right side — WA + search */
.hmo-hero-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.hmo-hero-wa {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; background: #25d366; color: #fff !important;
    border-radius: 25px; font-size: 14px; font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(37,211,102,.4);
    transition: all .2s; white-space: nowrap;
}
.hmo-hero-wa:hover { background: #1da851; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.hmo-hero-search { position: relative; }
.hmo-hero-searchbox {
    width: 280px; padding: 12px 48px 12px 18px;
    border-radius: 25px; border: 2px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 14px; outline: none; transition: all .2s;
    backdrop-filter: blur(8px);
}
.hmo-hero-searchbox::placeholder { color: rgba(255,255,255,.55); }
.hmo-hero-searchbox:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.hmo-hero-searchbtn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; border-radius: 50%;
    width: 34px; height: 34px; cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.hmo-hero-searchbtn:hover { background: rgba(255,255,255,.25); }

/* Category nav strip */
.hmo-cat-nav {
    border-top: 1px solid rgba(255,255,255,.1);
    position: relative; z-index: 1;
}
.hmo-cat-nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 28px; display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
}
.hmo-cat-nav-inner::-webkit-scrollbar { display: none; }
.hmo-cnav {
    padding: 14px 20px; white-space: nowrap; flex-shrink: 0;
    color: rgba(255,255,255,.7); text-decoration: none;
    font-size: 14px; font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all .15s;
}
.hmo-cnav:hover { color: #fff; text-decoration: none; }
.hmo-cnav-active { color: #fff; border-bottom-color: #d97706; }

/* Shop body */
.hmo-shop-body {
    max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px;
}

/* Sort bar */
.hmo-sort-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.hmo-product-count { font-size: 14px; color: var(--hmo-muted); font-weight: 500; }
.hmo-product-count strong { color: var(--hmo-text); }
.hmo-sort-sel {
    padding: 9px 14px; border: 2px solid var(--hmo-border);
    border-radius: 8px; font-size: 14px; font-weight: 600;
    color: var(--hmo-text); background: #fff; cursor: pointer;
}
.hmo-sort-sel:focus { outline: none; border-color: var(--hmo-red); }

/* Product card */
.hmo-pcard {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--hmo-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: box-shadow .25s, transform .25s;
    display: flex; flex-direction: column;
}
.hmo-pcard:hover { box-shadow: 0 10px 36px rgba(0,0,0,.12); transform: translateY(-4px); }
.hmo-pcard-img {
    display: block; position: relative;
    height: 220px; overflow: hidden; background: #f5f0ee;
}
.hmo-pcard-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.hmo-pcard:hover .hmo-pcard-img img { transform: scale(1.07); }
.hmo-pcard-noimg {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center; font-size: 64px;
    background: #fdf5f5;
}
.hmo-pcard-halal {
    position: absolute; top: 12px; left: 12px;
    background: #15803d; color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hmo-pcard-oos {
    position: absolute; top: 12px; right: 12px;
    background: #dc2626; color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.hmo-pcard-pre {
    position: absolute; top: 12px; right: 12px;
    background: #d97706; color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.hmo-pcard-body {
    padding: 16px 18px 18px; flex: 1;
    display: flex; flex-direction: column; gap: 8px;
}
.hmo-pcard-title { font-size: 15px; font-weight: 800; line-height: 1.3; margin: 0; }
.hmo-pcard-title a { color: var(--hmo-text); text-decoration: none; }
.hmo-pcard-title a:hover { color: var(--hmo-red); }
.hmo-pcard-price { font-size: 17px; font-weight: 900; color: var(--hmo-red); margin: 0; }
.hmo-pcard-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: auto; padding: 11px 16px;
    background: var(--hmo-red); color: #fff;
    border-radius: 10px; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: all .2s;
}
.hmo-pcard-btn:hover { background: var(--hmo-red-dark); color: #fff; text-decoration: none; transform: none; }
.hmo-pcard-btn span { transition: transform .15s; }
.hmo-pcard:hover .hmo-pcard-btn span { transform: translateX(3px); }

/* Clear filters */
.hmo-clear-btn {
    display: inline-block; margin-top: 16px;
    padding: 10px 24px; background: var(--hmo-red); color: #fff;
    border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 14px;
}

/* Pagination */
.hmo-pagination { margin: 40px 0 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.hmo-page-btn {
    padding: 10px 18px; border: 2px solid var(--hmo-border);
    text-decoration: none; color: var(--hmo-text); border-radius: 8px;
    font-size: 14px; font-weight: 700; transition: all .15s;
}
.hmo-page-btn:hover { border-color: var(--hmo-red); color: var(--hmo-red); }
.hmo-page-active { background: var(--hmo-red); color: #fff !important; border-color: var(--hmo-red); }

/* Responsive shop */
@media (max-width: 768px) {
    .hmo-hero-inner { flex-direction: column; gap: 20px; padding: 28px 18px 20px; }
    .hmo-hero-right { align-items: flex-start; width: 100%; }
    .hmo-hero-searchbox { width: 100%; }
    .hmo-hero-title { font-size: 24px; }
    .hmo-cat-nav-inner { padding: 0 16px; }
    .hmo-shop-body { padding: 20px 14px 50px; }
    .hmo-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .hmo-pcard-img { height: 170px; }
    .hmo-sort-bar { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   CLEAN LAYOUT — no 100vw hacks, works in any theme container
   ========================================================================== */

/* Page wrappers — remove all theme interference */
#hmo-shop-page,
#hmo-page-wrap,
#hmo-product-page {
    margin: -20px -9999px;
    padding: 0 9999px;
    background: #fff;
}

/* Hero fills its container */
.hmo-hero {
    margin: 0 -9999px;
    padding: 0 9999px;
    background: linear-gradient(135deg, #1a0505 0%, #7f1d1d 40%, #b91c1c 100%);
}
.hmo-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Shop body constrained to readable width */
.hmo-shop-body {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide WordPress-generated page title */
#hmo-shop-page ~ * .entry-title,
#hmo-shop-page ~ * h1.page-title,
body:has(#hmo-shop-page) .entry-title,
body:has(#hmo-product-page) .entry-title,
body:has(#hmo-product-page) header.site-header,
body:has(#hmo-product-page) .site-branding { display: none !important; }

/* ==========================================================================
   HIDE THEME SITE TITLE & BRANDING ON HMO PAGES
   Targets the "Trans" theme and most common WordPress themes
   ========================================================================== */
#hmo-shop-page ~ .site-header,
#hmo-product-page ~ .site-header { display: none !important; }

/* The Trans theme specifically renders site title BELOW header in content */
#hmo-shop-page > a[href],
#hmo-shop-page > h1:first-child,
#hmo-shop-page > br:first-child { display: none !important; }

/* Hide any stray site title that appears before our hero */
#hmo-shop-page *:not(.hmo-hero):not(.hmo-shop-body):not(.hmo-hero *):not(.hmo-shop-body *):first-child {
    display: none !important;
}

/* Specifically hide the large site title link Trans theme injects */
body.page #hmo-shop-page > a,
body.page #hmo-shop-page > h1.site-title,
body.page #hmo-shop-page > div.site-title { display: none !important; }

/* ==========================================================================
   STANDALONE PAGE FIXES — no theme interference
   ========================================================================== */
body.hmo-shop-body,
body.hmo-product-body,
body.hmo-page-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
}

/* Force grid to work on standalone pages */
body.hmo-standalone .hmo-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
}

/* Hero full width on standalone page */
body.hmo-shop-body .hmo-hero {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.hmo-shop-body .hmo-shop-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Sort bar fix */
body.hmo-shop-body .hmo-sort-bar {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Floating cart on standalone pages */
body.hmo-standalone #hmo-float-cart,
body.hmo-product-body #hmo-float-cart { display: block !important; }

/* ── Center product grid ─────────────────────────────────────── */
.hmo-shop-body {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
}
.hmo-products-grid {
    width: 100%;
    /* Center last row items */
    justify-content: center;
}
.hmo-pcard { width: 100%; }

/* Hero full width centered */
.hmo-hero {
    width: 100%;
    max-width: 100%;
}
.hmo-hero-inner {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
}
.hmo-cat-nav-inner {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   DEFINITIVE LAYOUT FIX — centered hero + grid
   ========================================================================== */

/* Standalone page body — full width, no constraints */
body.hmo-standalone {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Hero — full viewport width */
body.hmo-standalone .hmo-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
}

/* Hero inner content — centered */
body.hmo-standalone .hmo-hero-inner {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding: 36px 28px 24px !important;
    box-sizing: border-box !important;
}

/* Cat nav — full width strip, centered content */
body.hmo-standalone .hmo-cat-nav {
    width: 100% !important;
}
body.hmo-standalone .hmo-cat-nav-inner {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
}

/* Shop content div — centered */
.hmo-shop-content {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px 24px 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Product grid — centered with wrap */
.hmo-shop-content .hmo-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Sort bar — full width */
.hmo-shop-content .hmo-sort-bar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 22px !important;
}

/* ==========================================================================
   MOBILE OPTIMISATION — max-width 768px
   All desktop styles unchanged. Mobile = clean, fast, thumb-friendly.
   ========================================================================== */

@media (max-width: 768px) {

    /* ── GLOBAL ──────────────────────────────────────────────────── */
    body.hmo-standalone {
        padding-bottom: 64px !important; /* space for bottom tab bar */
    }

    /* ── SHOP HERO — compact ─────────────────────────────────────── */
    .hmo-hero-inner {
        padding: 20px 16px 16px !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hmo-hero-icon { width: 48px !important; height: 48px !important; font-size: 26px !important; }
    .hmo-hero-title { font-size: 20px !important; margin-bottom: 4px !important; }
    .hmo-hero-sub { font-size: 12px !important; margin-bottom: 8px !important; }

    /* Hide non-essential hero badges on mobile */
    .hmo-hero-badges .hmo-hbdg:not(.hmo-hbdg-green) { display: none !important; }

    /* Compact hero right — hide search, keep WA button */
    .hmo-hero-right { width: 100% !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; }
    .hmo-hero-search { flex: 1 !important; }
    .hmo-hero-searchbox { width: 100% !important; padding: 10px 40px 10px 14px !important; font-size: 14px !important; }
    .hmo-hero-wa { padding: 9px 14px !important; font-size: 13px !important; }

    /* ── CATEGORY NAV — scrollable pills ────────────────────────── */
    .hmo-cat-nav-inner {
        padding: 0 12px !important;
        gap: 0 !important;
    }
    .hmo-cnav {
        padding: 12px 16px !important;
        font-size: 13px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* ── SHOP BODY ───────────────────────────────────────────────── */
    .hmo-shop-content,
    .hmo-shop-body {
        padding: 16px 12px 80px !important;
    }

    /* Sort bar */
    .hmo-sort-bar {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    .hmo-product-count { font-size: 13px !important; }
    .hmo-sort-sel { font-size: 13px !important; padding: 8px 10px !important; }

    /* ── PRODUCT GRID — 2 columns on mobile ─────────────────────── */
    .hmo-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .hmo-pcard-img { height: 150px !important; }
    .hmo-pcard-body { padding: 10px 10px 12px !important; gap: 5px !important; }
    .hmo-pcard-title { font-size: 13px !important; }
    .hmo-pcard-price { font-size: 15px !important; }
    .hmo-pcard-btn {
        padding: 9px 10px !important;
        font-size: 12px !important;
        min-height: 44px !important;
    }
    .hmo-pcard-halal { font-size: 9px !important; padding: 3px 7px !important; }

    /* ── PRODUCT PAGE ────────────────────────────────────────────── */
    #hmo-sp { padding: 12px 12px 80px !important; }

    /* Stack gallery above form — full width */
    .hmo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .hmo-gal { position: static !important; }
    .hmo-gal-main {
        border-radius: 12px !important;
        aspect-ratio: 4/3 !important; /* wider on mobile */
    }

    /* Thumbnails → dots on mobile */
    .hmo-thumbs {
        justify-content: center !important;
        gap: 6px !important;
        margin-top: 8px !important;
    }
    .hmo-thumb {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        background: #ddd !important;
        border: 2px solid transparent !important;
        flex-shrink: 0 !important;
    }
    .hmo-thumb.on { background: #b91c1c !important; border-color: #b91c1c !important; }
    .hmo-thumb img { display: none !important; } /* hide actual image in dot mode */

    /* Hide category tags on product page */
    .hmo-sp-cats { display: none !important; }

    /* Back button compact */
    .hmo-back { font-size: 13px !important; padding: 7px 14px !important; margin-bottom: 14px !important; }

    /* Product title */
    .hmo-info h1 { font-size: 20px !important; margin-bottom: 10px !important; }
    .hmo-range { font-size: 24px !important; margin-bottom: 14px !important; }
    .hmo-excerpt { font-size: 14px !important; margin-bottom: 16px !important; padding-bottom: 14px !important; }

    /* Weight tiles — 2 per row */
    .hmo-tiles { gap: 6px !important; }
    .hmo-tile {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Form fields — bigger touch targets */
    .hmo-sel {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 13px 14px !important;
        min-height: 48px !important;
    }
    .hmo-textarea {
        font-size: 16px !important;
        min-height: 72px !important;
    }
    .hmo-qbtn { width: 52px !important; height: 52px !important; font-size: 24px !important; }
    .hmo-qinput { width: 64px !important; height: 52px !important; font-size: 18px !important; }

    /* Total row */
    .hmo-total-row { padding: 12px 14px !important; }
    .hmo-total-row span { font-size: 14px !important; }
    .hmo-total-val { font-size: 22px !important; }

    /* Add to Cart button — larger on mobile */
    .hmo-atc-btn {
        padding: 16px !important;
        font-size: 16px !important;
        min-height: 54px !important;
        margin-bottom: 10px !important;
    }
    .hmo-wa-btn { min-height: 48px !important; font-size: 14px !important; }

    /* Product description — collapsed by default, tap to expand */
    .hmo-desc {
        margin-top: 20px !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    .hmo-desc-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        user-select: none !important;
        min-height: 48px !important;
    }
    .hmo-desc-toggle-icon {
        font-size: 18px !important;
        transition: transform .25s !important;
        color: #b91c1c !important;
    }
    .hmo-desc-toggle.open .hmo-desc-toggle-icon { transform: rotate(180deg) !important; }
    .hmo-desc-body {
        display: none !important;
        padding: 14px 16px !important;
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        border-top: none !important;
        border-radius: 0 0 10px 10px !important;
        font-size: 14px !important;
        line-height: 1.75 !important;
        color: #4b5563 !important;
    }
    .hmo-desc-body.open { display: block !important; }

    /* ── CART PAGE ───────────────────────────────────────────────── */
    .hmo-cart { padding: 0 12px 80px !important; margin-top: 16px !important; }
    .hmo-cart h2 { font-size: 20px !important; }
    .hmo-cart-table { font-size: 13px !important; }
    .hmo-cart-table th, .hmo-cart-table td { padding: 10px 8px !important; }
    .hmo-cart-totals { max-width: 100% !important; }
    .hmo-cart-actions { justify-content: stretch !important; }
    .hmo-cart-actions .hmo-btn { flex: 1 !important; min-height: 48px !important; text-align: center !important; }

    /* ── CHECKOUT PAGE ───────────────────────────────────────────── */
    .hmo-checkout { padding: 0 12px 80px !important; margin-top: 16px !important; }
    .hmo-checkout h2 { font-size: 20px !important; }
    .hmo-checkout-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .hmo-checkout-fields input,
    .hmo-checkout-fields select,
    .hmo-checkout-fields textarea {
        font-size: 16px !important; /* prevents iOS zoom */
        min-height: 48px !important;
        padding: 13px 14px !important;
    }
    .hmo-payment-option { min-height: 56px !important; font-size: 15px !important; }
    .hmo-fc-checkout-btn { min-height: 54px !important; font-size: 16px !important; }

    /* Checkout summary goes ABOVE fields on mobile */
    .hmo-checkout-grid { display: flex !important; flex-direction: column-reverse !important; }

    /* ── FLOATING CART — keep but reposition ────────────────────── */
    #hmo-float-cart {
        bottom: 72px !important; /* above bottom tab bar */
        right: 14px !important;
    }
    #hmo-fc-trigger { width: 52px !important; height: 52px !important; }
    #hmo-fc-panel { width: calc(100vw - 24px) !important; right: 0 !important; }

    /* Sticky product bar — more compact on mobile */
    .hmo-sticky-bar {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    .hmo-sticky-bar-name { font-size: 13px !important; }
    .hmo-sticky-bar-price { font-size: 16px !important; }
    .hmo-sticky-bar-btn { padding: 10px 14px !important; font-size: 13px !important; min-height: 44px !important; }
}

/* ── BOTTOM TAB BAR — mobile only ────────────────────────────────── */
#hmo-bottom-nav {
    display: none; /* hidden on desktop */
}
@media (max-width: 768px) {
    #hmo-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        height: 60px !important;
        background: #fff !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,.1) !important;
        z-index: 9997 !important;
        align-items: stretch !important;
    }
    .hmo-bnav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        text-decoration: none !important;
        color: #6b7280 !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        transition: color .15s !important;
        position: relative !important;
        padding: 6px 4px !important;
        cursor: pointer !important;
        border: none !important;
        background: none !important;
    }
    .hmo-bnav-item:hover,
    .hmo-bnav-item.active { color: #b91c1c !important; }
    .hmo-bnav-icon { font-size: 20px !important; line-height: 1 !important; }
    .hmo-bnav-label { font-size: 10px !important; line-height: 1 !important; }
    .hmo-bnav-badge {
        position: absolute !important;
        top: 4px !important;
        right: calc(50% - 16px) !important;
        background: #b91c1c !important;
        color: #fff !important;
        border-radius: 10px !important;
        min-width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 4px !important;
        border: 2px solid #fff !important;
        line-height: 1 !important;
    }
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */
#hmo-pwa-install-banner {
    position: fixed;
    bottom: -120px; /* hidden by default */
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 99999;
    border: 1px solid #e5e7eb;
    transition: bottom .35s cubic-bezier(.34,1.56,.64,1);
    max-width: 480px;
    margin: 0 auto;
}
#hmo-pwa-install-banner.hmo-pwa-visible {
    bottom: 72px; /* above bottom tab bar on mobile */
}
@media (min-width: 769px) {
    #hmo-pwa-install-banner.hmo-pwa-visible {
        bottom: 24px; /* desktop — just above viewport edge */
    }
}
.hmo-pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.hmo-pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}
.hmo-pwa-banner-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.hmo-pwa-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hmo-pwa-banner-text strong {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hmo-pwa-banner-text span {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hmo-pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hmo-pwa-install-btn {
    padding: 9px 18px;
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.hmo-pwa-install-btn:hover { background: #7f1d1d; }
.hmo-pwa-dismiss-btn {
    width: 30px;
    height: 30px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.hmo-pwa-dismiss-btn:hover { background: #e5e7eb; color: #1a1a1a; }

/* Hide category tags on product page — mobile only */
@media (max-width: 768px) {
    .hmo-sp-cats,
    #hmo-product-page .hmo-tags { display: none !important; }
}

/* ==========================================================================
   CHECKOUT MOBILE — full width, centered, clean
   ========================================================================== */
@media (max-width: 768px) {

    .hmo-checkout {
        padding: 0 0 140px !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* Fulfil toggle full width */
    .hmo-fulfil-toggle {
        margin: 0 0 16px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* Min order warning full width */
    .hmo-min-order-warn {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        margin: 0 0 16px !important;
    }

    /* Pickup info full width */
    .hmo-pickup-info {
        border-radius: 0 !important;
        margin: 0 0 16px !important;
    }

    /* Layout — single column, full width */
    .hmo-checkout-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Order summary — full width, no card border on mobile */
    .hmo-checkout-summary {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        padding: 16px !important;
        margin: 0 !important;
        position: static !important;
    }

    /* Fields section — full width with padding */
    .hmo-checkout-fields {
        padding: 20px 16px !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All fields full width */
    .hmo-field input,
    .hmo-field select,
    .hmo-field textarea {
        width: 100% !important;
        font-size: 16px !important;
        min-height: 52px !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    /* Section headings full width */
    .hmo-section-heading {
        font-size: 11px !important;
        margin-bottom: 16px !important;
    }

    /* Field rows stack on mobile */
    .hmo-field-row {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .hmo-field-row > * { width: 100% !important; }

    /* Payment options full width */
    .hmo-payment-option {
        min-height: 56px !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }
    .hmo-pm-label { font-size: 16px !important; }

    /* Sticky checkout bar — above bottom nav */
    .hmo-sticky-checkout {
        bottom: 60px !important;
        padding: 12px 16px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9996 !important;
    }
    .hmo-sticky-checkout-total strong { font-size: 22px !important; }
    .hmo-sticky-place-btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 52px !important;
        min-width: 150px !important;
    }

    /* Push floating cart above sticky bar */
    #hmo-float-cart { bottom: 130px !important; }

    /* Summary items */
    .hmo-summary-items li { padding: 12px 0 !important; font-size: 14px !important; }
    .hmo-summary-row { font-size: 14px !important; }
    .hmo-summary-total { font-size: 16px !important; }
    .hmo-summary-total strong { font-size: 22px !important; }
}
