﻿.webview-mode #siteHeader_btn_search,
.webview-mode #siteHeader_btn_search_mobile,
.webview-mode #siteHeader_btn_user,
.webview-mode #siteHeader_btn_user_mobile,
.webview-mode .user-button {
    display: none !important;
}
/*=================iOS==========================*/

/* Disable iOS Safari tap highlight effect */
button,
a,
.btn,
.btn-link,
.sidebar-menu-item,
.sidebar-close-btn,
.nav-tab {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

    /* Specifically target hamburger menu button */
    button[data-bs-toggle="offcanvas"],
    .offcanvas button,
    .offcanvas a {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    /* Remove blue border on focus for all elements */
    button:focus:not(.product-color-btn),
    a:focus,
    .btn:focus,
    .btn-link:focus {
        outline: none !important;
        box-shadow: none !important;
    }
/*=================iOS==========================*/

.badge-position {
    top: -0.5rem;
    right: -1.1rem;
    min-width: 1.2rem;
    height: 1.2rem;
    font-size: 0.7rem;
    line-height: 1.2rem;
    text-align: center;
    padding: 0;
    display: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

h1 {
    font-family: "Antonio", serif !important;
    font-size: 1.8rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.3rem;
    }
}

.cart-button {
    position: relative;
    transition: all 0.2s ease;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-button:hover {
        transform: scale(1.1);
        color: #f0f0f0;
    }

    .cart-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.cart-icon {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.cart-button:hover .cart-icon {
    transform: translateY(-1px);
}

.cart-button.clicking {
    opacity: 0.7;
    transform: scale(0.95);
}

.wishlist-button {
    position: relative;
    transition: all 0.2s ease;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

    .wishlist-button:hover {
        transform: scale(1.1);
        color: #f0f0f0;
        text-decoration: none !important;
    }

    .wishlist-button:focus {
        text-decoration: none !important;
        outline: none;
    }

    .wishlist-button:active {
        text-decoration: none !important;
    }

    .wishlist-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.wishlist-icon {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.wishlist-button:hover .wishlist-icon {
    transform: translateY(-1px);
}

.wishlist-button.clicking {
    opacity: 0.7;
    transform: scale(0.95);
}

.user-button {
    position: relative;
    transition: all 0.2s ease;
}

.notification-dot {
    position: absolute;
    top: -3px;
    right: -6px;
    width: 8px;
    height: 8px;
    background-color: #DC3545;
    border-radius: 50%;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Mulish', sans-serif;
    transition: all 0.2s ease;
}

    .user-avatar:hover {
        transform: scale(1.05);
    }

@media (max-width: 991px) {
    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

#desktop-cart-badge,
#desktop-wishlist-badge,
#mobile-wishlist-badge {
    font-family: "Mulish", serif;
}

.nav-tab {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: white;
    padding: 8px 16px;
    font-weight: 500;
}

    .nav-tab:hover {
        color: #f0f0f0;
        text-decoration: none;
    }

    .nav-tab.active {
        font-weight: 600;
        opacity: 1;
    }

    .nav-tab.loading {
        opacity: 0.7;
        pointer-events: none;
    }

.nav-tab-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.offcanvas {
    max-width: 320px;
    width: 85%;
    z-index: 100000 !important;
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

    .offcanvas * {
        font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }


.sidebar-user-section {
    padding: 25px 20px;
    background: linear-gradient(135deg, #af9687 0%, #c4a898 50%, #9d8579 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

    .sidebar-user-section::before {
        content: '';
        position: absolute;
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        top: -20px;
        right: -20px;
    }

    .sidebar-user-section::after {
        content: '';
        position: absolute;
        width: 70px;
        height: 70px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        bottom: -15px;
        left: -15px;
    }

.sidebar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
}

    .sidebar-close-btn:hover {
        background: rgba(255,255,255,0.2);
        transform: rotate(90deg);
    }

    .sidebar-close-btn svg {
        width: 20px;
        height: 20px;
        stroke: white;
        stroke-width: 2;
    }

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.sidebar-user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Mulish', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
}

    .sidebar-user-avatar:hover {
        transform: scale(1.05);
    }

.sidebar-logo-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

    .sidebar-logo-avatar img {
        width: 35px;
        height: auto;
    }

.sidebar-user-details {
    flex: 1;
}

.sidebar-greeting-text {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 4px;
    font-weight: 400;
}

.sidebar-user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-welcome-text {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.sidebar-menu-section {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: white;
}

    .sidebar-menu-section::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-menu-section::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .sidebar-menu-section::-webkit-scrollbar-thumb {
        background: #af9687;
        border-radius: 3px;
    }

        .sidebar-menu-section::-webkit-scrollbar-thumb:hover {
            background: #9d8579;
        }


.sidebar-menu-group {
    margin-bottom: 0;
}

.sidebar-menu-group-title {
    padding: 12px 24px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8f8f8;
    margin-top: 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

    .sidebar-menu-item:hover {
        background: linear-gradient(90deg, rgba(175,150,135,0.08) 0%, rgba(175,150,135,0.05) 100%);
        color: #af9687;
        text-decoration: none;
    }

    .sidebar-menu-item.active {
        color: #333;
        font-weight: 600;
    }

        .sidebar-menu-item.active .sidebar-menu-icon {
            color: #666;
        }

.sidebar-menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.sidebar-menu-item:hover .sidebar-menu-icon {
    color: #af9687;
}

.sidebar-menu-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.sidebar-menu-item.active .sidebar-menu-icon {
    color: #666;
}

.sidebar-menu-label {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.sidebar-divider {
    height: 1px;
    background: #f0f0f0;
    margin-top: 8px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.sidebar-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.sidebar-action-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #af9687 0%, #9d8579 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
}

    .sidebar-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(175, 150, 135, 0.3);
        color: white;
        text-decoration: none;
    }

    .sidebar-action-btn.outline {
        background: white;
        color: #af9687;
        border: 2px solid #af9687;
    }

        .sidebar-action-btn.outline:hover {
            background: #af9687;
            color: white;
        }

    .sidebar-action-btn svg {
        width: 18px;
        height: 18px;
    }

.sidebar-logout-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #af9687 0%, #9d8579 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

    .sidebar-logout-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(175, 150, 135, 0.3);
    }

    .sidebar-logout-btn svg {
        width: 18px;
        height: 18px;
    }

.sidebar-notification-dot {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@media (max-width: 991px) {
    .d-lg-none .fas {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 575px) {
    .d-lg-none .fas {
        font-size: 1.1rem !important;
    }
}

.message-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Mulish', sans-serif;
    max-width: 300px;
    word-wrap: break-word;
}

    .message-toast.show {
        animation: slideInRight 0.3s ease;
    }

    .message-toast.hide {
        animation: slideOutRight 0.3s ease;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.header-cleanup {
    animation: none !important;
    transition: none !important;
}

.webview-mode #siteHeader_btn_search,
.webview-mode #siteHeader_btn_search_mobile,
.webview-mode #siteHeader_btn_user,
.webview-mode #siteHeader_btn_user_mobile,
.webview-mode .user-button,
.webview-mode #siteHeader_btn_notification,
.webview-mode #siteHeader_btn_notification_mobile,
.webview-mode .notification-button {
    display: none !important;
}

.notification-button {
    position: relative;
    transition: all 0.2s ease;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
