/* Grid WooCommerce Products - Styles */

* {
    box-sizing: border-box;
}

.gwp-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: transparent;
}

/* Sidebar - Filtros */
.gwp-sidebar {
    flex: 0 0 240px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border-radius: 2px;
}

.gwp-sidebar.gwp-sidebar-has-banner {
    position: static;
    top: auto;
}

.gwp-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gwp-filter-group {
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.gwp-filter-group:last-of-type {
    border-bottom: none;
}

.gwp-filter-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.3px;
}

.gwp-toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #999;
}

.gwp-filter-toggle.active .gwp-toggle-icon {
    transform: rotate(180deg);
}

.gwp-filter-content {
    padding: 8px 0 5px;
    display: none;
}

.gwp-filter-content.active {
    display: block;
}

.gwp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gwp-category-list li {
    margin-bottom: 6px;
}

.gwp-category-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    color: #555;
    font-weight: 400;
}

.gwp-category-list input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.gwp-count {
    margin-left: auto;
    color: #aaa;
    font-size: 10px;
}

.gwp-price-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gwp-price-inputs input {
    padding: 8px;
    border: 1px solid #e5e5e5;
    font-size: 11px;
    border-radius: 2px;
}

.gwp-price-apply {
    padding: 8px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
    border-radius: 2px;
}

.gwp-price-apply:hover {
    background: #333;
}

#gwp-search-name {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e5e5;
    font-size: 11px;
    border-radius: 2px;
}

.gwp-clear-filters {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #000;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 15px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.gwp-clear-filters:hover {
    background: #f5f5f5;
    border-color: #000;
}

.gwp-sidebar-banner {
    margin-top: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.gwp-sidebar-banner a {
    display: block;
}

.gwp-sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.gwp-sidebar-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Main Content */
.gwp-main-content {
    flex: 1;
}

.gwp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.gwp-results-count {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.gwp-sort-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gwp-sort-select label {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.gwp-sort-select select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

/* Products Grid */
.gwp-products-wrapper {
    display: flex;
    gap: 30px;
}

.gwp-products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    grid-auto-rows: minmax(100px, auto);
    grid-auto-flow: dense;
}

.gwp-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.gwp-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.gwp-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Product Card */
.gwp-product-card {
    background: #fff;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gwp-product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1;
}

.gwp-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

.gwp-product-image-main {
    opacity: 1;
}

.gwp-product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.gwp-product-card:hover .gwp-product-image-main {
    opacity: 0;
    transform: scale(1.03);
}

.gwp-product-card:hover .gwp-product-image-hover {
    opacity: 1;
    transform: scale(1.03);
}

.gwp-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}

.gwp-sold-out-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c62828;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gwp-add-to-cart--sold-out,
.gwp-add-to-cart:disabled {
    background: #9e9e9e !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 1;
}

.gwp-add-to-cart--sold-out:hover,
.gwp-add-to-cart:disabled:hover {
    background: #9e9e9e !important;
    color: #fff !important;
}

.gwp-product-info {
    padding: 18px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gwp-product-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gwp-product-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gwp-product-title a:hover {
    color: #DEFFC2;
}

.gwp-product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.gwp-product-description p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.gwp-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.gwp-stars {
    display: flex;
    gap: 1px;
}

.gwp-star {
    font-size: 13px;
}

.gwp-star-full {
    color: #FFC107;
}

.gwp-star-half {
    color: #FFC107;
    opacity: 0.5;
}

.gwp-star-empty {
    color: #d0d0d0;
}

.gwp-review-count {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.gwp-product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.gwp-product-description p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.gwp-product-extras {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.gwp-extra-tag {
    padding: 0;
    background: transparent;
    font-size: 11px;
    color: #666;
    border: none;
    line-height: 1.3;
    display: block;
}

.gwp-product-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 3px;
    margin-top: auto;
}

.gwp-product-installment {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.gwp-product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.gwp-add-to-cart {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.gwp-add-to-cart:hover {
    background: #333;
}

.gwp-view-details {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.gwp-view-details:hover {
    background: #000;
    color: #fff;
}

/* Banner Column */
.gwp-banner-column {
    flex: 0 0 280px;
    width: 280px;
}

.gwp-banner-sticky {
    position: sticky;
    top: 20px;
    width: 280px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.gwp-banner-sticky img {
    width: 280px;
    height: 570px;
    object-fit: cover;
    display: block;
}

.gwp-banner-sticky a {
    display: block;
}

.gwp-banner-sticky:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Banner Inline (entre produtos) */
.gwp-banner-inline {
    background: transparent;
    padding: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.gwp-banner-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gwp-banner-inline a {
    display: block;
    height: 100%;
}

.gwp-banner-inline a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwp-banner-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Loading */
.gwp-loading {
    text-align: center;
    padding: 40px;
}

.gwp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: gwp-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes gwp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gwp-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #999;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1200px) {
    .gwp-products-grid {
        order: 1;
    }
    
    .gwp-banner-column {
        flex: 1;
        width: 100%;
        max-width: 600px;
        margin: 30px auto 0;
        order: 2;
        display: block;
    }
    
    .gwp-banner-sticky {
        position: static;
        width: 100%;
    }
    
    .gwp-banner-sticky img {
        width: 100%;
        height: auto;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .gwp-products-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .gwp-container {
        flex-direction: column;
    }
    
    .gwp-sidebar {
        position: static;
        flex: 1;
        max-width: 100%;
    }
    
    .gwp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gwp-products-grid {
        grid-template-columns: 1fr;
    }
    
    .gwp-banner-column {
        width: 100%;
        max-width: 600px;
        margin: 24px auto 0;
        order: 2;
        display: block;
    }
    
    .gwp-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    /* Filtros retraídos no mobile */
    .gwp-sidebar {
        padding: 15px;
    }
    
    .gwp-sidebar-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .gwp-filter-group {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .gwp-filter-toggle {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .gwp-toggle-icon {
        font-size: 9px;
    }
    
    .gwp-filter-content {
        padding: 6px 0 3px;
    }
    
    .gwp-category-list li {
        margin-bottom: 5px;
    }
    
    .gwp-category-list label {
        font-size: 10px;
    }
    
    .gwp-category-list input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }
    
    .gwp-count {
        font-size: 9px;
    }
    
    .gwp-price-inputs {
        gap: 6px;
    }
    
    .gwp-price-inputs input,
    #gwp-search-name,
    .gwp-price-apply {
        padding: 7px;
        font-size: 10px;
    }
    
    .gwp-clear-filters {
        padding: 8px;
        font-size: 10px;
        margin-top: 10px;
    }
    
    /* Filtros começam fechados no mobile */
    .gwp-filter-content.active {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Horizontal Layout Styles */
.gwp-container-horizontal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: transparent;
}

.gwp-horizontal-filters {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 18px;
    margin-bottom: 30px;
    border-radius: 2px;
}

.gwp-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.gwp-filter-horizontal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gwp-filter-horizontal label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.3px;
}

.gwp-horizontal-select,
.gwp-horizontal-input {
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    font-size: 11px;
    min-width: 160px;
    background: #fff;
    border-radius: 2px;
}

.gwp-horizontal-clear {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
    align-self: flex-end;
    border-radius: 2px;
}

.gwp-horizontal-clear:hover {
    background: #333;
}

.gwp-horizontal-results {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.gwp-horizontal-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .gwp-horizontal-products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gwp-grid-columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .gwp-horizontal-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gwp-grid-columns-3,
    .gwp-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .gwp-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gwp-filter-horizontal {
        width: 100%;
    }
    
    .gwp-horizontal-select,
    .gwp-horizontal-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gwp-horizontal-products {
        grid-template-columns: 1fr;
    }
    
    .gwp-grid-columns-2,
    .gwp-grid-columns-3,
    .gwp-grid-columns-4 {
        grid-template-columns: 1fr !important;
    }
    
    /* Filtros horizontais compactos no mobile */
    .gwp-horizontal-filters {
        padding: 15px;
    }
    
    .gwp-filters-row {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .gwp-filter-horizontal {
        gap: 5px;
    }
    
    .gwp-filter-horizontal label {
        font-size: 10px;
    }
    
    .gwp-horizontal-select,
    .gwp-horizontal-input {
        padding: 7px 8px;
        font-size: 10px;
        min-width: 100%;
    }
    
    .gwp-horizontal-clear {
        padding: 7px 12px;
        font-size: 10px;
    }
    
    .gwp-horizontal-results {
        font-size: 12px;
        padding-top: 10px;
    }
}

/* Simple Grid Layout (Sem Filtros) */
.gwp-container-simple {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: transparent;
}

.gwp-simple-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .gwp-simple-products.gwp-grid-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gwp-simple-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gwp-simple-products {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Modal do carrinho (v1.3.1)
   Os seletores usam #gwp-cart-modal e !important nos botões para que o
   CSS do tema (que costuma estilizar button/a) não deforme o visual.
   ========================================================================= */
#gwp-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

#gwp-cart-modal[style*="display: none"] {
    display: none !important;
}

#gwp-cart-modal *,
#gwp-cart-modal *::before,
#gwp-cart-modal *::after {
    box-sizing: border-box;
}

#gwp-cart-modal .gwp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: gwp-fade-in 0.25s ease both;
}

#gwp-cart-modal .gwp-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    outline: 0;
    animation: gwp-pop-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#gwp-cart-modal.is-closing .gwp-modal-overlay {
    animation: gwp-fade-out 0.2s ease both;
}

#gwp-cart-modal.is-closing .gwp-modal-content {
    animation: gwp-pop-out 0.2s ease both;
}

@keyframes gwp-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes gwp-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes gwp-pop-in   { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes gwp-pop-out  { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* Botão X */
#gwp-cart-modal .gwp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #8a8a8a !important;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#gwp-cart-modal .gwp-modal-close:hover,
#gwp-cart-modal .gwp-modal-close:focus {
    background: #f2f2f2 !important;
    color: #111 !important;
}

/* Enquanto adiciona, não há como fechar */
#gwp-cart-modal[data-state="loading"] .gwp-modal-close {
    display: none !important;
}

#gwp-cart-modal .gwp-modal-body {
    padding: 34px 26px 24px;
    text-align: center;
}

/* Carregando */
#gwp-cart-modal .gwp-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 10px 0 6px;
}

#gwp-cart-modal .gwp-modal-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #ececec;
    border-top-color: #111;
    animation: gwp-spin 0.75s linear infinite;
}

@keyframes gwp-spin { to { transform: rotate(360deg); } }

#gwp-cart-modal .gwp-modal-loading p {
    margin: 0;
    font-size: 14px;
    color: #6b6b6b;
}

/* Sucesso / erro */
#gwp-cart-modal .gwp-modal-success,
#gwp-cart-modal .gwp-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gwp-cart-modal .gwp-modal-check {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    animation: gwp-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#gwp-cart-modal .gwp-modal-check svg {
    display: block;
    width: 64px;
    height: 64px;
    overflow: visible;
}

#gwp-cart-modal .gwp-check-circle {
    fill: none;
    stroke: #16a34a;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: gwp-draw 0.5s ease 0.1s forwards;
}

#gwp-cart-modal .gwp-check-mark {
    fill: none;
    stroke: #16a34a;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: gwp-draw 0.3s ease 0.55s forwards;
}

#gwp-cart-modal .gwp-check-mark--2 {
    animation-delay: 0.75s;
}

#gwp-cart-modal .gwp-check-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #16a34a;
    opacity: 0;
    animation: gwp-ring 0.7s ease-out 0.6s forwards;
}

#gwp-cart-modal .gwp-modal-check--error .gwp-check-circle,
#gwp-cart-modal .gwp-modal-check--error .gwp-check-mark {
    stroke: #dc2626;
}

@keyframes gwp-draw { to { stroke-dashoffset: 0; } }
@keyframes gwp-icon-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes gwp-ring { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }

/* Textos e botões entram em sequência */
#gwp-cart-modal .gwp-fade-up {
    opacity: 0;
    transform: translateY(8px);
    animation: gwp-fade-up 0.4s ease forwards;
}

#gwp-cart-modal .gwp-modal-title { animation-delay: 0.45s; }
#gwp-cart-modal .gwp-modal-item { animation-delay: 0.55s; }
#gwp-cart-modal .gwp-error-message { animation-delay: 0.55s; }
#gwp-cart-modal .gwp-modal-actions { animation-delay: 0.65s; }

@keyframes gwp-fade-up { to { opacity: 1; transform: none; } }

#gwp-cart-modal .gwp-modal-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

#gwp-cart-modal .gwp-error-message {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
}

/* Produto adicionado */
#gwp-cart-modal .gwp-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 16px 0 20px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    text-align: left;
}

#gwp-cart-modal .gwp-modal-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

#gwp-cart-modal .gwp-modal-item-info {
    flex: 1;
    min-width: 0;
}

#gwp-cart-modal .gwp-modal-product {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#gwp-cart-modal .gwp-modal-count {
    margin: 3px 0 0;
    font-size: 12px;
    color: #6b6b6b;
}

#gwp-cart-modal .gwp-modal-count:empty {
    display: none;
}

/* Botões compactos e consistentes (independentes do tema) */
#gwp-cart-modal .gwp-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin: 0;
}

#gwp-cart-modal .gwp-error-title + .gwp-error-message + .gwp-modal-actions {
    margin-top: 18px;
}

#gwp-cart-modal .gwp-modal-btn {
    flex: 1 1 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}

#gwp-cart-modal .gwp-modal-btn--primary,
#gwp-cart-modal .gwp-modal-btn--primary:visited {
    background: #111 !important;
    border: 1.5px solid #111 !important;
    color: #fff !important;
}

#gwp-cart-modal .gwp-modal-btn--primary:hover,
#gwp-cart-modal .gwp-modal-btn--primary:focus,
#gwp-cart-modal .gwp-modal-btn--primary:active {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

#gwp-cart-modal .gwp-modal-btn--ghost {
    background: #fff !important;
    border: 1.5px solid #d6d6d6 !important;
    color: #111 !important;
}

#gwp-cart-modal .gwp-modal-btn--ghost:hover,
#gwp-cart-modal .gwp-modal-btn--ghost:focus,
#gwp-cart-modal .gwp-modal-btn--ghost:active {
    background: #f6f6f6 !important;
    border-color: #111 !important;
    color: #111 !important;
}

#gwp-cart-modal .gwp-modal-btn:focus-visible,
#gwp-cart-modal .gwp-modal-close:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: 2px;
}

@media (max-width: 380px) {
    #gwp-cart-modal .gwp-modal-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    #gwp-cart-modal *,
    #gwp-cart-modal *::before,
    #gwp-cart-modal *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================================
   v1.2.0 — carregar mais, chips de filtros ativos, estados de carregamento
   ========================================================================= */

/* Botão de compra: estados */
.gwp-add-to-cart {
    position: relative;
    font-family: inherit;
}

.gwp-add-to-cart.gwp-is-loading {
    opacity: 0.7;
    cursor: progress;
}

.gwp-add-to-cart:focus-visible,
.gwp-view-details:focus-visible,
.gwp-load-more:focus-visible,
.gwp-chip:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Produtos variáveis: link "Ver opções" com a mesma aparência do botão */
a.gwp-add-to-cart.gwp-select-options {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

a.gwp-add-to-cart.gwp-select-options:hover {
    color: #fff;
}

/* O formulário do botão não pode alterar o layout */
.gwp-cart-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* O WooCommerce adiciona um link "Ver carrinho" depois do botão: o modal já faz isso */
.gwp-cart-form + .added_to_cart,
.gwp-product-buttons .added_to_cart {
    display: none !important;
}

/* Grid ocupado (filtrando) */
.gwp-grid-busy {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Carregar mais */
.gwp-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 36px 0 8px;
}

.gwp-load-more {
    min-width: 240px;
    padding: 14px 32px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gwp-load-more:hover:not(:disabled) {
    background: #000;
    color: #fff;
}

.gwp-load-more:disabled {
    opacity: 0.6;
    cursor: progress;
}

/* Chips de filtros ativos */
.gwp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 20px;
}

.gwp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #000;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gwp-chip:hover {
    background: #eaeaea;
    border-color: #bdbdbd;
}

.gwp-chip-clear {
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    font-weight: 500;
}

.gwp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.gwp-empty-clear {
    background: none;
    border: none;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.gwp-container-horizontal .gwp-active-filters {
    margin: 14px 0 0;
}

/* =========================================================================
   Modal do carrinho: sugestão "Levar junto" e "Carrinho pronto" (v1.4.0)
   ========================================================================= */
#gwp-cart-modal .gwp-suggest {
    width: 100%;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px dashed #cfcfcf;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    animation-delay: 0.65s;
}

#gwp-cart-modal .gwp-has-suggest .gwp-modal-actions {
    animation-delay: 0.8s;
}

#gwp-cart-modal .gwp-suggest-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

#gwp-cart-modal .gwp-suggest-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

#gwp-cart-modal .gwp-suggest-text strong {
    color: #111;
}

#gwp-cart-modal .gwp-suggest-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

#gwp-cart-modal .gwp-suggest-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

#gwp-cart-modal .gwp-suggest-info {
    flex: 1;
    min-width: 0;
}

#gwp-cart-modal .gwp-suggest-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#gwp-cart-modal .gwp-suggest-price {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

#gwp-cart-modal .gwp-suggest-add {
    flex: 0 0 auto;
    height: 38px !important;
    padding: 0 16px !important;
}

#gwp-cart-modal .gwp-suggest-add.gwp-is-loading {
    opacity: 0.75;
    cursor: progress;
}

#gwp-cart-modal .gwp-suggest-error {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #b91c1c;
}

@media (max-width: 380px) {
    #gwp-cart-modal .gwp-suggest-card {
        flex-wrap: wrap;
    }
    #gwp-cart-modal .gwp-suggest-add {
        flex: 1 1 100%;
    }
}

/* Carrinho pronto */
#gwp-cart-modal .gwp-modal-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gwp-cart-modal .gwp-ready-text {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6b6b6b;
    animation-delay: 0.5s;
}

#gwp-cart-modal .gwp-ready-items {
    width: 100%;
    margin: 16px 0 0;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    text-align: left;
    animation-delay: 0.58s;
}

#gwp-cart-modal .gwp-ready-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

#gwp-cart-modal .gwp-ready-item + .gwp-ready-item {
    border-top: 1px solid #eee;
}

#gwp-cart-modal .gwp-ready-item img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

#gwp-cart-modal .gwp-ready-item span {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
}

#gwp-cart-modal .gwp-ready-count {
    margin: 10px 0 18px;
    font-size: 12.5px;
    color: #6b6b6b;
    animation-delay: 0.66s;
}

#gwp-cart-modal .gwp-ready-count:empty {
    display: none;
}

#gwp-cart-modal .gwp-modal-ready .gwp-modal-actions {
    animation-delay: 0.72s;
}

#gwp-cart-modal .gwp-modal-checkout,
#gwp-cart-modal .gwp-modal-checkout:visited {
    background: #111 !important;
    border: 1.5px solid #111 !important;
    color: #fff !important;
}

#gwp-cart-modal .gwp-modal-checkout:hover,
#gwp-cart-modal .gwp-modal-checkout:focus,
#gwp-cart-modal .gwp-modal-checkout:active {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
}
