/* Exact CSS from shoptaikhoan.com - Combined and Fixed */

/* =========================================
   1. FONT DECLARATIONS (SVN-Gilroy)
   ========================================= */
@font-face {
    font-family: 'SVN-Gilroy';
    src: url('../fonts/SVN-Gilroy/SVN-Gilroy Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Gilroy';
    src: url('../fonts/SVN-Gilroy/SVN-Gilroy Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Gilroy';
    src: url('../fonts/SVN-Gilroy/SVN-Gilroy Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Gilroy';
    src: url('../fonts/SVN-Gilroy/SVN-Gilroy SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Gilroy';
    src: url('../fonts/SVN-Gilroy/SVN-Gilroy Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Gilroy';
    src: url('../fonts/SVN-Gilroy/SVN-Gilroy Heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Transformer';
    src: url('../fonts/SVN-Transformer.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. BANNER STYLING & SHINE EFFECTS
   ========================================= */
.img-inner img {
    object-fit: fill !important;
    height: 100% !important;
    width: 100% !important;
}

.product-small .box-image,
.img {
    border-radius: 10px;
    overflow: hidden;
}

.product-small .box-image img {
    border-radius: 10px;
}

.box-image:hover::before,
.post-item:hover .box-image::before,
.img:hover .img-inner::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.box-image::before,
.img .img-inner::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}

/* =========================================
   3. PRODUCT GRID & BUTTON FIXES
   ========================================= */

/* Fix "Cấn chữ" - Text Spacing */
.product-small .box-text {
    padding: 10px 10px 50px 10px !important;
    position: relative;
    /* Ensure text doesn't overlap floating button */
}

/* Sold Count Styling */
.sold-count {
    color: #888;
    font-size: 0.85em;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* FLOATING CIRCULAR ADD TO CART BUTTON */
.product-small .add_to_cart_button,
.product-small .button {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background-color: #651fff !important;
    color: transparent !important;
    /* Hide text */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    box-shadow: 0 4px 10px rgba(101, 31, 255, 0.3) !important;
    z-index: 10;
    opacity: 1 !important;
    transform: none !important;
}

.product-small .add_to_cart_button:hover {
    transform: scale(1.1) !important;
    background-color: #5013db !important;
}

/* SVG Icon for Cart - Guaranteed Display */
.product-small .add_to_cart_button::before,
.product-small .button::before {
    content: '' !important;
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    margin: 0 !important;
}

/* =========================================
   4. CENTER "VIEW ALL" BUTTONS
   ========================================= */
.center-button {
    display: table !important;
    /* Table display centers reliably with margin auto in all contexts */
    margin: 30px auto 40px auto !important;
    float: none !important;

    /* Button Style */
    border-radius: 99px !important;
    border: 1px solid #651fff !important;
    color: #651fff !important;
    font-weight: 600 !important;
    padding: 8px 30px !important;
    text-transform: none !important;
    background: transparent !important;
}

.center-button:hover {
    background-color: #651fff !important;
    color: #fff !important;
}

/* =========================================
   5. BADGE ADJUSTMENTS
   ========================================= */
.badge-container {
    left: 10px !important;
    top: 10px !important;
}

.badge-inner.on-sale {
    border-radius: 50% !important;
    background-color: #651fff !important;
    font-weight: 700;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}