/* ═══════════════════════════════════════════════════════
   SkinBae Header Icons Widget — header-icons.css
   ═══════════════════════════════════════════════════════ */

/* ── Icons Wrapper ── */
.shi-widget-wrap {
    display: inline-flex;
    align-items: center;
	float: right;
}

.shi-icons-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shi-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: opacity 0.2s ease;
    color: inherit;
}

.shi-icon-btn:hover { opacity: 1; background: none !important; }


.shi-icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.shi-wishlist-btn svg {width: 28px !important;}

/* Mobile hide account */
@media (max-width: 749px) {
    .shi-hide-mobile { display: none !important; }
}

/* ── Cart Badge ── */
.shi-cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   SEARCH PANEL
═══════════════════════════════════════════ */
.shi-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    pointer-events: none;
}

.shi-search-panel.shi-is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.shi-search-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

.shi-search-form-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid #e0e0e0;
    padding-bottom: 14px;
}

.shi-search-form-wrap svg {
    flex-shrink: 0;
    color: #888;
}

.shi-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: #1a1a1a;
}

.shi-search-input::placeholder { color: #aaa; }

.shi-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.shi-search-close:hover { color: #111; }

/* Results */
.shi-search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0 16px;
}

.shi-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background 0.15s;
}
.shi-search-result-item:hover { background: #f5f5f5; }

.shi-sr-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.shi-sr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shi-sr-no-img {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.shi-sr-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.shi-sr-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shi-sr-price {
    font-size: 13px;
    color: #555;
}
.shi-sr-price .woocommerce-Price-amount { font-weight: 600; }

.shi-no-results {
    padding: 20px 8px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.shi-search-loading {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* Overlay behind search */
.shi-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.shi-search-overlay.shi-is-open {
    opacity: 1;
    pointer-events: all;
}

/* ═══════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════ */

/* Overlay */
.shi-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shi-cart-overlay.shi-is-open {
    opacity: 1;
    pointer-events: all;
}

/* Drawer */
.shi-cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.shi-cart-drawer--right {
    right: 0;
    transform: translateX(100%);
}
.shi-cart-drawer--left {
    left: 0;
    transform: translateX(-100%);
}

.shi-cart-drawer--right.shi-is-open,
.shi-cart-drawer--left.shi-is-open {
    transform: translateX(0);
}

/* Cart Header */
.shi-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #ebebeb;
    flex-shrink: 0;
}

.shi-cart-header h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: #1a1a1a;
}

.shi-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #444;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.shi-cart-close:hover { color: #111; }

/* Cart Body (scrollable) */
.shi-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    -webkit-overflow-scrolling: touch;
}

.shi-cart-loading {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
    font-size: 14px;
}

/* Empty cart */
.shi-cart-empty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
}

.shi-cart-empty-wrap p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.shi-continue-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: background 0.2s;
}
.shi-continue-btn:hover { background: #333; }

/* Cart Items */
.shi-cart-items { display: flex; flex-direction: column; gap: 16px; }

.shi-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.shi-ci-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}
.shi-ci-img img { width: 100%; height: 100%; object-fit: cover; }

.shi-ci-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.shi-ci-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}
.shi-ci-qty { font-size: 12px; color: #888; }
.shi-ci-price { font-size: 13px; font-weight: 600; color: #1a1a1a; }

.shi-ci-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    padding: 2px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.shi-ci-remove:hover { color: #e00; }

/* Cart Footer */
.shi-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #ebebeb;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.shi-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.shi-checkout-btn {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.2s;
}
.shi-checkout-btn:hover { background: #333; color: #fff; }

.shi-view-cart-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
    padding: 13px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.shi-view-cart-btn:hover { background: #1a1a1a; color: #fff; }

/* ── Prevent body scroll when drawer is open ── */
body.shi-no-scroll { overflow: hidden !important; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .shi-cart-drawer { max-width: 100%; }
    .shi-search-inner { padding: 16px 16px 0; }
}
