/* ════════════════════════════════════════════════════
   ElectroNow – CMS Content Styles (Unified)
   ════════════════════════════════════════════════════ */

/* ─── Top Message Bar ────────────────────────────── */
.top-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e7e7e7;
    padding: 10px;
    gap: 10px;
    white-space: nowrap;
    margin-top: 5px;
}

@media (min-width: 992px) {
    .top-message {
        flex-direction: row;
    }
}

.top-message svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    transform: translateY(-2px);
}

.top-container {
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    position: relative;
}

/* ─── Categories Container ───────────────────────── */
.categories-container {
    margin: 0 auto;
}

.categories-container-imgs {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (min-width: 992px) {
    .categories-container-imgs {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category {
    width: 100%;
    padding-top: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.category:hover {
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.19), 0 8px 12px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.category h2 {
    position: absolute;
    bottom: -15px;
    font-size: 1.4rem;
}

@media (min-width: 576px) {
    .category h2 {
        bottom: -5px;
    }
}

.categories-container-imgs img {
    position: absolute;
    top: 45%;
    left: 47%;
    transform: translate(-50%, -50%);
    max-width: 95%;
}

/* ─── Dot Button & Yellow Circle ─────────────────── */
.dot-button {
    display: inline-flex;
    width: auto;
    align-items: center;
    border: 2px solid #a39f9f49;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 9px;
    white-space: nowrap;
    max-width: fit-content;
}

.yellow-circle {
    width: 15px;
    height: 15px;
    background-color: #f8d000;
    border-radius: 50px;
    margin-left: 10px;
}

/* ─── Brands ─────────────────────────────────────── */
.brand-intro-title h4 {
    font-size: 1.4rem;
    margin: unset;
    font-weight: bold;
}

.brand-intro-title {
    padding: 10px;
    margin-bottom: 15px;
}

.brand-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: absolute;
    bottom: 10px;
}

.brand-links h5 {
    margin: 2px;
}

.brand-links h5:not(:last-child):after {
    content: "|";
    color: #e3ce44;
    margin-left: 7px;
    font-weight: bold;
}

@media (min-width: 576px) {
    .brand-links h5:not(:last-child):after {
        margin-left: 10px;
    }
}

.brand-links a {
    text-decoration: none;
    color: black;
    font-weight: lighter;
}

.brand-intro {
    font-size: 1.4rem;
    color: #a5a5a5;
    margin: 10px 0 10px;
    min-height: 125px;
}

/* ─── Installation Styles ────────────────────────── */
.yellow-arrow {
    color: #f8d000;
    font-weight: bold;
}

.installation-container {
    display: grid;
    margin: auto;
    position: relative;
}

.installation-container-text {
    width: 75%;
}

.installation-container-img {
    width: 100%;
    position: relative;
}

.installation-container-imgs {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: auto;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    gap: 15px;
    text-align: center;
}

@media (min-width: 576px) {
    .installation-container-imgs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.installation-img-text-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    white-space: nowrap;
}

.installation-img-text-box h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
}

.installation-img-text-box h3:after {
    content: unset;
}

.installation-img-number-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 20px;
    left: 20px;
    color: #f8d000;
    font-size: 30px;
    font-weight: bolder;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    box-sizing: border-box;
}

.installation-container-imgs img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    border-radius: 10px;
}

/* ─── Promo Container ────────────────────────────── */
.promo-container-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

@media (min-width: 576px) {
    .promo-container-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.promos {
    background-color: #e0e0e0;
    border-radius: 10px;
    padding: 0;
    border: 1px solid #ccc;
    text-align: center;
}

.promo img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.double-promo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.double-promo .promo {
    flex: 1;
}

/* ─── Trends & Brands Containers ─────────────────── */
.trends-container,
.brands-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: auto;
    gap: 20px;
    text-align: left;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .trends-container,
    .brands-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trend,
.brand {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    position: relative;
}

.brands-title,
.promos-title {
    grid-column: span 3;
    margin-bottom: 0.5rem !important;
}

.trend-pic img,
.brand-pic img {
    width: 100%;
    min-height: 226px;
}

.trend-intro {
    padding: 10px;
    font-size: 1.4rem;
    color: #a5a5a5;
}

/* Blog container */
.trend-cont-layout-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 576px) {
    .trend-cont-layout-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trend-3-cards img {
    min-height: unset;
}

/* ─── Top Banner ─────────────────────────────────── */
.top-banner {
    width: 100%;
    max-width: 1240px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 7px;
}

/* ─── Layout First Section ───────────────────────── */
.layout-first-section {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    border-radius: 7px;
}

@media (min-width: 768px) {
    .layout-first-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.column-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    box-sizing: border-box;
    max-width: 100%;
    grid-auto-rows: 1fr;
}

@media (min-width: 768px) {
    .column-left {
        grid-template-columns: 1fr 1fr;
    }
}

.column-left a {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.column-left a:hover {
    text-decoration: none;
    color: inherit;
}

/* ─── Card With Shadow ───────────────────────────── */
.card-with-shadow {
    border: 1px solid #f2eeee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: flex-start;
    font-size: 14px;
    transition: box-shadow 0.15s ease, border 0.15s ease;
    overflow: hidden;
    height: 100%;
    border-radius: 7px;
}

.card-with-shadow .card-img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    object-position: top;
    display: block;
    transform: scale(1.04);
}

.card-with-shadow h3 {
    font-size: 14px;
    color: #f8d000;
}

.card-with-shadow h3::after,
.card h3::after {
    content: none;
    display: none;
}

a:hover .card-with-shadow {
    border: 1px solid #c0bcbc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease, border 0.15s ease;
    cursor: pointer;
}

/* Layout first section card overrides */
.layout-first-section .card-with-shadow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    height: 100%;
}

@media (min-width: 768px) {
    .layout-first-section .card-with-shadow {
        flex-direction: column;
        gap: 0;
    }
}

.layout-first-section .card-with-shadow h3 {
    font-size: 14px;
    color: #f8d000;
}

.layout-first-section .card-with-shadow h3::after,
.layout-first-section .feature-content h3::after {
    content: none;
    display: none;
}

a:hover .layout-first-section .card-with-shadow {
    border: 1px solid #c0bcbc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.layout-first-section .card-img {
    width: 45%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 768px) {
    .layout-first-section .card-img {
        width: 100%;
        height: 185px;
        object-position: top;
    }
}

.layout-first-section .card-content {
    width: 55%;
}

@media (min-width: 768px) {
    .layout-first-section .card-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex-grow: 1;
    }
}

/* ─── Image Overlay ──────────────────────────────── */
.overlay-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 7px;
}

.overlay-wrapper .card-img {
    position: relative;
    z-index: 2;
}

.overlay-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    pointer-events: none;
    z-index: 1;
}

.overlay--yellow {
    background-color: rgba(245, 236, 210, 0.6);
}

/* ─── Right Column ───────────────────────────────── */
.column-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.column-right a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.column-right-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.column-right-text-box {
    position: absolute;
    bottom: 20px;
    left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    line-height: 0.6;
    font-size: 15px;
    background-color: #f8d000;
    padding: 14px;
    border-radius: 7px;
}

.column-right-text-box h4 {
    margin: 8px auto;
    font-weight: bolder;
}

/* ─── Row Cards Layout ───────────────────────────── */
.cards-row-layout {
    display: grid;
    grid-template-columns: 1fr;
    box-sizing: border-box;
    padding: 0;
    gap: 10px;
}

@media (min-width: 768px) {
    .cards-row-layout {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cards-row-layout .card-img {
    object-fit: contain;
    transform: scale(1.1);
}

.cards-row-layout a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cards-row-layout a:hover {
    text-decoration: none;
    color: inherit;
}

.cards-row-layout .card-with-shadow {
    height: 300px;
}

/* ─── Divider ────────────────────────────────────── */
.divider {
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #f2eeee;
    margin: 2px 30px;
}

.whole-divider {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.divider-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.5rem;
}

.divider-item a:hover {
    color: #f8d000;
}

.check svg {
    fill: #28a745;
    vertical-align: middle;
}

/* ─── Layout 2 Images ────────────────────────────── */
.layout-2imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.layout-2imgs .card {
    flex: 1 1 600px;
    max-width: 600px;
}

@media (max-width: 767px) {
    .layout-2imgs {
        flex-direction: column;
        gap: 20px;
    }

    .layout-2imgs .card {
        max-width: 400px;
    }
}

.layout-2imgs .card.unfix-height {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.card.unfix-height .card-img {
    height: 200px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 767px) {
    .card.unfix-height .card-img {
        height: 380px;
    }
}

/* ─── Card Base ──────────────────────────────────── */
.card {
    display: flex;
    flex-direction: column;
    border-radius: 7px;
}

.card p {
    margin-top: 16px;
}

.card-img {
    width: 100%;
    border-radius: 7px;
}

/* ─── Layout Text + Image ────────────────────────── */
.column-text-img {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    box-sizing: border-box;
    max-width: 100%;
    grid-auto-rows: 1fr;
}

.column-text-img h3 {
    margin-bottom: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-content ul,
.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* ─── Single Card ────────────────────────────────── */
.single-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px solid #f2eeee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 7px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .single-card {
        max-width: 360px;
    }
}

/* ─── Item List (Logos, Brands) ───────────────────── */
.item-list-container ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    margin: 0;
    margin-top: 20px;
    list-style: none;
}

@media (min-width: 576px) {
    .item-list-container ul {
        grid-template-columns: repeat(6, 1fr);
    }
}

.item-box {
    display: flex;
    padding: 10px;
    background-color: white;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.item-box a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.item-box a:hover {
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.brand-layout-6 {
    padding: 2px;
}

@media (min-width: 576px) {
    .brand-layout-6 img {
        max-width: 75%;
    }
}

/* ─── Custom Button ──────────────────────────────── */
a.card-button {
    display: inline-block;
    background-color: #f8d000;
    color: #000;
    font-weight: bold;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 7px;
}

a.card-button:hover {
    background-color: #f8d000;
    color: #000;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    cursor: pointer;
}

/* ─── Feature List & Circle Icons ────────────────── */
.feature-list li:last-child {
    font-size: 20px;
}

.circle-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
    margin-right: 8px;
}

.icon-plus {
    background-color: #00b050;
}

.icon-minus {
    background-color: #999999;
}

/* ─── FAQ Section ────────────────────────────────── */
.faq-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 7px;
}

@media (min-width: 768px) {
    .faq-section .layout-first-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 20px;
        padding-block: 10px;
    }
}

.faq-section .column-right {
    display: flex;
    flex-direction: column;
    height: auto;
}

.faq-section .faq-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    display: block;
    object-fit: cover;
    border-radius: 7px;
}

.faq-section h2 {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
}

.faq-wrapper details {
    background-color: #fff;
    margin-bottom: 1px;
    padding: 15px 20px;
    position: relative;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.faq-wrapper summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-wrapper summary::after {
    content: "▾";
    font-size: 1.2rem;
    position: absolute;
    right: 0;
    top: 0;
    color: #888;
    transition: transform 0.3s ease;
}

.faq-wrapper details[open] summary::after {
    transform: rotate(180deg);
}

.faq-wrapper p {
    margin-top: 10px;
}

/* ─── Amasty FAQ ─────────────────────────────────── */
.custom-faqs {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 576px) {
    .custom-faqs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.amfaq_questions .am-item {
    border-bottom: unset;
}

.am-title {
    border: solid 1px #d0d0d0;
    padding: 14px;
}

.amfaq_questions .am-title .am-minus:before,
.amfaq_questions .am-title .am-plus:before {
    color: var(--primary);
    font-size: 3rem !important;
    font-weight: bold;
    line-height: 12px !important;
}

.amfaq_questions .am-title {
    margin-bottom: 1rem;
}

.am-content {
    border: solid 1px #a5a5a5;
    padding: 10px;
    border-radius: 5px;
}

/* ─── Categories Layout ──────────────────────────── */
.cat-cont-layout-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 992px) {
    .cat-cont-layout-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.cat-layout-5 {
    padding-top: 60%;
}

.subcat {
    padding: 6%;
    box-shadow: none !important;
}

.subcat h3 {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 1.7rem;
    bottom: -22px;
    text-decoration: none !important;
}

.subcat h3 a {
    text-decoration: none;
}

.subcat h3 a:hover {
    color: var(--amarillo);
    cursor: pointer;
}

/* ─── SEO & Links ────────────────────────────────── */
.local-seo {
    margin-top: 30px;
    text-align: center;
}

a {
    cursor: pointer;
    text-decoration: none !important;
    color: black;
}

.texto-seo a {
    font-weight: 600;
    text-decoration: underline;
}

/* ─── Product Labels ─────────────────────────────── */
.etiqueta-promo {
    position: absolute;
    top: 50px;
    right: 5px;
    z-index: 1;
}

.etiqueta-promo picture,
.etiqueta-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

.etiqueta-cprod {
    position: absolute;
    right: 7px;
    top: 61px;
    z-index: 2;
    max-width: 50px;
}

.etiqueta-cprod-c {
    position: absolute;
    left: 20px;
    top: 45px;
    z-index: 2;
}

img.clase_energetica {
    left: 20px;
}

.etiqueta-ccat {
    position: absolute;
    right: 10px;
    z-index: 4;
    top: -30px;
}

/* ─── Product Boxes ──────────────────────────────── */
li.caja-producto-top {
    border: solid 1px #d0d0d0;
}

li.caja-producto {
    border: solid 1px #d0d0d0;
}

.texto-titulo {
    font-size: 12px;
}

/* ─── Manuales ───────────────────────────────────── */
.manuales-botones {
    display: flex;
}

button.download-manual {
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    display: inline-block;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* ─── Utility Classes ────────────────────────────── */
.mt-6 {
    margin-top: 4rem !important;
}

@media only screen and (max-width: 767px) {
    .d-sm-down-none {
        display: none !important;
    }
}

/* ─── Tablet Overrides ───────────────────────────── */
@media (min-width: 450px) and (max-width: 992px) {
    .d-no-tb {
        display: none !important;
    }

    h5.d-no-after:after {
        content: "" !important;
    }

    .trends-container,
    .brands-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-container-imgs {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ════════════════════════════════════════════════════
   Grid System
   ════════════════════════════════════════════════════ */

/* Base */
.grid-base {
    text-align: center;
    margin: 0;
    display: grid;
    gap: var(--enow-spacing);
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    list-style: none;
}

/* Desktop variants */
.grid-1 { grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-8 { grid-template-columns: repeat(8, 1fr); }

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-m-1 { grid-template-columns: repeat(1, 1fr) !important; }
    .grid-m-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-m-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .grid-m-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .grid-m-5 { grid-template-columns: repeat(5, 1fr) !important; }

    .grid-5,
    .grid-6,
    .grid-8 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .grid-xs-1 { grid-template-columns: repeat(1, 1fr) !important; }
    .grid-xs-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-xs-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .grid-xs-4 { grid-template-columns: repeat(4, 1fr) !important; }

    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6,
    .grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }
}
