/* ============================================================
   G7 Home Page Enhancement v8.5 - Casa Portum
   - Hero banner section
   - Trust bar (4 signals)
   - 4-column product grid (was 5)
   - Filled add-to-cart button (was outline)
   - Compare icon hidden
   - Improved card hover effects
   - Newsletter letter-spacing fix
   - Pagination styling
   ============================================================ */

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.g7-home-hero {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 64px 24px 56px;
    position: relative;
    overflow: hidden;
}
.g7-home-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -5%;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,117,31,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.g7-home-hero::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -5%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,117,31,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.g7-home-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.g7-home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,117,31,0.12);
    border: 1px solid rgba(255,117,31,0.25);
    color: #FF751F;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}
.g7-home-hero__title {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.8px;
}
.g7-home-hero__title em {
    color: #FF751F;
    font-style: normal;
}
.g7-home-hero__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 460px;
}
.g7-home-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.g7-home-hero__btn-primary {
    background: #FF751F;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 24px rgba(255,117,31,0.45);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.g7-home-hero__btn-primary:hover {
    background: #E5641A;
    box-shadow: 0 6px 32px rgba(255,117,31,0.6);
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none !important;
}
.g7-home-hero__btn-secondary {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.88) !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.g7-home-hero__btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.38);
    color: #fff !important;
    text-decoration: none !important;
}
.g7-home-hero__props {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.g7-home-prop {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 12.5px;
    font-weight: 500;
}
.g7-home-prop svg { color: #FF751F; flex-shrink: 0; }

/* Hero visual: 3-image mosaic */
.g7-home-hero__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
}
.g7-home-hero__img-item {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.28);
}
.g7-home-hero__img-item.g7-hero-img-large { grid-row: span 2; }
.g7-home-hero__img-item img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .g7-home-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .g7-home-hero__visual { grid-template-rows: 130px 130px; max-width: 360px; margin: 0 auto; }
    .g7-home-hero__title { font-size: 28px; }
}
@media (max-width: 600px) {
    .g7-home-hero { padding: 36px 18px; }
    .g7-home-hero__visual { display: none; }
    .g7-home-hero__ctas { flex-direction: column; gap: 10px; }
    .g7-home-hero__btn-primary, .g7-home-hero__btn-secondary { justify-content: center; }
    .g7-home-hero__desc { font-size: 14.5px; margin-bottom: 22px; }
}

/* ============================================================
   2. TRUST BAR
   ============================================================ */
.g7-trust-bar { background: #fff; border-bottom: 2px solid #F0F0F0; }
.g7-trust-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    padding: 0 24px;
}
.g7-trust-bar__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-right: 1px solid #F0F0F0;
}
.g7-trust-bar__item:last-child { border-right: none; }
.g7-trust-bar__icon {
    width: 38px; height: 38px; min-width: 38px;
    background: rgba(255,117,31,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.g7-trust-bar__icon svg { width: 18px; height: 18px; color: #FF751F; }
.g7-trust-bar__text { font-size: 12.5px; color: #1a1a1a; font-weight: 700; line-height: 1.25; }
.g7-trust-bar__text small { display: block; font-size: 11px; font-weight: 400; color: #888; margin-top: 2px; }

@media (max-width: 700px) {
    .g7-trust-bar__inner { flex-wrap: wrap; padding: 0 16px; }
    .g7-trust-bar__item {
        flex: 0 0 50%;
        border-right: 1px solid #F0F0F0;
        border-bottom: 1px solid #F0F0F0;
        padding: 12px 10px; gap: 8px;
    }
    .g7-trust-bar__item:nth-child(2n) { border-right: none; }
    .g7-trust-bar__item:nth-last-child(-n+2) { border-bottom: none; }
    .g7-trust-bar__icon { width: 32px; height: 32px; min-width: 32px; }
    .g7-trust-bar__icon svg { width: 15px; height: 15px; }
}

/* ============================================================
   3. PRODUCT GRID
   ============================================================ */
/* 4 columns instead of 5 */
body.home ul.products.elementor-grid.columns-5,
body.home ul.products.columns-5 {
    grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1100px) {
    body.home ul.products.elementor-grid.columns-5,
    body.home ul.products.columns-5 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
    body.home ul.products.elementor-grid.columns-5,
    body.home ul.products.columns-5 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Card base */
body.home ul.products li.product {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    background: #fff !important;
    border: 1px solid #EBEBEB !important;
    display: flex !important;
    flex-direction: column !important;
}
body.home ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12) !important;
    border-color: rgba(255,117,31,0.25) !important;
}

/* Product image */
body.home ul.products li.product img.attachment-woocommerce_thumbnail {
    background: #F7F7F7 !important;
    object-fit: contain !important;
    padding: 16px !important;
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    height: auto !important;
    border-bottom: 1px solid #F0F0F0 !important;
    transition: transform 0.35s ease !important;
}
body.home ul.products li.product:hover img.attachment-woocommerce_thumbnail {
    transform: scale(1.05) !important;
}

/* Product title */
body.home ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #2D2D2D !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    padding: 14px 14px 4px !important;
    margin: 0 !important;
    min-height: 56px !important;
}

/* Price */
body.home ul.products li.product .price {
    padding: 2px 14px 10px !important;
    margin: 0 !important;
}
body.home ul.products li.product .price .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.3px;
}
body.home ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 600 !important;
    vertical-align: top !important;
    margin-top: 3px !important;
    display: inline-block !important;
}

/* Buttons row */
body.home ul.products li.product .woocommerce-loop-product__buttons {
    padding: 6px 14px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: auto !important;
}

/* Icon buttons (wishlist + quickview) */
body.home ul.products li.product .se-btn {
    width: 38px !important; height: 38px !important; min-width: 38px !important;
    border-radius: 8px !important;
    border: 1.5px solid #E8E8E8 !important;
    background: #fff !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: all 0.18s ease !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}
body.home ul.products li.product .se-btn i {
    color: #C0C0C0 !important;
    font-size: 14px !important;
    transition: color 0.18s !important;
}
body.home ul.products li.product .shopengine-wishlist:hover,
body.home ul.products li.product .shopengine-wishlist.active {
    border-color: #e74c3c !important;
    background: rgba(231,76,60,0.05) !important;
}
body.home ul.products li.product .shopengine-wishlist:hover i,
body.home ul.products li.product .shopengine-wishlist.active i { color: #e74c3c !important; }
body.home ul.products li.product .shopengine-quickview-trigger:hover {
    border-color: #FF751F !important;
    background: rgba(255,117,31,0.05) !important;
}
body.home ul.products li.product .shopengine-quickview-trigger:hover i { color: #FF751F !important; }

/* HIDE compare button */
body.home ul.products li.product .shopengine-comparison,
body.home ul.products li.product .shopengine_comparison_add_to_list_action,
body.home ul.products li.product a[class*="shopengine-comparison"] { display: none !important; }

/* Add to cart — dark filled, hover orange */
body.home ul.products li.product a.add_to_cart_button,
body.home ul.products li.product a.button.product_type_simple,
body.home ul.products li.product a.button.product_type_variable {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    flex: 1 !important;
    text-align: center !important;
    transition: background 0.2s, transform 0.15s !important;
    cursor: pointer !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body.home ul.products li.product a.add_to_cart_button:hover,
body.home ul.products li.product a.button.product_type_simple:hover {
    background: #FF751F !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}
body.home ul.products li.product a.add_to_cart_button.added,
body.home ul.products li.product a.add_to_cart_button.loading { background: #FF751F !important; }
body.home ul.products li.product .woocommerce-LoopProduct-link { text-decoration: none !important; display: block !important; }

/* ============================================================
   4. "Em destaque" SECTION HEADING
   ============================================================ */
.elementor-element-6175dea .elementor-heading-title,
.elementor-element-ab4afd1 .elementor-heading-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.5px !important;
}

/* ============================================================
   5. NEWSLETTER — fix letter-spacing
   ============================================================ */
body.home .elementor-element-2fc4b3f8 input.elementor-field-textual,
body.home .elementor-element-2fc4b3f8 input[type="email"] {
    letter-spacing: 0 !important;
    font-size: 15px !important;
}
body.home .elementor-element-2fc4b3f8 input::placeholder { letter-spacing: 0 !important; }

/* ============================================================
   6. PAGINATION
   ============================================================ */
body.home .woocommerce-pagination { display: flex !important; justify-content: center !important; padding: 12px 0 28px !important; }
body.home .woocommerce-pagination .page-numbers {
    display: flex !important; gap: 5px !important; list-style: none !important;
    padding: 0 !important; margin: 0 !important; flex-wrap: wrap !important;
    justify-content: center !important; align-items: center !important;
}
body.home .woocommerce-pagination li { list-style: none !important; }
body.home .woocommerce-pagination .page-numbers a,
body.home .woocommerce-pagination .page-numbers span {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-width: 40px !important; height: 40px !important; padding: 0 8px !important;
    border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important;
    text-decoration: none !important; transition: all 0.18s !important;
    border: 2px solid #E8E8E8 !important; background: #fff !important; color: #555 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
body.home .woocommerce-pagination .page-numbers a:hover {
    background: #FF751F !important; color: #fff !important;
    border-color: #FF751F !important; box-shadow: 0 3px 12px rgba(255,117,31,0.3) !important;
}
body.home .woocommerce-pagination .page-numbers .current {
    background: #FF751F !important; color: #fff !important;
    border-color: #FF751F !important; box-shadow: 0 3px 12px rgba(255,117,31,0.3) !important;
}
