/*
Theme Name: HuyDev Theme - Clownz
Theme URI: https://clownz.vn/
Author: HuyDev
Author URI: https://clownz.vn/
Description: Theme WordPress thuần tay cho Clownz Streetwear. Sản phẩm dùng WooCommerce. Giao diện dựng lại theo bản gốc clownz.vn.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: huydev
WC requires at least: 8.0
WC tested up to: 9.9
*/

/*
* Toan bo CSS giao dien nam trong cac bundle trong css/ (bootstrap.scss.css,
* evo-watch.scss.css, index.scss.css ...) va duoc enqueue trong functions.php.
* File style.css nay chi giu header theme + vai override nho.
*/

:root{
    --th-color-main: #008000;
    --th-color-orange: #FFA500;
    --th-font-main: 'Barlow Semi Condensed',sans-serif;
}

/*
* Override nho: WooCommerce boc input so luong trong <div class="quantity"> (can giu nguyen
* de JS bien the - wc-add-to-cart-variation.js - tim dung input qua selector ".quantity input.qty").
* Ban goc khong co div nay nen .btn-minus/#qty/.btn-plus noi lien nhau bang float; cho ".quantity"
* float theo giong vay de khong vo bo cuc stepper so luong.
*/
.details-pro .form-product .qty-ant .custom-btn-numbers .quantity{
    float: left;
    display: inline-flex;
    align-items: center;
}

/*
* Lam gon + dep hon khoi so luong: bo mui ten spinner mac dinh cua input number (trung
* voi 2 nut −/+ da co san), them vien ngan cach giua cac o va hover nhe cho nut −/+.
*/
.details-pro .form-product .qty-ant .custom-btn-numbers{
    border-radius: 4px;
    overflow: hidden;
}
.details-pro .form-product .qty-ant .custom-btn-numbers .qty::-webkit-inner-spin-button,
.details-pro .form-product .qty-ant .custom-btn-numbers .qty::-webkit-outer-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
.details-pro .form-product .qty-ant .custom-btn-numbers .qty[type=number]{
    -moz-appearance: textfield;
    appearance: textfield;
}
.details-pro .form-product .qty-ant .custom-btn-numbers .quantity{
    border-left: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    box-sizing: border-box;
}
.details-pro .form-product .qty-ant .custom-btn-numbers .btn-cts{
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease;
}
.details-pro .form-product .qty-ant .custom-btn-numbers .btn-cts:hover{
    background-color: #f2f2f2;
    color: #000;
}
.details-pro .form-product .qty-ant .custom-btn-numbers .btn-cts:active{
    background-color: #e8e8e8;
}

/* Link "Size Guide" ngay duoi swatch kich thuoc (giong ban goc), mo bang size qua Fancybox. */
.select-swatch .swatch .select-swap .huydev-size-guide{
    clear: both;
    width: 100%;
    margin: 6px 0 0;
    font-size: 12px;
}
.select-swatch .swatch .select-swap .huydev-size-guide a{
    color: #337ab7;
    font-style: italic;
    text-decoration: underline;
}

/* An khoi mo ta bien the mac dinh cua Woo (gia/ton kho da duoc dong bo thu cong
   vao .product-price / .a-stock qua custom.js) de khong thua UI so voi ban goc. */
.details-pro .form-product .woocommerce-variation.single_variation{
    display: none;
}

/*
* .crossed-out (swatch bien the het hang) chi duoc dinh vi (position/kich thuoc) trong
* evo-watch.scss.css, chua co net gach cheo thuc te cho swatch MAU (ban .n-sd khac dung
* :before/:after tren chinh no) - ve 1 duong cheo bang gradient cho khop voi swatch chu.
*/
.swatch .swatch-element.color.soldout .crossed-out{
    background: linear-gradient(to top right,
        transparent calc(50% - 1px),
        #aeaeae calc(50% - 1px),
        #aeaeae calc(50% + 1px),
        transparent calc(50% + 1px));
}
