/* ==========================================================================
   JAR SHOP — Elementor edition
   Styles the Elementor Loop Grid / Taxonomy Filter / Search on /jar-shop/.
   Colors & typography here are defaults: anything you set in Elementor's
   Style panel overrides them (no !important on colors/fonts).
   ========================================================================== */

/* ---------- Hero ---------- */
.jar-shop-hero { border-bottom: 1px solid #222222; }

.jar-shop-badge .elementor-heading-title {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 50px;
}

.jar-shop-hero .jar-shop-title .elementor-heading-title {
    font-family: 'Cormorant', Garamond, serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.jar-shop-subtitle { max-width: 720px; }
.jar-shop-subtitle p {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Toolbar ---------- */
.jar-shop-toolbar {
    border-bottom: 1px solid #EAEAEA;
    position: relative;
    z-index: 5; /* keep live-search dropdown above the grid */
}

.jar-filter-chips { flex: 1 1 auto; min-width: 0; }

.jar-filter-chips .e-filter { gap: 10px; justify-content: flex-start; }

.jar-filter-chips .e-filter .e-filter-item {
    appearance: none;
    background: #FFFFFF;
    color: #222222;
    border: 1px solid #D8D8D8;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
}

.jar-filter-chips .e-filter .e-filter-item:hover {
    border-color: #000000;
    color: #000000;
    transform: translateY(-1px);
}

.jar-filter-chips .e-filter .e-filter-item[aria-pressed="true"] {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Live search */
.jar-search {
    min-width: 280px;
    --e-search-input-border-radius: 50px;
    --e-search-input-border-color: #D8D8D8;
}

.jar-shop-toolbar .jar-search .e-search-input.e-search-input {
    border: 1px solid #D8D8D8;
    border-radius: 50px;
    background: #FFFFFF;
    color: #111111;
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jar-shop-toolbar .jar-search .e-search-input.e-search-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
    outline: none;
}

.jar-search .e-search-results {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Search result row (Loop Item: "Jar Shop – Search Result") */
.jar-search-item { border-bottom: 1px solid #F0F0F0; transition: background 0.2s ease; }
.jar-search-item:hover { background: #F7F7F7; }
.jar-search-item .jar-search-thumb { width: 56px; flex: 0 0 56px; }
.jar-search-item .jar-search-thumb img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 10px !important;
}
.jar-search-title .elementor-heading-title {
    font-family: 'Cormorant', Garamond, serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.jar-search-title .elementor-heading-title a { color: inherit; }
.jar-search-price .elementor-heading-title { font-size: 13px; font-weight: 700; color: #555555; }

/* Toolbar buttons (override the global pill-button sizing) */
.jar-shop-toolbar .jar-btn-custom-link .elementor-button {
    background: #F0F0F0;
    color: #000000;
    border: 1px solid #000000 !important;
    padding: 11px 22px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.8px !important;
    box-shadow: none !important;
    white-space: nowrap;
}
.jar-shop-toolbar .jar-btn-custom-link .elementor-button:hover {
    background: #000000;
    color: #FFFFFF;
}

/* ---------- Product grid ---------- */
.jar-products-grid .e-loop-item { height: 100%; }

/* Card (Loop Item: "Jar Shop – Product Card") */
.e-con.jar-card {
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}
.e-con.jar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    border-color: #CCCCCC;
}

/* Square image with zoom on hover */
.e-con.jar-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #F8F8F8;
    border-radius: 0;
}
.jar-card-media .jar-card-image,
.jar-card-media .jar-card-image .elementor-widget-container,
.jar-card-media .jar-card-image a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.jar-card-media .jar-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    border-radius: 0 !important; /* card clips the corners */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.jar-card:hover .jar-card-image img { transform: scale(1.06); }

/* Category chip on the image */
.jar-card-media .jar-category-tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    width: auto;
}
.jar-category-tag .elementor-heading-title {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #222222;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
}
.jar-category-tag .elementor-heading-title a { color: inherit; text-decoration: none; }
.jar-category-tag .elementor-heading-title:empty { display: none; }

/* Body */
.e-con.jar-card-body { flex-grow: 1; }

.jar-card-title .elementor-heading-title {
    font-family: 'Cormorant', Garamond, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}
.jar-card-title .elementor-heading-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.jar-card-title .elementor-heading-title a:hover { color: #555555; }

.jar-card-desc { flex-grow: 1; }
.jar-card-desc,
.jar-card-desc p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}
.jar-card-desc p + p { margin-top: 8px; }

.e-con.jar-card-footer {
    border-top: 1px solid #F0F0F0;
    margin-top: auto;
}

.jar-card-price .elementor-heading-title {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #000000;
}
.jar-card-price del { color: #999999; font-weight: 400; font-size: 14px; margin-right: 6px; }
.jar-card-price ins { text-decoration: none; }

/* Card buttons (override the global pill-button sizing) */
.jar-card .jar-btn-cart .elementor-button,
.jar-card .jar-btn-details .elementor-button {
    padding: 9px 16px !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    white-space: nowrap;
    box-shadow: none !important;
}
.jar-card .jar-btn-cart .elementor-button {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #000000 !important;
}
.jar-card .jar-btn-cart .elementor-button:hover {
    background: #333333;
    border-color: #333333 !important;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.jar-card .jar-btn-details .elementor-button {
    background: #F4F4F4;
    color: #333333;
    border: 1px solid #E0E0E0 !important;
}
.jar-card .jar-btn-details .elementor-button:hover {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000 !important;
}

/* Load more + empty state */
.jar-products-grid .e-load-more-anchor + .elementor-button-wrapper .elementor-button,
.jar-products-grid .e-loop__load-more .elementor-button {
    background: #000000;
    color: #FFFFFF;
    margin-top: 16px;
}
.jar-products-grid .e-loop-nothing-found-message {
    text-align: center;
    padding: 60px 20px;
    background: #FAFAFA;
    border: 1px dashed #D8D8D8;
    border-radius: 20px;
    color: #555555;
    font-size: 15px;
}

/* ---------- Custom jar banner ---------- */
.custom-eyebrow .elementor-heading-title {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.jar-banner-title .elementor-heading-title {
    font-family: 'Cormorant', Garamond, serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}
.jar-banner-text p { font-size: 15px; line-height: 1.65; margin: 0; }

.jar-custom-banner .jar-btn-custom-cta .elementor-button {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #FFFFFF !important;
    padding: 16px 32px !important;
    font-size: 13px !important;
    white-space: nowrap;
}
.jar-custom-banner .jar-btn-custom-cta .elementor-button:hover {
    background: #000000;
    color: #FFFFFF;
}

/* ---------- Values ---------- */
.jar-values > .e-con-inner > .jar-value-item,
.jar-values > .jar-value-item { flex: 1 1 0; min-width: 0; }

.jar-value-item .elementor-icon-box-wrapper { padding: 24px 16px; }
.jar-value-item .elementor-icon { font-size: 28px; }
.jar-value-item .elementor-icon-box-title {
    font-family: 'Cormorant', Garamond, serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.jar-value-item .elementor-icon-box-description { font-size: 13.5px; line-height: 1.6; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .jar-search { min-width: 0; width: 100%; }
    .jar-shop-toolbar .jar-btn-custom-link .elementor-button { width: 100%; justify-content: center; }
    .jar-card .jar-card-actions { width: 100%; }
    .jar-card .jar-btn-cart,
    .jar-card .jar-btn-details { flex: 1 1 0; }
    .jar-card .jar-btn-cart .elementor-button,
    .jar-card .jar-btn-details .elementor-button { width: 100%; justify-content: center; }
}

/* Mobile hero side spacing */
@media (max-width: 767px) {
    .e-con.jar-shop-hero { padding-left: 20px; padding-right: 20px; }
    .jar-shop-hero .jar-shop-subtitle { max-width: 100%; }
}
