.btn-custom {
    outline: none !important;
    border: none;
    background: var(--violet-darkest);
    color: white;
    border-radius: 0px 0px 12px 12px;
    font-size: var(--fs-md);
    font-weight: 700;
    padding: 10px 20px !important;
}

.btn-stock {
    outline: none !important;
    border: none;
    background: var(--yellow-light);
    color: var(--yellow-dark);
    border-radius: 0px 0px 12px 12px;
    font-size: var(--fs-md);
    font-weight: 700;
    padding: 10px 20px !important;
}

.product-detailed-view {
    margin-top: 80px;
}
.btn-custom:focus,
.btn-custom:active {
    outline: none !important;
    box-shadow: none !important;
}

.product-card {
    position: relative;
    z-index: 1;
}

.product-card p {
    margin: 0px;
}

.product-name {
    font-size: var(--fs-nl) !important;
    font-weight: 700;
    font-family: var(--font-bold);
    color: #000000;
}
.product-img {
    height: 262px;
}

.product-img img {
    border-radius: 16px 16px 0px 0px;
    /* height: 100% !important; */
    height: 262px !important;
}

.product-card {
    border-radius: 12px;
}

.product-name-container {
    height: 70px;
}

.product-card h3 {
    font-weight: 600;
}

.best-seller-top {
    position: absolute;
    right: 0;
    padding: 2px 8px;
    color: white;
    background-color: var(--violet-darkest);
    font-weight: 500;
    border-radius: 0px 12px 0px 15px;
}

.product-card-category {
    display: block; /* ensure block-level container */
    width: 100%; /* full width of parent column */
    max-width: 100%;
    overflow-x: auto; /* horizontal scroll when needed */
    overflow-y: hidden; /* no vertical scroll */
    white-space: nowrap; /* keep children on one line */
    -webkit-overflow-scrolling: touch; /* smooth touch scrolling on iOS */
    scrollbar-width: none; /* firefox hide */
    cursor: grab;
}

/* hide webkit scrollbar (optional) */
.product-card-category::-webkit-scrollbar {
    display: none;
}

/* CHILD TAGS: inline-block so padding/margins don't break flow */
.product-card-category p {
    display: inline-block; /* inline-block keeps tags in one line, respects padding */
    white-space: normal; /* let text wrap inside tag if long (but tag stays inline) */
    vertical-align: middle;
    margin: 0 0 0 0; /* gap between tags */
    padding: 3px 8px;
    border-radius: 12px;
    background-color: var(--brown-darker);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-transform: capitalize;
}

.product-card-price h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0px;
}

.product-card-price .mrp {
    font-size: var(--fs-sm);
    font-weight: 400;
    text-decoration: line-through;
    color: #4f4f4f;
}

.product-details-container {
    border-radius: 0px 0px 12px 12px;
}

.product-cards {
    position: relative;
    height: 475px !important;
}

.product-card {
    height: 100% !important;
}

.product-overlay {
    position: absolute;
    /* top: 100%; */
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.product-overlay {
    background-color: white;
    border-radius: 0px 0px 16px 16px;
    /* margin: 0px !important;
    padding: 0px !important; */
}

.product-card .product-quantity-input {
    border: none;
    outline: none;
    width: 55px;

    text-align: center;
    font-size: var(--fs-sm);
    color: var(--violet-darkest);
    font-weight: 700;
}

.product-card .product-quantity {
    width: 30px;
}

.container-1 {
    white-space: nowrap !important;
}

.subscription-tab {
    background-color: var(--violet-light);
    border-radius: 10px;
}

.product-small-text {
    /* font-size: var(--fs-sm); */
    font-size: 12px !important;
}

.subscription-tab .nav-link {
    background-color: var(--violet-normal) !important;
    color: black !important;
    font-size: 12px;
    height: 100% !important;
}
.subscription-tab .nav-link.active {
    background-color: var(--violet-dark) !important;
    color: white !important;
}

.product-card .nav-tabs .nav-link {
    border-top-left-radius: 0px !important;
}

#home-tab {
    border-radius: 10px 0px 0px 0px !important;
}
#profile-tab {
    border-radius: 0px 10px 0px 0px !important;
}
.subscription-tab .nav-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0px !important;
    width: 100% !important;
    margin: 0px !important;
}
.subscription-tab .nav {
    padding: 0px !important;
    width: 100% !important;
    margin: 0px !important;
}

.subscription-tab li {
    padding: 0px !important;
    width: 100% !important;
}

.cursor {
    cursor: pointer;
}

.product-decrement,
.product-increment {
    background-color: var(--violet-light);
    padding: 2px 5px;
    color: var(--violet-dark);
    /* display: flex;
    justify-content: center;
    align-items: center; */
    /* width: 100%; */
}

.greater,
.add {
    border-radius: 0px 7px 7px 0px;
}

.lesser,
.sub {
    border-radius: 7px 0px 0px 7px;
}

.ratio-btn-label {
    font-size: var(--fs-sm) !important;
}

.product-name {
    overflow-wrap: break-word; /* modern standard way */
    word-wrap: break-word; /* for older browsers */
    word-break: break-word; /* fallback for some cases */
    white-space: normal; /* allow wrapping */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer; /* show pointer on hover */
    transition: all 0.3s ease;
}

.product-name.expanded {
    -webkit-line-clamp: unset; /* show full content */
    /* overflow: visible; */
}

.wishlist-icon.active {
    color: red;
    transition: color 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .product-card-price h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0px;
    }
}
@media (max-width: 400px) {
    .ratio-btn-label {
        font-size: 13px !important;
    }
}

/* ai generated */

.btn-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* muted / low-contrast for disabled controls */
.control-muted {
    opacity: 0.45;
    color: #6b6b6b; /* muted icon color */
    pointer-events: none; /* prevent clicks on visually disabled control */
}

/* ensure enabled controls look clickable */
.control-active {
    opacity: 1;
    color: inherit;
    pointer-events: auto;
}

/* small transition for nicer look */
.variant-slider .product-decrement,
.variant-slider .product-increment,
.d-flex .product-decrement,
.d-flex .product-increment {
    transition: opacity 140ms ease, color 140ms ease;
}

/* if icons inside need separate color */
.variant-slider .product-decrement i,
.variant-slider .product-increment i,
.product-decrement i,
.product-increment i {
    transition: color 140ms ease, opacity 140ms ease;
}

/* smooth animation */

/* VARIANT SLIDE EFFECT */
.variant-display {
    position: relative;
    overflow: hidden;
    height: 24px; /* adjust if needed */
}

.variant-slide {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* QUANTITY ANIMATION */
.quantity-anim {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 20px;
}

.quantity-slide {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
