/*
 | CREATORS' own additions to the UGC template (Voxo). Loaded LAST, after the
 | template's untouched files (public/ugc/css/…): the template stays as it
 | came; whatever CREATORS needs on top lives here, and only here.
 | Rules: no new look — reuse the template's classes in the markup first; this
 | file only (1) replaces what the template fetched from remote servers (fonts,
 | icons: no CDN at run time), (2) what the template's jQuery did and React does
 | now (sliders, the bg-img pictures), (3) the few CREATORS-only pieces (social
 | chips, niche tiles, the request's steps), drawn with the template's own tokens (--theme-color, #f0f3f8,
 | #232323, Rubik).
 */

/* ---------------------------------------------------------------- fonts */
/* Rubik (OFL), vendored — the template linked Google Fonts. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("./fonts/Rubik-Variable.woff2") format("woff2-variations"), url("./fonts/Rubik-Variable.woff2") format("woff2");
}
/* Arabic letters (Rubik has none): Cairo (OFL), only for the Arabic range. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("./fonts/Cairo-Arabic-Variable.woff2") format("woff2-variations"), url("./fonts/Cairo-Arabic-Variable.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
/* slick-theme.css loads its « slick » font from pixelstrap.com: the same family
   declared again here wins (the last @font-face of a family is used), locally. */
@font-face {
  font-family: "slick";
  font-style: normal;
  font-weight: 400;
  src: local("Arial");
}

/* ------------------------------------- images the template took from its CDN */
.custome-form-check .form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.category-option .category-name .accordion-button:after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M12 5v14M5 12h14'/%3e%3c/svg%3e");
}
.category-option .category-name .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M5 12h14'/%3e%3c/svg%3e");
}

/* ------------------------------------------- what the jQuery scripts made */
/* The template's states (`.collapse.show`, `.tab-pane.active`, `.dropdown-menu.show`, `.search-full.open`,
   `.blur-up.lazyloaded`) are already in its CSS: React only sets the classes. */
/* Slick, rebuilt in React (components/ugc/Slick.tsx): the track slides by transform. */
.cr-site .slick-track { transition: transform 0.5s ease; will-change: transform; }
.cr-site .slick-slider.cr-fade .slick-slide { transition: opacity 0.6s ease; }
/* `bg-img` stays a real picture (components/ugc/Bg.tsx: lazy loading, alt text) covering its parent, behind
   the parent's own content — what script.js did with a background. `:where` keeps any template position. */
.cr-site :where(.bg-size) { position: relative; isolation: isolate; }
.cr-site .bg-size > img.bg-img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

/* ------------------------------------------------- CREATORS-only pieces */
/* Social accounts: one chip per network (the template's .label-tag look). */
.cr-socials { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.cr-socials li a, .cr-socials li span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 5px;
  background-color: #f0f3f8; color: #232323; font-size: 14px; font-weight: 500;
}
.cr-socials li a:hover { color: var(--theme-color); }
.cr-socials i { font-size: 15px; }
.cr-socials b { font-weight: 600; }

/* Errors under a field (the template has none): Bootstrap's invalid text, in the theme. */
.cr-site .cr-error { display: block; margin-top: 6px; font-size: 13px; color: var(--theme-color); }

/* The selection count on the header's heart (the template's label, kept visible at 0 = hidden). */
.cr-site .wislist-dropdown .label:empty { display: none; }

/* Arabic: the template's [dir=rtl] rules apply; Rubik + Cairo above. */

/* A card's name: the template clamps `h5` to 90% of its link, which is only as wide
   as the text (made for long product names) — a short name like « Salma B. » lost its
   end. The link takes the line's free width; long names are still clamped. */
.cr-site .product-box .product-details .main-price > a { flex: 1 1 auto; min-width: 0; }

/* A card's niches: the main one, then « +N » (the others in the tooltip). */
.cr-site .product-box .rating-details .cr-more { margin-inline-start: 6px; font-weight: 600; color: var(--theme-color); cursor: default; }

/* The home's niche tiles: taller than the template's 130 px (a creator's face reads),
   and on hover a second layer — another creator's picture, or the niche's video. */
.cr-site .category-section .category-wrap { height: 200px; overflow: hidden; }
@media (max-width: 575px) { .cr-site .category-section .category-wrap { height: 170px; } }
.cr-site .category-wrap .cr-hover-media {
  position: absolute; inset: 0; z-index: 0; opacity: 0; transform: scale(1.04);
  background-size: cover; background-position: center;
  transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cr-site .category-wrap .cr-hover-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-site .category-wrap:hover .cr-hover-media, .cr-site .category-wrap:focus-visible .cr-hover-media { opacity: 1; transform: scale(1); }
.cr-site .category-wrap .category-content { z-index: 2; }
/* Our tiles are portraits (the template's were cut-out products on a light ground): a soft
   white fade on the text's side keeps the niche's name readable. */
.cr-site .category-section .category-slider1 .category-wrap:after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 38%, rgba(255, 255, 255, 0) 65%);
}
[dir="rtl"] .cr-site .category-section .category-slider1 .category-wrap:after { background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 38%, rgba(255, 255, 255, 0) 65%); }
@media (prefers-reduced-motion: reduce) { .cr-site .category-wrap .cr-hover-media { transition: none; transform: none; } }

/* The request, step by step (components/RequestWizard): the template's order tracker
   (`progtrckr`) as the steps — the current one marked with a pen, done ones links —,
   the niche tiles, the phone's progress bar. */
.cr-site .cr-wizard .progtrckr li { transition: border-color 0.45s ease, color 0.45s ease; }
.cr-site .cr-wizard .progtrckr li.cr-current:before { content: "\f303"; }
.cr-site .cr-wizard .progtrckr h5 .cr-step-link { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cr-site .cr-wizard .progtrckr h5 .cr-step-link:hover { color: var(--theme-color); }
.cr-site .cr-wizard .cr-progress { background-color: var(--theme-color); transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cr-site .cr-wizard .cr-step { min-height: 260px; }
.cr-site .cr-choice {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; padding: 14px 10px; border: 1px solid #ced4da; border-radius: 5px; background-color: #fff;
  color: #232323; font-weight: 500; text-align: center; cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.cr-site .cr-choice .feather { width: 24px; height: 24px; stroke-width: 1.6; }
.cr-site .cr-choice:hover { border-color: var(--theme-color); }
.cr-site .cr-choice.active { border-color: var(--theme-color); background-color: var(--theme-color); color: #fff; box-shadow: 0 8px 18px -10px var(--theme-color); }
.cr-site .cr-choice.is-invalid { border-color: var(--theme-color); }
.cr-site .cr-wizard .qty-box .input-group .btn { border: 1px solid #ced4da; background-color: #f0f3f8; }
.cr-site .cr-wizard .qty-box .input-group .form-control { max-width: 90px; }

/* A consent's long label wraps (the template's labels are one line with an ellipsis). */
.cr-site .custome-form-check .form-check-label.cr-wrap { white-space: normal; overflow: visible; }
/* The forms' robot trap: out of sight. */
.cr-site .cr-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* A round face beside a name (a shared work's author). */
.cr-site .cr-avatar { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; border-radius: 50%; }
/* The gallery's thumbnails (components/site Gallery): the current one full, the others dimmed. */
.cr-site .details-image-vertical .cr-thumb { cursor: pointer; margin-bottom: 10px; opacity: 0.6; transition: opacity 0.25s ease; }
.cr-site .details-image-vertical .cr-thumb.slick-current, .cr-site .details-image-vertical .cr-thumb:hover { opacity: 1; }

/* The home slider with our portraits (2:3) in the template's wide frame: the whole portrait stands on the
   frame's far side, bottom-aligned, over the template's light ground and a soft circle — the template's own
   slides are composed this way (the person on the side, the words on clear ground) —, never a cropped close-up. */
.cr-site .home-style-2 .left-content.cr-portrait {
  background: radial-gradient(circle at 74% 46%, #e3e8f0 0 30%, transparent 30.3%), #f0f3f8;
}
.cr-site .home-style-2 .left-content.cr-portrait > img.bg-img { object-fit: contain; object-position: right bottom; padding: 28px 7% 0 0; }
[dir="rtl"] .cr-site .home-style-2 .left-content.cr-portrait { background: radial-gradient(circle at 26% 46%, #e3e8f0 0 30%, transparent 30.3%), #f0f3f8; }
[dir="rtl"] .cr-site .home-style-2 .left-content.cr-portrait > img.bg-img { object-position: left bottom; padding: 28px 0 0 7%; }
@media (max-width: 767px) { .cr-site .home-style-2 .left-content.cr-portrait > img.bg-img { padding: 16px 0 0; opacity: 0.9; } }

/* Portraits in the wide tiles (niches, offers): the crop keeps the upper part, where the face is. */
.cr-site .category-wrap > img.bg-img, .cr-site .collection-banner .banner-img > img.bg-img { object-position: center 22%; }
/* Phone: the portrait sits behind the words — a light veil from the words' side keeps them readable. */
@media (max-width: 767px) {
  .cr-site .home-style-2 .left-content.cr-portrait::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to right, #f0f3f8 0%, rgba(240, 243, 248, 0.92) 42%, rgba(240, 243, 248, 0) 78%);
  }
  [dir="rtl"] .cr-site .home-style-2 .left-content.cr-portrait::after { background: linear-gradient(to left, #f0f3f8 0%, rgba(240, 243, 248, 0.92) 42%, rgba(240, 243, 248, 0) 78%); }
}
/* Phone header: the long « Demander un devis » button gives way (the bottom bar's « Sélection » leads there). */
@media (max-width: 575px) { .cr-site .header-style-2 .menu-right .cart-dropdown { display: none; } }
