/* ---- Bookmark status line (inside remodal) ---- */
.hw-bm { position: relative; }
.hw-bm-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #767676;
    margin-bottom: 1em;
}
.hw-bm-label.bookmarked { color: #c9a87c; }

/* Heart icon */
.hw-bm-icon::before {
    content: '\2661'; /* ♡ */
    font-size: 1.15em;
    line-height: 1;
}
.hw-bm-label.bookmarked + .hw-bm-icon::before,
.hw-bm-status:has(.hw-bm-label.bookmarked) .hw-bm-icon::before {
    content: '\2665'; /* ♥ */
    color: #c9a87c;
}

/* ---- Bookmark panel (collection picker) — visible immediately ---- */
.hw-bm-panel {
    text-align: left;
    margin: 0 auto;
    max-width: 280px;
}
.hw-bm-panel label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: #767676;
    letter-spacing: 0.04em;
    margin-bottom: 0.4em;
}
.hw-bm-panel select {
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    padding: 0.5em;
    border: 1px solid #e0d5cf;
    border-radius: 3px;
    margin-bottom: 0.8em;
    background: #fff;
}
.hw-bm-new-coll {
    display: flex;
    gap: 0.4em;
    margin-bottom: 0.8em;
}
.hw-bm-new-coll input {
    flex: 1;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    padding: 0.5em 0.6em;
    border: 1px solid #e0d5cf;
    border-radius: 3px;
}
.hw-bm-new-coll button,
.hw-bm-actions button {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    padding: 0.5em 1em;
    border: 1px solid #c9a87c;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #c9a87c;
}
.hw-bm-save {
    background: #c9a87c !important;
    color: #fff !important;
}
.hw-bm-save:hover { background: #b8976b !important; }
.hw-bm-remove { color: #737373 !important; border-color: #ccc !important; }
.hw-bm-remove:hover { color: #666 !important; }
.hw-bm-actions {
    display: flex;
    gap: 0.5em;
    justify-content: center;
}
.hw-bm-msg {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: #c9a87c;
    margin-top: 0.5em;
    min-height: 1em;
    text-align: center;
}

/* ---- Login message ---- */
.hw-bm-login-msg {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #767676;
    text-align: center;
}
.hw-bm-login-msg a { color: #c9a87c; }
.hw-bm-login-msg a:hover { color: #b8976b; }

/* ---- Inside remodal / fav-modal-window ---- */
.fav-modal-window .hw-bm {
    padding: 1.5em;
    text-align: center;
}
.fav-modal-window .hw-bm-panel {
    margin-top: 0;
}
/* actions.js adds .is-visible after imagesLoaded */
.hw-bm.userpro-bm { display: block; }
.hw-bm.userpro-bm.is-visible { display: block; }

/* ---- Collections / Boards page ---- */
.hw-boards-page { max-width: 960px; margin: 0 auto; }

/* Board cards grid */
.hw-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2em;
    margin-top: 1.5em;
}
.hw-board-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hw-board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.hw-board-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f0ec;
    object-fit: cover;
    display: block;
}
.hw-board-info {
    padding: 0.8em 1em;
}
.hw-board-title {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0 0 0.15em;
}
.hw-board-count {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: #737373;
    letter-spacing: 0.04em;
}

/* Delete board button (X on card) */
.hw-board-card .hw-board-delete {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255,255,255,0.9) !important;
    color: #737373 !important;
    font-size: 1.1rem !important;
    line-height: 24px !important;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 2;
    float: none !important;
}
.hw-board-card:hover .hw-board-delete {
    opacity: 1;
    visibility: visible;
}
.hw-board-card .hw-board-delete:hover {
    background: #fff !important;
    color: #c9a87c !important;
}

/* Board items — Pinterest-style grid inside a board */
.hw-board-items {
    margin-top: 1em;
}
.hw-board-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1em;
    margin-top: 1em;
}
.hw-board-items-list p {
    grid-column: 1 / -1;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #737373;
}
.hw-board-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hw-board-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hw-board-item a { text-decoration: none; }
.hw-board-item-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: #f5f0ec;
}
.hw-board-item-title {
    padding: 0.6em 0.7em;
}
.hw-board-item-title a {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.85rem;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}
.hw-board-item-title a:hover { color: #c9a87c; }
.hw-board-item-badge {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #737373;
    background: #f5f0ec;
    border-radius: 2px;
    padding: 0.2em 0.5em;
    margin-top: 0.3em;
}

/* Remove button — overlaid on item card */
.hw-board-item .hw-board-item-remove {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255,255,255,0.9) !important;
    color: #737373 !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    line-height: 24px !important;
    text-align: center !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 2;
    float: none !important;
    display: block !important;
    overflow: visible !important;
}
.hw-board-item:hover .hw-board-item-remove {
    opacity: 1;
    visibility: visible;
}
.hw-board-item .hw-board-item-remove:hover {
    background: #fff !important;
    color: #c9a87c !important;
}

/* Create new board */
.hw-boards-header {
    margin-bottom: 1em;
}
.hw-boards-new {
    display: flex;
    gap: 0.5em;
    max-width: 400px;
}
.hw-boards-new-name {
    flex: 1;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    padding: 0.55em 0.8em;
    border: 1px solid #e0d5cf;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.hw-boards-new-name:focus { border-color: #c9a87c; }
.hw-boards-new-btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    padding: 0.55em 1.2em;
    border: none;
    border-radius: 6px;
    background: #c9a87c;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.hw-boards-new-btn:hover { background: #b8976b; }

/* Profile card (compat for [userpro template=view]) */
.hw-profile-card {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1.5em;
    border: 1px solid #e8e0db;
    border-radius: 8px;
    margin-bottom: 2em;
    background: #fff;
}
.hw-profile-avatar img { border-radius: 50%; }
.hw-profile-name {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0 0 0.2em;
}
.hw-profile-email {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #767676;
    margin: 0;
}

/* Board current title */
.hw-board-current-title {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0.3em 0 0;
}

/* Back button */
.hw-boards-back {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #737373;
    text-decoration: none;
    transition: color 0.2s;
}
.hw-boards-back:hover { color: #c9a87c; }

/* ---- Gallery page heart button ---- */
.img-hover-info .hw-gallery-heart,
.hw-gallery-heart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    width: auto !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #c0392b !important;
    text-decoration: none !important;
    cursor: pointer;
    margin: 0 auto 0.8em !important;
    padding: 0.4em 0.8em;
    background: rgba(255,255,255,0.85) !important;
    border-radius: 20px;
    border: none !important;
    transition: all 0.2s;
    float: none !important;
    position: relative;
    clear: both;
}
/* Force heart onto its own line inside gallery overlay */
.img-hover-info .hw-gallery-heart {
    display: flex !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.img-hover-info .hw-gallery-heart:hover,
.hw-gallery-heart:hover {
    background: rgba(201,168,124,0.9) !important;
    color: #fff !important;
}
.img-hover-info .hw-gallery-heart:hover svg,
.hw-gallery-heart:hover svg {
    stroke: #fff;
}
.hw-gallery-heart.hw-bm-active {
    background: rgba(201,168,124,0.9) !important;
    color: #fff !important;
}
.hw-gallery-heart.hw-bm-active svg {
    fill: #fff;
    stroke: #fff;
}
.hw-gallery-heart svg {
    flex-shrink: 0;
}

/* ---- Vendor page heart button ---- */
.vendor_banner .fav-sec {
    position: absolute !important;
    left: 15px !important;
    right: auto !important;
    top: 15px !important;
    bottom: auto !important;
    padding: 0 !important;
    background: none !important;
    display: block !important;
    overflow: visible !important;
    width: auto !important;
    z-index: 10;
}
.vendor_banner .fav-sec::before {
    display: none !important;
}
.fav-sec .hw-vendor-heart {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4em;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    float: none !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    padding: 0.5em 1.2em !important;
    background: rgba(0,0,0,0.35) !important;
    border-radius: 25px !important;
    border: none !important;
    transition: all 0.25s;
    position: relative;
    line-height: 1.4 !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.fav-sec .hw-vendor-heart:hover {
    background: rgba(201,168,124,0.85) !important;
    color: #fff !important;
    width: auto !important;
}
.fav-sec .hw-vendor-heart svg {
    flex-shrink: 0;
    stroke: #fff;
    fill: none;
    transition: all 0.2s;
    width: 20px !important;
    height: 20px !important;
}
.fav-sec .hw-vendor-heart.hw-bm-active {
    background: rgba(201,168,124,0.85) !important;
}
.fav-sec .hw-vendor-heart.hw-bm-active svg {
    fill: #fff;
}
.fav-sec .hw-vendor-heart span {
    pointer-events: none;
}

/* ---- Inline content image heart button ---- */
.hw-inline-img-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #c0392b;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
    text-decoration: none;
}
.hw-inline-img-heart:hover { color: #c9a87c; }
.hw-inline-img-heart.hw-bm-active svg {
    fill: #c9a87c;
    stroke: #c9a87c;
}

/* ---- Board picker popover ---- */
.hw-bm-popover {
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e8e0db;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    width: 220px;
    max-width: 220px;
    padding: 0;
    font-family: 'Lato', sans-serif;
    animation: hwPopIn 0.15s ease-out;
    box-sizing: border-box;
    overflow: hidden;
}
@keyframes hwPopIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hw-bm-popover-title {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #737373;
    padding: 0.7em 1em 0.3em;
    border-bottom: 1px solid #f0ebe7;
}
.hw-bm-popover-list {
    margin: 0;
    padding: 0.3em 0;
    max-height: 200px;
    overflow-y: auto;
}
.hw-bm-popover-item {
    padding: 0.55em 1em;
    cursor: pointer;
    font-size: 0.85rem;
    color: #1a1a1a;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.hw-bm-popover-item:hover {
    background: #fdf6f3;
    color: #c9a87c;
}
.hw-bm-popover-icon {
    font-size: 1em;
    font-style: normal;
    line-height: 1;
    color: #c9a87c;
}
.hw-bm-popover-label {
    font-weight: normal;
    font-style: normal;
}
.hw-bm-popover-new {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    padding: 0.6em;
    border-top: 1px solid #f0ebe7;
    box-sizing: border-box;
}
.hw-bm-popover-new-input {
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    padding: 0.45em 0.5em;
    border: 1px solid #e0d5cf;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
}
.hw-bm-popover-new-input:focus {
    border-color: #c9a87c;
}
.hw-bm-popover-new-btn {
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    padding: 0.5em 0.6em;
    border: 1px solid #c9a87c !important;
    border-radius: 3px;
    background: #c9a87c !important;
    color: #fff !important;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    box-sizing: border-box;
}
.hw-bm-popover-new-btn:hover {
    background: #b8976b !important;
}

/* ---- Toast notifications ---- */
.hw-bm-toast {
    position: fixed;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%) translateY(1em);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    background: #1a1a1a;
    padding: 0.7em 1.6em;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100000;
    pointer-events: none;
    white-space: nowrap;
}
.hw-bm-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.hw-bm-toast--error {
    background: #b94a48;
}

/* ---- Quick-bookmark active (filled heart) state ---- */
.hw-bm-quick.hw-bm-active svg {
    fill: #c9a87c;
    stroke: #c9a87c;
}
.hw-bm-quick.hw-bm-active {
    color: #c9a87c;
}
/* Saving state — subtle pulse */
.hw-bm-quick.hw-bm-saving {
    opacity: 0.5;
    pointer-events: none;
}
