/**
 * Hachi's Signature - Pinterest-Style Full Page Fashion Picture Gallery
 * Color Tokens: Primary #262626, Secondary #F6F6F6, Text #454545, Accent #C9A84C
 */

/* 1. FORCE FULL-PAGE CONTAINER (NO HALF-PAGE / BOXED WRAPPERS) */
body.page-id-261 .site-content,
body.page-id-261 .content-area,
body.page-id-261 #primary,
body.page-id-261 .site-main,
.page-template-elementor_header_footer .site-main,
.hachi-catalogue-site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hachi-catalogue-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #454545;
    background: #ffffff;
    padding-bottom: 90px;
    width: 100% !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* WIDE FLUID CONTAINER (EDGE-TO-EDGE ELEGANCE) */
.hachi-catalogue-container {
    max-width: 1720px;
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 2. EDITORIAL HERO HEADER */
.hachi-catalogue-header {
    text-align: center;
    padding: 55px 0 30px;
    background: #ffffff;
    border-bottom: 1px solid #f1f1f4;
}

.hachi-catalogue-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 10px;
}

.hachi-catalogue-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #262626;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hachi-catalogue-subtitle {
    font-size: 15px;
    color: #71717a;
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.5;
}

/* 3. NAVIGATION & CATEGORY PILLS BAR */
.hachi-catalogue-nav-bar {
    padding: 22px 0 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid #f1f1f4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.hachi-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hachi-category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hachi-category-pills::-webkit-scrollbar {
    display: none;
}

.hachi-cat-pill {
    background: #f4f4f5;
    color: #262626;
    border: 1px solid transparent;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hachi-cat-pill:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}

.hachi-cat-pill.active {
    background: #262626;
    color: #ffffff;
    border-color: #262626;
}

/* Search Box */
.hachi-search-wrap {
    position: relative;
    min-width: 260px;
}

.hachi-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    font-size: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.hachi-search-wrap input[type="search"] {
    width: 100%;
    padding: 9px 34px 9px 38px;
    border-radius: 30px;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hachi-search-wrap input[type="search"]:focus {
    border-color: #262626;
    box-shadow: 0 0 0 3px rgba(38, 38, 38, 0.08);
}

.hachi-clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: #71717a;
    cursor: pointer;
}

/* 4. PINTEREST PICTURE GALLERY GRID (EXACT UNIFORM 4-COLUMNS ON DESKTOP) */
.hachi-gallery-section {
    padding: 35px 0 50px;
    width: 100%;
    box-sizing: border-box;
}

.hachi-grid {
    display: grid !important;
    /* DESKTOP: EXACT 4 COLUMNS OF EQUAL SIZE */
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Tablet: 3 columns */
@media (max-width: 1200px) and (min-width: 769px) {
    .hachi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px 16px !important;
    }
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .hachi-catalogue-container {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    .hachi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 10px !important;
    }
    .hachi-catalogue-title {
        font-size: 26px !important;
    }
    .hachi-search-wrap {
        width: 100% !important;
    }
}

/* 5. UNIFORM CARD - ALL IMAGES 100% EQUAL SIZE DOWN TO THE PIXEL */
.hachi-pin-card {
    position: relative !important;
    border-radius: 16px !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* ALLOW 3-DOTS POPUP TO SHOW */
    border: none !important;
    transition: transform 0.2s ease;
}

.hachi-pin-card:hover {
    transform: translateY(-4px);
}

/* UNIFORM 3:4 ASPECT RATIO BOX FOR ALL CARDS */
.hachi-pin-media {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #f4f4f5 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* PINS IMAGE TO FILL 100% OF 3:4 BOX - IMMUNE TO THEME OVERRIDES */
.hachi-pin-media img.hachi-pin-img,
.hachi-pin-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    transform: none !important;
}

.hachi-pin-card:hover .hachi-pin-img {
    transform: none !important;
}

/* Play button overlay on video cards */
.hachi-pin-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.hachi-pin-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(230, 0, 35, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Pinterest-style Bottom Meta Row (Guaranteed Fixed Equal Height) */
.hachi-pin-meta-row {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 4px 10px !important;
    gap: 8px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* Never clip popup menu */
}

.hachi-pin-title-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 36px) !important;
    overflow: hidden !important;
}

.hachi-pin-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

@media (max-width: 768px) {
    .hachi-pin-meta-row {
        height: 32px !important;
        padding: 6px 2px 8px !important;
        overflow: visible !important;
    }
    .hachi-pin-title {
        font-size: 12px !important;
    }
}

/* Pinterest 3-Dots Button */
.hachi-pin-more-wrap {
    position: relative !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

.hachi-pin-dots-btn {
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    border-radius: 50% !important;
    color: #555555 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, color 0.2s !important;
    outline: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.hachi-pin-dots-btn:hover,
.hachi-pin-dots-btn.is-active {
    background: #e9e9e9 !important;
    color: #111111 !important;
}

/* Floating Action Popup Menu */
.hachi-pin-popup-menu {
    position: absolute !important;
    bottom: calc(100% + 6px) !important;
    right: 0 !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 6px !important;
    min-width: 165px !important;
    max-width: calc(100vw - 30px) !important;
    z-index: 999999 !important;
    display: none;
    flex-direction: column !important;
    gap: 3px !important;
    box-sizing: border-box !important;
}

.hachi-pin-popup-menu.is-active,
.hachi-pin-popup-menu.is-open {
    display: flex !important;
    animation: hachiPopupFadeIn 0.15s ease-out !important;
}

@keyframes hachiPopupFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hachi-popup-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #111111;
    transition: background 0.15s;
}

.hachi-popup-action:hover {
    background: #f0f0f0;
}

.hachi-popup-wa {
    color: #128c7e;
}
.hachi-popup-wa .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #25d366;
}

.hachi-popup-pin {
    color: #e60023;
}

/* Floating top badges */
.hachi-pin-top-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hachi-pin-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hachi-badge-featured {
    background: rgba(38, 38, 38, 0.9);
    color: #ffffff;
}

.hachi-badge-pin {
    background: rgba(230, 0, 35, 0.9);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Remove any overlay completely to keep photos 100% visible */
.hachi-pin-overlay,
.hachi-pin-top-badges {
    display: none !important;
}

/* Empty State */
.hachi-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #fafafa;
    border: 1px dashed #e4e4e7;
    border-radius: 16px;
}

.hachi-empty-state h3 {
    font-size: 20px;
    margin: 16px 0 8px;
    color: #262626;
}

.hachi-empty-state p {
    font-size: 14px;
    color: #71717a;
    max-width: 480px;
    margin: 0 auto;
}

/* Load More */
.hachi-pagination-wrap {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    min-height: 40px;
}
#hachi-load-more-btn {
    display: none !important;
}

.hachi-btn-load-more {
    background: #262626;
    color: #ffffff;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}

.hachi-btn-load-more:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* 6. FULL-SCREEN LIGHTBOX MODAL */
.hachi-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.hachi-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hachi-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(8px);
}

.hachi-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 92%;
    max-width: 1180px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: hachiFadeIn 0.25s ease forwards;
}

@keyframes hachiFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.hachi-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 26px;
    color: #262626;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.hachi-modal-close:hover {
    background: #262626;
    color: #ffffff;
}

.hachi-modal-content {
    display: flex;
    height: 100%;
    max-height: 85vh;
    overflow: hidden;
}

@media (max-width: 860px) {
    .hachi-modal-content {
        flex-direction: column;
        overflow-y: auto;
    }
    .hachi-modal-dialog {
        max-height: 94vh;
        border-radius: 12px;
    }
}

/* Media Column */
.hachi-modal-media-col {
    flex: 1.3;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 440px;
}

.hachi-lightbox-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hachi-slider-viewport {
    width: 100%;
    height: 100%;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.hachi-slider-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.hachi-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
}

.hachi-slider-arrow:hover {
    background: #ffffff;
    color: #000000;
}

.hachi-arrow-prev { left: 14px; }
.hachi-arrow-next { right: 14px; }

/* Thumbnail strip */
.hachi-thumbs-strip {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    overflow-x: auto;
}

.hachi-thumb-item {
    width: 52px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hachi-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hachi-thumb-item.active,
.hachi-thumb-item:hover {
    opacity: 1;
    border-color: #ffffff;
}

/* Details Column */
.hachi-modal-details-col {
    flex: 1;
    background: #ffffff;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.hachi-modal-cat {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #a1a1aa;
}

.hachi-modal-title {
    font-size: 26px;
    font-weight: 600;
    color: #262626;
    margin: 8px 0 16px;
    line-height: 1.3;
}

.hachi-modal-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #454545;
    margin-bottom: 24px;
}

.hachi-modal-pin-attribution {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 3px solid #e60023;
    margin-bottom: 24px;
    border-radius: 0 6px 6px 0;
}

.hachi-pin-attr-link {
    color: #e60023;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}

.hachi-pin-attr-link:hover {
    text-decoration: underline;
}

/* WhatsApp CTA */
.hachi-modal-cta {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f1f4;
}

.hachi-cta-intro {
    font-size: 13px;
    color: #71717a;
    margin: 0 0 12px;
    line-height: 1.5;
}

.hachi-whatsapp-hero-btn {
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.hachi-whatsapp-hero-btn:hover {
    background: #1ebd5b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.hachi-cta-subtext {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #a1a1aa;
    margin-top: 8px;
}

/* ============================================================
   VIDEO CARD SUPPORT
   ============================================================ */

/* Play button overlay on video cards */
.hachi-pin-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.hachi-pin-card--video:hover .hachi-pin-play-btn,
.hachi-pin-card:hover .hachi-pin-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
}

/* Video badge in top-right */
.hachi-badge-video {
    background: rgba(230, 0, 35, 0.88);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

/* Video card subtle border glow */
.hachi-pin-card--video .hachi-pin-media {
    outline: 2px solid rgba(230, 0, 35, 0.2);
    outline-offset: -2px;
}

/* Static clean display */
.hachi-pin-img {
    transform: none !important;
}

/* ============================================================
   LIGHTBOX: EMBED & VIDEO PANELS
   ============================================================ */

.hachi-lightbox-embed-wrap {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hachi-lightbox-embed-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: none;
    border-radius: 12px;
    display: block;
}

.hachi-lightbox-video-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.hachi-lightbox-video-wrap video {
    width: 100%;
    max-height: 600px;
    display: block;
    border-radius: 12px;
    background: #000;
}

@media (max-width: 768px) {
    .hachi-lightbox-embed-wrap,
    .hachi-lightbox-embed-wrap iframe {
        min-height: 320px;
    }
    .hachi-lightbox-video-wrap video {
        max-height: 340px;
    }
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS: MOBILE & TABLET FIT
   ============================================================ */

/* Tablet & Mobile: Modal Description & Title Font Adjustments */
@media (max-width: 1024px) {
    .hachi-modal-title {
        font-size: 20px;
        margin: 6px 0 12px;
    }
    .hachi-modal-desc {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 18px;
    }
}

/* Completely eliminate old overlay and buttons on cards (Desktop and Mobile) */
.hachi-card-overlay,
.hachi-pin-overlay,
.hachi-pin-overlay-top,
.hachi-pin-overlay-bottom,
.hachi-pin-wa-btn,
.hachi-wa-btn,
.hachi-pin-top-badges,
.hachi-card-content,
.hachi-card-info,
.hachi-card-cat,
.hachi-card-actions {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Video badge styling: Clean, minimalist, NO EMOJI */
.hachi-pin-video-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: rgba(18, 18, 18, 0.78) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    z-index: 5 !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.hachi-pin-video-badge svg {
    margin-right: 3px !important;
    fill: #ffffff !important;
}

/* Strict mobile 2-column Pinterest layout (Equal cards, zero right-overflow) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .hachi-catalogue-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-bottom: 50px !important;
    }

    .hachi-catalogue-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hachi-gallery-section {
        padding: 16px 0 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hachi-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hachi-pin-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important; /* ALLOW 3-DOTS POPUP TO SHOW ON MOBILE/TABLET */
        background: transparent !important;
        border: none !important;
        border-radius: 14px !important;
    }

    .hachi-pin-media {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        background: #f4f4f5 !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .hachi-pin-img,
    .hachi-pin-media img.hachi-pin-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
        display: block !important;
        border-radius: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hachi-pin-meta-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 2px 4px !important;
        height: 32px !important;
        overflow: visible !important; /* ALLOW 3-DOTS POPUP TO SHOW ON MOBILE/TABLET */
    }

    .hachi-pin-title-wrap {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 32px) !important;
        overflow: hidden !important;
    }

    .hachi-pin-title {
        display: block !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #111111 !important;
        margin: 0 !important;
        line-height: 1.25 !important;
    }

    .hachi-pin-more-wrap {
        flex: 0 0 28px !important;
        position: relative !important;
        display: flex !important;
        justify-content: flex-end !important;
        overflow: visible !important;
    }

    .hachi-pin-dots-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        color: #555555 !important;
        background: transparent !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    .hachi-pin-popup-menu {
        position: absolute !important;
        bottom: calc(100% + 6px) !important;
        right: 0 !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding: 6px !important;
        min-width: 155px !important;
        max-width: calc(100vw - 24px) !important;
        z-index: 999999 !important;
        display: none;
        flex-direction: column !important;
        gap: 3px !important;
        box-sizing: border-box !important;
    }

    .hachi-pin-popup-menu.is-active,
    .hachi-pin-popup-menu.is-open {
        display: flex !important;
    }
        max-width: calc(100vw - 30px) !important;
        z-index: 999 !important;
    }

    /* Modal typography on Mobile */
    .hachi-modal-title {
        font-size: 18px !important;
        margin: 4px 0 8px !important;
    }
    .hachi-modal-desc {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }
    .hachi-modal-details-col {
        padding: 18px 16px !important;
    }
}


/* Bottom Infinite Scroll Loading Animation */
.hachi-pagination-wrap {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0 36px;
}
.hachi-bottom-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
}
.hachi-bottom-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hachi-bottom-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111111;
    display: inline-block;
    animation: hachiBounce 1.2s infinite ease-in-out both;
}
.hachi-bottom-dots span:nth-child(1) { animation-delay: -0.32s; }
.hachi-bottom-dots span:nth-child(2) { animation-delay: -0.16s; }
.hachi-bottom-dots span:nth-child(3) { animation-delay: 0s; }
.hachi-bottom-loader-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: #555555;
    text-transform: uppercase;
}
@keyframes hachiBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.35; }
    40% { transform: scale(1); opacity: 1; }
}
