/* =========================
   GLOBAL RIBBON STYLING
   ========================= */
.ec-store .grid-product__label {
  top: 10px !important;
  left: 10px !important;
}

.ec-store .grid-product__label .ec-label {
  display: inline-block !important;
  width: auto !important;
  max-width: 90% !important;
  padding: 6px 10px !important;
  background: rgba(112, 145, 218, 0.85) !important;
  backdrop-filter: blur(2px);
  border-radius: 4px !important;
}

.ec-store .grid-product__label .label__text {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2px !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

/* =========================
   GLOBAL STORE CLEANUP
   ========================= */
.ecwid .grid__wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.ecwid .ec-store__content {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* =========================
   PRODUCT PAGE TYPOGRAPHY
   ========================= */
.ecwid .ec-product-details__title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ecwid .ec-product-details__price {
  font-size: 20px;
  font-weight: 500;
  margin-top: 10px;
}

.ecwid .ec-product-details__description {
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
}

/* =========================
   GLOBAL BUTTONS
   ========================= */
.ecwid .ec-button {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ecwid .ec-button--primary {
  background-color: #1f2a44;
  border: none;
}

.ecwid .ec-button--primary:hover {
  background-color: #2c3a5e;
}

/* =========================
   PRODUCT PAGE CLEANUP
   ========================= */
.ecwid .ec-product-details__sidebar {
  border: none;
}

.ecwid .ec-product-gallery {
  margin-bottom: 20px;
}

/* =========================
   STORE GRID / CATEGORY PAGE
   ========================= */
/* Sort / filter area */
.ec-store .grid__sort {
  margin-bottom: 22px !important;
  align-items: center !important;
}

.ec-store .grid-sort__item {
  font-size: 14px !important;
}

.ec-store .ec-filters__title,
.ec-store .ec-filters__summary,
.ec-store .ec-filter__clear,
.ec-store .filters-sticky-bar,
.ec-store .filter-section-sticky-bar {
  display: none !important;
}

/* Keep Ecwid's category layout logic; only tidy spacing */
.ec-store .grid__categories {
  margin-bottom: 34px !important;
}

.ec-store .grid-category__wrap {
  text-align: center !important;
}

.ec-store .grid-category__image {
  display: block !important;
  overflow: hidden !important;
}

.ec-store .grid-category__picture-img {
  transition: transform 0.35s ease !important;
}

.ec-store .grid-category__image:hover .grid-category__picture-img {
  transform: scale(1.03) !important;
}

/* Category labels */
.ec-store .grid-category__title {
  display: block !important;
  margin-top: 10px !important;
  text-align: center !important;
  font-family: "Playfair Display", serif !important;
  text-decoration: none !important;
}

.ec-store .grid-category__title-inner {
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 200 !important;
  color: #222 !important;
}

/* Remove ghost overlay text under category images */
.ec-store .grid-category__shadow {
  display: none !important;
}

/* Featured products heading on store pages */
.ec-store .ec-page-title__featured-products,
.ec-store .ec-page-title.ec-page-title__featured-products {
  display: block !important;
  margin: 8px 0 22px !important;
  text-align: center !important;
}

.ec-store .ec-page-title__featured-products .page-title__name,
.ec-store .ec-page-title.ec-page-title__featured-products .page-title__name {
  display: block !important;
  font-family: "Playfair Display", serif !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: #1a1a1a !important;
}

/* Product grid */
.ec-store .grid__products {
  column-gap: 34px !important;
  row-gap: 34px !important;
}

/* Product images */
.ec-store .grid-product__image {
  margin-bottom: 10px !important;
}

.ec-store .grid-product__image-wrap {
  padding: 0 8px !important;
}

.ec-store .grid-product__picture {
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  margin-top: 0 !important;
}

/* Remove ghost shadow text below product images */
.ec-store .grid-product__shadow {
  display: none !important;
}

/* Product card hierarchy: title -> price */
.ec-store .grid-product__title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}

.ec-store .grid-product__title-inner {
  order: 1 !important;
  font-family: "Playfair Display", serif !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  color: #1d1d1d !important;
  max-width: 240px !important;
}

.ec-store .grid-product__price {
  order: 2 !important;
  margin: 0 !important;
}

.ec-store .grid-product__price-value {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1d1d1d !important;
}

.ec-store .grid-product__subtitle {
  margin-top: 6px !important;
  text-align: center !important;
}

.ec-store .grid-product__subtitle-inner {
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #666 !important;
  max-width: 240px !important;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  .ec-store .grid__categories {
    margin-bottom: 28px !important;
  }
  .ec-store .ec-page-title__featured-products .page-title__name,
.ec-store .ec-page-title.ec-page-title__featured-products .page-title__name {
    font-size: 28px !important;
  }
  .ec-store .grid__products {
    column-gap: 24px !important;
    row-gap: 28px !important;
  }
  .ec-store .grid-product__picture {
    max-width: 170px !important;
  }
  .ec-store .grid-product__title-inner {
    font-size: 16px !important;
    max-width: 210px !important;
  }
  .ec-store .grid-product__price-value {
    font-size: 15px !important;
  }
  .ec-store .grid-product__subtitle-inner {
    font-size: 12px !important;
    max-width: 210px !important;
  }
}

/* Remove emoji from order confirmation title */
.ec-store__confirmation-page .page-title__solid {
  display: none !important;
}
