/* ==============================
   Site-wide polish (2026-10)
   Loaded last: unifies type scale, spacing, buttons and cards
   on top of styles.css / responsive.css / shop-mobile.css.
   ============================== */
:root {
  --fs-h1: clamp(30px, 2.2vw + 18px, 48px);
  --fs-h2: clamp(26px, 1.6vw + 16px, 40px);
  --fs-h3: clamp(21px, 1vw + 14px, 30px);
  --lh-h1: 1.15;
  --lh-h2: 1.2;
  --lh-h3: 1.25;
  --border-soft: #e7e9eb;
  --radius-card: 16px;
  --radius-control: 12px;
  --shadow-card: 0 1px 2px rgba(24, 39, 75, 0.04), 0 4px 14px -6px rgba(24, 39, 75, 0.08);
  --shadow-card-hover: 0 18px 40px -16px rgba(24, 39, 75, 0.22);
  --section-y: clamp(44px, 5vw, 80px);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Bootstrap reboot paints links blue; keep them on brand */
a {
  color: inherit;
}
a:hover {
  color: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

/* ---------- Sections & headings ---------- */
.section {
  padding: var(--section-y) 0;
}
.main--home .section--cta {
  margin: 0;
}
.section--testimonials {
  margin: 0;
}

.section__header {
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.section__header__title {
  font-weight: 700;
  color: inherit;
  text-wrap: balance;
}
.section__header--inner .section__header__title {
  font-weight: 700;
}
.section__header__title--highlight {
  font-weight: 500;
}
.section__header__title--highlight span {
  font-weight: 800;
}
.section__header__desc {
  margin-top: 14px;
  max-width: 680px;
  font-size: clamp(15px, 0.3vw + 14px, 17px);
  line-height: 1.65;
  color: var(--gray-400);
  text-wrap: pretty;
}
.section__header--center .section__header__desc {
  margin-left: auto;
  margin-right: auto;
}
.section__header--white .section__header__desc,
.section--cta .section__header__desc,
.section--testimonials .section__header__desc {
  color: rgba(255, 255, 255, 0.78);
}
.section--cta .section__header__desc,
.section--cta .section__header__desc * {
  font-weight: 500;
}
.section__header--show-line .section__header__title {
  padding-bottom: 16px;
}
.section__header--show-line .section__header__title:after,
.section__header--inner:after {
  height: 4px;
  width: 56px;
  border-radius: 4px;
}

.section__footer {
  margin-top: clamp(28px, 3.5vw, 48px);
}

/* ---------- Buttons ---------- */
.btn__general {
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn__general:active {
  transform: scale(0.98);
}
.btn__general--yellow.btn__general--contained:hover {
  box-shadow: 0 10px 24px -10px rgba(248, 200, 74, 0.95);
}
/* Secondary ("Daha çoxuna bax", filters): outlined instead of flat grey */
.btn__general--white.btn__general--contained {
  background: var(--white);
  border: 1.5px solid var(--gray-500);
  color: var(--gray-500);
}
.btn__general--white.btn__general--contained:hover {
  background: var(--gray-500);
  color: var(--white);
}
.btn__general--white.btn__general--contained:hover svg path {
  stroke: var(--white);
}
.btn__text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Product cards (spare parts + oils) ---------- */
.section--products .product-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.section--products .product-card__header {
  height: auto;
  aspect-ratio: 1 / 0.86;
  border-radius: 0;
  background: #f6f7f8;
}
.section--products .product-card__header img {
  transition: transform 0.4s ease;
}
/* Same layout as mobile: name, price and actions always visible */
.section--products .product-card__body {
  display: none;
}
.section--products .product-card__body--hover {
  position: static;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 14px 16px 16px;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  background: transparent;
}
.section--products .product-card__name {
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  flex-grow: 0;
}
.section--products .product-card__price {
  margin-top: 6px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
}
.section--products .product-card__body--hover > .btn,
.section--products .product-card__actions {
  margin-top: auto;
  padding-top: 12px;
}
.section--products .product-card__body--hover > .btn,
.section--products .product-card__actions .btn {
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
}
.section--products .product-card__body--hover > .btn {
  margin-top: auto;
  padding-top: 0;
  margin-bottom: 0;
}
.section--products .product-card__body--hover > .product-card__price {
  margin-bottom: 12px;
}
.product-card__whatsapp {
  border-radius: 10px;
}
@media (hover: hover) {
.section--products .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.section--products .product-card:hover .product-card__header img {
  transform: scale(1.04);
}
}
.section--products .product-card:hover .product-card__body--hover {
  box-shadow: none;
}

/* ---------- Blog cards ---------- */
.section--blogs .blog-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
@media (hover: hover) {
.section--blogs .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
}
.section--blogs .blog-card__header {
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-600);
}
.section--blogs .blog-card__header img {
  transition: transform 0.4s ease;
}
@media (hover: hover) {
.section--blogs .blog-card:hover .blog-card__header img {
  transform: scale(1.04);
}
}
.section--blogs .blog-card__body {
  padding: 18px 20px 20px;
}
.section--blogs .blog-card__title {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* ---------- Why us ---------- */
.section--why-us .section__content__item img,
.section--why-us .section__content__item svg {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}
.section--why-us .section__content__item span {
  font-weight: 700;
  margin-bottom: 6px;
  flex-grow: 0;
}
.section--why-us .section__content__item p {
  color: var(--gray-400);
}

/* ---------- FAQ accordion ---------- */
.section .accordion {
  gap: 12px;
}
.section .accordion__item__header {
  min-height: 56px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}
@media (hover: hover) {
.section .accordion__item__header:hover {
  border-color: var(--yellow-500);
}
}
.section .accordion__item__header > span {
  padding: 12px 20px;
  font-size: 15px;
  line-height: 22px;
}
.section .accordion__item__header > button {
  margin: 8px 8px 8px 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.section .accordion__item__body__content {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--gray-300);
  padding: 18px 20px;
  line-height: 1.65;
}

/* ---------- Rich text (blog posts, about, SEO text) ---------- */
.content,
.about-text__content {
  line-height: 1.7;
}
.content a,
.about-text__content a {
  color: var(--gray-500) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.content a:hover,
.about-text__content a:hover {
  background: rgba(248, 200, 74, 0.25);
}
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 1.4em;
}
.content > :first-child {
  margin-top: 0;
}
.content img {
  border-radius: 12px;
}

/* ---------- About ---------- */
.section--about .about-image img {
  border-radius: var(--radius-card);
}

/* ---------- Product page ---------- */
.section--product-details .product__name {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section--product-details .product-gallery__item img,
.section--product-details .swiper__product__gallery {
  border-radius: var(--radius-card);
}
.product-crumb a {
  color: var(--gray-400);
}

/* ---------- Contact ---------- */
.section--contact .contact__info__body__list li a:hover {
  color: var(--yellow-500);
}

/* ---------- Search inputs ---------- */
.section__search__header input {
  border-radius: 999px;
}

/* ---------- Floating WhatsApp: calmer pulse ---------- */
#btn-whatsapp {
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.7);
}

/* ==============================
   Tablet & mobile
   ============================== */
@media (max-width: 768px) {
  :root {
    --fs-h1: clamp(28px, 6vw + 6px, 40px);
    --fs-h2: clamp(24px, 4.5vw + 8px, 32px);
    --fs-h3: clamp(20px, 3vw + 8px, 24px);
    --lh-h1: 1.18;
    --lh-h2: 1.22;
    --lh-h3: 1.28;
  }
  .section--products .product-card,
  .section--blogs .blog-card {
    max-width: none;
    margin: 0;
  }
  .section--products .product-card {
    box-shadow: var(--shadow-card);
  }
  .section--blogs .blog-card {
    box-shadow: var(--shadow-card);
  }
  .section--why-us .section__content__item {
    padding-bottom: 8px;
  }
  .section--why-us .row {
    --bs-gutter-y: 28px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* About page used 3rem gutters wider than the container: horizontal scroll */
  .section--about .row.g-5 {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 28px;
  }
  .section__header__desc {
    font-size: 15px;
  }
  .section__footer .btn__general {
    width: 100%;
    max-width: 320px;
  }

  /* Oils: two per row like spare parts */
  .row > .product-card-col--oil {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    padding-left: 5px;
    padding-right: 5px;
  }
  .row:has(> .product-card-col--oil) {
    margin-left: -5px;
    margin-right: -5px;
    --bs-gutter-y: 10px;
  }
  .section--products .product-card-col--oil .product-card {
    border-radius: 12px;
  }
  .section--products .product-card-col--oil .product-card__body--hover {
    padding: 8px 9px 9px;
  }
  .section--products .product-card-col--oil .product-card__name {
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 500;
    min-height: 32px;
  }
  .section--products .product-card-col--oil .product-card__price {
    font-size: 17px;
    line-height: 22px;
    margin-top: 4px;
    margin-bottom: 8px;
  }
  .section--products .product-card-col--oil .product-card__body--hover > .btn {
    height: 34px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 12.5px;
  }

  /* Blog cards fill the column */
  .section--blogs .blog-card__body {
    padding: 16px 18px 18px;
  }

  /* FAQ */
  .section .accordion__item__header > span {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 20px;
  }
  .section .accordion__item__header > button {
    padding: 6px 10px;
  }

  /* Contact: branches as soft cards */
  .section--contact .contact__info__body {
    padding: 16px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.05);
  }
  .section--contact .contact__info__body + .contact__info__body {
    margin-top: 12px;
  }
}


/* ==============================
   Home hero on phones/tablets: compact, photo visible
   ============================== */
@media (max-width: 992px) {
  .main--home .section--welcome {
    margin-bottom: 0;
    background-attachment: scroll !important;
    background-position: center 30% !important;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
  }
  .main--home .section--welcome .overlay {
    opacity: 1;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(248, 200, 74, 0.18) 0%, rgba(248, 200, 74, 0) 55%),
      linear-gradient(180deg, rgba(38, 43, 48, 0.9) 0%, rgba(46, 52, 57, 0.78) 55%, rgba(38, 43, 48, 0.94) 100%);
  }
  .main--home .section--welcome .swiper__welcome .swiper-slide,
  .main--home .swiper__welcome .swiper-slide {
    height: auto;
    max-height: none;
    padding-top: 0;
    justify-content: flex-start;
  }
  .main--home .section--welcome .section__content {
    padding: 108px 0 36px;
  }
  .main--home .section--welcome .section__header,
  .main--home .section--welcome .section__header:not(.section__header--inner) {
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    margin: 0;
    max-width: 560px;
  }
  .main--home .section--welcome .section__header__title {
    font-size: clamp(28px, 7.4vw, 40px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.025em;
  }
  .main--home .section--welcome .section__header__title span {
    color: var(--yellow-500);
  }
  .main--home .section--welcome .section__header .btn {
    margin-top: 22px;
    width: 100%;
    max-width: 360px;
    height: 52px;
    border-radius: 14px;
    font-size: 15px;
    box-shadow: none;
  }
  .main--home .swiper__welcome .swiper-pagination {
    position: static;
    margin-top: 20px;
    text-align: left;
  }
  .main--home .swiper__welcome .swiper-pagination-lock {
    display: none;
  }
  /* Brands right under the hero */
  .main--home .section--brands:has(.brand-picker--home) {
    padding-top: 24px;
  }
}
@media (max-width: 576px) {
  .main--home .section--welcome .section__content {
    padding: 96px 0 26px;
  }
  .brand-picker--home .brand-picker__grid {
    gap: 8px;
    margin-top: 12px;
  }
  .brand-picker--home .brand-picker__item {
    padding: 10px 4px 8px;
    border-radius: 14px;
  }
}

@media (hover: none) {
  .section--products .product-card:hover,
  .section--blogs .blog-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--products .product-card,
  .section--blogs .blog-card,
  .section--products .product-card__header img,
  .section--blogs .blog-card__header img {
    transition: none;
  }
}
