/* ------------ pre loader ----------- */
.banner-pro {
    width: 100%;
    background: #f3f3f3;
    padding: 33px 20px !important;
    text-align: center;
    background-image: url("../../image/banner_01 4.jpg") !important;
    background-size: 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.breadcrumb {
    padding: 60px 0 !important;
    background-image: url("../../image/banner_02 4.jpg") !important;
    background-size: 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.banner-pro::before {
    content: "";
    background: #00000091;
    height: 158px;
    width: 100%;
    position: absolute;
    left: 0px;
    display: flex;
    top: 83px;
}
#order-summary-list div,
#order-summary-list label {
    font-size: 16px;
}
#shopping-list thead {
    background: #000000 !important;
}
.btn-preloader {
    position: relative;
    overflow: hidden;
}
.breadcrumb {
    padding: 60px 0 !important;
}
.bg-danger {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}
#coupon-apply-btn {
    background: black !important;
    border-radius: 0px;
}
.proceed-next-btn {
    background: #fc6176 !important;
}
h4:has(+ h2#totalVal),
#totalVal {
    color: #ed1d24 !important;
}
/* Create spinner using ::after */
.btn-preloader::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spinBtn 0.6s linear infinite;
    opacity: 0;
}

/* Loading state */
.btn-preloader.loading {
    color: transparent; /* hide text */
    pointer-events: none;
}

/* Show spinner */
.btn-preloader.loading::after {
    opacity: 1;
}

@keyframes spinBtn {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ----------------------- product listing------------------------------- */

.shop_page_area {
    padding-top: 80px;
}

/* TOP */
.shop-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

/* CARD */
.product-card {
    text-align: center;
}

.product-img {
    background: #f5f5f5;
    position: relative;
}

.product-img img {
    height: 180px;
    object-fit: cover;
}

/* BADGE */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
}

/* TITLE */
.product-content h4 {
    font-size: 14px;
    margin: 10px 0;
}

/* PRICE + QTY */
.price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* QTY */
.qty-box {
    display: flex;
    gap: 0px;
}

.qty-box button {
    width: 25px;
    height: 25px;
    background: unset !important;
    cursor: pointer;
    border: none;
}

.qty-box input {
    width: 50px;
    height: 57px;
    text-align: center;
    background: #ededed;
    border: none;
}

/* BUTTON */
.cart-btn {
    margin-top: 10px;
    background: #111;
    color: #fff;
    padding: 8px;
    border: none;
}

/* SIDEBAR */
.sidebar {
    padding-left: 20px;
}

.sidebar h4 {
    font-size: 18px;
    /* margin-bottom: 50px; */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar li {
    /* margin-bottom: 8px; */
    padding: 15px 0px;
    color: #363944;
}

.sidebar li a {
    display: block;
    color: #363944;
    text-decoration: none;
}

.colors span {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
}

.promo {
    background: #f5f5f5;
    padding: 15px;
    margin-top: 20px;
}

/* MAIN BAR */
.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* LEFT TEXT */
.shop-top-left {
    font-size: 16px;
    color: #333;
}

/* RIGHT SIDE */
.shop-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SELECT */
.sort-form select {
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* VIEW BUTTONS */
.view-switch {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ACTIVE STATE */
.view-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* HOVER */
.view-btn:hover {
    background: #111;
    color: #fff;
}

.promo-card {
    background: #f4f5f7;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* TAG */
.promo-card .tag {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

/* TITLE */
.promo-card h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.promo-card h3 span {
    color: #ff3d3d;
}

/* BUTTON */
.promo-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
}

/* IMAGE */
.promo-img {
    margin-top: 20px;
    text-align: center;
}

.promo-img img {
    max-width: 100%;
    height: auto;
}

/* IMAGE WRAP */
.product-img {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

/* IMAGE */
.product-img img {
    width: 100%;
    transition: 0.4s ease;
}

/* IMAGE CONTAINER */
.product-img {
    width: 100%;
    height: 300px; /* control card height */
    background: #f5f5f5;

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

    overflow: hidden;
}

.active > .page-link,
.page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: #ff5f7a !important;
    border-color: #ff5f7a !important;
}

.page-link {
    color: #000;
}

/* IMAGE FULL FIT */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 fills container perfectly */
}

/* 🔥 GLARE EFFECT */
.product-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-25deg);
}

/* animate glare */
.product-card:hover .product-img::after {
    left: 120%;
    transition: 0.8s;
}

/* ZOOM IMAGE */
.product-card:hover img {
    transform: scale(1.05);
}

/* RIGHT SIDE ACTIONS */
.corner-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    opacity: 0;
    transform: translateY(-10px); /* 🔥 comes from inside top */
    transition: all 0.3s ease;
}

/* SHOW ON HOVER */
.product-card:hover .corner-actions {
    opacity: 1;
    transform: translateY(0); /* 🔥 drops down */
}

/* initial state */
.corner-item {
    opacity: 0;
    transform: translateY(-10px);
}

/* animate each */
.product-card:hover .corner-item {
    opacity: 1;
    transform: translateY(0);
}

/* delay for dropdown effect */
.product-card:hover .corner-item:nth-child(1) {
    transition: 0.2s;
}
.product-card:hover .corner-item:nth-child(2) {
    transition: 0.3s;
}
.product-card:hover .corner-item:nth-child(3) {
    transition: 0.4s;
}

/* SHOW ON HOVER */
.product-card:hover .corner-actions {
    opacity: 1;
    transform: translateX(0);
}

/* ICON STYLE */

/* control icon size here */
.corner-item img {
    width: 16px; /* change this */
    height: 16px; /* keep same for perfect square */
    object-fit: contain;
}

.rating {
    color: #ffc107;
}

/* CONTENT ALIGN */
.product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 10px;
}

/* RATING */
.rating {
    font-size: 22px;
    color: #f5a623;
    margin-bottom: 0px;
}

/* TITLE */
.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px;
}

.product-title a {
    color: #111;
    text-decoration: none;
}

.product-title a:hover {
    color: #ff3d3d;
}

/* PRICE + QTY */
.price-qty {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* QTY */
.qty-box {
    display: flex;
    align-items: center;
    gap: 0px;
    border-radius: 0px !important;
}

.divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin: 15px 0;
}

/* =========================
   PRICE WITH BG SHAPE (FINAL)
========================= */

.price {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* FIXED BACKGROUND ATTACH */
/* BASE PRICE */
.price .new {
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #9c9c9c; /* normal color */
    z-index: 1;
    transition: color 0.3s ease;
}

/* HIDDEN BACKGROUND INITIALLY */
.price .new::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("../../images/icons/price-curve.png") no-repeat center;
    background-size: 100% 100%;

    opacity: 0; /* 👈 hidden */
    transform: scale(0.9); /* 👈 slight zoom effect */
    /* transition: 0.3s ease; */

    z-index: -1;
}

/* 🔥 SHOW ONLY ON HOVER */
.shop-item:hover .price .new::before {
    opacity: 1;
    transform: scale(1);
}

/* ORIGINAL PRICE (PILL STYLE) */
.price .old-pill {
    font-size: 13px;
    text-decoration: line-through;
    color: #666;
}

/* APPLY STRIKE ONLY TO OLD PRICE */
.shop-item .price .old {
    text-decoration: line-through;
    color: #999;
}

/* REMOVE STRIKE FROM SELLING PRICE */
.shop-item .price .new {
    text-decoration: none !important;
    color: #00000080;
    font-weight: 700;
}

/* --------------------product detail-------------------------------- */

/* WRAPPER */
.product-details__left {
    display: flex;
    gap: 16px;
}

/* MAIN IMAGE AREA */
.product-details__thumb-slider {
    width: 100%;
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-details__thumb {
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* THUMBNAIL WRAPPER (RIGHT SIDE) */

/* MAIN IMAGE WRAPPER */
.product-details__thumb-slider {
    flex: 1;
    height: 520px;
    position: relative;
    overflow: hidden;
}

/* EACH IMAGE */
.product-details__thumb {
    width: 100%;
    height: 520px;
    display: none; /* hide all */
    align-items: center;
    justify-content: center;
}

/* SHOW ACTIVE IMAGE */
.product-details__thumb.active {
    display: flex;
    border-radius: 15px;
    border: 1px solid #eee;
}

/* IMAGE STYLE */
.product-details__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* THUMBNAIL SIDEBAR */
.product-details__images-slider {
    width: 110px;
    display: flex;
    /* flex-direction: column; */
    gap: 14px;
}

/* EACH THUMB BOX */
.product-details__images-slider div {
    background: #fff;
    border: 1px solid #eee;
    padding: 6px;
    cursor: pointer;
    transition: 0.25s ease;
}

/* IMAGE */
.product-details__images-slider img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

/* HOVER */
.product-details__images-slider div:hover {
    border-color: #999;
    transform: translateY(-2px);
}

/* ACTIVE */
.product-details__images-slider .active {
    /* border: 2px solid #000; */
    background: #fafafa;
}

/* ------------------- product side details-------------------- */

.product-title {
    font-size: 28px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-rating i {
    color: #ccc;
}

.product-rating i.active {
    color: orange;
}

.product-price {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.product-price .current {
    font-size: 22px;
    font-weight: 600;
}

.product-price .old {
    text-decoration: line-through;
    color: #888;
}

.product-price .discount {
    border: 1px solid #000;
    padding: 2px 6px;
    font-size: 12px;
}

.option-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 6px 10px;
    background: #eee;
    border: none;
    cursor: pointer;
}

.option-btn:hover {
    background: #000;
    color: #fff;
}

.product-cart {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.add-cart {
    background: #000;
    color: #fff;
    padding: 12px 24px;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* -------------------- product down description------------------------- */

/* WRAPPER */
.product-dContent {
    border: none;
    border-radius: 0;
}

/* HEADER (TABS AREA) */
.product-dContent__header {
    border: none;
    padding-bottom: 0;
}

/* TAB LIST */
.product-dContent__header .nav {
    display: flex;
    gap: 16px;
}

/* TAB BUTTON BASE */
.product-dContent__header .nav-link {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: 0.3s;
}

/* ACTIVE TAB */
.product-dContent__header .nav-link.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* HOVER */
.product-dContent__header .nav-link:hover {
    background: #000;
    color: #fff;
}

/* CONTENT AREA */
.product-dContent__box {
    padding: 25px 25px;
    border: 1px solid #e8e8e8;
    margin-bottom: 30px;
    background: #f3f3f3;
}

/* HEADINGS */
.product-dContent__box h6 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* PARAGRAPH */
.product-dContent__box p {
    color: #666;
    line-height: 1.8;
}

/* MORE DETAILS TITLE */
.product-dContent__box h6 + ul {
    margin-top: 20px;
}

/* LIST STYLE (LEFT SIDE SQUARE BULLETS) */
.product-dContent__box ul {
    list-style: none;
    padding: 0;
}

.product-dContent__box ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #444;
}

/* SQUARE BULLET */
.product-dContent__box ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #000;
    position: absolute;
    left: 0;
    top: 8px;
}

/* RIGHT SIDE CHECK STYLE */
.product-dContent__box ul li i {
    display: none; /* hide old icon */
}

/* REVIEW BOX */
.product-dContent__box .border {
    border: 1px solid #eee !important;
    border-radius: 8px;
}

/* RATING NUMBER */
.product-dContent__box h2 {
    font-size: 32px;
    font-weight: 600;
}

/* STARS */
.product-dContent__box .ph-star {
    color: #ddd;
}

.product-dContent__box .text-warning-600 {
    color: #f5a623 !important;
}

/* GRID ITEM */
.product-item {
    background: #f6f6f6;
    padding: 20px;
    transition: 0.3s ease;
}

/* IMAGE */
.product-img {
    display: block;
    /* height: 220px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* TITLE */
.product-info h6 {
    font-size: 15px;
    font-weight: 500;
    margin: 15px 0 8px;
}

.product-info a {
    color: #111;
    text-decoration: none;
}

/* HOVER */
.product-item:hover {
    background: #ededed;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-title span {
    width: 3px;
    height: 18px;
    background: red;
    display: inline-block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* REMOVE NUMBER INPUT ARROWS */

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
