/*
Theme Name: Himawari Blocksy
Template: blocksy
Version: 1.5.0
Text Domain: himawari-blocksy
*/

:root {
    --hw-navy: #142B49;
    --hw-blue: #2878C8;
    --hw-light: #F2F5F8;
    --hw-border: #E2EAF2;
    --hw-text: #24364B;
    --theme-palette-color-1: #2878C8;
    --theme-palette-color-2: #142B49;
    --theme-palette-color-3: #24364B;
    --theme-palette-color-4: #142B49;
    --theme-palette-color-5: #E2EAF2;
    --theme-palette-color-6: #F2F5F8;
    --theme-palette-color-7: #F2F5F8;
    --theme-palette-color-8: #FFFFFF;
}

body, #main {
    background-color: #fff;
    color: var(--hw-text);
}

#header a, .hw-home a, .hw-toolbar a,
.woocommerce ul.products a {
    text-decoration: none !important;
}

.hw-toolbar {
    background: var(--hw-navy);
    padding: 8px 20px;
}

.hw-toolbar-inner {
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hw-search {
    display: flex;
    width: min(600px, 65%);
    margin: 0;
}

.hw-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    color: var(--hw-text);
    border: 0;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.hw-search button {
    min-height: 36px;
    height: 36px;
    padding: 0 16px;
    background: var(--hw-blue);
    color: #fff;
    border: 0;
    border-radius: 0 5px 5px 0;
}

.hw-links {
    display: flex;
    gap: 20px;
}

.hw-links a {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

#header {
    border-bottom: 1px solid var(--hw-border);
}

#header [data-row="middle"] {
    --height: 64px !important;
}

#header .site-title {
    font-size: 24px;
    color: var(--hw-navy);
}

#header .menu > li > a {
    font-size: 13px;
}

.hw-home {
    width: min(1240px, calc(100% - 40px));
    margin: 20px auto 30px;
}

.hw-hero {
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    background: linear-gradient(110deg,#edf3f9,#f8fafc);
}

.hw-hero > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--hw-blue);
}

.hw-hero h1 {
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
    margin: 8px 0 10px;
    color: var(--hw-navy);
}

.hw-hero p {
    font-size: 15px;
    margin: 0 0 15px;
}

.hw-button {
    display: inline-block;
    padding: 10px 18px;
    background: var(--hw-blue);
    color: #fff !important;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.hw-section {
    margin-top: 28px;
}

.hw-section h2 {
    font-size: 24px;
    margin: 0 0 16px;
    color: var(--hw-navy);
}

.hw-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hw-heading > a {
    font-size: 14px;
    white-space: nowrap;
}

ul.products li.product {
    box-sizing: border-box;
    border: 1px solid var(--hw-border);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20,43,73,.06);
}

ul.products li.product:hover {
    border-color: #a8c5e1;
}

ul.products li.product img {
    object-fit: contain !important;
}

.hw-home ul.products li.product img {
    width: 100%;
    height: clamp(130px, 17vw, 220px);
    object-fit: contain !important;
}

ul.products .woocommerce-loop-product__title,
ul.products .woocommerce-loop-product__title a {
    font-size: 15px !important;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none !important;
}

ul.products .price {
    font-size: 17px;
    font-weight: 700;
    color: var(--hw-navy);
}

ul.products .button {
    font-size: 13px;
    border-radius: 5px;
}

.onsale {
    background: var(--hw-blue) !important;
    color: #fff !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

.hw-categories {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.hw-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 105px;
    padding: 14px 8px;
    border: 1px solid var(--hw-border);
    border-radius: 8px;
    background: var(--hw-light);
    color: var(--hw-navy);
}

.hw-category:hover {
    background: #eaf2fa;
    border-color: var(--hw-blue);
}

.hw-category > span {
    font-size: 28px;
    color: var(--hw-blue);
}

.hw-category strong {
    font-size: 15px;
}

.hw-category small {
    font-size: 12px;
}

.hw-benefits {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    text-align: center;
    border-top: 1px solid var(--hw-border);
    padding-top: 20px;
    margin-top: 28px;
    font-size: 14px;
}

.hw-benefits p {
    margin: 4px 0;
}

.single-product .product_title {
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.3;
}

.single-product .summary .price {
    font-size: 25px;
    font-weight: 700;
}

.single-product .woocommerce-product-gallery img {
    object-fit: contain !important;
}

#footer {
    border-top: 1px solid var(--hw-border);
}

#footer [data-row="bottom"] {
    background: var(--hw-navy);
    color: #fff;
}

#footer [data-row="bottom"] a,
#footer [data-row="bottom"] p {
    color: #fff;
}

@media (max-width: 900px) {
    .hw-categories {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .hw-toolbar {
        padding: 8px 12px;
    }

    .hw-toolbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hw-search {
        width: 100%;
    }

    .hw-home {
        width: calc(100% - 24px);
        margin-top: 12px;
    }

    .hw-section h2 {
        font-size: 20px;
    }

    .hw-home ul.products {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 10px !important;
    }

    .hw-home ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 8px;
    }

    ul.products .woocommerce-loop-product__title {
        font-size: 13px !important;
    }

    .hw-benefits {
        grid-template-columns: 1fr;
    }
}

/* HIMAWARI REFINAMENTO V140 */

/* Remover sublinhados desnecessarios */

#header a,
#header a:hover,
#header .site-title a,
.hw-toolbar a,
.hw-home a,
.hw-home a:hover,
ul.products li.product a,
ul.products li.product a:hover,
.ct-breadcrumbs a {
    text-decoration: none !important;
    text-decoration-line: none !important;
    --theme-text-decoration: none;
}

/* Padronizacao do cabecalho */

#header .ct-container {
    max-width: 1240px;
}

#header [data-row="middle"] {
    --height: 60px !important;
}

#header .site-title {
    font-size: 23px !important;
    font-weight: 750;
}

/* Pesquisa ja disponivel na barra superior */

#header [data-id="search"] {
    display: none !important;
}

/* Banner compacto */

.hw-hero {
    padding: 24px 32px;
}

.hw-hero h1 {
    font-size: clamp(25px, 2.6vw, 34px);
    margin: 6px 0 8px;
}

.hw-hero p {
    margin-bottom: 12px;
}

.hw-button {
    padding: 9px 18px;
}

.hw-section {
    margin-top: 24px;
}

/* Vitrine uniforme */

ul.products li.product {
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
}

ul.products li.product:hover {
    box-shadow: 0 5px 16px rgba(20,43,73,.10);
}

ul.products li.product
.woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 1.45;
    min-height: 3em;
}

ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 700;
    color: #142B49;
}

ul.products li.product .price del {
    font-size: 12px;
    font-weight: 400;
    opacity: .65;
}

ul.products li.product .price ins {
    text-decoration: none !important;
    color: #142B49;
}

ul.products li.product .button {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.hw-home ul.products li.product .button {
    margin-top: auto;
}

.hw-home ul.products li.product img {
    height: clamp(140px, 16vw, 205px);
}

ul.products .entry-meta {
    font-size: 11px;
}

/* Selos promocionais */

.onsale {
    letter-spacing: .3px;
    font-weight: 700 !important;
}

/* Paginas internas */

.woocommerce-account #main,
.woocommerce-cart #main,
.woocommerce-checkout #main,
.single-product #main {
    background: #fff;
}

.single-product .product_title {
    font-size: clamp(24px, 2.4vw, 30px);
}

.single-product .summary .price {
    color: #142B49;
}

.single-product .summary .price ins {
    text-decoration: none;
}

/* Rodape compacto */

#footer [data-row="bottom"] {
    --container-spacing: 16px;
}

/* Celulares */

@media (max-width: 600px) {

    .hw-hero {
        padding: 18px 16px;
    }

    .hw-hero h1 {
        font-size: 25px;
    }

    .hw-home ul.products li.product img {
        height: 145px;
    }

    ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 13px !important;
    }

    ul.products li.product .price {
        font-size: 16px !important;
    }

    ul.products li.product .button {
        font-size: 11px;
        padding-inline: 6px;
    }
}


/* HIMAWARI PAGINAS INTERNAS V150 */

/* Identidade visual global */

body {
    --theme-text-color: #24364B;
    --theme-headings-color: #142B49;
    --theme-link-initial-color: #2878C8;
    --theme-link-hover-color: #142B49;
}

#main {
    --theme-text-decoration: none;
}

/* Loja e categorias */

.post-type-archive-product .hero-section,
.tax-product_cat .hero-section {
    margin-bottom: 22px;
}

.post-type-archive-product .page-title,
.tax-product_cat .page-title {
    font-size: clamp(24px, 3vw, 32px);
    color: #142B49;
}

.woocommerce-ordering select {
    border: 1px solid #E2EAF2;
    border-radius: 6px;
    font-size: 14px;
}

.woocommerce-result-count {
    font-size: 13px;
    color: #64748b;
}

ul.products li.product {
    min-width: 0;
}

ul.products li.product .price {
    margin-top: auto;
}

ul.products li.product .button {
    width: 100%;
    box-sizing: border-box;
}

/* Produto individual */

.single-product .product_title {
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.35;
    color: #142B49;
}

.single-product .woocommerce-product-gallery {
    min-width: 0;
}

.single-product .woocommerce-product-gallery img {
    border-radius: 6px;
    object-fit: contain !important;
}

.single-product .summary {
    min-width: 0;
}

.single-product .summary .price {
    font-size: 25px;
    color: #142B49;
}

.single-product .summary .price del {
    font-size: 15px;
    opacity: .65;
}

.single-product .summary .price ins {
    text-decoration: none;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.7;
}

.single-product .product_meta {
    font-size: 13px;
}

.single-product .woocommerce-tabs {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E2EAF2;
}

.single-product .woocommerce-tabs h2,
.single-product .related > h2,
.single-product .upsells > h2 {
    font-size: 23px;
    color: #142B49;
}

.single-product .related,
.single-product .upsells {
    margin-top: 32px;
}

/* Carrinho, checkout e conta */

.woocommerce-cart #main,
.woocommerce-checkout #main,
.woocommerce-account #main {
    background: #fff;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
    max-width: 1200px;
    margin-inline: auto;
}

.woocommerce-cart .page-title,
.woocommerce-checkout .page-title,
.woocommerce-account .page-title {
    font-size: 28px;
    color: #142B49;
}

/* Formularios */

.woocommerce form input.input-text,
.woocommerce form textarea,
.woocommerce form select {
    border: 1px solid #D5E0EA;
    border-radius: 5px;
    background: #fff;
}

.woocommerce form input.input-text:focus,
.woocommerce form textarea:focus {
    border-color: #2878C8;
    outline: 2px solid rgba(40,120,200,.15);
}

.woocommerce form label {
    font-size: 14px;
    font-weight: 500;
}

/* Tabelas e resumos */

.woocommerce table.shop_table {
    border: 1px solid #E2EAF2;
    border-radius: 8px;
}

.woocommerce table.shop_table th {
    background: #F2F5F8;
    color: #142B49;
}

.woocommerce .cart_totals,
.woocommerce-checkout #order_review {
    border: 1px solid #E2EAF2;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
    font-size: 21px;
    color: #142B49;
}

/* Minha conta */

.woocommerce-account .woocommerce-MyAccount-navigation {
    border: 1px solid #E2EAF2;
    border-radius: 8px;
    padding: 12px;
    background: #F2F5F8;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    text-decoration: none !important;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #142B49;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    min-width: 0;
}

.woocommerce-account .woocommerce-Address {
    box-sizing: border-box;
    border: 1px solid #E2EAF2;
    border-radius: 8px;
    padding: 18px;
}

.woocommerce-account .woocommerce-Address h2 {
    font-size: 19px;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
    border: 1px solid #E2EAF2;
    border-radius: 8px;
    padding: 22px;
}

/* Botoes */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
    border-radius: 5px;
    font-weight: 600;
}

/* Rodape */

#footer {
    font-size: 13px;
}

#footer [data-row="bottom"] {
    background: #142B49;
    color: #fff;
}

/* Responsividade */

@media (max-width: 600px) {

    .woocommerce-cart .page-title,
    .woocommerce-checkout .page-title,
    .woocommerce-account .page-title {
        font-size: 24px;
    }

    .woocommerce .cart_totals,
    .woocommerce-checkout #order_review {
        padding: 14px;
    }

    .woocommerce-account .woocommerce-Address {
        width: 100%;
        margin-bottom: 12px;
    }

    .woocommerce-account form.login,
    .woocommerce-account form.register {
        padding: 16px;
    }

    .single-product .product_title {
        font-size: 24px;
    }

    .single-product .summary .price {
        font-size: 22px;
    }
}

