﻿/* =========================================
   1. LAYOUT CHUNG & CHECKBOX
   ========================================= */
.product-sku-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.spc-compare-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.spc-compare-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid red !important;
    border-radius: 3px;
    outline: none;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
}

.spc-compare-checkbox input[type="checkbox"]:checked {
    background-color: red !important;
}

.spc-compare-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 1px;
    left: 4px;
}

.spc-checkbox-label {
    font-size: 14px;
    color: red !important;
    font-weight: 700;
}

/* Product Meta Tags (Model & MÃ£ kho) */
.product-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-sku-tag,
.product-warehouse-tag {
    background-color: #f2f4f7;
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}



/* =========================================
   1B. NÃšT SO SÃNH TRÃŠN PRODUCT LOOP/ARCHIVE
   ========================================= */

.spc-loop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0px 2px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #2563eb;
    box-shadow: none;
    line-height: 1.2;
}

.spc-loop-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.spc-loop-btn svg {
    display: none;
}

/* Icon trÃ²n xanh vá»›i dáº¥u + */
.spc-loop-btn::before {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #2563eb;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.spc-loop-btn:hover::before {
    background: #1d4ed8;
}

.spc-btn-text {
    line-height: 1;
    white-space: nowrap;
}



/* =========================================
   2. Báº¢NG SO SÃNH
   ========================================= */
.spc-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #ddd;
    table-layout: fixed;
    font-family: sans-serif;
}

.spc-compare-table td {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 15px !important;
    vertical-align: top;
    color: #333;
}

.spc-compare-table tbody td:last-child {
    border-right: none;
    padding-right: 15px !important;
}

.spc-compare-table tr:last-child td {
    border-bottom: none;
}

.spc-label-col {
    width: 140px;
    font-weight: 700;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

.spc-product-col img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.spc-product-title {
    color: #333;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 5px;
}

.spc-price-col {
    text-align: center;
    background-color: #fff;
}

.spc-price-col .amount {
    color: #d0021b;
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.spc-price-col del .amount {
    color: #999;
    font-size: 13px;
    font-weight: normal;
    text-decoration: line-through;
}

.spc-action-row td {
    vertical-align: middle;
}

.spc-buy-btn {
    background-color: #d0021b !important;
    color: #fff !important;
    border: 1px solid #d0021b !important;
    width: 100%;
    border-radius: 4px !important;
    font-weight: 700;
    text-transform: uppercase !important;
    font-size: 14px !important;
    padding: 0 15px !important;
    height: 40px !important;
    line-height: 38px !important;
}

.spc-buy-btn:hover {
    background-color: #a80016 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.spc-info-table {
    width: 100%;
    border-collapse: collapse;
}

.spc-info-table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.spc-info-table tr:nth-child(even) {
    background-color: #fff;
}

.spc-info-table td {
    padding: 8px 10px;
    border: none;
    font-size: 13px;
    vertical-align: middle;
}

.spc-info-label {
    font-weight: 600;
    width: 40%;
    color: #555;
}

.spc-info-value {
    color: #000;
}

/* =========================================
   3. UI COMPONENTS (Popup & Button)
   ========================================= */
#spc-floating-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: #fff;
    color: #3B9FC0;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 99990;
    display: none;
    font-size: 15px;
}

#spc-tray {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: auto;
    min-width: 800px;
    max-width: 95%;
    background: #fff;
    z-index: 99999;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
}

#spc-tray.open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.spc-tray-header {
    background: #3B9FC0;
    color: #fff;
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px 7px 0 0;
}

#spc-tray-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.spc-tray-body {
    padding: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

#spc-tray-list {
    display: flex;
    gap: 5px;
}

.spc-item-box {
    position: relative;
    width: 210px;
    height: 160px;
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s;
}

.spc-item-box.has-product {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.spc-item-box img {
    height: 85px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.spc-item-box .spc-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}

.spc-item-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
    cursor: pointer;
}

.spc-item-remove:hover {
    background: #d0021b;
    color: #fff;
    border-color: #d0021b;
}

.spc-plus {
    font-size: 42px;
    color: #ddd;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 5px;
}

.spc-text {
    font-size: 14px;
    color: #999;
    margin-top: 0;
}

.spc-tray-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.spc-tray-actions .button {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#spc-go {
    background-color: #3b71ea !important;
    border: 1px solid #3b71ea !important;
    color: #fff !important;
}

#spc-go:hover {
    background-color: #295dd2 !important;
    box-shadow: 0 2px 4px rgba(59, 113, 234, 0.3);
}

#spc-clear {
    background-color: #eef1f4 !important;
    border: 1px solid #eef1f4 !important;
    color: #4b5563 !important;
}

#spc-clear:hover {
    background-color: #dde1e6 !important;
    color: #333 !important;
}

/* =========================================
   SEARCH MODAL
   ========================================= */
#spc-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.spc-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.spc-search-box {
    position: relative;
    background: #fff;
    width: 95%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.spc-search-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    background: #f5f5f5;
    align-items: center;
}

#spc-search-input {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 3px;
    font-size: 14px;
    outline: none;
    margin-bottom: 0;
    height: 40px;
}

#spc-search-close {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    background: #fff;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#spc-search-close:hover {
    background: #e00;
    color: #fff;
    border-color: #e00;
}

#spc-search-results {
    padding: 0;
    overflow-y: auto;
}

.spc-search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.spc-search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    position: relative;
}

.spc-search-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B9FC0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spc-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spc-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.spc-result-item:last-child {
    border-bottom: none;
}

.spc-result-item:hover {
    background-color: #f9f9f9;
}

.spc-res-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.spc-res-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #eee;
}

.spc-res-info {
    flex: 1;
}

.spc-res-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.spc-res-price {
    font-size: 15px;
    color: #d0021b !important;
    font-weight: 700;
    margin-top: 5px;
}

.spc-res-price .amount {
    color: #d0021b !important;
}

.spc-res-price del {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-right: 5px;
}

.spc-res-price del .amount {
    color: #999 !important;
}

.spc-res-action {
    margin-left: 10px;
    text-align: right;
}

.spc-add-btn {
    color: #d0021b;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.spc-add-btn:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE MOBILE
   ========================================= */
/* =========================================
   RESPONSIVE MOBILE (ÄÃ£ chá»‰nh sá»­a)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Xá»­ lÃ½ khung Tray: Äáº©y lÃªn trÃªn Ä‘á»ƒ trÃ¡nh nÃºt Contact */
    #spc-tray {
        width: 96%;
        /* Äá»ƒ há»Ÿ 1 chÃºt 2 bÃªn cho Ä‘áº¹p */
        left: 2%;
        /* CÄƒn giá»¯a (2% trÃ¡i + 96% rá»™ng + 2% pháº£i) */
        bottom: 80px;
        /* Äáº¨Y LÃŠN: TÄƒng sá»‘ nÃ y náº¿u thanh contact cá»§a báº¡n cao hÆ¡n */
        min-width: unset;
        max-width: 100%;
        border-radius: 8px;
        /* Bo trÃ²n cáº£ 4 gÃ³c vÃ¬ nÃ³ ná»•i lÃªn trÃªn */
        transform: translateY(120%);
        /* áº¨n xuá»‘ng dÆ°á»›i */
        padding-bottom: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    #spc-tray.open {
        transform: translateY(0);
        /* Hiá»‡n lÃªn vá»‹ trÃ­ cÅ© */
    }

    .spc-tray-header {
        border-radius: 8px 8px 0 0;
        padding: 10px 15px;
        font-size: 13px;
    }

    /* 2. Xá»­ lÃ½ body vÃ  danh sÃ¡ch 3 Ã´ Ä‘á»u nhau */
    .spc-tray-body {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        min-height: auto;
        /* Bá» chiá»u cao cá»‘ Ä‘á»‹nh Ä‘á»ƒ gá»n hÆ¡n */
    }

    #spc-tray-list {
        display: grid;
        /* DÃ¹ng GRID thay vÃ¬ flex Ä‘á»ƒ chia Ä‘á»u */
        grid-template-columns: 1fr 1fr 1fr;
        /* 3 cá»™t báº±ng nhau */
        gap: 8px;
        /* Khoáº£ng cÃ¡ch giá»¯a cÃ¡c Ã´ */
        width: 100%;
        overflow: visible;
        /* KhÃ´ng cuá»™n ná»¯a */
        padding-bottom: 0;
    }

    /* 3. Thu nhá» Ã´ sáº£n pháº©m Ä‘á»ƒ vá»«a 3 Ã´ trÃªn mÃ n hÃ¬nh dá»c */
    .spc-item-box {
        width: auto;
        min-width: 0;
        /* Quan trá»ng: Ä‘á»ƒ nÃ³ khÃ´ng bá»‹ vá»¡ khung flex/grid */
        height: 110px;
        /* Giáº£m chiá»u cao */
        padding: 8px 5px;
        border: 1px dashed #ccc;
    }

    .spc-item-box img {
        height: 45px;
        /* áº¢nh nhá» láº¡i */
        margin-bottom: 5px;
    }

    .spc-item-box .spc-name {
        font-size: 10px;
        /* Chá»¯ nhá» láº¡i */
        line-height: 1.3;
        height: 26px;
        /* Giá»›i háº¡n 2 dÃ²ng */
        margin-bottom: 0;
    }

    /* Dáº¥u cá»™ng to Ä‘Ã¹ng khi chÆ°a cÃ³ SP */
    .spc-plus {
        font-size: 24px;
        margin-bottom: 0;
    }

    .spc-text {
        display: none;
        /* áº¨n chá»¯ hÆ°á»›ng dáº«n cho gá»n */
    }

    /* NÃºt xÃ³a item (dáº¥u X nhá») */
    .spc-item-remove {
        width: 18px;
        height: 18px;
        line-height: 16px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }

    /* 4. Khu vá»±c nÃºt báº¥m hÃ nh Ä‘á»™ng */
    .spc-tray-actions {
        flex-direction: row !important;
        /* Xáº¿p ngang */
        width: 100%;
        gap: 10px;
    }

    .spc-tray-actions .button {
        width: 50% !important;
        font-size: 12px !important;
        height: 34px !important;
        line-height: 34px !important;
        padding: 0 5px !important;
    }

    /* NÃºt kÃ­ch hoáº¡t dáº¡ng trÃ²n (ná»•i) */
    #spc-floating-btn {
        bottom: 140px;
        /* Äáº©y nÃºt nÃ y cao hÆ¡n ná»¯a */
        left: 10px;
        font-size: 13px;
        padding: 6px 12px;
    }

    /* CÃ¡c pháº§n Modal tÃ¬m kiáº¿m & Báº£ng so sÃ¡nh giá»¯ nguyÃªn hoáº·c chá»‰nh nhá» */
    .spc-compare-table {
        font-size: 12px;
    }

    .spc-label-col {
        width: 90px;
        padding: 8px !important;
    }

    .spc-product-col {
        padding: 8px !important;
    }

    .spc-buy-btn {
        font-size: 11px !important;
        height: 30px !important;
        line-height: 28px !important;
        padding: 0 5px !important;
    }
}

/* =========================================
   MOBILE: Báº¢NG TRÆ¯á»¢T NGANG Tá»° NHIÃŠN (KHÃ”NG STICKY)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Khung bao ngoÃ i: Cho phÃ©p cuá»™n ngang */
    .spc-table-wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;
        /* Báº­t thanh cuá»™n ngang */
        -webkit-overflow-scrolling: touch;
        /* Vuá»‘t mÆ°á»£t trÃªn iPhone */
        margin-bottom: 80px;
        /* Chá»«a chá»— cho nÃºt Contact dÆ°á»›i Ä‘Ã¡y */
        background: #fff;
    }

    /* 2. Thiáº¿t láº­p báº£ng chÃ­nh */
    .spc-compare-table {
        width: auto;
        /* Äá»ƒ báº£ng tá»± do má»Ÿ rá»™ng theo ná»™i dung */
        min-width: 100%;
        border-collapse: collapse;
    }

    /* 3. Cá»™t TiÃªu Ä‘á» (BÃªn trÃ¡i cÃ¹ng) - KHÃ”NG Cá» Äá»ŠNH */
    .spc-label-col {
        min-width: 80px;
        /* Chiá»u rá»™ng tá»‘i thiá»ƒu Ä‘á»ƒ khÃ´ng bá»‹ bÃ³p mÃ©o */
        width: 80px;
        white-space: normal;
        background: #f5f5f5;
        /* MÃ u ná»n nháº¹ phÃ¢n biá»‡t */
        vertical-align: middle;
        font-size: 12px;
        padding: 10px 5px !important;
    }

    /* 4. Cá»™t Sáº£n pháº©m (Quan trá»ng) */
    .spc-product-col {
        min-width: 250px;
        /* Ã‰p chiá»u rá»™ng Ä‘á»ƒ ná»™i dung bÃªn trong thoÃ¡ng */
        width: 250px;
        background-color: #fff;
        padding: 10px !important;
        vertical-align: top;
    }

    /* 5. Giao diá»‡n Báº£ng thÃ´ng sá»‘ con (Zebra Style - Giá»‘ng hÃ¬nh báº¡n gá»­i) */
    .spc-info-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 5px;
    }

    .spc-info-table td {
        padding: 6px 8px !important;
        font-size: 12px;
        border: none !important;
        /* Bá» viá»n thá»«a */
        vertical-align: top;
    }

    /* Táº¡o mÃ u ná»n xen káº½ (XÃ¡m - Tráº¯ng) */
    .spc-info-table tr:nth-child(odd) {
        background-color: #f5f5f5;
    }

    .spc-info-table tr:nth-child(even) {
        background-color: #fff;
    }

    /* Canh chá»‰nh Label vÃ  Value */
    .spc-info-label {
        width: 35%;
        /* Cá»™t tÃªn thÃ´ng sá»‘ */
        color: #666;
        font-weight: 600;
        padding-right: 5px !important;
    }

    .spc-info-value {
        width: 65%;
        /* Cá»™t giÃ¡ trá»‹ */
        color: #333;
    }

    /* 6. Tinh chá»‰nh áº£nh vÃ  nÃºt báº¥m */
    .spc-product-col img {
        height: 100px;
        object-fit: contain;
        margin-bottom: 8px;
    }

    .spc-product-title {
        height: 40px;
        /* Giá»›i háº¡n chiá»u cao tÃªn SP cho Ä‘á»u */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 13px;
    }

    .spc-buy-btn {
        width: 100% !important;
        font-size: 13px !important;
        padding: 0 10px !important;
        height: 36px !important;
        line-height: 34px !important;
    }
}

/* =========================================
   CUSTOM PRICE ROW STYLE
   ========================================= */
.custom-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 5px;
    width: 100%;
}

.price-left-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 30px;
}

.custom-sale-price {
    font-size: 32px;
    font-weight: 800;
    color: red !important;
    line-height: 1.1;
    display: inline-block;
}

.custom-sale-price .woocommerce-Price-amount {
    color: red !important;
}

.custom-regular-price {
    font-size: 16px;
    color: #8c8c8c !important;
    text-decoration: line-through !important;
    margin-left: 4px;
}

.custom-regular-price .woocommerce-Price-amount {
    color: #8c8c8c !important;
}

.custom-regular-price .woocommerce-Price-currencySymbol {
    text-decoration: underline;
}

.vat-note {
    font-size: 16px;
    color: #8c8c8c;
    font-style: italic;
    margin-left: 4px;
    font-weight: normal;
}

.discount-badge-wrapper {
    display: flex;
    align-items: center;
}

.discount-badge {
    background: rgb(22, 163, 74);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Responsive Mobile Price Row */
@media (max-width: 576px) {
    .custom-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .price-left-group {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        flex: 1;
    }

    .custom-sale-price {
        font-size: 26px;
    }

    .custom-regular-price {
        font-size: 14px;
    }

    .vat-note {
        font-size: 12px;
        width: 100%;
        margin-left: 0;
        margin-top: 2px;
    }

    .discount-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* =========================================
   CUSTOM PROMOTIONS & COMMITMENTS STYLE
   ========================================= */
.custom-promotions-box {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.promotions-header {
    background-color: red;
    color: #ffffff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promotions-title {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.font-icon-search {
    color: #ffffff;
    display: inline-block;
    vertical-align: middle;
}

.promotions-body {
    background-color: #fff9f9;
    padding: 15px 20px;
}

.promotions-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.promo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.promo-item:last-child {
    margin-bottom: 0;
}

.promo-icon {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.promo-icon svg {
    fill: red;
    width: 18px;
    height: 18px;
}

.promo-content {
    flex: 1;
}

.promo-content strong {
    font-weight: 700;
    color: #000;
}

.promo-link {
    color: #3b71ea !important;
    text-decoration: underline !important;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.promo-link:hover {
    color: #1b4fb5 !important;
}

.promotions-note {
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    border-top: 1px dashed #ffd5d5;
    padding-top: 10px;
    font-style: normal;
}

/* Store Commitments Grid */
.custom-commitments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.commitment-item {
    background-color: #f0f6fa;
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commitment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.commitment-icon {
    background: var(--secondary-gradient);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commitment-icon svg {
    color: #ffffff;
    stroke: currentColor;
}

.commitment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.commitment-title {
    font-weight: 700;
    font-size: 12px;
    color: #222;
    line-height: 1.2;
}

.commitment-subtitle {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

/* Media Queries */
@media (max-width: 991px) {
    .custom-commitments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .custom-commitments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .commitment-item {
        padding: 10px 12px;
    }

    .custom-promotions-box {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .promotions-body {
        padding: 12px 15px;
    }

    .promo-item {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Secure payment block */
.my-custom-add-to-cart-block form.cart {
    margin-bottom: 5px !important;
}

body.single-product .single_add_to_cart_button,
body.single-product .ux-buy-now-button {
    margin-bottom: 5px !important;
}


.custom-secure-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    color: #6d7d8e;
    font-size: 15px;
    margin-top: 12px;
    margin-bottom: 20px;
    width: 100% !important;
}

.secure-payment-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.secure-payment-item svg {
    color: #8fa0b2;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

@media (max-width: 550px) {
    .custom-secure-payment {
        justify-content: space-between;
        gap: 6px;
        font-size: 10.5px;
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    .secure-payment-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        align-items: center;
    }
    .secure-payment-item span {
        line-height: 1.25;
    }
}

/* After-sales services box */
.custom-after-sales-box {
    background-color: #f0f5fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.after-sales-header {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 18px;
    text-transform: none;
    line-height: 1.2;
}

.after-sales-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.after-sales-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.after-sales-icon {
    background-color: #3b71ea;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.after-sales-icon svg {
    width: 16px !important;
    height: 16px !important;
    color: #ffffff;
    stroke: currentColor;
}

.after-sales-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.after-sales-title {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    line-height: 1.3;
}

.after-sales-subtitle {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}