/*
Theme Name:Shop Base
Author: Erick Gomes
Description: ShopBase is a modern and responsive WordPress theme designed for eCommerce and blogging. Integrated with WooCommerce and built with SEO-friendly practices, it offers flexible layouts to create stunning online stores and engaging blogs.
Version:1.0
Text Domain: shop-base
Tags: e-commerce, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready, blog, right-sidebar, sticky-post, threaded-comments
*/

/* Header - Main Menu */
:root {
    --primary-font: "Montserrat", sans-serif;
    --secondary-font: "Rajdhani", sans-serif;
    --primary-color: #E21C21;
    --secondary-color: #192a56;
    --text-color: #333333;
    --transition: .3s;
    --grey: #f1f0ef;
    --white: #fff;
    --dark: #000;
    --barnner-width: 600px;
    --border-radius: 8px;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html,
body {
    height: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

body {
    font-family: var(--primary-font);
}

/* Botão Primário */
a.btn.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 0.125rem solid transparent;
    border-radius: 5px;
    padding: 0.75rem 1.125rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-radius: var(--border-radius);
}

a.btn.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--dark);
}

/* Botão Secundário */
a.btn.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 0.125rem solid transparent;
    border-radius: 5px;
    padding: 0.75rem 1.125rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-radius: var(--border-radius);
}

a.btn.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--dark);
}

.primary-color {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

.bg-primary-color {
   background-color: var(--primary-color);
}

.bg-secondary-color {
   background-color: var(--secondary-color);
}

.letter-spacing {
    letter-spacing: 4px;
}

.clearfix {
    clear: both;
}

/* Header - Main Menu */
.main-menu {
    padding: 0;
    margin: 0;
}

.main-menu ul {
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    border-radius: 0;
}

.main-menu ul li {
    display: inline;
    margin: 0 5px 0 0;
}

.main-menu ul li:last-child {
    margin: 0;
}

.dropdown-item {
    margin: 0;
    padding: 10px;
}



.main-menu ul li a {
    text-decoration: none;
    transition: var(--transition);
}

.main-menu ul li a:not(.dropdown-menu):hover{
    color: var(--primary-color);
}

.main-menu .dropdown:hover>.dropdown-menu,
.main-menu .dropup:hover>.dropdown-menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.main-menu .dropdown-menu .dropdown-menu {
    left: -100%;
    /* Position the second-level menu to the left */
    top: 0;
    display: none;
    position: absolute;
    margin: 0;
    padding: 0;
}

.main-menu .dropdown-menu .dropdown:hover>.dropdown-menu {
    display: block;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
}

.search-form button {
    background-image: url('img/search.svg');
    height: 23px;
    width: 23px;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
}

.search-form input[type="search"] {
    background-color: var(--white);
    border: none;
    font-weight: 500;
    font-size: 110%;
    padding: 0.3rem 1rem;
    margin: 8px 0.3rem 8px 0;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
}

.custom-logo {
    max-width: 140px;
    height: auto;
}


/* Esconder Label sem prejudicar acessibilidade */
.hide-accessible-text {
    position: absolute;
    top: -10000em;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Cart */
.cart .cart-icon {
    background: url('img/cart.svg');
    height: 25px;
    width: 25px;
    display: inline-block;
    background-repeat: no-repeat;
    vertical-align: bottom;
}

.cart .items {
    background: #CA2424;
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}


/* Swiper */
.slider {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    text-align: center;
    font-size: 1rem;
}

.swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 0.5 = 50% opacidade */
    z-index: 5;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

/* Conteúdo sobreposto no slide */
.slide-content {
    position: absolute;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: var(--white);
    padding: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.slide-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: bold;
}

.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
}

.swiper-pagination-bullet {
    background-color: var(--dark) !important;
    opacity: 1 !important;
}


/* Footer - Footer Menu */
footer {
    padding: 1rem 0;
    background-color: var(--secondary-color);
}

.footer-menu ul,
.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.footer-menu ul li {
    display: inline;
    margin: 0 10px 0 0;
}

.footer-menu ul li:last-child {
    margin: 0;
}

.footer-menu ul li.current-menu-item a {
    color: var(--primary-color);
}

.footer-menu {
    padding: 8px;
    margin: 8px 0;
    background-color: var(--primary-color);
    border-radius: 18px;
    list-style: none;
}

.footer-menu li {
    display: inline;
    margin: 0 10px;
    text-decoration: none;
}

.footer-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--secondary-color);
}

.endereco-footer {
    font-size: 14px;
    color: var(--white);
    margin: 0.5rem 0;
    font-weight: 500;
}


.whatsapp-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    margin-bottom: 2px;
    margin-left: 2px;
}

/* Quem Somos */

img.quem-somos-img {
    max-height: 400px;
    border-radius: 30px;
    object-fit: contain;
}

/* Newsletter */
.bg-news{
  background: linear-gradient(135deg, #192a56 0%, #273c75 50%, #40739e 100%);
  color: #ffffff; /* texto branco para contraste */
  padding: 2rem;
  border-radius: 12px;
}

.wpforms-container .wpforms-form .wpforms-field-sublabel{
    color: var(--text-color);
    font-weight: 500;
}

/* Minha Conta */
.minha-conta{
    padding: 6rem 0;
}


/* WooCommerce Home */

/* Shop */

.shop-content {
    padding: 3rem 0;
}

.shop-content .row {
    margin-left: 0;
    margin-right: 0;
}

.post-type-archive-product .content-area,
.product-template-default .content-area,
.tax-product_cat .content-area {
    padding: 0;
}

.woocommerce .woocommerce-breadcrumb a {
    font-weight: 700;
}

/* Produtos */
.woocommerce ul.products.columns-1 li.product:first-child,
.woocommerce-page ul.products.columns-1 li.product:first-child {
    margin-top: 20px;
}

.woocommerce .products ul,
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product a img {
    width: 255px;
    height: 200px;
    display: block;
    margin: 0 1em 1em 0;
    box-shadow: none;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.post-type-archive-product .woocommerce-loop-product__title {
    margin-bottom: 0.5rem !important;
}

.woocommerce ul.products li.product .button {
    margin-top: auto;
    background-color: var(--primary-color);
    transition: var(--transition);
    color: var(--white);
    width: fit-content;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--secondary-color);
}

.woocommerce ul.products li.product p {
    color: var(--text-color);
}

.woocommerce ul.products li.product .price {
    color: var(--text-color);
    font-weight: 600;
}

.woocommerce ul.products li.product .price ins {
    font-size: 140%;
}

.woocommerce ul.products li.product .onsale {
    top: 0;
    right: initial;
    border-radius: 0;
    width: 83px;
    padding: 0;
    background-color: var(--secondary-color);
    margin: 0;
    font-weight: 400;
    font-size: 1rem;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    color: var(--text-color);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 12px;
}

.wc-block-product-categories-list-item__name {
    color: var(--secondary-color);
}


header.woocommerce-products-header{
    margin: 2rem 0;
}
h1.woocommerce-products-header__title.page-title{
    color: var(--secondary-color);
    font-weight: 600;
}
/* End Produtos */

.woocommerce .woocommerce-ordering select {
    width: 100%;
}

.wc-block-grid__products .wc-block-grid__product-image img{
    max-width: 250px!important;
}

/* Produtos Single Page */

/* Single Product */
.woocommerce #respond input#submit.alt,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce ul.products li.product .button {
    background-color: var(--primary-color);
    color: var(--white);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce ul.products li.product .button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.product_meta>span {
    display: block;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 500;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.woocommerce-Price-amount {
    font-size: 25px;
    color: var(--text-color);
    font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;

}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border-radius: 0;
    margin: 0;
    background-color: var(--grey);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    content: none;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--primary-color);
    transition: var(--transition);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--secondary-color);
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 150px;
}

.woocommerce span.onsale {
    top: 0;
    right: initial;
    border-radius: 0!important;
    width: 83px;
    padding: 0;
    background-color: var(--secondary-color)!important;
    margin: 0;
    font-weight: 400;
    font-size: 1rem;
}

.woocommerce del .woocommerce-Price-amount {
    text-decoration: line-through;
  }

/* Carrinho de Compras */

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    min-height: 3em;
    background: var(--primary-color);
    text-decoration: none;
    color: var(--white);
    width: fit-content;
    padding: 1rem 0.75rem;
    transition: var(--transition);
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover {
    background: var(--secondary-color);
}

/* General */

embed,
iframe,
object {
    max-width: 100%;
}

button,
optgroup,
select,
textarea {
    background-color: #F6F6F6;
    padding: 5px 15px;
    border: 1px solid #e2e2e2;
    max-width: 100%;
}


a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

p,
ul li a,
.nav-links a,
.nav-links span {
    font-size: 1.15rem;
}


.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

.comment-form-comment {
    display: flex;
    flex-direction: column;
}

#comment {
    max-width: 50%;
    resize: none;
}

/* Blog Section */
.lab-blog img {
    margin: 15px 0;
}

.lab-blog h3 {
    margin-bottom: 0;
}

.lab-blog h3 a {
    color: var(--primary-color);
    font-weight: 700;
}

.lab-blog .pub-date {
    margin-bottom: 0.6rem;
    display: block;
}

.lab-blog .excerpt {
    color: #848484;
}

/* Blog and Archive Pages */
.blog article,
.archive article {
    margin-bottom: 3rem;
}

.blog article .title,
.archive article .title {
    font-weight: 600;
}

.blog article .meta,
.archive article .meta {
    font-weight: 700;
    margin: 1rem 0;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 1px solid #efefef;
    padding: 0 0 0.7rem 0;
    margin-bottom: 1rem;
}

.archive-title span {
    color: #b58e8e;
    font-weight: normal;
}

.blog .post-thumbnail,
.archive .post-thumbnail {
    margin: 1rem 0;
}

.navigation.pagination {
    padding: 2rem 0;
}

.nav-links {
    font-weight: 700;
}

.nav-links span,
.nav-links a {
    padding: 0.4rem;
}

/* Single */
.single header h1 {
    font-weight: 700;
}

.single .post-thumbnail {
    margin: 1rem 0;
}

.comments-area {
    border-top: 1px solid #eee;
    padding: 1rem 0 2rem;
    margin-top: 2rem;
}

.comment-form label {
    display: block;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-transform: uppercase;
    padding: 0.8em;
    display: inline-block;
    transition: var(--transition);
}

.comment-form input:hover[type="submit"] {
    background-color: var(--secondary-color);
}


/* Search */
.search .content-area .search-form {
    margin: 0 0 1rem;
}


/* Comments */

#comments ol,
#comments ul {
    list-style: none;
    padding: 0;
}

#comments .depth-1 {
    padding: 2rem;
}

.comment-meta {
    margin: 8px 0;
}

#comments .nav-links a {
    padding: 0;
}

#comments .bypostauthor {
    background-color: #bf95941a;
}

.entry-pings,
.entry-comments {
    color: #444;
    padding: 20px 45px 40px 45px;
    border: 1px solid #ccc;
    overflow: hidden;
    background: var(--white);
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #444;
}

.entry-comments h3 {
    font-size: 30px;
    margin-bottom: 30px;
}

.comment-respond h3,
.entry-pings h3 {
    font-size: 20px;
    margin-bottom: 30px;
}

.comment-respond {
    margin: 1.5rem 0;
}

.comment-header {
    color: #adaeb3;
    font-size: 14px;
    margin-bottom: 20px;
}

.comment-header cite a {
    border: none;
    font-style: normal;
    font-size: 16px;
    font-weight: bold;
}

.comment-header .comment-meta a {
    border: none;
    color: #adaeb3;
}

li.comment {
    background-color: var(--white);
    border-right: none;
}

.comment-content {
    clear: both;
    overflow: hidden;
}

.comment-list li {
    font-size: 14px;
    padding: 20px 30px 20px 25px;
}

.comment-list .children {
    margin-top: 40px;
    border: 1px solid #cccccc40;
    margin-left: 1rem;
}

.comment-list li li {
    background-color: #f5f5f6;
}

.comment-list li li li {
    background-color: var(--white);
}

.comment-respond input[type="email"],
.comment-respond input[type="text"],
.comment-respond input[type="url"] {
    width: 50%;
}

.comment-respond label {
    display: block;
    margin-right: 12px;
}

.entry-comments .comment-author {
    margin-bottom: 0;
    position: relative;
}

.entry-comments .comment-author img {
    border-radius: 50%;
    border: 5px solid var(--white);
    left: -80px;
    top: -5px;
    position: absolute;
    width: 60px;
}

.entry-pings .reply {
    display: none;
}

.form-allowed-tags {
    background-color: #f5f5f5;
    font-size: 16px;
    padding: 24px;
}

.comment-reply-link {
    cursor: pointer;
    background-color: #444;
    border: none;
    border-radius: 3px;
    color: var(--white);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 4px 10px 4px;
    text-transform: uppercase;
    width: auto;
}

.comment-reply-link:hover {
    color: var(--white);
}

.comment-notes {
    display: none;
}

/* Checkout */
.woocommerce form .form-row {
    display: block;
}

.woocommerce-checkout #customer_details {
    margin-bottom: 20px;
}

.woocommerce table.shop_table {
    border-collapse: collapse;
}

.woocommerce table.shop_table thead {
    background-color: #D2335B;
    color: var(--white);
}

/* Mapa */
.site-mapa{
    width: 100%;
}

/* Whatsapp Flutuante */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* Media Queries */

@media (max-width: 768px) {
    html {
        font-size: 75%; /* Reduce font size for smaller screens */
    }

    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }

    .woocommerce ul.products li.product a img {
        height: 200px;
    }

    .woocommerce ul.products[class*=columns-] li.product,
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100% !important;
    }

    .woocommerce ul.products li.product {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-menu li {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 4px 0;
    }