/* Luxntek Custom Styles */

/* Force dark text for customer links dropdown in mobile */
@media (max-width: 989px) {
    .top-header .customer-links li {
        color: #333 !important;
    }
    .top-header .customer-links li a {
        color: #555 !important;
    }
}

/* Customer links hover effect (mobile dropdown only) */
@media (max-width: 989px) {
    .top-header .customer-links li a {
        transition: all 0.3s ease-in-out;
        color: #555 !important;
    }
    .top-header .customer-links li a:hover,
    .top-header .customer-links li a:focus,
    .top-header .customer-links li a:active {
        background-color: #011C2F !important;
        opacity: 1 !important;
        color: #fff !important;
        text-decoration: none !important;
        border-color: #011C2F !important;
    }
}

/* Override Bootstrap list-group active state */
.list-group-item.active,
.list-group-item-action.active,
.list-group-item-action.show.active {
    background-color: #000 !important;
    border-color: #000 !important;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Orders table styling */
.orders-table {
    table-layout: fixed;
    width: 100%;
    margin-bottom: 0 !important;
}

.table-responsive {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#orders .table-responsive {
    margin-bottom: 0 !important;
}

.orders-table th:nth-child(1) { width: 45px; }
.orders-table th:nth-child(2) { width: 95px; }
.orders-table th:nth-child(3) { width: 18%; word-wrap: break-word; }
.orders-table th:nth-child(4) { width: 70px; }
.orders-table th:nth-child(5) { width: 80px; }
.orders-table th:nth-child(6) { width: 90px; }
.orders-table th:nth-child(7) { width: 65px; }
.orders-table th:nth-child(8) { width: 95px; }

.order-product-img {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover !important;
    margin-right: 8px;
    flex-shrink: 0;
}

.order-product-info {
    min-width: 0;
    flex: 1;
}

.order-product-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-product-details {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-product-sku,
.order-product-more {
    display: block;
}

/* Pagination controls styling */
.pagination-wrapper {
    width: 100%;
    overflow: visible;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
    min-height: 80px !important;
}

.pagination-nav {
    display: block !important;
    width: 100%;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    min-height: 40px !important;
}

.pagination-list {
    flex-wrap: wrap;
    margin: 0 auto !important;
    gap: 3px;
    margin-bottom: 10px !important;
    min-height: 32px !important;
}

.pagination-info {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 20px !important;
    height: 20px !important;
}

#orders .pagination-wrapper {
    margin-top: 20px !important;
    min-height: 80px !important;
}

.pagination-list .page-link {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    text-align: center !important;
    padding: 0.375rem 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.pagination-list .page-item.disabled .page-link {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
}

@media (max-width: 767px) {
    #orders h3 {
        margin-bottom: 14px !important;
        font-size: 22px;
        line-height: 1.2;
    }
    #orders .table-responsive {
        overflow: visible !important;
        border: 0;
    }
    #orders .orders-table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
        border: 0;
    }
    #orders .orders-table thead {
        display: none;
    }
    #orders .orders-table tbody,
    #orders .orders-table tr,
    #orders .orders-table td {
        display: block;
        width: 100%;
    }
    #orders .orders-table tbody tr {
        margin-bottom: 14px;
        padding: 14px;
        background: #fff;
        border: 1px solid #e8edf0;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    }
    #orders .orders-table tbody tr td {
        padding: 7px 0 !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        min-width: 0 !important;
    }
    #orders .orders-table tbody tr td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
    }
    #orders .orders-table tbody tr td[data-label="Product"]::before {
        margin-bottom: 8px;
    }
    #orders .orders-table tbody tr td[colspan]::before {
        display: none;
    }
    #orders .orders-table .d-flex {
        align-items: flex-start !important;
    }
    #orders .order-product-img {
        width: 68px !important;
        height: 68px !important;
        object-fit: contain !important;
        margin-right: 12px;
        padding: 5px;
        background: #f8faf9;
        border: 1px solid #edf1f3;
    }
    #orders .order-product-name,
    #orders .order-product-details {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.35;
    }
    #orders .order-product-name {
        margin-bottom: 4px;
        color: #011C2F;
        font-size: 14px;
    }
    #orders .order-product-details,
    #orders .order-product-sku,
    #orders .order-product-more {
        font-size: 12px;
        line-height: 1.35;
    }
    #orders .orders-table .badge {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 5px 9px;
        font-size: 11px;
    }
    #orders .orders-table .money,
    #orders .orders-table td[data-label="Total"] {
        font-size: 15px;
        font-weight: 700;
    }
    #orders .orders-table td[data-label="Action"] {
        padding-top: 12px !important;
    }
    #orders .orders-table td[data-label="Action"] > div {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        width: 100%;
    }
    #orders .orders-table td[data-label="Action"] .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.2;
    }
    #orders .pagination-wrapper {
        margin-top: 18px !important;
        min-height: 0 !important;
    }
    #orders .pagination-list {
        flex-wrap: wrap;
        gap: 6px;
    }
    #orders .pagination-list .page-link {
        width: auto !important;
        min-width: 36px !important;
        max-width: none !important;
        min-height: 36px !important;
        height: auto !important;
        max-height: none !important;
        padding: 8px 10px !important;
        line-height: 1.2;
    }
    #orders .pagination-info {
        height: auto !important;
        line-height: 1.4 !important;
    }
}

/* Restore wishlist heart icon box style */
/* Wishlist heart icon matches Quick View style */
.wishlist-btn {
    display: flex;
    align-items: center;
    outline: none;
}
.wishlist-btn:focus {
    outline: none;
}
.wishlist-btn .wishlist.add-to-wishlist {
    display: block;
    width: 35px;
    height: 35px;
    line-height: 34px;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    margin-bottom: 0;
    padding: 0;
    transition: color 0.3s, background 0.3s, opacity 0.3s;
    cursor: pointer;
}
.wishlist-btn .wishlist.add-to-wishlist:hover,
.wishlist-btn .wishlist.add-to-wishlist:focus {
    color: #fff;
    background: #000;
    opacity: 0.8;
    outline: none;
}
.wishlist-btn .wishlist.add-to-wishlist i {
    font-size: 16px;
    line-height: 34px;
    vertical-align: middle;
    transition: color 0.3s, opacity 0.3s;
}
#wishlist-message {
    display: none;
}

/* Ensure footer copyright + version text stays visible on dark backgrounds */
.footer-bottom .copyright,
.footer-bottom .copyright a,
.footer-bottom small {
    color: #fff !important;
}

/* People Looking Message Styling */
.userViewMsg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: pulse-glow 2s infinite;
}

.userViewMsg i {
    font-size: 18px;
    margin-right: 8px;
    animation: bounce 2s infinite;
}

.userViewMsg .uersView {
    color: #ffd700;
    font-size: 18px;
    font-weight: 700;
    margin: 0 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.5);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Wishlist table styling - no rounded corners on table elements */
.wishlist-table table,
.wishlist-table table thead,
.wishlist-table table tbody,
.wishlist-table table tr,
.wishlist-table table th,
.wishlist-table table td {
    border-radius: 0 !important;
}

/* Footer styling - no rounded corners */
#footer {
    border-radius: 0 !important;
    overflow: hidden;
    margin-bottom: 0 !important;
    /* ensure bottom-left/right corners are square */
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.site-footer {
    border-radius: 0 !important;
    overflow: hidden;
}
.site-footer .container {
    border-radius: 0 !important;
}
footer#footer {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow: hidden;
}
/* Ensure consistent footer styling on all body classes */
body.page-template #footer,
body.template-login #footer,
body.template-register #footer,
body.template-index #footer,
body.template-product #footer,
body.template-collection #footer,
body.template-contact #footer,
body.template-checkout #footer {
    border-radius: 0 !important;
    overflow: hidden;
}
body.page-template .site-footer,
body.template-login .site-footer,
body.template-register .site-footer,
body.template-index .site-footer,
body.template-product .site-footer,
body.template-collection .site-footer,
body.template-contact .site-footer,
body.template-checkout .site-footer {
    border-radius: 0 !important;
    overflow: hidden;
}
/* Apply to all body classes */
body {
    background: #f5f5f5 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pageWrapper {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    /* override any rounding that may have crept in */
    border-radius: 0 !important;
}

/* Prevent black screen overlay on all pages and avoid double scrollbars */
html {
    /* only vertical scrolling on the root element; hide horizontal overflow */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    /* make sure the viewport corners are square too */
    border-radius: 0 !important;
}

body {
    /* let body expand naturally and avoid a second scrollbar */
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* Smooth, rounded scrollbar styling - match index.php appearance */
html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 8px;
    margin: 20px 0;
}

html::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Firefox scrollbar styling */
html {
    scrollbar-width: auto;
    scrollbar-color: #c0c0c0 transparent;
}

body.page-template .pageWrapper,
body.template-index .pageWrapper,
body.template-product .pageWrapper,
body.template-collection .pageWrapper,
body.template-login .pageWrapper,
body.template-register .pageWrapper,
body.template-checkout .pageWrapper,
body.template-contact .pageWrapper {
    position: relative !important;
    left: 0 !important;
    background: #fff !important;
}
body.menuOn .pageWrapper {
    left: 0 !important;
    position: relative !important;
}
.mobile-nav-wrapper:not(.active) {
    visibility: hidden;
}

/* Header rounding override */
.header-wrap,
.top-header,
.site-header,
.header-wrap *,
.top-header *,
.site-header * {
    /* wipe out any corner radius on header and its descendants */
    border-radius: 0 !important;
}
.header-wrap {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Footer left corner enforcement */
#footer,
.site-footer,
#footer *,
.site-footer * {
    border-radius: 0 !important;
}
#footer {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* AGGRESSIVE: Force-remove ALL border-radius everywhere on the page */
* {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

html,
body,
.pageWrapper,
.header-wrap,
.top-header,
.search,
#footer,
.site-footer,
.container-fluid {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.modal-backdrop {
    display: none !important;
}
/* Newsletter popup visibility is controlled per page by script/classes. */

/* Show mini cart quantity buttons - override style.css line 273 */
#header-cart .mini-products-list li .qtyField a.mini-cart-qty-btn,
#header-cart .qtyField a.mini-cart-qty-btn {
    display: inline-block !important;
    background-color: #eee !important;
    color: #000 !important;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 11px;
    width: 25px;
    height: 30px;
    padding: 3px;
    text-align: center;
    line-height: 24px;
    border: 1px solid #ddd;
}

#header-cart .mini-products-list li .qtyField a.mini-cart-qty-btn:hover,
#header-cart .qtyField a.mini-cart-qty-btn:hover {
    background-color: #ddd !important;
}

/* Footer contact us icons - make white */
.page-template #page-content .addressFooter .icon,
.addressFooter .icon {
    color: #ffffff !important;
}

/* Keep floating controls and future nav pills consistent despite global radius reset */
#site-scroll,
#whatsapp-button,
.chatbot-btn,
.chatbot-badge,
#siteNav.nav-future,
#siteNav.nav-future > li,
#siteNav.nav-future > li > a,
#siteNav.nav-future > li.parent.megamenu > .megamenu.style2,
#siteNav.nav-future > li.parent.megamenu > .megamenu.style2 .nav-future-card,
#MobileNav.mobile-future li a,
#MobileNav.mobile-future li a .anm,
.top-header .customer-links > li,
.top-header .customer-links > li > a,
#site-scroll,
#whatsapp-button,
.chatbot-btn,
.chatbot-badge {
    border-radius: 999px !important;
}

#siteNav.nav-future > li.parent.megamenu > .megamenu.style2,
#siteNav.nav-future > li.parent.megamenu > .megamenu.style2 .nav-future-card,
#MobileNav.mobile-future li a {
    border-radius: 12px !important;
}

#siteNav.nav-future > li.parent.megamenu > .megamenu.style2 {
    border-radius: 14px !important;
}

#MobileNav.mobile-future li a .anm {
    border-radius: 50% !important;
}

#site-scroll,
#whatsapp-button,
.chatbot-btn,
.chatbot-badge {
    border-radius: 50% !important;
}

/* Keep minicart quantity badge circular on all pages */
.site-header__cart-count,
#CartCount {
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
}

.chatbot-window {
    border-radius: 10px !important;
}

/* Homepage-specific chatbot rounding to offset homepage radius reset */
.template-index #chatbot-window.chatbot-window {
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
    overflow: hidden !important;
}

.template-index #chatbot-window .chatbot-header {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.template-index #chatbot-window .chatbot-input-area {
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

.template-index #chatbot-window .chatbot-contact-form,
.template-index #chatbot-window .chatbot-quick-replies {
    border-radius: 0 !important;
}

.template-index #chatbot-window .chatbot-input,
.template-index #chatbot-window .chatbot-send-btn,
.template-index #chatbot-window .chatbot-form-input,
.template-index #chatbot-window .chatbot-form-submit-btn,
.template-index #chatbot-window .quick-reply-btn {
    border-radius: 10px !important;
}

.template-index #chatbot-window .chatbot-message p {
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
    -moz-border-radius: 12px !important;
}

@media (max-width: 767.98px) {
    .chatbot-widget,
    .template-index-belle .chatbot-widget,
    body.contact-template .chatbot-widget {
        right: max(14px, env(safe-area-inset-right)) !important;
        left: auto !important;
        width: 44px !important;
        height: 44px !important;
        overflow: visible !important;
        z-index: 1200 !important;
    }

    .chatbot-window,
    .template-index #chatbot-window.chatbot-window,
    .template-index-belle #chatbot-window.chatbot-window,
    body.contact-template #chatbot-window.chatbot-window {
        position: fixed !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        left: max(10px, env(safe-area-inset-left)) !important;
        bottom: calc(134px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        height: min(520px, calc(100dvh - 180px)) !important;
        max-width: none !important;
        max-height: calc(100dvh - 180px) !important;
        min-width: 0 !important;
        transform-origin: right bottom !important;
        box-sizing: border-box !important;
        z-index: 1201 !important;
    }

    .chatbot-header {
        padding: 12px 14px !important;
    }

    .chatbot-header h4,
    #chatbot-header-title {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .chatbot-messages {
        padding: 12px !important;
        min-height: 0 !important;
    }

    .chatbot-message p {
        max-width: 92% !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere !important;
    }

    .chatbot-quick-replies {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        padding: 10px 12px !important;
        max-height: none !important;
    }

    .chatbot-quick-replies.hidden {
        display: none !important;
    }

    .quick-reply-btn {
        min-width: 0 !important;
        padding: 9px 8px !important;
        font-size: 12px !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    .chatbot-contact-form {
        padding: 12px !important;
        gap: 8px !important;
    }

    .chatbot-input-area {
        padding: 10px !important;
        gap: 8px !important;
    }

    .chatbot-input {
        min-width: 0 !important;
        height: 40px !important;
        padding: 9px 10px !important;
        font-size: 13px !important;
    }

    .chatbot-send-btn {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 989px) {
    .top-header {
        position: relative;
        z-index: 10002;
        overflow: visible;
    }
    .top-header .text-right {
        position: static;
    }
    .top-header .user-menu {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-top: -4px;
        color: #fff !important;
        cursor: pointer;
    }
    .top-header .user-menu .anm {
        color: #fff !important;
        font-size: 19px;
    }
    .top-header .customer-links {
        position: absolute !important;
        top: 38px !important;
        right: 8px !important;
        z-index: 10003 !important;
        width: 178px !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        background: #fff !important;
        box-shadow: 0 12px 28px rgba(1, 28, 47, .22) !important;
    }
    .top-header .active .customer-links {
        display: block;
    }
    .top-header .customer-links li {
        display: block !important;
        width: 100%;
        padding: 0 !important;
        border-bottom: 1px solid #eef0f2;
        text-align: left !important;
    }
    .top-header .customer-links li:last-child {
        border-bottom: 0;
    }
    .top-header .customer-links li a {
        display: block !important;
        padding: 11px 14px !important;
        color: #011C2F !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
    }
    .top-header .customer-links li a:hover,
    .top-header .customer-links li a:focus,
    .top-header .customer-links li a:active {
        color: #fff !important;
        background: #011C2F !important;
        opacity: 1 !important;
    }
}
