/* ================================================
   ESPRESSIMO PRODUCT ACCESSORIES WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_product_accessories_proto_v1,
.elementor-widget-espressimo_product_accessories_proto_v1 .elementor-widget-container {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.esp-au {
    background: #f6ede3;
    border-bottom: 1px solid #e6dad4;
    padding: 56px 48px;
    direction: rtl;
}

/* ── Header row ── */
.esp-au__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.esp-au__title {
    font-family: 'Dialect PM', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #522c25;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.esp-au__subtitle {
    font-family: 'Dialect PM', sans-serif;
    font-size: 22px;
    color: #75605a;
    opacity: 1;
    margin: 0;
}

/* ── Starter Bundle promo card ── */
.esp-au__bundle {
    background: #8B3A00;
    color: #fff;
    border-radius: 16px;
    padding: 20px 32px;
    flex-shrink: 0;
    text-align: left;
    min-width: 220px;
    text-decoration: none;
    transition: background-color .15s;
}
/* It's a link — keep it brand on hover/focus (was turning the default link blue). */
.esp-au__bundle:hover,
.esp-au__bundle:focus,
.esp-au__bundle:hover .esp-au__bundle-label,
.esp-au__bundle:hover .esp-au__bundle-title,
.esp-au__bundle:hover .esp-au__bundle-pricing { color: #fff; text-decoration: none; }
.esp-au__bundle:hover { background: #733100; }

.esp-au__bundle-label {
    font-family: 'Dialect PM', sans-serif;
    font-size: 14px;
    opacity: 0.75;
    margin: 0 0 4px 0;
}

.esp-au__bundle-title {
    font-family: 'Dialect PM', sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

.esp-au__bundle-pricing {
    font-family: 'Dialect PM', sans-serif;
    font-size: 20px;
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.esp-au__bundle-orig {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    opacity: 0.6;
    text-decoration: line-through;
    font-size: 17px;
    direction: ltr;
}

.esp-au__bundle-price {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    direction: ltr;
}

/* ── Product grid ── */
.esp-au__grid {
    display: grid;
    grid-template-columns: repeat(var(--esp-au-cols, 4), 1fr);
    gap: 1px;                /* 1px gaps reveal the divider colour */
    border: 1px solid #e6dad4;
    border-radius: 12px;
    overflow: hidden;
    background: #e6dad4;     /* divider colour shown through the gaps */
}

.esp-au__card {
    display: flex;
    flex-direction: column;
    background: #fff9f2;
    position: relative;
    transition: background 0.2s;
}

.esp-au__card:hover {
    background: #f6ede3;
}

.esp-au__card:hover .esp-au__card-title {
    color: #8B3A00;
}

.esp-au__card:hover .esp-au__card-img {
    transform: scale(1.06);
}

@media (max-width: 1024px) {
    .esp-au { padding: 40px 24px; }
    .esp-au__title { font-size: 36px; }
    .esp-au__grid { grid-template-columns: repeat(min(var(--esp-au-cols, 4), 2), 1fr); }
}
@media (max-width: 560px) {
    .esp-au { padding: 28px 16px; }
    /* Stack the header so the big title + bundle card don't overflow the viewport
       (the source of the white strip on small phones). */
    .esp-au__header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 28px;
    }
    .esp-au__title { font-size: 28px; }
    .esp-au__subtitle { font-size: 18px; }
    .esp-au__bundle {
        min-width: 0;          /* was 220px → forced horizontal overflow */
        text-align: right;
    }
    .esp-au__grid { grid-template-columns: 1fr; }
}

/* Badge */
.esp-au__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    background: #8B3A00;
    color: #fff;
    font-family: 'Dialect PM', sans-serif;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Image */
.esp-au__img-wrap {
    position: relative;
    padding-top: 100%; /* 1:1 */
    overflow: hidden;
    background: #f6ede3;
    flex-shrink: 0;
}

.esp-au__card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    mix-blend-mode: multiply;
    padding: 24px;
    box-sizing: border-box;
    display: block;
    transition: transform 0.5s ease;
}

/* Content */
.esp-au__card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    border-top: 1px solid #e6dad4;
}

.esp-au__card-title {
    font-family: 'Dialect PM', sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: #522c25;
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s;
}

.esp-au__card-desc {
    font-family: 'Dialect PM', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #75605a;
    opacity: 1;
    margin: 0;
    flex: 1;
}

/* Footer: price + button */
.esp-au__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e6dad4;
}

.esp-au__card-price {
    font-family: 'Dialect PM', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #522c25;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    direction: ltr;
}

.esp-au__add-btn {
    background: #8B3A00;
    color: #fff;
    font-family: 'Dialect PM', sans-serif;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.esp-au__add-btn:hover {
    background: #a34500;
    color: #fff;
}
