/*
 * BookStore theme — loaded after styles.css / media.css.
 * Orange brand (#FD6E00), Inter everywhere, and the redesigned header, hero,
 * category sidebar, features strip and product rails of the home page.
 */
:root {
  --main-color: #fd6e00;
  --hover-color: #e05f00;
  --brand-tint: #fff4ec;
  --brand-soft: #fff8f2;
  --navy: #1b1f3b;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ececec;
  --heading-font: 'Inter', sans-serif;
  /* Display face for home section titles and product names only */
  --display-font: 'Bricolage Grotesque', 'Inter', sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

/* ===== Header: logo + search + account ===== */
.header-main {
  padding: 1.6rem 5%;
  border-bottom: 0;
}
.header-main-inner {
  gap: 3rem;
}
/* Figma: 205 × 48 px (px, not rem — the root font-size is scaled) */
.hm-logo {
  flex-shrink: 0;
}
.hm-logo img {
  display: block;
  width: 205px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 575px) {
  .hm-logo img {
    width: 154px;
    height: 36px;
  }
}

.hm-search-wrap {
  display: flex;
  align-items: stretch;
  max-width: 62rem;
  background: #f1f2f4;
  border-radius: 0.8rem;
}
.hm-search-input {
  flex: 1;
  min-width: 0;
  padding: 1.35rem 1.6rem;
  background: transparent;
  border-radius: 0.8rem 0 0 0.8rem;
  font-size: 1.45rem;
}
.hm-search-input:focus {
  background: transparent;
  box-shadow: none;
}
.hm-cat-picker {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.hm-cat-picker__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: calc(100% - 2rem);
  max-width: 19rem;
  padding: 0 1.6rem;
  border: 0;
  border-left: 1px solid #d6d7db;
  background: transparent;
  color: #555;
  font-size: 1.4rem;
  cursor: pointer;
  white-space: nowrap;
}
.hm-cat-picker__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-cat-picker__btn i {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.hm-cat-picker.open .hm-cat-picker__btn,
.hm-cat-picker__btn:hover {
  color: var(--main-color);
}
.hm-cat-picker.open .hm-cat-picker__btn i {
  transform: rotate(180deg);
}
.hm-cat-picker__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 1100;
  min-width: 22rem;
  max-height: 32rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  animation: hmPickerIn 0.16s ease;
}
@keyframes hmPickerIn {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hm-cat-picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  transition: none;
}
.hm-cat-picker__item.active {
  background: var(--brand-tint);
}
.hm-cat-picker__item.selected {
  color: var(--main-color);
  font-weight: 600;
}
.hm-cat-picker__item i {
  font-size: 1.1rem;
}
.hm-search-btn {
  position: static;
  flex: 0 0 4.8rem;
  height: auto;
  padding: 0;
  background: var(--main-color);
  border-radius: 0 0.8rem 0.8rem 0;
  color: #fff;
  font-size: 1.5rem;
}
.hm-search-btn:hover {
  background: var(--hover-color);
}

.hm-icons {
  gap: 2.4rem;
}
.hm-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.hm-account__small {
  font-size: 1.3rem;
  color: #444;
}
.hm-account__big {
  font-size: 1.6rem;
  font-weight: 600;
}
.hm-account__big i {
  font-size: 0.9rem;
  margin-left: 0.3rem;
}
.hm-account:hover .hm-account__big {
  color: var(--main-color);
}
.hm-cart-btn {
  font-size: 1.9rem;
  color: var(--ink);
}
.hm-icon-badge {
  top: -0.2rem;
  right: -0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--main-color);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===== Nav bar ===== */
.header-nav {
  background: var(--navy);
  border-bottom: 0;
}
.header-nav-inner {
  height: 5.6rem;
}
.cat-btn {
  gap: 1rem;
  padding: 0;
  margin-right: 0;
  background: transparent;
  font-size: 1.6rem;
}
.cat-btn:hover {
  background: transparent;
  color: var(--main-color);
}
.cat-btn i {
  font-size: 1.5rem;
}
.cat-btn .cat-btn__caret {
  font-size: 0.9rem;
}
.nav-menu {
  justify-content: flex-end;
  gap: 0.4rem;
}
.nav-link i {
  font-size: 0.9rem;
}
.nav-link {
  padding: 0 1rem;
  font-size: 1.55rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--main-color);
}

/* ===== Hero ===== */
.hero-section {
  padding: 2.4rem 5% 2.4rem;
}
.hero-row {
  grid-template-columns: 28rem 1fr;
  grid-template-rows: 46rem;
  gap: 2.4rem;
}

.cat-sidebar {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}
.cat-sidebar-heading {
  gap: 1rem;
  padding: 1.7rem 2rem;
  background: var(--main-color);
  border-bottom: 0;
  font-size: 1.6rem;
  font-weight: 600;
}
.cat-sidebar-heading .fa-chevron-down {
  font-size: 0.9rem;
}
.cat-list-toggle {
  font-size: 0.9rem;
}
.cat-list-item {
  border-bottom: 1px solid var(--line);
}
/* Figma: Inter Medium, line-height 100%, #000 */
.cat-list-link {
  padding: 1.35rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  color: #000000;
}
.cat-list-link-left {
  font-family: 'Inter', sans-serif;
}
.cat-list-link-left {
  gap: 1.3rem;
}
.cat-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--main-color);
  font-size: 20px;
  flex-shrink: 0;
}
.cat-list-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cat-list-toggle {
  border: 0;
  color: #999;
}
.cat-list-item.open .cat-list-toggle {
  background: transparent;
  color: var(--main-color);
}
.cat-sub-list {
  background: var(--brand-soft);
}

.banner-slide {
  border-radius: 1.6rem;
}
.bs-hero-slide {
  display: flex;
  align-items: center;
  background: #f3ebe1;
}
.bs-hero-slide__text {
  position: relative;
  z-index: 2;
  flex: 0 0 48%;
  padding: 0 0 0 7%;
}
.bs-hero-slide__tag {
  margin-bottom: 1rem;
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: 600;
}
.bs-hero-slide__title {
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.25;
}
.bs-hero-slide__title strong {
  display: block;
  font-weight: 700;
}
.bs-hero-slide__sub {
  margin: 0 0 2.6rem;
  max-width: 36rem;
  color: #222;
  font-size: 2rem;
  line-height: 1.4;
}
.bs-hero-slide__cta {
  display: inline-block;
  padding: 1.1rem 2.4rem;
  background: var(--main-color);
  border-radius: 0.6rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
}
.bs-hero-slide__cta:hover {
  background: var(--hover-color);
  color: #fff;
}
.bs-hero-slide__media {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3rem 4rem 3rem 0;
}
.banner-slide .bs-hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.banner-arrow {
  background: #fff;
}

/* ===== Features strip ===== */
.bs-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0 5% 3rem;
  padding: 2.4rem 3.6rem;
  background: var(--brand-soft);
  border: 1px solid #f6e3d4;
  border-radius: 1.6rem;
}
.bs-features__item {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.bs-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 5rem;
  height: 5rem;
  background: #ffe6d3;
  border-radius: 50%;
}
.bs-features__icon img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}
.bs-features__item h4 {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 600;
}
.bs-features__item p {
  margin: 0;
  color: #444;
  font-size: 1.35rem;
}

/* ===== Product rails ===== */
.bs-rail {
  margin: 0 5% 3rem;
  padding: 2.8rem 3.6rem 3.2rem;
  background: #f6f6f7;
  border-radius: 1.6rem;
}
.bs-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}
/* Figma: Bricolage Grotesque Bold 32px, line-height 100%, #000 */
.bs-rail__title {
  margin: 0;
  color: #000000;
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0;
}
.bs-rail__see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #107dfb;
  font-size: 1.5rem;
  font-weight: 500;
}
.bs-rail__see-all:hover {
  color: var(--main-color);
}
.bs-rail__see-all i {
  font-size: 1.2rem;
}
.bs-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 2.4rem) / 5);
  gap: 2.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.bs-rail__track::-webkit-scrollbar {
  display: none;
}

.bs-book {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  scroll-snap-align: start;
}
.bs-book__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.4rem;
  padding: 1.4rem;
  background: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
}
.bs-book__cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.bs-book:hover .bs-book__cover img {
  transform: scale(1.04);
}
.bs-book__off {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.2rem 0.7rem;
  background: var(--main-color);
  border-radius: 0.4rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}
.bs-book__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
  color: #000000;
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.bs-book:hover .bs-book__title {
  color: var(--main-color);
}
.bs-book__author {
  font-family: var(--display-font);
  margin-bottom: 0.5rem;
  color: var(--main-color);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-book__price {
  font-family: var(--display-font);
  color: var(--main-color);
  font-size: 1.7rem;
  font-weight: 700;
}
.bs-book__price del {
  margin-left: 0.6rem;
  /* legacy `* { text-decoration: none }` strips <del>'s strike-through */
  text-decoration: line-through !important;
  text-decoration-color: #999;
  color: #999;
  font-size: 1.2rem;
  font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .bs-rail__track {
    grid-auto-columns: calc((100% - 3 * 2.4rem) / 4);
  }
  .hm-icons {
    gap: 1.6rem;
  }
}

@media (max-width: 991px) {
  .hm-account {
    display: none !important;
  }
  .hm-icons {
    gap: 0.4rem;
  }
  .bs-hero-slide__text {
    flex-basis: 60%;
    padding-left: 6%;
  }
  .bs-hero-slide__title {
    font-size: 2.6rem;
  }
  .bs-hero-slide__sub {
    margin-bottom: 1.6rem;
    font-size: 1.6rem;
  }
  .bs-hero-slide__media {
    padding: 2rem 2rem 2rem 0;
  }
  .bs-features {
    grid-template-columns: repeat(2, 1fr);
    margin: 2rem 3% 2.4rem;
    padding: 2rem;
  }
  .bs-rail {
    margin: 0 3% 2.4rem;
    padding: 2rem 1.6rem 2.4rem;
  }
  .bs-rail__track {
    grid-auto-columns: calc((100% - 2 * 1.6rem) / 3);
    gap: 1.6rem;
  }
}

@media (max-width: 575px) {
  .bs-rail__title {
    font-size: 24px;
  }
  .bs-hero-slide__text {
    flex-basis: 64%;
  }
  .bs-hero-slide__title {
    font-size: 2.1rem;
  }
  .bs-hero-slide__sub {
    display: none;
  }
  .bs-features {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .bs-rail__track {
    grid-auto-columns: calc((100% - 1.6rem) / 2);
  }
}

/* ===== Catalog: price range slider ===== */
.books-catalog__price-range {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.books-catalog__price-range-label {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}
.price-slider__values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
}
.price-slider__control {
  position: relative;
  height: 2rem;
}
.price-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #e3e3e3 var(--lo),
    var(--main-color) var(--lo),
    var(--main-color) var(--hi),
    #e3e3e3 var(--hi)
  );
}
/* Two stacked native ranges: only the thumbs take pointer events */
.price-slider__control input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  transition: none;
}
.price-slider__control input[type='range']::-webkit-slider-runnable-track {
  height: 100%;
  background: none;
}
.price-slider__control input[type='range']::-moz-range-track {
  background: none;
}
.price-slider__control input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: calc((2rem - 18px) / 2);
  border: 3px solid var(--main-color);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: grab;
  pointer-events: auto;
}
.price-slider__control input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid var(--main-color);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: grab;
  pointer-events: auto;
}
.price-slider__control input[type='range']:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.1);
}
.price-slider__control input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(253, 110, 0, 0.25);
}

/* ===== Product detail page ===== */
.pd {
  padding: 1.6rem 5% 1rem;
}
.pd-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 2.4rem;
  font-size: 1.45rem;
  color: #111;
}
.pd-crumbs__item {
  display: inline-flex;
  align-items: center;
}
.pd-crumbs__item a {
  color: #111;
}
.pd-crumbs__sep {
  margin: 0 1rem;
  font-size: 1rem;
  color: #333;
}
.pd-crumbs .pd-crumbs__link {
  color: #107dfb;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.pd-skeleton {
  height: 46rem;
  border-radius: 1.6rem;
  background: #f5f5f5;
}

.pd-main {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

/* Gallery */
.pd-gallery {
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
}
.pd-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 0 0 10.4rem;
}
.pd-thumbs__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 44rem;
  overflow-y: auto;
  scrollbar-width: none;
}
.pd-thumbs__list::-webkit-scrollbar {
  display: none;
}
.pd-thumbs__item {
  flex: 0 0 auto;
  width: 10.4rem;
  height: 10.4rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.pd-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-thumbs__item.active,
.pd-thumbs__item:hover {
  border-color: var(--main-color);
}
.pd-thumbs__more {
  padding: 0.4rem 1rem;
  background: none;
  border: 0;
  color: #111;
  font-size: 1.8rem;
  cursor: pointer;
}
.pd-image {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4.2;
  padding: 3rem;
  background: #f5f5f5;
  border-radius: 1.6rem;
}
.pd-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Info */
.pd-title {
  margin: 0 0 0.8rem;
  color: #000;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}
.pd-subtitle {
  margin: 0 0 0.6rem;
  color: #222;
  font-size: 1.6rem;
}
.pd-by {
  margin: 0 0 1.2rem;
  color: #222;
  font-size: 1.6rem;
}
.pd-link {
  color: #107dfb;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-transform: uppercase !important;
}
.pd-link-plain {
  color: #107dfb;
}
.pd-link:hover,
.pd-link-plain:hover {
  color: var(--main-color);
}
.pd-muted {
  color: var(--muted);
  font-size: 1.4rem;
}
.pd-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
  font-size: 1.5rem;
}
.pd-rating-row strong {
  font-weight: 600;
}
.pd-stars {
  display: inline-flex;
  gap: 0.2rem;
  color: #f5b301;
  font-size: 1.8rem;
}
.pd-tag {
  padding: 0.3rem 1rem;
  background: var(--main-color);
  border-radius: 0.3rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.pd-price {
  color: #000;
  font-size: 3rem;
  font-weight: 700;
}
.pd-mrp {
  color: #888;
  font-size: 1.4rem;
  text-decoration: line-through !important;
}
.pd-off {
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 700;
}
.pd-save,
.pd-tax {
  margin: 0 0 0.6rem;
  color: #222;
  font-size: 1.55rem;
}
.pd-save span {
  color: var(--main-color);
}
.pd-tax {
  margin-bottom: 1.8rem;
}
.pd-delivery {
  margin: 0 0 1.6rem;
  color: #111;
  font-size: 1.55rem;
}
.pd-delivery strong {
  font-weight: 700;
}
.pd-green {
  color: #1f9d55;
}

.pd-pin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  color: #222;
  font-size: 1.55rem;
}
.pd-pin > i {
  font-size: 1.8rem;
}
.pd-pin__value {
  padding: 0;
  background: none;
  border: 0;
  color: #107dfb;
  font-size: 1.55rem;
  cursor: pointer;
}
.pd-pin__form {
  display: flex;
  gap: 0.6rem;
}
.pd-pin__form input {
  width: 13rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1.4rem;
}
.pd-pin__form button {
  padding: 0.5rem 1.2rem;
  background: var(--main-color);
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1.3rem;
}
.pd-pin__form button:disabled {
  opacity: 0.5;
}

.pd-stock {
  margin: 0 0 2rem;
  color: #1f9d55;
  font-size: 2rem;
  font-weight: 600;
}
.pd-stock.out {
  color: #d93025;
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3rem;
}
.pd-btn {
  flex: 0 1 24rem;
  height: 5rem;
  border: 0;
  border-radius: 0.6rem;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  cursor: pointer;
}
.pd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pd-btn--cart {
  background: #eb5b21;
}
.pd-btn--cart:hover:not(:disabled) {
  background: #d24c15;
}
.pd-btn--buy {
  background: linear-gradient(90deg, #1d4ed8, #2f7bf6);
}
.pd-btn--buy:hover:not(:disabled) {
  background: linear-gradient(90deg, #1a44bd, #2468e0);
}
.pd-wish {
  flex: 0 0 5rem;
  height: 5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  color: #555;
  font-size: 1.9rem;
  cursor: pointer;
}
.pd-wish.active,
.pd-wish:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
}
.pd-trust__item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.pd-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 4.4rem;
  height: 4.4rem;
  background: #ffe6d3;
  border-radius: 50%;
  color: var(--main-color);
  font-size: 1.7rem;
}
.pd-trust__item strong {
  display: block;
  color: #111;
  font-size: 1.4rem;
  font-weight: 600;
}
.pd-trust__item small {
  color: #444;
  font-size: 1.25rem;
}

/* Details, reviews */
.pd-section {
  margin-top: 4rem;
}
.pd-section__title {
  margin: 0 0 1.8rem;
  color: #000;
  font-size: 2.4rem;
  font-weight: 600;
}
.pd-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4rem;
  row-gap: 1rem;
  max-width: 90rem;
  margin: 0;
}
.pd-details__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  font-size: 1.55rem;
  color: #111;
}
.pd-details dt {
  font-weight: 400;
}
.pd-details dd {
  margin: 0;
}
.pd-description {
  max-width: 90rem;
  margin: 2rem 0 0;
  color: #333;
  font-size: 1.5rem;
  line-height: 1.6;
  white-space: pre-line;
}
.pd-review {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.pd-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
}
.pd-review .pd-stars {
  font-size: 1.4rem;
}
.pd-review p {
  margin: 0.6rem 0;
  color: #333;
  font-size: 1.45rem;
}
.pd-review small {
  color: var(--muted);
  font-size: 1.25rem;
}
.pd + .bs-rail {
  margin-top: 4rem;
}

@media (max-width: 1100px) {
  .pd-main {
    grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
    gap: 3rem;
  }
  .pd-thumbs {
    flex-basis: 8rem;
  }
  .pd-thumbs__item {
    width: 8rem;
    height: 8rem;
  }
}

@media (max-width: 767px) {
  .pd {
    padding: 1.2rem 3% 1rem;
  }
  .pd-main {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  /* thumbnails move under the main image and scroll sideways */
  .pd-gallery {
    flex-direction: column-reverse;
    gap: 1.2rem;
  }
  .pd-thumbs {
    flex-basis: auto;
    width: 100%;
  }
  .pd-thumbs__list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }
  .pd-thumbs__item {
    width: 7rem;
    height: 7rem;
  }
  .pd-thumbs__more {
    display: none;
  }
  .pd-image {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  .pd-title,
  .pd-price {
    font-size: 2.4rem;
  }
  .pd-actions {
    flex-wrap: wrap;
  }
  .pd-btn {
    flex: 1 1 14rem;
  }
  .pd-details {
    grid-template-columns: 1fr;
  }
}

/* ===== Cart page ===== */
.ct {
  padding: 2.4rem 5% 5rem;
  background: #f8f8f8;
}
.ct-title {
  margin: 0 0 1.8rem;
  color: #000;
  font-size: 2.6rem;
  font-weight: 600;
}
.ct-title span {
  font-size: 1.9rem;
  font-weight: 400;
}
.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36rem;
  gap: 2.4rem;
  align-items: start;
}

.ct-items {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0.8rem;
}
.ct-item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 8rem 12.6rem 8rem;
  align-items: center;
  gap: 2.4rem;
  padding: 2rem 2.4rem;
  border-bottom: 1px solid #e6e6e6;
}
.ct-item:last-child {
  border-bottom: 0;
}
.ct-item__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16rem;
}
.ct-item__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ct-item__info {
  align-self: start;
  padding-top: 1rem;
}
.ct-item__title {
  display: block;
  margin-bottom: 0.8rem;
  color: #000;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}
.ct-item__title:hover {
  color: var(--main-color);
}
.ct-item__by {
  margin: 0 0 0.8rem;
  color: #111;
  font-size: 1.5rem;
}
.ct-item__stock {
  margin: 0 0 0.8rem;
  color: #1f9d55;
  font-size: 1.5rem;
}
.ct-item__stock.out {
  color: #d93025;
}
.ct-item__links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.5rem;
}
.ct-item__links span {
  color: #107dfb;
}
.ct-item__links button {
  padding: 0;
  background: none;
  border: 0;
  color: #107dfb;
  font-size: 1.5rem;
  cursor: pointer;
}
.ct-item__links button:hover {
  text-decoration: underline !important;
}
.ct-item__price,
.ct-item__total {
  color: #000;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: right;
}
.ct-qty-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct-qty-note {
  position: absolute;
  top: calc(100% + 0.4rem);
  margin: 0;
  color: #d93025;
  font-size: 1.2rem;
  white-space: nowrap;
}
.ct-qty {
  display: inline-flex;
  align-items: stretch;
  height: 3.6rem;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  overflow: hidden;
}
.ct-qty button {
  width: 3.6rem;
  background: #fff;
  border: 0;
  color: #000;
  font-size: 1.7rem;
  cursor: pointer;
}
.ct-qty button:hover:not(:disabled) {
  background: #f3f3f3;
}
.ct-qty button:disabled {
  color: #bbb;
  cursor: not-allowed;
}
.ct-qty input {
  width: 5rem;
  border: 0;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 1.5rem;
  -moz-appearance: textfield;
}
.ct-qty input::-webkit-outer-spin-button,
.ct-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ct-continue {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.4rem;
  padding: 1.2rem 5.6rem 1.2rem 2.8rem;
  background: #eef6ff;
  border: 1px solid #c9d6e3;
  border-radius: 0.4rem;
  color: #000;
  font-size: 1.7rem;
}
.ct-continue i {
  font-size: 2rem;
}
.ct-continue:hover {
  border-color: #107dfb;
  color: #000;
}

.ct-summary {
  padding: 2.4rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0.8rem;
}
.ct-summary__title {
  margin: 0 0 1.8rem;
  color: #000;
  font-size: 1.9rem;
  font-weight: 600;
}
.ct-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  color: #111;
  font-size: 1.5rem;
}
.ct-green {
  color: #1f9d55;
}
.ct-orange {
  color: var(--main-color);
}
.ct-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 1rem 0 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid #ddd;
  font-size: 1.9rem;
}
.ct-summary__total strong {
  color: #000;
  font-weight: 700;
}
.ct-summary__total small {
  display: block;
  margin-top: 0.6rem;
  color: #111;
  font-size: 1.4rem;
}
.ct-summary__error {
  margin: 0 0 1rem;
  color: #d93025;
  font-size: 1.3rem;
}
.ct-checkout {
  display: block;
  padding: 1.3rem;
  background: linear-gradient(90deg, #f8e233, #f6d64a);
  border-radius: 0.6rem;
  color: #000;
  font-size: 1.7rem;
  font-weight: 500;
  text-align: center;
}
.ct-checkout:hover {
  background: linear-gradient(90deg, #f2d81f, #efcb33);
  color: #000;
}
.ct-summary__block {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid #ddd;
}
.ct-summary__block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.ct-summary__label {
  margin: 0 0 1.4rem;
  color: #111;
  font-size: 1.5rem;
}
.ct-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.ct-pay__mark {
  display: inline-flex;
  align-items: center;
}
.ct-pay__mark--circles {
  position: relative;
  flex-direction: column;
  width: 4.4rem;
}
.ct-pay__mark--circles i {
  position: absolute;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.ct-pay__mark--circles i:first-child {
  left: 0.2rem;
}
.ct-pay__mark--circles i:nth-child(2) {
  left: 1.6rem;
}
.ct-pay__mark--circles small {
  margin-top: 2.8rem;
  color: #222;
  font-size: 0.8rem;
}
.ct-pay__visa {
  color: #1a1f71;
  font-size: 2rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05rem;
}
.ct-pay__rupay {
  color: #5d3a8e;
  font-size: 2rem;
  font-style: italic;
  font-weight: 800;
}
.ct-pay__rupay b {
  margin-left: 0.2rem;
  color: #f47a20;
}
.ct-summary__addr-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  color: #000;
  font-size: 1.9rem;
  font-weight: 600;
}
.ct-summary__addr {
  margin: 0 0 1.8rem;
  color: #111;
  font-size: 1.5rem;
  line-height: 1.5;
}
.ct-addr-btn {
  display: block;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid #107dfb;
  border-radius: 0.4rem;
  color: #107dfb;
  font-size: 1.7rem;
  text-align: center;
}
.ct-addr-btn:hover {
  background: #eef6ff;
  color: #107dfb;
}

@media (max-width: 1100px) {
  .ct-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .ct {
    padding: 1.6rem 3% 4rem;
  }
  /* image | details, then price / qty / total in a row underneath */
  .ct-item {
    grid-template-columns: 8rem minmax(0, 1fr) auto;
    grid-template-areas:
      'img info info'
      'img price total'
      'qty qty qty';
    gap: 1rem 1.6rem;
    padding: 1.6rem;
  }
  .ct-item__img {
    grid-area: img;
    height: 11rem;
  }
  .ct-item__info {
    grid-area: info;
    padding-top: 0;
  }
  .ct-item__price {
    grid-area: price;
    text-align: left;
  }
  .ct-item__total {
    grid-area: total;
  }
  .ct-qty-wrap {
    grid-area: qty;
    justify-self: start;
    align-items: flex-start;
  }
  .ct-qty-note {
    position: static;
    margin-top: 0.4rem;
  }
  .ct-item__title {
    font-size: 1.7rem;
  }
}

/* ===== Stock cap on quantity steppers (Quick View, Wishlist, Checkout) ===== */
.qty-max-note {
  margin: 0.5rem 0 0;
  color: #d93025;
  font-size: 1.2rem;
}
.product-detail__qty-btn:disabled,
.wishlist-section__qty-btn:disabled,
.order-detail-section__qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Checkout (3 steps) ===== */
.co {
  padding: 2.4rem 5% 5rem;
  background: #f8f8f8;
}
.co-title {
  margin: 0 0 1.8rem;
  color: #000;
  font-size: 2.6rem;
  font-weight: 600;
}
.co-layout {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr) 36rem;
  gap: 2.4rem;
  align-items: start;
}

.co-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.co-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
  background: none;
  border: 0;
  border-radius: 0.2rem;
  color: #555;
  font-size: 1.4rem;
  text-align: left;
  cursor: default;
}
.co-step.active {
  background: #e8e8e8;
  color: #1d5fd6;
}
.co-step.done {
  color: #111;
  cursor: pointer;
}
.co-step.done:hover {
  background: #efefef;
}
.co-step:disabled {
  opacity: 1;
}
.co-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.2rem;
  height: 2.2rem;
  background: #9a9a9a;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
}
.co-step.active .co-step__num {
  background: #1d5fd6;
}
.co-step.done .co-step__num {
  background: #1f9d55;
  font-size: 1rem;
}

.co-card {
  padding: 2.4rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0.8rem;
}
.co-card__title {
  margin: 0 0 1.6rem;
  color: #000;
  font-size: 2rem;
  font-weight: 600;
}
.co-note {
  margin: -0.6rem 0 1.4rem;
  color: #555;
  font-size: 1.3rem;
}
.co-note a {
  color: #107dfb;
}
.co-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.co-field label,
.co-label {
  color: #111;
  font-size: 1.3rem;
}
.co-label {
  margin: 1.8rem 0 0.8rem;
  font-weight: 600;
}
.co-card__title + .co-label {
  margin-top: 0;
}
.co-field input,
.co-field select,
.co-field textarea,
.co-phone {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 0.4rem;
  color: #111;
  font-size: 1.4rem;
}
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus,
.co-phone:focus-within {
  border-color: #1d5fd6;
}
.co-phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.co-phone span {
  color: #111;
}
.co-field .co-phone input {
  padding: 0;
  border: 0;
}
.co-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
}
.co-row .co-field:only-child {
  max-width: calc(50% - 1.2rem);
}
.co-check {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem 0 1.8rem;
  color: #444;
  font-size: 1.3rem;
  cursor: pointer;
}
.co-check input {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: #1d5fd6;
}
.co-error {
  margin: 0 0 1.2rem;
  color: #d93025;
  font-size: 1.3rem;
}
.co-ok {
  margin: 0 0 1.2rem;
  color: #1f9d55;
  font-size: 1.3rem;
}
.co-primary {
  width: 100%;
  padding: 1.3rem;
  background: linear-gradient(90deg, #f8e233, #f6d64a);
  border: 0;
  border-radius: 0.6rem;
  color: #000;
  font-size: 1.8rem;
  font-weight: 500;
  cursor: pointer;
}
.co-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #f2d81f, #efcb33);
}
.co-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.co-secondary {
  flex: 0 0 auto;
  padding: 1.3rem 2.4rem;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 0.6rem;
  color: #111;
  font-size: 1.6rem;
  cursor: pointer;
}
.co-actions {
  display: flex;
  gap: 1.2rem;
}

.co-option {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.6rem;
  cursor: pointer;
}
.co-option.selected {
  background: #f3f7ff;
  border-color: #1d5fd6;
}
.co-option input {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: #1d5fd6;
}
.co-option__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.co-option__text strong {
  color: #111;
  font-size: 1.5rem;
  font-weight: 600;
}
.co-option__text small {
  color: #666;
  font-size: 1.25rem;
}
.co-option__price {
  color: #111;
  font-size: 1.5rem;
  font-weight: 600;
}
.co-option__icon {
  color: var(--main-color);
  font-size: 2rem;
}
.co-billing {
  padding-top: 0.4rem;
}

.co-review {
  margin-bottom: 1.4rem;
  padding: 1.4rem;
  border: 1px solid #e6e6e6;
  border-radius: 0.6rem;
}
.co-review__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  color: #666;
  font-size: 1.3rem;
}
.co-review__head button {
  padding: 0;
  background: none;
  border: 0;
  color: #107dfb;
  font-size: 1.3rem;
  cursor: pointer;
}
.co-review p {
  margin: 0;
  color: #111;
  font-size: 1.4rem;
  line-height: 1.6;
}
.co-coupon {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.co-coupon input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.2rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  text-transform: uppercase !important;
}
.co-coupon button {
  padding: 0 1.8rem;
  background: #111;
  border: 0;
  border-radius: 0.4rem;
  color: #fff;
  font-size: 1.4rem;
}

.co-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.co-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  color: #111;
  font-size: 1.5rem;
}
.co-green {
  color: #1f9d55;
}
.co-orange {
  color: var(--main-color);
}
.co-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid #ddd;
  color: #000;
  font-size: 1.9rem;
}
.co-summary__tax {
  display: block;
  margin-top: 0.6rem;
  color: #111;
  font-size: 1.4rem;
}
.co-items {
  padding: 1.8rem 2rem;
}
.co-items__title {
  margin: 0 0 1.2rem;
  color: #000;
  font-size: 1.3rem;
  font-weight: 600;
}
.co-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 1.2rem;
}
.co-item img {
  width: 4rem;
  height: 5.6rem;
  object-fit: cover;
}
.co-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.co-item__name {
  color: #111;
  font-size: 1.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-item__qty {
  color: #111;
  font-size: 1.35rem;
}
.co-item__problem {
  color: #d93025;
  font-size: 1.2rem;
}
.co-item__price {
  color: #000;
  font-size: 1.45rem;
  font-weight: 600;
}
.co-items__edit {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: #e8f1ff;
  border-radius: 0.2rem;
  color: #107dfb;
  font-size: 1.2rem;
}
.co-items__edit:hover {
  background: #d8e8ff;
  color: #107dfb;
}

@media (max-width: 1200px) {
  .co-layout {
    grid-template-columns: minmax(0, 1fr) 34rem;
  }
  /* steps become a horizontal bar above the form */
  .co-steps {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .co {
    padding: 1.6rem 3% 4rem;
  }
  .co-layout {
    grid-template-columns: 1fr;
  }
  .co-row {
    grid-template-columns: 1fr;
  }
  .co-row .co-field:only-child {
    max-width: none;
  }
}

/* Sign-in page: shown when a guest is sent here from checkout */
.login-section__checkout-notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 0 1.6rem;
  padding: 1.2rem 1.4rem;
  background: var(--brand-tint);
  border: 1px solid #ffd3b0;
  border-radius: 0.6rem;
  color: #6b3300;
  font-size: 1.35rem;
  line-height: 1.5;
}
.login-section__checkout-notice i {
  margin-top: 0.3rem;
  color: var(--main-color);
}
