/* ------------------------------------------------------------------------
 * Fashiona — brand layer
 *
 * Loaded after styles.css. Everything authored here is mobile-first: the
 * base rule is the phone rule and every media query is min-width, so a
 * breakpoint can only ever add capability.
 *
 *   1. wordmark
 *   2. language + currency switcher
 *   3. script-aware typography (Latin / Turkish / Arabic)
 *   4. RTL mirroring beyond what the theme ships
 *   5. accent treatments and small refinements
 *   6. mobile-first corrections to inherited layout
 * --------------------------------------------------------------------- */

/* -------------------------------------------------------------- 1. wordmark */

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--main);
  white-space: nowrap;
  display: inline-block;
  transition: color 0.25s ease;
}

.logo-header {
  display: inline-flex;
  align-items: center;
}

.logo-header:hover .logo-text {
  color: var(--primary);
}

/* on the dark surfaces: footer bottom, coming-soon, drawers over ink */
.logo-text.on-dark,
.footer-logo .logo-text.on-dark {
  color: var(--white);
}

.footer-logo .logo-text {
  font-size: 30px;
}

.logo-text.lg {
  font-size: 34px;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 28px;
  }

  .logo-text.lg {
    font-size: 44px;
  }
}

@media (min-width: 1200px) {
  .logo-text {
    font-size: 30px;
  }
}

/* ------------------------------------------------- 2. language + currency */

.tf-langs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
}

.tf-langs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tf-langs button:hover {
  color: var(--white);
}

.tf-langs button[aria-pressed="true"] {
  color: var(--main);
  background-color: var(--white);
}

/* the same control sitting on a light ground (footer, mobile drawer) */
.tf-langs.on-light {
  background-color: var(--surface);
}

.tf-langs.on-light button {
  color: var(--secondary);
}

.tf-langs.on-light button:hover {
  color: var(--main);
}

.tf-langs.on-light button[aria-pressed="true"] {
  color: var(--white);
  background-color: var(--main);
}

.tf-langs.block {
  width: 100%;
  justify-content: stretch;
}

.tf-langs.block button {
  flex: 1;
  padding: 10px 8px;
  font-size: 12px;
}

/* the currency chips replace the theme's flag thumbnails */
.cur-thumb {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

/* --------------------------------------------- 3. script-aware typography */

html[lang="tr"] body {
  /* Turkish sets long words; loosen the tracking the display face applies */
  letter-spacing: 0;
}

html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button {
  font-family: var(--font-arabic);
}

html[lang="ar"] .title-display,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .font-2,
html[lang="ar"] .font-3,
html[lang="ar"] .font-4,
html[lang="ar"] .font-5,
html[lang="ar"] .font-main {
  font-family: var(--font-arabic) !important;
  font-weight: 700;
}

/* Arabic is cursive: letter-spacing and uppercase are meaningless and
   letter-spacing actively breaks the joins */
html[lang="ar"] .text-btn-uppercase,
html[lang="ar"] .text-btn-uppercase2,
html[lang="ar"] .subheading,
html[lang="ar"] .tf-btn,
html[lang="ar"] .btn-line,
html[lang="ar"] .menu-heading,
html[lang="ar"] .footer-heading,
html[lang="ar"] .demo-name,
html[lang="ar"] .tf-langs button,
html[lang="ar"] .toolbar-label {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[lang="ar"] body {
  line-height: 1.9;
}

html[lang="ar"] .title-display {
  line-height: 1.25;
}

/* the wordmark is a Latin name — keep it Latin in every language */
.logo-text,
html[lang="ar"] .logo-text {
  font-family: var(--font-display) !important;
  font-weight: 800;
}

/* prices, phone numbers, dates and sizes keep their sign and unit on the
   correct side inside an Arabic sentence */
.price,
.price-new,
.price-old,
.tf-price,
.count-box,
.tel,
.num {
  unicode-bidi: isolate;
}

/* ------------------------------------------------------- 4. RTL mirroring */

/* Direction-bearing glyphs. The theme mirrors a handful of arrows in JS; do
   the rest here so nothing depends on script order. */
.rtl .icon-arrowUpRight,
.rtl .icon-arrRight,
.rtl .icon-arrLeft,
.rtl .icon-arrow-right,
.rtl .icon-arrow-left,
.rtl .tf-btn-default i,
.rtl .btn-line::after {
  transform: scaleX(-1);
}

.rtl .logo-text {
  direction: ltr;
}

.rtl .tf-topbar_wrap,
.rtl .footer-bottom-wrap,
.rtl .tf-cur {
  direction: rtl;
}

/* Swiper is initialised with dir="ltr" on purpose (the theme's carousels
   would otherwise fight the page). Their captions still need to read RTL. */
.rtl .swiper[dir="ltr"] .card-product-info,
.rtl .swiper[dir="ltr"] .collection-content,
.rtl .swiper[dir="ltr"] .testimonial-item .content,
.rtl .swiper[dir="ltr"] .wg-blog .content,
.rtl .swiper[dir="ltr"] .tf-icon-box .content,
.rtl .swiper[dir="ltr"] .box-content {
  direction: rtl;
}

.rtl .heading-section-2,
.rtl .flat-title-tab,
.rtl .tf-shop-control {
  direction: rtl;
}

.rtl .marquee-wrapper {
  direction: ltr;
}

.rtl .breadcrumb-item + .breadcrumb-item::before {
  transform: scaleX(-1);
  display: inline-block;
}

.rtl .tf-product-info-quantity .quantity-product,
.rtl .wg-quantity {
  direction: ltr;
}

.rtl .tf-cart-checkbox,
.rtl .tf-check-box,
.rtl .form-checkbox {
  text-align: start;
}

/* the theme's dropdown panels are pinned with `left`; mirror them */
.rtl .dropdown-account,
.rtl .dropdown-login,
.rtl .sub-menu.submenu-default {
  left: auto;
  right: 0;
}

.rtl .nav-icon .count-box {
  right: auto;
  left: -8px;
}

/* -------------------------------------- 5. accent + surface refinements */

/* the acid accent carries the loud moments — sale flags, the countdown,
   the marquee — so the cobalt stays reserved for actions */
.on-sale-wrap .on-sale-item,
.card-product .on-sale-item {
  background-color: var(--accent);
  color: var(--main);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.marquee-product.bg-main {
  background-color: var(--main);
}

.marquee-product .icon-lightning {
  color: var(--accent) !important;
}

.demo-label .demo-new {
  background-color: var(--accent);
  color: var(--main);
}

.tf-countdown-lg .countdown__item .countdown__value,
.tf-countdown .countdown__item .countdown__value {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* a keyboard user has to be able to see where they are */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.tf-btn:focus-visible,
.btn-main-product:focus-visible {
  outline-offset: 3px;
}

/* skip link — first thing in the tab order, invisible until focused */
.skip-to-content {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--main);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-to-content:focus {
  transform: translateY(0);
  color: var(--white);
}

/* the section eyebrow used above the rewritten headlines */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background-color: var(--accent);
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .section-eyebrow {
    font-size: 12px;
  }
}

/* editorial pull-quote used on the story and journal pages */
.pull-quote {
  border-inline-start: 3px solid var(--primary);
  padding-inline-start: 20px;
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--main);
}

@media (min-width: 768px) {
  .pull-quote {
    font-size: 24px;
    padding-inline-start: 28px;
  }
}

/* ------------------------------ 6. mobile-first corrections to the theme */

/* the theme fixes the display scale at desktop and steps it down at
   breakpoints; declare it at phone size and grow it instead */
.title-display {
  font-size: clamp(38px, 11vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.title-display-2 {
  font-size: clamp(52px, 18vw, 140px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.heading-section .heading,
.heading-section-2 h3 {
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* a long Turkish or Arabic word must wrap rather than push the page wide */
h1, h2, h3, h4, h5, h6,
.title-display,
.card-product-info .title,
.collection-content .cls-title,
.wg-blog .title {
  overflow-wrap: break-word;
}

/* nothing may scroll the page sideways */
html,
body {
  overflow-x: clip;
}

/* the toolbar is a phone affordance; it must clear the iOS home indicator
   and the page must reserve room for it */
.tf-toolbar-bottom {
  padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

@media (max-width: 1199px) {
  #footer {
    padding-bottom: 70px;
  }
}

/* wide, data-heavy tables scroll inside their own box on a phone */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
  min-width: 620px;
}

/* the hero reads at phone height first */
.tf-slideshow.slider-default .wrap-slider img {
  min-height: 460px;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .tf-slideshow.slider-default .wrap-slider img {
    min-height: 560px;
  }
}

@media (min-width: 1200px) {
  .tf-slideshow.slider-default .wrap-slider img {
    min-height: 0;
  }
}

/* the topbar collapses to the essentials on a phone rather than wrapping
   into three lines */
.tf-topbar .topbar-left li:not(:first-child) {
  display: none;
}

@media (min-width: 576px) {
  .tf-topbar .topbar-left li:not(:first-child) {
    display: list-item;
  }
}

/* store cards, FAQ and the account tables all use this pair */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .info-grid.md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .info-grid.lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  border-color: var(--main);
  box-shadow: var(--shadow1);
}

.info-card .info-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.info-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--secondary);
  font-size: 14px;
}

/* prose blocks on the legal, story and article pages */
.prose > * + * {
  margin-top: 16px;
}

.prose h4 {
  margin-top: 32px;
  font-size: 20px;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline-start: 20px;
  list-style: disc;
  color: var(--secondary);
}

.prose p {
  color: var(--secondary);
}

/* the measurement table on the size guide */
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.size-table th,
.size-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: start;
}

.size-table thead th {
  background-color: var(--surface);
  font-weight: 700;
}

/* honour a reduced-motion preference across the theme's animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-wrapper {
    animation: none !important;
  }
}

/* the Saturday letter band — the theme hardcodes a dusty pink here */
.section-newsletter.fa-letter {
  background: linear-gradient(140deg, #edeaff 0%, #f6f4f0 62%, #f2f7dd 100%);
}

.section-newsletter.fa-letter .content {
  max-width: 620px;
}

.section-newsletter.fa-letter .section-eyebrow {
  justify-content: center;
}

/* the theme pins the submit button with `right`; mirror it for RTL */
.rtl .section-newsletter form input {
  padding-right: 20px;
  padding-left: 172px;
}

.rtl .section-newsletter form button {
  right: auto;
  left: 4px;
}

@media (max-width: 575px) {
  .section-newsletter form input,
  .rtl .section-newsletter form input {
    padding-inline-end: 20px;
    padding-bottom: 58px;
  }

  .section-newsletter form button,
  .rtl .section-newsletter form button {
    inset-inline-start: 4px;
    inset-inline-end: 4px;
    width: auto;
    top: auto;
    bottom: 8px;
    transform: none;
  }
}

/* the hero photograph is light; the headline needs a ground to sit on */
.tf-slideshow.slider-default .wrap-slider {
  position: relative;
}

.tf-slideshow.slider-default .wrap-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 16, 20, 0.45) 0%,
                              rgba(16, 16, 20, 0.62) 100%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .tf-slideshow.slider-default .wrap-slider::after {
    background: linear-gradient(to right, rgba(16, 16, 20, 0.68) 0%,
                                rgba(16, 16, 20, 0.34) 46%,
                                rgba(16, 16, 20, 0) 76%);
  }

  .rtl .tf-slideshow.slider-default .wrap-slider::after {
    transform: scaleX(-1);
  }
}

.tf-slideshow.slider-default .box-content {
  z-index: 2;
}

/* the wordmark accent — .mark is a Bootstrap highlight utility, so it cannot
   be used for this */
.logo-text .wm-accent {
  color: var(--primary);
}

.logo-header:hover .logo-text .wm-accent {
  color: var(--main);
}

.logo-text.on-dark .wm-accent {
  color: var(--accent);
}

/* The theme title-cases headings and button labels. That flattens a written
   sentence into a headline cliché, mangles the Turkish dotted/dotless i, and
   means nothing at all in Arabic — so text renders exactly as authored. */
.heading-section .heading,
.heading-section .subheading,
.tf-btn .text,
.btn-main-product,
.tf-store-title,
.faqs-title,
.terms-of-use-title,
.widget-menu-tab .item-title .inner,
.tab-product .nav-tab-item a {
  text-transform: none;
}

/* The theme mirrors the hero photograph in RTL so the composition's empty side
   follows the text. On a clothing site that is wrong — it puts lapels, plackets
   and buttons on the wrong side. The scrim moves instead; the garment does not. */
.rtl .tf-sw-slideshow .wrap-slider img {
  transform: none;
}

/* ---- product gallery ---------------------------------------------------
   Static rather than a carousel: the theme only initialises a fixed list of
   swiper class names and the product media is not on it, so a swiper here
   would render one slide and two dead arrows. */
.fa-gallery {
  display: grid;
  gap: 8px;
}

.fa-gallery .item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--surface);
}

.fa-gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fa-gallery .item:hover img {
  transform: scale(1.04);
}

.fa-gallery-rest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fa-gallery-rest .item {
  aspect-ratio: 3 / 4;
}

@media (min-width: 992px) {
  .fa-gallery {
    gap: 12px;
  }

  .fa-gallery-rest {
    gap: 12px;
  }
}

/* ---- page banner -------------------------------------------------------
   The banner carries a photograph, so the title and the breadcrumb need a
   ground of their own rather than ink on a pale image. */
.page-title {
  position: relative;
  isolation: isolate;
}

.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(16, 16, 20, 0.42) 0%,
                              rgba(16, 16, 20, 0.72) 100%);
}

.page-title .heading,
.page-title ul.breadcrumbs li,
.page-title ul.breadcrumbs li a,
.page-title ul.breadcrumbs i {
  color: var(--white);
}

.page-title ul.breadcrumbs li a:hover {
  color: var(--accent);
}

.page-title ul.breadcrumbs li [aria-current="page"] {
  color: rgba(255, 255, 255, 0.7);
}

/* the shop opens on the grid; js/fashiona.js drives the switch */
#listLayout[hidden],
#gridLayout[hidden] {
  display: none;
}

.tf-view-layout-switch {
  cursor: pointer;
}

.tf-view-layout-switch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* the sale flag: the theme paints it in --critical, which now reads as an
   error state. The acid accent carries it instead. */
.card-product .card-product-wrapper .on-sale-wrap .on-sale-item,
.collection-position-2 .on-sale-wrap .on-sale-item {
  background-color: var(--accent);
  color: var(--main);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* the filter button has a fixed width in the theme and clips a longer label */
.tf-btn-filter {
  width: auto;
  min-width: max-content;
  padding: 6px 14px;
  white-space: nowrap;
}

.tf-shop-control {
  gap: 16px;
  flex-wrap: wrap;
}

.tf-control-filter {
  flex: 0 0 auto;
}

/* ---- coming soon -------------------------------------------------------
   The theme sets white type over the section's own photograph. Darken the
   ground so it holds, and let the supporting copy follow the heading. */
.coming-soon {
  position: relative;
  isolation: isolate;
  padding-block: 96px;
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(16, 16, 20, 0.55) 0%,
                              rgba(16, 16, 20, 0.8) 100%);
}

.coming-soon .coming-soon-inner {
  justify-content: center;
}

.coming-soon .coming-soon-inner .content > p,
.coming-soon .coming-soon-inner .content .logo-text {
  color: var(--white);
}

.coming-soon .coming-soon-inner .content .logo-text .wm-accent {
  color: var(--accent);
}

.coming-soon .tf-social-icon a {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.coming-soon .tf-social-icon a:hover {
  color: var(--main);
  background-color: var(--white);
  border-color: var(--white);
}

/* ---- the story page ----------------------------------------------------
   Two photographs stacked at their natural height ran taller than the column
   beside them; cap each to a ratio instead. */
.about-us-features {
  display: grid;
  gap: 12px;
}

.about-us-features img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.about-us-features img:first-child {
  aspect-ratio: 4 / 5;
}

.about-us-features img:last-child {
  aspect-ratio: 16 / 9;
}

@media (min-width: 992px) {
  .about-us-features {
    grid-template-columns: 1.35fr 1fr;
    align-items: end;
  }

  .about-us-features img:first-child {
    grid-row: span 2;
  }

  .about-us-features img:last-child {
    aspect-ratio: 1 / 1;
  }
}

/* ---- the article ------------------------------------------------------- */

/* the card is pulled up over the banner by 135px, so it has to paint above it */
.blog-detail-wrap > .inner {
  position: relative;
  z-index: 1;
}

/* the banner image kept its intrinsic size and painted over the card */
.blog-detail-wrap > .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-wrap .list-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-detail-wrap .list-tags.justify-content-center {
  justify-content: center;
}

.blog-detail-wrap .list-tags a {
  display: inline-flex;
  border-radius: 40px;
  padding: 4px 16px;
  background-color: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.blog-detail-wrap .list-tags a:hover {
  background-color: var(--main);
  color: var(--white);
}

/* the theme's .related-post is a prev/next pair with a centre divider; this
   page uses it for a three-up rail instead */
.blog-detail-wrap .related-post {
  display: block;
  border-bottom: 0;
  padding-bottom: 48px;
}

.blog-detail-wrap .related-post::after {
  content: none;
}
