/* ============================================================
   Bole Shop Page — View Switcher & Layout
   Only loaded on: shop, category, tag, taxonomy archive pages.
   ============================================================ */

/* ── View Switcher Dropdown ── */
.bw-view-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 10px 0;
    position: relative;
}
.bw-view-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #f0f0f0;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    z-index: 2;
}
.bw-view-trigger:hover {
    background: #e6e6e6;
    border-color: #999;
    color: #a3d977;
}

/* ── Dropdown Menu ── */
.bw-view-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 210px;
    z-index: 100;
    padding: 8px 0;
    overflow: hidden;
}
.bw-view-dropdown.open {
    display: block;
}
.bw-view-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-align: left;
    transition: background 0.12s;
    box-sizing: border-box;
}
.bw-view-dropdown-item:hover {
    background: #f7f7f7;
}
.bw-view-dropdown-item .bw-view-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bw-view-dropdown-item .bw-view-item-label {
    flex: 1;
}
.bw-view-dropdown-item .bw-view-item-check {
    color: #00C853;
    font-weight: 700;
    font-size: 16px;
    display: none;
    margin-left: auto;
}
.bw-view-dropdown-item.active .bw-view-item-check {
    display: inline;
}
.bw-view-dropdown-item.active {
    color: #00C853;
}
.bw-view-dropdown-item.active .bw-view-item-icon {
    color: #00C853;
}

/* ── Hide original Add to Cart buttons ── */
ul.products li.product .add_to_cart_button,
ul.products li.product .ajax_add_to_cart,
ul.products li.product .button.product_type_simple,
ul.products li.product .button.product_type_variable,
ul.products li.product .product_type_external,
ul.products li.product .product_type_grouped {
    display: none !important;
}
ul.products li.product .ast-on-card-button {
    display: none !important;
}

/* ── "View Details" button ── */
.bw-view-details-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
}
.bw-view-details-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-1px);
}

/* ── Share button overlay on product cards ── */
.bw-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
}
.bw-share-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.7);
    transform: scale(1.05);
}

/* ── View mode layout styles moved to product-view.css (data-view attribute) ── */
