.profile-pic-container {
    position: relative;
    display: inline-block;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid#ddd;
    cursor: pointer;
}

.category-filter.active {
    color: #fff;
    background: var(--ltn__secondary-color);
    background: linear-gradient(45deg,
            var(--ltn__secondary-color),
            color-mix(in srgb, var(--ltn__secondary-color) 70%, white));
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.6); */
    transition: all 0.3s ease;
}

/* custom loading spinner */
#loading-spinner {
    display: flex;
    align-items: center;
    justify-self: center;
    height: 20vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    display: none;
}

.loader {
    width: 70px;
    height: 70px;
    border: 5px solid transparent;
    border-top: 5px solid var(--ltn__secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Xoay */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hiệu ứng nhấp nháy nhẹ của viền */
@keyframes glow {
    from {
        box-shadow: 0 0 8px var(--ltn__secondary-color);
    }

    to {
        box-shadow: 0 0 20px var(--ltn__secondary-color);
    }
}

/* Checkout */
/* layout đẹp hơn – nút luôn xuống dưới khi hẹp */
.select-address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
}

.select-address>h6 {
    margin: 0;
}

/* select chiếm trục chính */
.select-address select {
    flex: 1;
    min-width: 260px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-weight: 600;
    transition: .2s;
}

/* nút luôn tách khối – dù rộng hay hẹp */
.select-address a.btn {
    width: auto;
    padding: 14px 20px;
    white-space: nowrap;
}

/* nếu nhỏ quá thì hiển thị đúng 1 cột đẹp */
@media(max-width: 992px) {
    .select-address {
        flex-direction: column;
        align-items: stretch;
    }

    .select-address select {
        min-width: 100%;
    }

    .select-address a.btn {
        width: 100%;
        text-align: center;
    }
}

/* voice search */
#voice-search {
    position: absolute;
    right: 50px;
    text-align: center;
    top: 20px;
}

/* khung scroll */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 10px;
    /* bo góc ngoài */
    border: 1px solid #e3e6f0;
    /* viền mờ */
}

/* header cố định */
.table-responsive thead th {
    position: sticky;
    top: 0;
    background: #f8f9fc;
    /* màu nhạt sang */
    z-index: 10;
    border-bottom: 2px solid #e3e6f0;
    padding: 12px;
    font-weight: 600;
}

/* bo góc cho th đầu và cuối */
.table-responsive thead th:first-child {
    border-top-left-radius: 10px;
}

.table-responsive thead th:last-child {
    border-top-right-radius: 10px;
}

/* style hàng */
.table tbody tr {
    transition: 0.15s ease;
}

/* hover từng dòng */
.table tbody tr:hover {
    background: #f1f3fa;
}

/* viền dòng mờ */
.table tbody tr td {
    border-bottom: 1px solid #eef0f5;
    padding: 12px;
}

.single-large-img {
    object-fit: cover;
    border-radius: 5px;
}

/* Add padding-top to main content of internal pages because the breadcrumb is disabled */
.wrapper>main {
    padding-top: 60px;
}

@media (max-width: 767px) {
    .wrapper>main {
        padding-top: 40px;
    }
}

/* Sleek dark green header background for all pages */
.ltn__header-middle-area {
    background-color: #0d3a2f !important;
    /* Premium dark forest green */
    border-bottom: 1px solid #0a2e25;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ltn__header-middle-area .ltn__main-menu>ul>li>a,
.ltn__header-middle-area .ltn__header-options i,
.ltn__header-middle-area .site-logo-wrap a {
    color: #ffffff !important;
}

/* Change header options background (Search, User, Cart, Mobile Menu) to header background color */
.ltn__header-options-2 .header-search-1,
.ltn__header-options-2 .ltn__drop-menu>ul>li>a,
.ltn__header-options-2 .mini-cart-icon a,
.ltn__header-options-2 .header-wishlist,
.ltn__header-options-2 .mobile-menu-toggle>a {
    background: #0d3a2f !important;
    /* Matches header background */
    color: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    /* Slightly rounded corners for a modern, premium look */
}

/* Hover state for header options */
.ltn__header-options-2 .header-search-1:hover,
.ltn__header-options-2 .ltn__drop-menu>ul>li:hover>a,
.ltn__header-options-2 .mini-cart-icon a:hover,
.ltn__header-options-2 .header-wishlist:hover,
.ltn__header-options-2 .mobile-menu-toggle>a:hover {
    background: var(--ltn__secondary-color) !important;
    /* Nice contrast on hover */
    color: var(--white) !important;
    border-color: var(--ltn__secondary-color) !important;
}

/* Make sure the icons inside are styled correctly */
.ltn__header-options-2 .header-search-1 i,
.ltn__header-options-2 .ltn__drop-menu>ul>li>a i,
.ltn__header-options-2 .mini-cart-icon a i,
.ltn__header-options-2 .header-wishlist i {
    color: #ffffff !important;
}

/* Mobile menu toggle stroke color */
.ltn__header-options-2 .mobile-menu-toggle svg path {
    stroke: #ffffff !important;
}

/* Premium styling and positioning for the cart quantity badge */
.ltn__header-options-2 .mini-cart-icon a {
    position: relative;
}

.ltn__header-options-2 .mini-cart-icon a sup {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--ltn__secondary-color) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
    text-align: center !important;
    font-weight: 700 !important;
    border: 2px solid #0d3a2f !important;
    /* Prevents merging with background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Adjust layout on hover to prevent layout shift */
.ltn__header-options-2 .mini-cart-icon a:hover sup {
    border-color: var(--ltn__secondary-color) !important;
}

/* Mobile Header Redesign Styles */
@media (max-width: 1199px) {

    /* Prevent default mobile-menu-toggle overrides */
    .mobile-menu-toggle-custom {
        margin-right: 0 !important;
    }

    .mobile-menu-toggle-custom>a {
        width: auto !important;
        height: auto !important;
        display: inline-block !important;
        position: relative !important;
        color: #ffffff !important;
        margin-left: 0 !important;
    }

    .mobile-menu-toggle-custom svg {
        position: static !important;
        width: 30px !important;
        height: 30px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        cursor: pointer !important;
        transform: none !important;
    }

    .mobile-menu-toggle-custom svg path {
        stroke: #ffffff !important;
        stroke-width: 40px !important;
    }

    /* Keep the cart icon size symmetrical at 30px */
    .mini-cart-icon a i {
        font-size: 18px !important;
    }

    /* Make sure mobile logo stays compact and centered */
    .mobile-logo a {
        display: inline-block !important;
        width: 50% !important;
        min-width: 50px !important;
    }

    /* Style for mobile search wrapper */
    .mobile-search-form {
        background-color: #ffffff !important;
        border-radius: 30px !important;
        padding: 5px 15px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 0 !important;
        /* Prevent parent form margin bottom */
    }

    .mobile-search-input {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        color: #333333 !important;
        font-size: 14px !important;
        padding: 6px 10px !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 0 !important;
        /* Bỏ margin-bottom 30px */
    }

    .mobile-search-input::placeholder {
        color: #888888 !important;
    }

    .mobile-search-btn {
        border: none !important;
        background: transparent !important;
        color: #0d3a2f !important;
        padding: 0 !important;
        font-size: 16px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        width: auto !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
    }

    /* Adjust spacing of cart badge on mobile */
    .cart-count-badge {
        background-color: var(--ltn__secondary-color) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 11px !important;
        text-align: center !important;
        font-weight: 700 !important;
        border: 2px solid #0d3a2f !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    }
}