@layer sections {
  [ui-section=slideshow], .vm-section, [ui-section=image-with-text], [ui-section=rich-text], [ui-section=faqs], [ui-layout=footer] { font-family: Cairo, sans-serif; color: #202020; }
  [ui-section=slideshow] { background: #fff; }
  [ui-section=slideshow] [ui-slot=carousel] { padding-inline: clamp(16px, 5vw, 80px); }
  [ui-section=slideshow] [ui-slot=carousel] [ui-slot=carousel-item] .media { border-radius: 0; background: #f8f6f5; }
  [ui-section=slideshow] [ui-slot=carousel] [ui-slot=carousel-item] .content { padding: clamp(24px, 6vw, 96px); }
  [ui-section=slideshow] .heading { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.25; font-weight: 700; }
  [ui-section=slideshow] [data-has-image=false] .content { color: #202020 !important; }
  [ui-section=slideshow] .description { font-size: clamp(.95rem, 1.4vw, 1.2rem); }

  .vm-section { background: var(--vm-bg, #fff); color: var(--vm-text, #202020); padding-block: var(--vm-padding, clamp(40px, 5vw, 72px)); }
  .vm-section:nth-of-type(even) { background: var(--vm-bg, #f8f6f5); }
  .vm-wrap { width: min(var(--vm-width, 1360px), calc(100% - 48px)); margin-inline: auto; }
  .vm-heading { margin-block-end: 28px; text-align: var(--vm-align, start); }
  .vm-heading p { margin: 0 0 8px; color: var(--vm-accent, #762d43); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
  .vm-heading h2 { margin: 0; font-size: var(--vm-heading-size, clamp(1.65rem, 3vw, 2.5rem)); line-height: 1.3; font-weight: 800; color: var(--vm-text, #202020); }

  /* Base Grids */
  .vm-collection-grid, .vm-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--vm-mobile-columns, 2), minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 20px);
  }

  /* Responsive Grids: Tablet (700px - 1049px) -> strictly 3 columns */
  @media (min-width: 700px) and (max-width: 1049px) {
    .vm-collection-grid,
    .vm-product-grid,
    .vm-products .vm-product-grid,
    .vm-products.vm-products--featured .vm-product-grid,
    .vm-collections .vm-collection-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: clamp(12px, 2vw, 22px);
    }
  }

  /* Responsive Grids: Desktop (>= 1050px) -> 4 columns */
  @media (min-width: 1050px) {
    .vm-collection-grid,
    .vm-product-grid,
    .vm-products .vm-product-grid,
    .vm-products.vm-products--featured .vm-product-grid,
    .vm-collections .vm-collection-grid {
      grid-template-columns: repeat(var(--vm-desktop-columns, 4), minmax(0, 1fr)) !important;
      gap: clamp(16px, 2vw, 26px);
    }
  }

  /* Mobile Grid (< 700px) -> strictly 2 compact columns */
  @media (max-width: 699px) {
    .vm-wrap { width: calc(100% - 24px); }
    .vm-section { padding-block: var(--vm-mobile-padding, 32px); }
    .vm-heading { margin-block-end: 18px; }
    .vm-heading h2 { font-size: var(--vm-mobile-heading-size, 1.45rem); }
    .vm-collection-grid,
    .vm-product-grid,
    .vm-products .vm-product-grid,
    .vm-products.vm-products--featured .vm-product-grid,
    .vm-collections .vm-collection-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important;
    }
  }

  /* Collection Cards */
  .vm-collection { min-width: 0; text-decoration: none; color: var(--vm-text, #161514); font-weight: 700; }
  .vm-collection-image { display: block; aspect-ratio: var(--vm-image-ratio, 4/5); overflow: hidden; background: #eee9e8; border-radius: var(--vm-card-radius, 14px); }
  .vm-collection img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
  .vm-collection:hover img { transform: scale(1.025); }
  .vm-collection span { display: block; margin-block-start: 12px; font-size: clamp(.88rem, 1.3vw, 1.1rem); }

  /* Product Cards - Mobile-First Minimal Design */
  .vm-product {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .vm-product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-block-size: 48px;
    outline: none;
    border-radius: 14px;
    transition: opacity .15s ease;
  }
  .vm-product-link:focus-visible {
    outline: 3px solid var(--brand-color, #A02149);
    outline-offset: 3px;
  }
  .vm-product-media {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #EADCE0;
    border-radius: 14px;
    border: none;
    box-shadow: none;
    position: relative;
  }
  .vm-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .25s ease;
  }
  .vm-product-link:hover .vm-product-media img {
    transform: scale(1.025);
  }
  .vm-product-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EADCE0;
    border-radius: 14px;
  }
  .vm-product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
  }
  .vm-product-title {
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #161514;
    font-family: 'Cairo', sans-serif !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    inline-size: 100%;
    max-inline-size: 100%;
    line-height: 1.35;
    text-align: start;
  }
  .vm-product-price {
    margin: 2px 0 0;
    padding: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-color, #A02149);
    font-family: 'Cairo', sans-serif !important;
    line-height: 1.25;
    display: block;
    text-align: start;
  }

  /* Outlined Last Tile "شوفي الكل" */
  .vm-product-tile-all {
    min-width: 0;
    display: flex;
  }
  .vm-tile-all {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    background: #ffffff;
    border: 2px dashed var(--brand-color, #A02149);
    border-radius: 14px;
    text-decoration: none;
    color: var(--brand-color, #A02149);
    gap: 8px;
    min-block-size: 48px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .vm-tile-all:hover {
    background: #FBF1F4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(181, 36, 85, 0.12);
  }
  .vm-tile-all:focus-visible {
    outline: 3px solid var(--brand-color, #A02149);
    outline-offset: 3px;
  }
  .vm-tile-all__icon {
    inline-size: 44px;
    block-size: 44px;
    border-radius: 999px;
    background: #FBF1F4;
    color: var(--brand-color, #A02149);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .vm-tile-all__icon svg,
  .vm-tile-all__icon [ui-slot=icon] {
    inline-size: 22px;
    block-size: 22px;
    color: var(--brand-color, #A02149);
  }
  .vm-tile-all__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-color, #A02149);
    font-family: 'Cairo', sans-serif !important;
  }
  .vm-tile-all__desc {
    font-size: 11px;
    font-weight: 600;
    color: #5E5A5B;
    font-family: 'Cairo', sans-serif !important;
  }

  .vm-empty { color: #888; font-size: .9rem; margin-block: 20px; }
  [ui-section=image-with-text] .wrapper-area { border-radius: 0; }
  [ui-section=image-with-text] .wrapper-area [ui-block=content] { background: #f8f6f5; }
  [ui-section=rich-text] { background: #fff; }
  [ui-section=faqs] { background: #f8f6f5; }
  [ui-section=slideshow] .cta[ui-slot=button], [ui-section=image-with-text] .cta[ui-slot=button], [ui-section=faqs] .cta[ui-slot=button] { background: #762d43; color: #fff; }
  [ui-layout=footer] { background: #f8f6f5; border-block-start: 1px solid #eae6e5; }
  [ui-layout=footer] .logo .name { font-family: Cairo, sans-serif; font-weight: 700; color: #762d43; letter-spacing: .06em; }

  @media (prefers-reduced-motion: reduce) {
    .vm-collection img, .vm-product img, .vm-product, .vm-order { transition: none; }
  }
}
