/* Brand color overrides for Kamdhenu Ecommerce */
:root {
    --primary: #90090C;
    --bg-4: rgba(144, 9, 12, 0.1);
}

/* Button backgrounds */
.btn-main,
.tf-btn,
.tf-btn.btn-main {
    background-color: #90090C !important;
    border-color: #90090C !important;
}

.tf-btn:hover,
.btn-main:hover {
    background-color: #6e0709 !important;
    border-color: #6e0709 !important;
}

/* Text primary color */
.text-main,
.link-main {
    color: #90090C !important;
}

/* Border primary */
.border-main {
    border-color: #90090C !important;
}

/* Background primary */
.bg-main {
    background-color: #90090C !important;
}

/* ── Variant selector on product cards ── */
.variant-select {
    width: 100% !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4;
    padding: 6px 30px 6px 12px !important;
    height: 36px !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    background-color: #fafafa;
    color: #1a1a1a !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color .2s, box-shadow .2s;
}
.variant-select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(144,9,12,.12) !important;
    background-color: #fff;
}
.variant-select:hover {
    border-color: var(--primary) !important;
}

/* Nav dropdown anchor fix — sub-menu must position relative to its menu-item */
.box-nav-menu .menu-item {
    position: relative;
}

/* card info spacing */
.card-product_info .variant-wrap {
    display: block;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}
.card-product_info .price-wrap {
    margin-top: 8px;
    margin-bottom: 2px;
}
.card-product_info .price-new {
    font-size: 15px;
    font-weight: 600;
}
.card-product_info .price-old {
    font-size: 11px;
    margin-left: 4px;
    text-decoration: line-through;
}

/* ── Product detail page fixes ── */

/* Remove template's default top margin so image and info columns align */
.tf-product-info-wrap {
    margin-top: 0 !important;
}

/* Size variant buttons: auto-width so long ShortDescriptions aren't clipped */
.tf-product-info-wrap .variant-size .size-btn:not(.select-item) {
    width: auto !important;
    height: auto !important;
    padding: 8px 16px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    white-space: normal;
    line-height: 1.3;
    font-size: 13px;
    text-align: center;
}
