/* Delbari Retail – Frontend extra styles loaded via wp_enqueue_scripts */

/* WooCommerce checkout overrides in retail mode */
body.dr-retail-body .woocommerce-checkout .dr-checkout-notice {
    background: #e3f2fd;
    border-right: 4px solid #1565c0;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: .9rem;
    color: #1a237e;
}

/* Cart page in retail mode */
body.dr-retail-body .woocommerce-cart-form,
body.dr-retail-body .cart-collaterals {
    direction: rtl;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
}

/* Mini cart open state */
.dr-cart-modal.dr-open { display: block !important; }

/* Header user menu */
.dr-header-inner .dr-header-user { position: relative; margin-right: auto; margin-left: 8px; }
.dr-header-inner .dr-header-cart { margin-right: 0; }
.dr-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    padding: 7px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    max-width: 200px;
}
.dr-user-toggle:hover { background: rgba(255,255,255,.25); }
.dr-user-name { overflow: hidden; text-overflow: ellipsis; }
.dr-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 1100;
    overflow: hidden;
}
.dr-user-dropdown[hidden] { display: none !important; }
.dr-user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: .9rem;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.dr-user-dropdown a:hover { background: #f0f6ff; color: #1565c0; }
.dr-user-dropdown a.dr-user-logout { color: #c62828; border-bottom: none; }
.dr-user-dropdown a.dr-user-logout:hover { background: #fdecea; }

.dr-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    padding: 7px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    margin-right: auto;
    margin-left: 8px;
    white-space: nowrap;
}
.dr-login-btn:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
}
