/* ==========================================================================
   Product detail page base (məhsul səhifəsi üçün baza stillər)
   Loaded from catalog/controller/product/product.php via $this->document->addStyle()

   Məhsul səhifəsinin dizaynı Tailwind v4 (preflight + utilitlər, @layer içində) və
   layer-siz komponent stilləri üzərində qurulub. Burada həmin baza yalnız
   .gshop-product-page daxilində tətbiq olunur ki, saytın header/footer-inə təsir etməsin.
   Kaskad eynidir: layer-dəki preflight/utilitlər layer-siz qaydalara həmişə uduzur.
   ========================================================================== */

@layer pp-base, pp-utilities;

/* ---------- Preflight (Tailwind v4, scope-lanmış) ---------- */
@layer pp-base {
  .gshop-product-page,
  .gshop-product-page *,
  .gshop-product-page ::after,
  .gshop-product-page ::before,
  .gshop-product-page ::backdrop,
  .gshop-product-page ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }

  .gshop-product-page {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    -webkit-tap-highlight-color: transparent;
  }

  .gshop-product-page hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  .gshop-product-page abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  .gshop-product-page h1,
  .gshop-product-page h2,
  .gshop-product-page h3,
  .gshop-product-page h4,
  .gshop-product-page h5,
  .gshop-product-page h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  .gshop-product-page a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  .gshop-product-page b,
  .gshop-product-page strong {
    font-weight: bolder;
  }

  .gshop-product-page code,
  .gshop-product-page kbd,
  .gshop-product-page samp,
  .gshop-product-page pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
  }

  .gshop-product-page small {
    font-size: 80%;
  }

  .gshop-product-page sub,
  .gshop-product-page sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }

  .gshop-product-page sub {
    bottom: -0.25em;
  }

  .gshop-product-page sup {
    top: -0.5em;
  }

  .gshop-product-page table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  .gshop-product-page :-moz-focusring {
    outline: auto;
  }

  .gshop-product-page progress {
    vertical-align: baseline;
  }

  .gshop-product-page summary {
    display: list-item;
  }

  .gshop-product-page ol,
  .gshop-product-page ul,
  .gshop-product-page menu {
    list-style: none;
  }

  .gshop-product-page img,
  .gshop-product-page svg,
  .gshop-product-page video,
  .gshop-product-page canvas,
  .gshop-product-page audio,
  .gshop-product-page iframe,
  .gshop-product-page embed,
  .gshop-product-page object {
    display: block;
    vertical-align: middle;
  }

  .gshop-product-page img,
  .gshop-product-page video {
    max-width: 100%;
    height: auto;
  }

  .gshop-product-page button,
  .gshop-product-page input,
  .gshop-product-page select,
  .gshop-product-page optgroup,
  .gshop-product-page textarea,
  .gshop-product-page ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }

  .gshop-product-page :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  .gshop-product-page :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  .gshop-product-page ::file-selector-button {
    margin-inline-end: 4px;
  }

  .gshop-product-page ::placeholder {
    opacity: 1;
  }

  @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
    .gshop-product-page ::placeholder {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }

  .gshop-product-page textarea {
    resize: vertical;
  }

  .gshop-product-page ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  .gshop-product-page ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  .gshop-product-page ::-webkit-datetime-edit {
    display: inline-flex;
  }

  .gshop-product-page ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  .gshop-product-page ::-webkit-datetime-edit,
  .gshop-product-page ::-webkit-datetime-edit-year-field,
  .gshop-product-page ::-webkit-datetime-edit-month-field,
  .gshop-product-page ::-webkit-datetime-edit-day-field,
  .gshop-product-page ::-webkit-datetime-edit-hour-field,
  .gshop-product-page ::-webkit-datetime-edit-minute-field,
  .gshop-product-page ::-webkit-datetime-edit-second-field,
  .gshop-product-page ::-webkit-datetime-edit-millisecond-field,
  .gshop-product-page ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  .gshop-product-page :-moz-ui-invalid {
    box-shadow: none;
  }

  .gshop-product-page button,
  .gshop-product-page input:where([type="button"], [type="reset"], [type="submit"]),
  .gshop-product-page ::file-selector-button {
    appearance: button;
  }

  .gshop-product-page ::-webkit-inner-spin-button,
  .gshop-product-page ::-webkit-outer-spin-button {
    height: auto;
  }

  .gshop-product-page [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

/* ---------- Şablonlarda istifadə olunan Tailwind utilitləri ---------- */
@layer pp-utilities {
  .gshop-product-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }

  .gshop-product-page .relative { position: relative; }
  .gshop-product-page .mx-auto { margin-inline: auto; }
  .gshop-product-page .mt-2 { margin-top: 0.5rem; }
  .gshop-product-page .mt-3 { margin-top: 0.75rem; }
  .gshop-product-page .mt-4 { margin-top: 1rem; }
  .gshop-product-page .mt-6 { margin-top: 1.5rem; }
  .gshop-product-page .mt-12 { margin-top: 3rem; }

  .gshop-product-page .line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .gshop-product-page .flex { display: flex; }
  .gshop-product-page .inline-block { display: inline-block; }
  .gshop-product-page .h-\[80px\] { height: 80px; }
  .gshop-product-page .h-\[250px\] { height: 250px; }
  .gshop-product-page .h-full { height: 100%; }
  .gshop-product-page .w-\[80px\] { width: 80px; }
  .gshop-product-page .w-full { width: 100%; }
  .gshop-product-page .flex-wrap { flex-wrap: wrap; }
  .gshop-product-page .items-center { align-items: center; }
  .gshop-product-page .gap-1 { gap: 0.25rem; }
  .gshop-product-page .gap-2 { gap: 0.5rem; }
  .gshop-product-page .overflow-hidden { overflow: hidden; }
  .gshop-product-page .rounded-\[8px\] { border-radius: 8px; }
  .gshop-product-page .bg-\[\#F8F8F8\] { background-color: #f8f8f8; }
  .gshop-product-page .object-contain { object-fit: contain; }
  .gshop-product-page .object-cover { object-fit: cover; }

  .gshop-product-page .text-xl {
    font-size: 1.25rem;
    line-height: calc(1.75 / 1.25);
  }

  .gshop-product-page .text-\[12px\] { font-size: 12px; }
  .gshop-product-page .text-\[18px\] { font-size: 18px; }
  .gshop-product-page .font-\[500\] { font-weight: 500; }
  .gshop-product-page .font-semibold { font-weight: 600; }
  .gshop-product-page .text-\[\#242424\] { color: #242424; }
  .gshop-product-page .text-\[red\] { color: red; }

  .gshop-product-page .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }

  .gshop-product-page .duration-300 { transition-duration: 300ms; }

  @media (hover: hover) {
    .gshop-product-page .hover\:opacity-80:hover { opacity: 80%; }
  }
}

/* ---------- Səhifə kökü (body/html qaydalarının scope-lanmış ekvivalenti) ---------- */
.gshop-product-page {
  color: CanvasText;
  font-family: var(--font, "Gilroy", sans-serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

:where(.gshop-product-page) * {
  outline: none;
}

.gshop-product-page .container {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .gshop-product-page .container {
    padding: 0 16px;
  }
}

/* Header fixed olmadığı üçün qalereya ekranın yuxarısına yapışır */
.gshop-product-page .pd-gallery {
  top: 160px;
}

body:has(.customer_review_dialog[open]) {
  overflow: hidden;
}

/* ==========================================================================
   Komponentlər: məhsul kartları (əlaqəli məhsullar), bildirişlər
   ========================================================================== */
.products_wrapper {
  margin: -24px;
  margin-top: 0px;
  padding: 24px;
  overflow: hidden;
}

.products_slider {
  overflow: visible;
}
.products_slider_two {
  overflow: visible;
}

.home_product_card {
  position: relative;
  display: flex;
  height: auto;
  flex-direction: column;
}

.home_product_card .product_card_slide {
  display: block;
  min-width: 0;
  color: #242424;
  text-decoration: none;
}

.home_product_image {
  display: grid;
  width: 100%;
  height: 250px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
}

.home_product_image img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.home_product_card .product_card_slide:hover img,
.home_product_card .product_card_slide:focus-visible img {
  transform: scale(1.035);
}

.home_product_content {
  display: block;
  min-width: 0;
  margin-top: 8px;
  min-height: 60px;
}


.home_product_description {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 4px;
  overflow: hidden;
  color: #73777b;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home_product_actions {
  display: block;
  margin-top: 0;
}

.home_product_actions button {
  min-height: 38px;
  cursor: pointer;
}

.home_product_actions .add_to_cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 2px solid rgba(255, 0, 0, 0.44);
  border-radius: 7px;
  background: #fff;
  color: #e00000;
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease;
}

.home_product_card .product_card_buttons_wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product_card_icon_btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.home_product_card .product_card_buttons_wrapper svg {
  width: 20px;
  height: 20px;
}

.product_card_icon_btn.wishlist_toggle_btn svg {
  width: 18px;
  height: 18px;
}

.wishlist_toggle_btn svg path {
  transition: fill 150ms ease, stroke 150ms ease;
}

.wishlist_toggle_btn.is-active svg path {
  fill: #e00000;
  stroke: #e00000;
}

.product_card_icon_btn.compare_toggle_btn svg {
  width: 18px;
  height: 18px;
}

.compare_toggle_btn svg circle {
  transition: stroke 150ms ease;
}

.compare_toggle_btn.is-active svg circle {
  stroke: #e00000;
}

/* Global alert stack (used by the generic ajax form handler in common.js) */
.gshop-alert-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.gshop-alert-stack:empty {
  display: none;
}

.gshop-alert-stack .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(23, 29, 36, 0.16);
}

.gshop-alert-stack .alert-danger {
  background: #fdecec;
  color: #a10000;
}

.gshop-alert-stack .alert-success {
  background: #e9f8ef;
  color: #0a7a35;
}

.gshop-alert-stack .alert-info {
  background: #e8f4fb;
  color: #0b5f8a;
}

.gshop-alert-stack .alert i {
  margin-top: 3px;
  flex-shrink: 0;
}

.gshop-alert-stack .alert a {
  color: inherit;
  text-decoration: underline;
}

.gshop-alert-stack .btn-close {
  display: grid;
  place-items: center;
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.gshop-alert-stack .btn-close::before {
  content: "\00d7";
}

.gshop-alert-stack .btn-close:hover {
  opacity: 1;
}

.home_product_actions .add_to_cart:hover,
.home_product_actions .add_to_cart:focus-visible {
  background: #e00000;
  color: #fff;
}

.home_product_actions .add_to_cart:disabled {
  border-color: #d9dde1;
  background: #f2f3f4;
  color: #858a90;
  cursor: not-allowed;
}

.home_product_icon_button {
  border: 0;
  border-radius: 7px;
  background: #f0f2f4;
  color: #4b5055;
  transition: color 180ms ease, background-color 180ms ease;
}

.home_product_icon_button:hover,
.home_product_icon_button:focus-visible {
  background: #fff0f0;
  color: #d00000;
}

.home_product_card a:focus-visible,
.home_product_card button:focus-visible,
.home_product_slider_button:focus-visible {
  outline: 2px solid #e00000;
  outline-offset: 2px;
}

.home_product_slider_button {
  position: absolute;
  top: 145px;
  z-index: 10;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #13181e;
  color: #fff;
  cursor: pointer;
}

.home_product_slider_button svg {
  width: 24px;
  height: 24px;
}

.home_product_slider_button.product-swiper-button-next { right: 0px; }
.home_product_slider_button.product-swiper-button-prev { left: 0px; }

.home_product_slider_button.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.home_products_empty {
  min-height: 88px;
  padding: 28px;
  border: 1px dashed #d7dce1;
  border-radius: 8px;
  color: #6d7379;
  text-align: center;
}

.product_card_buttons_wrapper svg:hover path {
  fill: red;
}
.add_basket:hover path {
  fill: #fff !important;
}
/* .product_card_slide {
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
} */

@media (max-width: 720px) {
  .products_wrapper {
    margin: -24px -16px;
    padding: 24px 16px;
  }

  .home_product_slider_button {
    display: none;
  }

  .home_product_image {
    height: 210px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home_product_image img {
    transition: none;
  }
}

/* ==========================================================================
   Komponentlər: müştəri rəyləri
   ========================================================================== */
.customer_review_wrapper {
  color: #222427;
  font-size: 13px;
}

.customer_review_tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 650px);
  padding: 4px;
  border-radius: 10px;
  background: #eef0f2;
}

.customer_review_tabs button {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #555a60;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.customer_review_tabs button span {
  color: #8b9095;
  font-weight: 400;
}

.customer_review_tabs button.is-active {
  background: #fff;
  color: #050505;
  box-shadow: 0 1px 3px rgba(30, 38, 47, 0.16);
}

.customer_review_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  margin-top: 28px;
}

.customer_review_filters {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.customer_review_filters select {
  min-height: 30px;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 5px;
  background-color: #eef0f2;
  color: #202328;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.customer_review_item {
  padding: 12px 0 22px;
  border-bottom: 1px solid #e4e7eb;
}

.customer_review_item h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.customer_review_meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.customer_stars {
  color: #ffc326;
  font-size: 17px;
  letter-spacing: -2px;
  line-height: 1;
}

.customer_stars i {
  color: #c7cdd5;
  font-style: normal;
}

.customer_review_meta time {
  color: #868b91;
  font-size: 11px;
}

.customer_review_copy {
  display: grid;
  gap: 5px;
  margin-top: 17px;
}

.customer_review_copy p {
  margin: 0;
  line-height: 1.35;
}

.customer_review_votes {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}

.customer_review_votes button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ba0a5;
  font-size: 11px;
  cursor: pointer;
}

.customer_review_votes button span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: currentColor;
  font-size: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10v10H3V10h4Zm3 10a2 2 0 0 1-2-2v-7l3.7-7.2A1.5 1.5 0 0 1 14.5 5v4H20a2 2 0 0 1 2 2.4l-1.3 6.5A2.6 2.6 0 0 1 18.1 20H10Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10v10H3V10h4Zm3 10a2 2 0 0 1-2-2v-7l3.7-7.2A1.5 1.5 0 0 1 14.5 5v4H20a2 2 0 0 1 2 2.4l-1.3 6.5A2.6 2.6 0 0 1 18.1 20H10Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.customer_review_votes button:nth-child(2) span {
  transform: rotate(180deg);
}

.customer_review_votes button.is-selected {
  color: #ff0000;
}

.customer_reviews_more {
  width: 100%;
  min-height: 40px;
  margin-top: 40px;
  border: 0;
  border-radius: 5px;
  background: #eef0f2;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.customer_rating_summary {
  padding-top: 4px;
}

.customer_rating_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e6ea;
}

.customer_rating_head > strong {
  color: #050505;
  font-size: 30px;
  line-height: 1;
}

.customer_rating_stars {
  position: relative;
  display: inline-block;
  color: #c8ced6;
  font-size: 27px;
  letter-spacing: 1px;
  line-height: 1;
}

.customer_rating_stars i {
  display: block;
  font-style: normal;
}

.customer_rating_stars i:last-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 89%;
  overflow: hidden;
  color: #ffc326;
  white-space: nowrap;
}

.customer_rating_summary > p {
  margin: 9px 0 0;
  color: #8a8f94;
  font-size: 14px;
}

.customer_review_open {
  width: 100%;
  min-height: 40px;
  margin-top: 28px;
  border: 0;
  border-radius: 6px;
  background: #ff0000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.customer_review_open:hover,
.customer_review_open:focus-visible,
.customer_review_submit:hover,
.customer_review_submit:focus-visible {
  background: #b80000;
}

.customer_rating_bars {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.customer_rating_bars > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
}

.customer_rating_bars dt {
  color: #777c82;
}

.customer_rating_bars dt span {
  color: #bfc6cf;
}

.customer_rating_bars dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  margin: 0;
}

.customer_rating_bars dd > span {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0f3;
}

.customer_rating_bars dd i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffc326;
}

.customer_rating_bars dd b {
  color: #777c82;
  font-weight: 400;
}

.customer_review_dialog {
  width: min(450px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 42, 58, 0.25);
}

.customer_review_dialog::backdrop {
  background: rgba(244, 246, 248, 0.74);
}

.customer_review_form {
  display: flex;
  max-height: calc(100dvh - 24px);
  flex-direction: column;
}

.customer_review_dialog_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 18px 0 20px;
  background: #ffc62d;
}

.customer_review_dialog_head h2 {
  margin: 0;
  color: #101010;
  font-size: 13px;
  font-weight: 700;
}

.customer_review_close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f5433;
  font-size: 21px;
  cursor: pointer;
}

.customer_review_form_body {
  display: grid;
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
}

.customer_review_rating_field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.customer_review_rating_field legend,
.customer_line_field > span {
  color: #777c82;
  font-size: 12px;
}

.customer_review_rating_field legend span {
  color: #ff0000;
}

.customer_review_star_input {
  display: flex;
  width: fit-content;
  margin-top: 7px;
  flex-direction: row-reverse;
}

.customer_review_star_input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.customer_review_star_input label {
  color: #bdc5d1;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

.customer_review_star_input label:hover,
.customer_review_star_input label:hover ~ label,
.customer_review_star_input input:checked ~ label {
  color: #ffc326;
}

.customer_review_star_input input:focus-visible + label {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

.customer_line_field {
  display: grid;
  gap: 3px;
}

.customer_line_field input,
.customer_line_field textarea {
  width: 100%;
  min-height: 28px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid #d3d8df;
  border-radius: 0;
  background: transparent;
  font: inherit;
}

.customer_review_upload,
.customer_review_check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  background: #eef0f2;
  cursor: pointer;
}

.customer_review_upload svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #545b64;
}

.customer_review_upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.customer_review_upload:has(input:focus-visible) {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

.customer_review_form_body > small {
  color: #697079;
  font-size: 10px;
}

.customer_review_form_body a {
  color: inherit;
  text-decoration: underline;
}

.customer_review_check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.customer_review_check i {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid #d0d6de;
  border-radius: 3px;
  background: #fff;
}

.customer_review_check input:checked + i {
  border-color: #ffc326;
  background: #ffc326;
}

.customer_review_check input:checked + i::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.customer_review_check input:focus-visible + i {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

.customer_review_recommend {
  margin: 6px 0 18px;
}

.customer_review_consent {
  align-items: start;
  font-size: 11px;
  line-height: 1.3;
}

.customer_review_submit {
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  background: #ffe18d;
  color: #9c7420;
  font-size: 13px;
  cursor: pointer;
}

.customer_review_wrapper button:focus-visible,
.customer_review_wrapper select:focus-visible,
.customer_review_wrapper input:focus-visible,
.customer_review_wrapper textarea:focus-visible {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

body:has(.customer_review_dialog[open]) {
  overflow: hidden;
}

@media (max-width: 767px) {
  .customer_review_tabs button {
    font-size: 14px;
  }

  .customer_review_layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .customer_rating_summary {
    grid-row: 1;
  }

  .customer_review_filters {
    flex-wrap: wrap;
  }

  .customer_review_filters label,
  .customer_review_filters select {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .customer_review_tabs {
    grid-template-columns: 1fr;
  }

  .customer_review_dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }

  .customer_review_form {
    max-height: calc(100dvh - 12px);
  }

  .customer_review_form_body {
    padding: 16px;
  }

  .customer_review_star_input label {
    font-size: 42px;
  }
}

/* ==========================================================================
   Komponentlər: səhifə çərçivəsi, breadcrumb, əlaqəli məhsullar slayderi
   ========================================================================== */
.gshop-product-page {
  padding: 24px 0 64px;
}

.gshop-product-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: #777c82;
  font-size: 12px;
  list-style: none;
}

.gshop-product-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b3b7bb;
}

.gshop-product-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.purchase_price_old {
  color: #969ba1;
  font-size: 14px;
  text-decoration: line-through;
}

.purchase_options {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.purchase_option {
  display: grid;
  gap: 6px;
}

.purchase_option > label,
.purchase_quantity label {
  color: #666c72;
  font-size: 12px;
  font-weight: 600;
}

.purchase_option_choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.purchase_option_choices label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.purchase_upload {
  min-height: 38px;
  border: 1px solid #dfe3e7;
  border-radius: 6px;
  background: #f3f4f5;
}


.purchase_quantity input {
  width: 55px;
  min-height: 38px;
  border: 1px solid #dfe3e7;
  border-radius: 6px;
  text-align: center;
}

.purchase_cart_button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.purchase_minimum {
  margin: 8px 0 0;
  color: #9a6500;
  font-size: 12px;
  text-align: center;
}


.product_customer_media_grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.product_customer_media_grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f6f7;
  cursor: pointer;
}

.product_customer_media_grid picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product_customer_media_grid a:focus-visible {
  outline: 2px solid #ff0000;
  outline-offset: 3px;
}

.product_customer_media_grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product_all_features {
  max-width: 820px;
}

.product_attribute_group {
  margin-top: 24px;
}

.product_attribute_group h3 {
  font-size: 16px;
  font-weight: 700;
}

.product_tags {
  margin-top: 24px !important;
}

.gshop-related-products .products_slider {
  overflow: hidden;
}

.gshop-related-products .product-thumb {
  height: 100%;
  border: 0;
  background: transparent;
}

.gshop-related-products .product-thumb .image {
  height: 250px;
  padding: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
}

.gshop-related-products .product-thumb .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gshop-related-products .product-thumb .content,
.gshop-related-products .product-thumb .description {
  display: flex;
  height: auto;
  flex-direction: column;
  padding: 0;
}

.gshop-related-products .product-thumb h4 {
  order: 2;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.gshop-related-products .product-thumb h4 a {
  display: -webkit-box;
  overflow: hidden;
  color: #242424;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gshop-related-products .product-thumb .description > p,
.gshop-related-products .product-thumb .rating,
.gshop-related-products .product-thumb .price-tax {
  display: none;
}

.gshop-related-products .product-thumb .price {
  order: 1;
  margin-top: 8px;
  color: #111;
  font-size: 18px;
  font-weight: 600;
}

.gshop-related-products .product-thumb form {
  margin-top: 12px;
}

.gshop-related-products .product-thumb .button button {
  width: 100%;
  min-height: 36px;
  border: 2px solid rgba(255, 0, 0, 0.44);
  border-radius: 7px;
  background: #fff;
  color: #e00000;
}

.gshop-related-products .product-thumb .button button:not(:first-child) {
  display: none;
}

.gshop-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #13181e;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.gshop-slider-arrow.product-swiper-button-next { right: 0px; }
.gshop-slider-arrow.product-swiper-button-prev { left: 0px; }

@media (max-width: 1023px) {
  .product_details_grid {
    position: static;
  }

  .product_another_wrapper {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .gshop-product-page {
    padding-top: 16px;
  }

  .product_photos_wrapper,
  .product_info_wrapper {
    width: 100%;
    max-width: none;
  }

  .product_customer_media_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gshop-slider-arrow {
    display: none;
  }
}
