/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/*
Mother template category card controls.
For a new vertical store, change only these variables to match the brand palette.
Keep values high-contrast because translated category names can become longer.
*/
body {
  --yc-category-area-bg: #f6faf5;
  --yc-category-card-bg: #fbfdf9;
  --yc-category-card-border: #dce7de;
  --yc-category-title-panel-bg: #fbfdf9;
  --yc-category-title-bg: #ffffff;
  --yc-category-title-text: #17211b;
  --yc-category-title-border: #dfe8df;
  --yc-category-title-hover-border: #bfcdbf;
  --yc-category-title-shadow: 0 8px 18px rgba(23, 33, 27, 0.08);
}

.yc-category-grid {
  background: var(--yc-category-area-bg);
}

.yc-category-card {
  background: var(--yc-category-card-bg) !important;
  border-color: var(--yc-category-card-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(23, 33, 27, 0.05);
}

.yc-category-card__body {
  min-height: 72px;
  padding: 14px 12px 16px !important;
  background: var(--yc-category-title-panel-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.yc-category-card strong {
  width: min(100%, 220px);
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--yc-category-title-border);
  border-radius: 999px;
  background: var(--yc-category-title-bg);
  color: var(--yc-category-title-text) !important;
  box-shadow: var(--yc-category-title-shadow);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.yc-category-card:hover strong,
.yc-category-card:focus-visible strong {
  border-color: var(--yc-category-title-hover-border);
  box-shadow: 0 10px 22px rgba(23, 33, 27, 0.12);
}

.yc-category-card img {
  display: block;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .yc-category-card {
    border-radius: 10px !important;
  }

  .yc-category-card__body {
    min-height: 62px;
    padding: 10px 8px 12px !important;
  }

  .yc-category-card strong {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 15px;
  }
}
