/* ================= FIRST PRODUCT SECTION FLEX FIX ================= */

.container-fluid>.row:first-child {
    display: flex !important;
    align-items: flex-start;
    flex-wrap: nowrap !important;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.container-fluid>.row:first-child>.col-6:first-child {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.container-fluid>.row:first-child>.col-6:last-child {
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.container-fluid>.row:first-child .share {
    margin-bottom: 0;
}

body {
    overflow-x: hidden;
}

.custom-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "››";
    color: #999;
    padding-right: 6px;
}

.custom-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #000;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #999;
    font-weight: 400;
    /* padding: 0px 3px; */
}

.name {
    color: #696767;
    font-size: 16px;
}

.for-men {
    color: #000;
    font-size: 34px !important;
}

.span-price .span-1 {
    color: #999;
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 500;
}

.span-price .span-2 {
    color: rgb(241, 115, 69);
    font-size: 25px;
    font-weight: 500;
}

.span-price .span-3 {
    color: #000;
    font-size: 16px;
}

.product-info p {
    color: #555353;
    font-size: 16px;
}

.cart-actions {
    display: flex;
    gap: 17px;
    align-items: center;
}

/* Quantity box */
.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #cdcdcd;
    padding: 15px 14px;
    gap: 14px;
}

.qty-btn {
    color: #555353;

    border: none;
    background: none !important;
    width: 28px;
    height: 29px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}


.qty-number {
    font-size: 20px;
    min-width: 20px;
    text-align: center;
    color: #555353;

}

/* Common button */
.btn-1 {
    padding: 16px 36px;
    border: 1px solid #1f1f1f;
    font-size: 17px;
    background: #1f1f1f;
    color: white;
    font-weight: 500;
}

/* Buy now */
.btn-2 {
    padding: 15px 36px;
    border: 1px solid #000;
    font-size: 16px;
    background: white;
}

.btn-3 {
    padding: 8px;
    border-radius: 5px !important;
}

.sku-1 {
    font-size: 15px;
    color: #1f1f1f;
    font-weight: 400;
}

.sku-2 {
    color: #676767;
    padding-left: 8px;
    font-size: 15px;
}

.cat-2 {
    padding-left: 8px;
    color: #676767;
}

.cat-2:hover {
    color: #1f1f1f;
    cursor: pointer;
    transition: 0.3s;
}

.tags {
    color: #1f1f1f;
}

.tag-2 {
    color: #676767;
}

.tag-2:hover {
    color: #1f1f1f;
    cursor: pointer;
    transition: 0.3s;
}

.tag-3 {
    color: #676767;
}

.tag-3:hover {
    color: #1f1f1f;
    cursor: pointer;
    transition: 0.3s;
}

.tag-4 {
    color: #676767;
}

.tag-4:hover {
    color: #1f1f1f;
    cursor: pointer;
    transition: 0.3s;
}

.share {
    display: flex;
    align-items: center;
}

.icons {
    display: flex;
    gap: 12px;
}

/* Icon base */
.icons i {
    width: 36px;
    height: 36px;
    background: #f5f4f4;
    color: #d8d5d5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* smoothness */
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
    /* smooth shadow */
}

/* Hover / active effect */
.icons i:hover,
.icons i:active {
    background-color: #000;
    color: #fff;
}

/* ================= MOBILE TABS INLINE (3 per row) ================= */
@media (max-width: 767.98px) {

    #myTab {
        flex-direction: row !important;
        /* ek hi row me */
        justify-content: space-between !important;
        /* equal spacing */
        gap: 5px !important;
        /* optional gap */
    }

    #myTab .nav-item {
        flex: 1 1 32%;
        /* teen tabs equally spread */
    }

    #myTab .nav-link {
        width: 100%;
        text-align: center;
        /* text center inside each tab */
        padding: 10px 5px;
        white-space: normal;
        /* line wrap if long text */
    }

    /* HR should appear below tabs */
    #myTab+hr {
        margin-top: 10px;
    }

    /* Tabs in single row */
    #myTab {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        /* equal spacing */
        gap: 5px !important;
        flex-wrap: nowrap !important;
        /* 1 row only */
    }

    /* Each tab same width */
    #myTab .nav-item {
        flex: 1 1 0;
    }

    /* Tab text single line, no wrap */
    #myTab .nav-link {
        text-align: center;
        font-size: 14px;
        /* adjust if text too big */
        white-space: nowrap;
        /* no wrap */
        overflow: hidden;
        /* hide overflow */
        text-overflow: ellipsis;
        /* show ... if text too long */
        padding: 10px 5px;
    }

    /* Remove underline */
    #myTab .nav-link::after {
        display: none !important;
    }

    /* Active tab color only */
    #myTab .nav-link.active {
        color: #ff6f61 !important;
    }

    /* Hover color */
    #myTab .nav-link:not(.active):hover {
        color: #ff6f61 !important;
    }

    /* HR below tabs */
    #myTab+hr {
        margin-top: 10px;
    }
}

/* ================= MOBILE ONLY RESPONSIVE FIX ================= */
@media (max-width: 767px) {
    .custom-breadcrumb .breadcrumb {
        background: transparent;
        padding-left: 25px;
        margin: 0;
        font-size: 14px;
    }

    #myTab+hr {
        margin-top: 0px;
        margin-bottom: -10px;
        width: 95%;
        margin: auto;
    }

    .mobile-case {

        flex: 0 0 auto;
        width: 100%;
        margin-top: 20px;
    }

    /* Row ko stack karo */
    .container-fluid>.row:first-child {
        flex-wrap: wrap !important;
    }

    /* Image column full width */
    .container-fluid>.row:first-child>.col-6:first-child {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        justify-content: center !important;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Image resize */
    .product-img img {
        width: 250%;
        max-width: 346px;
        height: 350px;
    }

    /* Content column full width */
    .container-fluid>.row:first-child>.col-6:last-child {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 15px !important;
        margin-top: 0 !important;
    }

    /* Title size mobile */
    .for-men h2 {
        font-size: 37px !important;
        line-height: 1.3;
    }

    .name p {
        font-size: 17px;
    }

    /* Price section */
    .span-price .span-1 {
        font-size: 18px;
    }

    .span-price .span-2 {
        font-size: 25px;
    }

    .span-price .span-3 {
        font-size: 16px;
    }

    /* Product description */
    .product-info p {
        font-size: 15px;
        line-height: 1.4;
    }

    /* Cart buttons stack */
    .cart-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .qty-box {
        display: flex;
        /* align-items: center; */
        border: 1px solid #cdcdcd;
        padding: 15px 24px !important;
        gap: 121px;
        width: 110%;
    }

    .btn-1,
    .btn-2 {
        width: 100%;
    }

    /* Share icons spacing */
    .share {
        padding-top: 20px;
    }

}

/* ================= TABLET IMAGE SIZE + CONTENT LEFT ================= */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Breadcrumb left padding */
    .custom-breadcrumb {
        padding-left: 15px !important;
        text-align: left;
    }

    /* Product row stacked */
    .container-fluid>.row:first-child {
        display: block !important;
        margin-left: 0;
        margin-right: 0;
    }

    .container-fluid>.row:first-child>.col-6:first-child {
        width: calc(100% + 40px) !important;
        max-width: 745px;
        margin: 0 auto 25px auto;
        text-align: center !important;
    }

    .container-fluid>.row:first-child>.col-6:first-child img {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        display: block;
        /* margin: 0 auto; */
    }

    /* CONTENT under image, LEFT aligned with 1% padding */
    .container-fluid>.row:first-child>.col-6:last-child {
        width: 100% !important;
        max-width: 530px;
        /* margin: 0 0 20px 0; */
        /* padding-left: 1%; */
        text-align: left !important;
    }

    /* Product name */
    .name p {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 5px !important;
        color: #777;
    }

    /* Heading */
    .for-men h2 {
        font-size: 32px !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    /* Price */
    .span-price {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    /* Product description */
    .product-info p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
        color: #555;
        text-align: left;
        margin: auto;
    }

    /* Cart buttons in a single row */
    .cart-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-start;
        gap: 22px;
        margin-top: 20px;
        flex-wrap: nowrap;
    }

    .qty-box {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 0;
        padding: 13px 14px;
    }

    .btn-1,
    .btn-2 {
        width: auto;
        padding: 14px 30px;
        font-size: 16px;
    }

    .sku-1 {
        font-size: 19px;
        color: #1f1f1f;
        font-weight: 400;
    }

    .sku-2 {
        font-size: 17px;
        font-weight: 400;
    }

    /* SKU, Category, Tags left aligned */
    .sku,
    .cat,
    .tags {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
        line-height: 0.5;
        font-size: 19px;
    }

    /* Share icons left aligned */
    .share {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 25px;
        font-size: 19px;
    }

    .icons {
        display: flex;
        gap: 18px;
        margin-left: 0;
        font-size: 16px;
    }

    /* .tab-content>.tab-pane {
        padding-left: 30px !important;
    } */
}


/* REMOVE BOOTSTRAP DEFAULTS */
.nav-tabs {
    border-bottom: none !important;
}

.nav-tabs .nav-link {
    border: none !important;
    background: none !important;
    color: #111;
    font-weight: 500;
    padding: 12px 16px;
    position: relative;
    transition: color 0.3s ease;
    /* text smooth color */
}

/* ================= ACTIVE TAB ================= */
.nav-tabs .nav-link.active {
    color: #ff6f61 !important;
}

/* AFTER LINE (DEFAULT: ACTIVE TAB ONLY) */
.nav-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 1px;
    background-color: #ff6f61;
    opacity: 0;
    /* invisible by default */
    transform: scaleX(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    /* smooth line appear/disappear */
}

/* ACTIVE TAB LINE VISIBLE */
.nav-tabs .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ================= HOVER ================= */
/* HOVER EFFECT ONLY TEXT (next tabs) */
.nav-tabs .nav-link:not(.active):hover {
    color: #ff6f61 !important;
}

/* HOVER LINE - DO NOT SHOW ON NEXT TABS */
.nav-tabs .nav-link:not(.active):hover::after {
    opacity: 0 !important;
    /* line stays hidden on hover */
    transform: scaleX(0);
}

/* ================= REMOVE FOCUS / OUTLINE ================= */
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* HR FIX */
hr {
    margin-top: 0;
}


.custom-p {
    color: #4e4e4e;
}

.custom-span {
    color: #525252;
    font-weight: 500;
    font-size: 16px;
}

.product-details {
    list-style: none;
    padding-left: 0;
}

.product-details li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    color: #525252;
    font-size: 15px;
}

/* Black circle bullet */
.product-details li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #525252;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

.keywords {
    margin-top: 16px;
    font-size: 15px;
    color: #444;
}

.recent-view {
    margin-top: 500px;
}

/* Product card */
/* ===== PRODUCT GRID GAP FIX (SAFE) ===== */

.product-container .row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}

.product-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-img-wrapper>div {
    transition: 0.4s ease;
}

/* Right icons */
.right-icon {
    position: absolute;
    right: -50px;
    background: #fff;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    z-index: 2;
}

.right-icon i {
    font-size: 12px;
    color: #1f1f1f;
}

.right-icon .icon-text {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
}

.icon-2 {
    left: -90px !important;
}

.right-icon .icon-text::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #000;
}

.right-icon:hover .icon-text {
    opacity: 1;
}

.icon-heart {
    top: 20px;
}

.icon-eye {
    top: 70px;
}

.product-card:hover .right-icon {
    right: 10px;
}

.right-icon:hover,
.right-icon:focus {
    background: rgb(253, 135, 92);
    color: #fff;
}

/* Bottom bar */
.bottom-bar {
    position: absolute;
    bottom: -50px;
    width: 100%;
    background: #1f1f1f;
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-card:hover .bottom-bar {
    bottom: 0;
}

/* Product info */
.product-detail {
    margin-top: 15px;
    color: black;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.product-rating {
    margin-top: 5px;
    text-align: center;
}

.product-rating i {
    font-size: 11px;
    color: #525252;
}

.product-price {
    margin-top: 5px;
    text-align: center;
}

.product-price-1 {
    font-size: 15px;
    color: #b8b8b8;
    text-decoration: line-through;
}

.product-price-2 {
    font-size: 17px;
    font-weight: 500;
    color: #ff7375;
    padding-left: 5px;
}

.product-buy-btn {
    margin-top: 7px;
    text-align: center;
}

.product-buy-btn button {
    padding: 9px 97px;
    color: #fff;
    border: none;
    background-color: #003d49;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

/* Sale labels */
.sale-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 5px;
    color: #fff;
    background-color: #1f1f1f;
    z-index: 3;
}

/* ===== RESPONSIVE GRID ===== */

/* ================= MOBILE PRODUCT FIX ================= */
@media (max-width: 575.98px) {

    /* 2 CARDS PER ROW – FULL LOOK */
    .col-sm-6 {
        flex: 0 0 calc(50%);
        max-width: calc(50% - 0px);
    }

    /* IMAGE – BIG & CLEAN */
    .product-img-wrapper img {
        width: 110%;
        height: 160px;
    }

    /* SALE LABEL – TOP LEFT */
    .sale p {
        font-size: 14px !important;
        padding: 0px 9px !important;
        top: 14px;
        left: 0px;
        transform: none !important;
    }

    /* RIGHT ICONS – ALWAYS VISIBLE */
    .right-icon {
        right: 2px !important;
        background: transparent !important;
    }

    .icon-heart.icon-eye:hover {
        color: #1f1f1f;
    }

    .icon-heart {
        top: 4.5px;
    }

    .icon-eye {
        top: 38px;
    }

    .right-icon i {
        font-size: 16px;
        color: #4e4b4b;
    }

    .icon-text {
        display: none;
    }

    /* REMOVE HOVER BAR */
    .bottom-bar {
        display: none;
    }

    /* PRODUCT TEXT */
    .product-detail {
        font-size: 15px;
        margin-top: 13px;
    }

    .product-rating {
        margin-top: -17px;
    }

    .product-rating i {
        font-size: 8px;
        color: #1f1f1f;
    }

    .product-price-1 {
        font-size: 15px;
    }

    .product-price-2 {
        font-size: 17px;
    }

    /* BUTTONS – SAME AS IMAGE */
    .product-buy-btn {
        display: flex;
        gap: 9px;
        flex-direction: column;
        margin-top: 8px;
    }

    .read-more {
        padding: 7px 50px;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .product-buy-btn button {
        width: 100%;
        padding: 9px 0;
        font-size: 14px;
        background: #003d49;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {

    .product-container .row>.col-lg-3,
    .product-container .row>.col-md-4,
    .product-container .row>.col-sm-6 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .product-buy-btn {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .product-buy-btn button {
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
    }

    .product-detail {
        font-size: 16px;
        margin-top: 10px;
    }

    .product-rating i {
        font-size: 11px;
    }

    .product-price-1 {
        font-size: 15px;
    }

    .product-price-2 {
        font-size: 16px;
        padding-left: 5px;
    }
}


.product-table {
    width: 100%;
    /* col-6 ke andar poora space le */
    border-collapse: collapse;
}

.product-table td {
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 15px;
    width: 50%;
    /* dono td equal width */
    text-align: left;
    color: #393939;
}

.product-table .label {
    font-weight: 500;
    width: 38%;
    color: #000;
}

.related-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-top: 50px;
}

.review-box {
    max-width: 650px;
    margin: auto;
}

.title {
    text-align: center;
    margin: 70px 40px 24px;
    color: #000;
}


.note {
    text-align: center;
    font-size: 15px;
    color: #777;
    margin-bottom: 50px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 400;
    margin-bottom: 6px;
    color: #1f1f1f;

}

textarea {
    width: 204%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    outline: none;
}

.row {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    /* 🔥 yeh line sab se important */
}

.field {
    display: flex;
    flex-direction: column;
    width: 50%;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    outline: none;
}


.stars span {
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
}

.checkbox {
    display: flex;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    color: #616161;
}

.btn {
    background: #1f1f1f;
    color: #fff;
    border: 1px solid #1f1f1f;
    border-radius: 0 !important;
    padding: 13px 47px;
    cursor: pointer;
    box-shadow: none;
    transition: none;
}

@media (max-width: 575.98px) {
    .mera-btn-1 {
        width: 100%;
    }

    .mera-btn-2 {
        padding: 15px;
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }

    .row {
        display: flex;
        flex-wrap: nowrap;
    }

    .detail-contact-info {
        width: 135%;
        max-width: 1327px;
        display: grid;
        margin: auto;
    }

    p {
        width: 103% !important;
    }
}

.btn:hover,
.btn:focus,
.btn:active {
    background: #1f1f1f;
    color: #fff;
    border: 1px solid #1f1f1f;
    box-shadow: none;
    outline: none;
}

.star-hover i:hover {
    color: black;
    transition: 0.3s;
}

@media (min-width: 768px) and (max-width: 991px) {
    p {
        margin-top: 0;
        margin-bottom: 0px !important;
    }

    .detail-p {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;

    }
}

input:focus,
textarea:focus {
    border: 1px solid #000 !important;
    outline: none !important;
}