body {
    font-family: 'Poppins', sans-serif;
}

/* Size Selector Styling */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.size-item {
    position: relative;
}

.size-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.size-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 40px;
    padding: 0 10px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    margin-bottom: 0;
}

.size-item label:hover {
    border-color: #0e8c8c;
    color: #0e8c8c;
    background: rgba(173, 31, 36, 0.05);
}

.size-item input[type="radio"]:checked + label {
    background: #0e8c8c;
    border-color: #0e8c8c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(173, 31, 36, 0.3);
    transform: translateY(-2px);
}

.loader
{
    background: rgba( 255, 255, 255, 0.8 );
    display: none;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.loader img
{
    left: 50%;
    margin-left: -32px;
    margin-top: -32px;
    position: absolute;
    top: 50%;
}

.order-progress-wrapper{
    position: relative;
    margin-bottom: 30px;
}

.progress-line{
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ddd;
    z-index: 1;
}

.progress-line-fill{
    height: 4px;
    background: #28a745;
    width: 0%;
    transition: width 1s ease-in-out;
}

.progress-steps{
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step{
    text-align: center;
    width: 100%;
}

.circle{
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto;
    color: #000;
}

.step.active .circle{
    background: #28a745;
    color: #fff;
}

.step.active.returned-step .circle {
    background: #ffc107 !important;
}
.step.active.cancelled-step .circle {
    background: #dc3545 !important;
}
.progress-line.returned-line .progress-line-fill {
    background: #ffc107;
}
.progress-line.cancelled-line .progress-line-fill {
    background: #dc3545;
}

.label{
    margin-top: 8px;
    font-size: 13px;
}

.modal-content {
    background: transparent !important;
    box-shadow: none;
    border: none;
}

.modal-dialog {
    max-width: 800px; /* adjust if needed */
}

.modal-backdrop.show {
    opacity: 0.8;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.close-btn:hover {
    background: #000000;
}

.logo-animate {
    height: 55px;
    animation: logoFadeZoom 5s ease-in-out infinite;
}

@keyframes logoFadeZoom {
    0%   { opacity: 0; transform: scale(0.95); }
    50%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(0.95); }
}

.footer-widget ul{
    padding-left:0;
}

.footer-widget ul li{
    list-style:none;
}

.whatsapp-float{
    position:fixed;
    right:9px;
    bottom:80px;
    width:55px;
    height:55px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    text-align:center;
    font-size:30px;
    line-height:55px;
    z-index:999;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
    transition:0.3s;
}

.whatsapp-float:hover{
    background:#1ebe5d;
    color:#fff;
}

/* SECTION */
.new-arrival-section {
    padding: 20px 0;
    background: #f5f5f5;
}

/* HEADER */
.na-header {
    background: #c40000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 60px;
}

/* CENTER TEXT */
.na-header h2 {
    margin: 0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    pointer-events: none;
}

/* RIGHT SIDE */
.na-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MOBILE FIX FOR PRODUCT HEADERS */
@media (max-width: 576px) {
    .na-header {
        flex-direction: column;
        justify-content: center;
        padding: 15px;
    }
    .na-header h2 {
        position: static;
        transform: none;
        margin-bottom: 12px;
    }
    .na-header-right {
        justify-content: space-between;
        width: 100%;
        padding: 0 5px;
    }
}

.view-all {
    background: #001f5b;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.view-all:hover {
    background: #ffffff;
    color: #c40000 !important;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* CARD */
.na-card {
    background: #fff;
    margin-bottom: 25px;
    border-radius: 12px; /* Smoother corners */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Soft shadow */
    border: 1px solid rgba(0,0,0,0.05);
}

.na-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* IMAGE */
.na-image img {
    width: 100%;
    height: 280px; 
    object-fit: contain; /* Changed to contain to prevent cropping and keep aspect ratio for product images */
    background: #fff;
    transition: transform 0.5s ease;
}

.na-card:hover .na-image img {
    transform: scale(1.05);
}

/* INFO */
.na-info {
    background: #0a0f2c;
    color: #fff;
    padding: 12px 15px;
    position: relative;
    height: 115px; /* FIXED HEIGHT for all cards to ensure stability */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.na-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
    height: 40px; /* Fixed height for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* PRICE */
.na-price {
    font-size: 15px;
    margin-top: auto; /* Push to bottom of flex container */
    padding-bottom: 5px;
}

.na-price .price {
    font-weight: bold;
    color: #fff;
}

.na-price .old-price {
    text-decoration: line-through;
    margin-left: 5px;
    color: #aaa;
    font-size: 13px;
}

/* ACTIONS */
.na-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
    background: #0a0f2c; /* Ensure it covers anything behind it */
    padding-left: 5px;
}

.na-actions a {
    background: #c40000;
    color: #fff;
    padding: 0;
    width: 28px; /* Fixed square size for consistency */
    height: 28px;
    margin-left: 0;
    border-radius: 5px;
    font-size: 12px; /* Smaller icons as requested */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none !important;
}

.na-actions a i {
    line-height: 1;
}

.na-actions a:hover {
    background: #001f5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    color: #fff !important;
}

.na-slide-item {
    padding: 10px;
}

/* NAV WRAPPER */
.na-nav {
    display: flex;
    gap: 5px;
}

/* BUTTON STYLE */
.na-nav button {
    background: #001f5b;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HOVER */
.na-nav button:hover {
    background: #ffffff;
    color: #c40000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.recent-products-slider .na-slide-item {
    padding: 10px;
}

.accessories-slider .na-slide-item {
    padding: 10px;
}

.qv-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);

    /* display: flex; */
    align-items: center;
    justify-content: center;

    overflow-y: auto;
}

.qv-modal.show {
    display: flex;
    opacity: 1;
}

.qv-content {
    background: #fff;
    width: 85%;
    max-width: 1000px;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.qv-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    z-index: 10000;
    color: #555;
    transition: 0.3s;
}
.qv-close:hover {
    color: #000;
}

.qv-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT */
.qv-left img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* RIGHT */
/* .qv-right {
    flex: 1;
} */

.qv-price {
    font-size: 22px;
    margin-bottom: 10px;
}

#qv-oldprice {
    text-decoration: line-through;
    margin-left: 10px;
    color: gray;
}

/* QTY */
.qv-qty {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.qv-qty button {
    width: 30px;
    height: 30px;
}

.qv-qty input {
    width: 40px;
    text-align: center;
}

/* BUTTON */
.qv-add {
    background: red;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
}

/* .qv-slider img {
    width: 100%;
    height: 400px;
    object-fit: contain;
} */

.qv-slider .slick-track {
    display: flex !important;
    align-items: center;
}

.qv-slider {
    width: 100%;
    min-width: 0;
    display: block;
}

.qv-left {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.qv-prev,
.qv-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: #0a1f44;
    color: #fff;
    border: none;

    width: 35px;
    height: 35px;
    border-radius: 6px;

    z-index: 9999;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* LEFT */
.qv-prev {
    left: 10px;
}

/* RIGHT */
.qv-next {
    right: 10px;
}

/* HOVER */
.category-item.ch-250 {
    height: 250px;
}
.category-item.ch-150 {
    height: 150px;
}

.premium-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    border: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.qv-prev:hover,
.qv-next:hover {
    background: #001f5b;
}

.qv-slider {
    width: 100%;
}

.qv-slider .slick-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.qv-slider img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
}

.slick-prev,
.slick-next {
    display: none !important;
}


.qv-prev { left: 10px; }
.qv-next { right: 10px; }

/* MOBILE HEADER FIX */
@media (max-width: 768px) {

    .na-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .na-header h2 {
        position: static;
        transform: none;
        font-size: 18px;
        text-align: center;
    }

    .na-header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .view-all {
        font-size: 12px;
        padding: 4px 10px;
    }

    .na-nav button {
        width: 28px;
        height: 28px;
    }
}

/* MODAL MOBILE FIX */
@media (max-width: 768px) {

    .qv-content {
        width: 95%;
        max-height: 90vh;
        padding: 20px;
        border-radius: 12px;
    }

    .qv-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .qv-left {
        width: 100%;
    }

    .qv-right {
        width: 100%;
    }

    .qv-slider img {
        max-height: 280px;
    }

    .qv-right h2 {
        font-size: 20px;
        word-break: break-word;
        margin-bottom: 10px;
    }

    .qv-price {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .qv-add {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }

    .qv-qty {
        justify-content: flex-start;
    }

    .qv-size {
        text-align: left;
        margin-bottom: 15px;
    }

    .qv-modal {
        align-items: flex-start;
        padding: 15px 0;
    }
}

.new-feature {
    background: #f5f6fa;
    padding: 60px 0;
}

/* CARD */
.feature-card {
    background: #fff;
    text-align: center;
    padding: 40px 25px; /* increase */
    border-radius: 10px;
    transition: 0.3s ease;
    height: 100%;
    min-height: 240px; /* equal height */
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

/* ICON */
.feature-icon {
    font-size: 60px;
    color: #0e8c8c;
    margin-bottom: 20px;
}

/* TITLE */
.feature-card h4 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* TEXT */
.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/*  HOVER EFFECT */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.new-feature .row {
    row-gap: 25px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        font-size: 40px;
    }
}

.new-footer {
    background: #ffffff;
    color: #333333;
    padding: 60px 0 0; /* Remove bottom padding */
    border-top: 1px solid #eaeaea;
}

/* LOGO */
.footer-logo {
    width: 150px;
    height: 50px;
    object-fit: contain;
    margin: 0 0 20px;
    display: block;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links a {
    color: #555555;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #0e8c8c;
}

/* TITLE */
.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
    height: 50px; /* Match new logo height */
    display: flex;
    align-items: center;
}

/* ICON */
.footer-links i {
    margin-right: 8px;
    color: #0e8c8c;
}

/* BOTTOM BAR */
.footer-bottom {
    background: #0b9444;
    padding: 15px 0;
    margin-top: 30px;
    width: 100%;
    border-top: none;
}

.footer-bottom p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

/* DEV TEXT */
.footer-bottom .dev {
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 768px) {

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 5px;
    }

    .footer-logo {
        margin: 0 0 20px;
        display: block;
    }
}

.new-category {
    padding: 50px 0;
    background: #f5f6fa;
}

/* CARD */
.cat-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

/* CATEGORY GRID GAPS */
.cat-row {
    margin-left: -10px;
    margin-right: -10px;
}
.cat-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* IMAGE */
.cat-card img {
    width: 100%;
    height: 400px; /* Slightly increased for better portrait ratio */
    object-fit: cover; /* Back to cover for borderless look */
    object-position: top center; /* Ensures heads/top of products aren't cropped */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #0a0f2c; 
}

/* MOBILE CATEGORY FIX */
@media (max-width: 768px) {
    .cat-card img {
        height: 280px; 
    }
    .cat-col {
        margin-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    .cat-card img {
        height: 220px; /* Balanced height for mobile grid */
    }
    .cat-overlay {
        padding: 10px;
    }
    .cat-overlay h4 {
        font-size: 13px;
    }
}

/* OVERLAY */
.cat-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* TEXT */
.cat-overlay h4 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* 🔥 HOVER EFFECT */
.cat-card:hover img {
    transform: scale(1.1);
}

.cat-card:hover .cat-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* HEADER */
.new-header {
    background: #0c2340;
    padding: 10px 20px;
    overflow: visible;
}

.new-header .logo img {
    height: 45px;
}

.new-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* SEARCH */
.header-search {
    width: 100%;
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    min-width: 0;
    position: relative !important;
}

.header-search form {
    display: flex;
    width: 100%;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 6px 45px 6px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    height: 36px;
    flex: 1;
    min-width: 0;
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 2;
}

.logo {
    flex: 0 0 auto;
}

* {
    box-sizing: border-box;
}

/* ICONS */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.header-icons a {
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-icons i {
    font-size: 18px;
    min-width: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* USER DROPDOWN */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown .dropdown {
    position: absolute;
    top: 160%;
    right: -10px;
    background: #ffffff;
    display: none;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #f1f1f1;
}

.user-dropdown:hover .dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown .dropdown a {
    display: block;
    padding: 12px 20px;
    color: #0c2340;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
    border-bottom: 1px solid #f8f8f8;
}

.user-dropdown .dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown a:hover {
    background: #0e8c8c;
    color: #ffffff;
    padding-left: 25px;
}

.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: -20px;
    width: 200px;
    height: 30px;
}

.new-header {
    position: relative;
    z-index: 1005;
}

.new-menu {
    position: relative;
    z-index: 1004;
}

/* MOBILE NAV HEADER & RESPONSIVENESS */
@media (max-width: 768px) {
    .new-header {
        padding: 15px 10px;
    }
    .header-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 5px;
    }
    .header-icons {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 5px;
    }
}

/* MEGA MENU */
.new-menu {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    position: relative;
    z-index: 1001; /* Ensure it stays above slider */
}

.menu-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item-dropdown {
    position: static;
}

.nav-item-dropdown > a.nav-main-link {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.nav-item-dropdown > a.nav-main-link:hover {
    color: #0e8c8c;
    opacity: 1;
}

/* Campaign Nav Items */
.campaign-nav-item {
    position: static;
    display: flex;
    align-items: center;
}

.campaign-nav-item .campaign-link {
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255,107,107,0.4);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    text-decoration: none;
}

.campaign-nav-item .campaign-link:hover {
    opacity: 1 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255,107,107,0.6);
    color: #fff !important;
    text-decoration: none;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f7f8fa;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 9999; /* Boost z-index to top */
    border-top: 1px solid #eee;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 0;
    gap: 50px;
}

.mega-column {
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

.mega-title {
    font-size: 15px;
    font-weight: 800;
    color: #111 !important;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
}

.mega-title:hover {
    color: #0e8c8c !important;
}

.mega-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-sub-list li a {
    color: #444 !important;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-sub-list li a:hover {
    color: #0e8c8c !important;
}

@media (max-width: 768px) {
    .new-header .container-fluid {
        flex-direction: column;
        gap: 10px;
    }

    .header-search {
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .new-menu {
        padding: 5px 15px;
    }

    .menu-list {
        display: none;
        width: 100%;
        padding-bottom: 20px;
        float: none !important;
        clear: both !important;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item-dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
    }
    
    .nav-item-dropdown > a.nav-main-link {
        display: block;
        padding: 12px 0;
    }

    .mobile-dropdown-icon {
        position: absolute;
        top: 10px;
        right: 0;
        color: #fff;
        padding: 5px 15px;
        cursor: pointer;
        font-size: 14px;
        z-index: 10;
        transition: transform 0.3s;
    }

    .mobile-dropdown-icon.open {
        transform: rotate(180deg);
    }
    
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; 
        padding: 0;
        background: #fdfdfd;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .mega-menu-inner {
        display: block !important;
        width: 100% !important;
        padding: 15px !important;
    }
    
    .mega-column {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 20px;
        float: none !important;
    }
    
    .mega-title {
        display: block !important;
        width: 100% !important;
        padding: 5px 0;
    }

    /* Campaign pills on mobile — full width, centered text */
    .campaign-nav-item {
        width: 100%;
        justify-content: flex-start;
    }

    .campaign-nav-item .campaign-link {
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        padding: 11px 16px;
        margin: 4px 0;
        font-size: 14px;
        white-space: normal;
        box-shadow: none;
        transform: none !important;
    }

    .campaign-nav-item .campaign-link:hover {
        transform: none !important;
        box-shadow: none;
    }
}

/* ==========================================================================
   MOBILE & CROSS-BROWSER OPTIMIZATION
   ========================================================================== */

/* Review List Optimization */
@media (max-width: 576px) {
    .review-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .review-item small {
        margin-top: 5px;
    }
}

/* Horizontal Scrollable Tabs on Mobile */
@media (max-width: 768px) {
    .product-detail .nav-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }
    .product-detail .nav-pills .nav-link {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

/* Responsive Table Fixes */
.table-responsive {
    border: none;
}

@media (max-width: 768px) {
    .table thead {
        display: none; /* Consider hiding header on very small screens or reducing text */
    }
    .table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        background: #fdfdfd;
    }
    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 8px 5px !important;
        text-align: right;
    }
    .table td::before {
        content: attr(data-label);
        font-weight: 800;
        text-align: left;
        color: #555;
        flex: 1;
    }
    
    /* Specific adjustment for wishlist icons in responsive table */
    .table td .btn {
        margin-left: 5px;
    }
}

/* General Layout Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling for iOS */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Touch targets for mobile */
.na-actions a, 
.btn-sm, 
.nav-link {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
}

/* Product Tag Box Styling */
.sidebar-widget.tag a {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    margin-right: 5px;
    margin-bottom: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sidebar-widget.tag a:hover {
    background: #fb246a;
    color: #fff !important;
    border-color: #fb246a;
}

@media (max-width: 768px) {
    .new-header .logo img {
        height: 35px; /* Adjust logo height for small screens */
    }
    .header-icons a {
        font-size: 18px;
        margin-left: 10px;
    }
    .user-dropdown > a {
        font-size: 13px;
    }
}

/* Fix for horizontal scroll on some android devices */
body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%; /* Fix for Safari auto-zoom */
}

/* Safari & Webkit Specific Compatibility Fixes */
input, select, textarea {
    -webkit-appearance: none; /* Reset Safari default styles for inputs */
    border-radius: 4px;
}

.new-header, .new-menu, .footer-bottom {
    -webkit-transform: translate3d(0, 0, 0); /* Force GPU acceleration for smoother scrolling on Safari */
}

/* Fix for Safari Flexbox Image Stretching */
.product-item img, .qr-img img, .review-img img {
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
}

/* iOS Safari Bottom Bar Fix */
@supports (-webkit-touch-callout: none) {
    .header-icons span.cart-count {
        padding-top: 1px; /* Subtle adjustment for iOS font rendering */
    }
}

/* Ensure font smoothing on Mac/Safari */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specific Safari/WebKit fixes for image rendering and layout */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Safari 5+ and Chrome */
    ::-webkit-file-upload-button {
        cursor:pointer;
    }
    
    /* Safari Flexbox Fixes */
    .new-header, .new-menu, .footer-bottom, .mega-menu {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Fixed issues with rounded corners on images in Safari */
    .product-item img, .review-item img, .footer-logo {
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }
}

/* Mobile Footer Optimizations */
@media (max-width: 768px) {
    .new-footer {
        padding: 40px 0 20px 0;
    }
    .footer-title {
        font-size: 16px !important;
        margin-bottom: 15px;
    }
    .footer-links li {
        font-size: 13px !important;
        margin-bottom: 8px;
    }
    .footer-logo {
        margin-bottom: 25px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 150px;
    }
}

/* PRODUCT CARD MOBILE VIEW OPTIMIZATION */
@media (max-width: 576px) {
    .na-image img {
        height: 180px; /* Better fit for 2-column mobile grid */
    }

    .na-info {
        padding: 10px;
        height: 95px; /* FIXED for mobile 2-column or list */
        display: flex;
        flex-direction: column;
    }

    .na-info h4 {
        font-size: 13px;
        height: 36px; /* 2 lines for mobile */
        margin-bottom: 8px;
    }

    .na-price .price {
        font-size: 14px;
    }

    .na-actions {
        right: 8px;
        bottom: 8px;
        gap: 3px;
    }

    .na-actions a {
        width: 25px;
        height: 25px;
        font-size: 11px;
        border-radius: 4px;
    }
}

/* Safari/iPhone Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .na-actions a {
        /* Ensure icons are centered in Safari */
        display: -webkit-inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* SLIDER MOBILE OPTIMIZATION: Prevent Image Cropping */
@media (max-width: 768px) {
    .header-slider .header-slider-item img {
        height: auto !important;
        min-height: auto !important;
        object-fit: contain !important; /* Ensures the whole image is visible */
        border-radius: 0 !important; /* Remove rounded corners for consistency */
    }

    .header-slider .header-slider-item {
        background: transparent !important;
    }

    /* Adjust slider contents for shorter mobile height to prevent overlap */
    .slider-content {
        bottom: 15px !important;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        padding: 0 10px !important;
    }

    .slider-content h2 {
        font-size: 16px !important;
        margin-bottom: 5px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Improve readability on varying backgrounds */
    }

    .slider-btn {
        padding: 6px 14px !important;
        font-size: 10px !important;
        border-radius: 4px !important;
    }
    
    /* Center Slick Dots on Mobile */
    .normal-slider .slick-dots {
        bottom: 5px !important;
    }
}

/* SHARE BUTTONS */
.product-share-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-share-container h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    color: #fff;
}

.share-facebook { background: #3b5998; }
.share-whatsapp { background: #25d366; }
.share-messenger { background: #0084ff; }
.share-linkedin { background: #0077b5; }
.share-x { background: #000000; }
.share-copy { background: #7f8c8d; cursor: pointer; }

/* MODAL SHARE FIX */
.qv-right .product-share-container {
    margin-top: 15px;
    padding-top: 15px;
}

.premium-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f8f9fa;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 100%;
}

.premium-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    z-index: 20;
    border-color: rgba(11, 148, 68, 0.2);
}

.premium-card-img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    flex-shrink: 0;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f9f9f9;
}

.premium-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 15px;
}

.premium-card:hover .premium-card-img-wrap img {
    transform: scale(1.08);
}

.premium-card-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    transition: all 0.4s ease;
    z-index: 10;
    opacity: 0;
}

.premium-card:hover .premium-card-actions {
    bottom: 0;
    opacity: 1;
}

.premium-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.premium-action-btn:hover {
    background: #0e8c8c;
    color: #fff !important;
    transform: translateY(-3px);
}

.premium-action-btn.active-wishlist {
    color: #0e8c8c;
}

.premium-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: 39px;
    text-decoration: none !important;
}

.premium-card-title:hover {
    color: #0b9444;
}

.premium-card-rating {
    color: #FFD333;
    font-size: 12px;
    margin-bottom: 10px;
}

.premium-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #0b9444;
    margin-top: auto;
}

.premium-card-price del {
    font-size: 12px;
    color: #a1a1aa;
    margin-left: 8px;
    font-weight: 400;
}

/* Sidebar Specific Constraints for Premium Card */
.sidebar-widget .premium-card {
    max-width: 260px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.sidebar-widget .premium-card-title {
    font-size: 13px;
}

/* BRAND SLIDER */
.brand { padding: 25px 0; background: #ffffff; }
.brand-item { padding: 10px; outline: none; }
.brand-card { background: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); height: 75px; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid #f1f5f9; transition: all 0.3s ease; }
.brand-card:hover { box-shadow: 0 6px 16px rgba(11, 148, 68, 0.12); transform: translateY(-3px); border-color: rgba(11, 148, 68, 0.5); }
.brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; transition: all 0.3s ease; }
@media (max-width: 768px) {
    .brand { padding: 15px 0; }
    .brand-item { padding: 8px 5px; }
    .brand-card { height: 60px; padding: 8px; border-radius: 6px; }
}
