@import url("common.css");
@import url("cart.css");

/* Page-specific overrides */
html {
  height: 100%;
}

body {
  background-size: cover;
  background-repeat: repeat;
  position: relative;
}

#background {
  display: none !important;
}

#content {
  padding-top: 4.5em;
  top: 0;
  min-height: 100vh;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  max-width: 1100px;
  margin: 1.5em auto 0.5em;
  padding: 0 1.5em;
  text-align: left;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5em;
  color: #ffba01;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #ffba01;
}

.breadcrumbs [aria-current="page"] {
  color: #ffba01;
  font-weight: 700;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
  max-width: 1180px;
  margin: 1.5em auto 4em;
  padding: 0 1.5em;
}

.product-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) 1.25fr;
  gap: 3em;
  align-items: stretch;
  padding: 4.8em 2.8em 2.6em;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid rgba(255, 186, 1, 0.18);
  background: linear-gradient(
      180deg,
      rgba(255, 186, 1, 0.12) 0%,
      rgba(24, 20, 14, 0.6) 100%
    ),
    rgba(24, 20, 14, 0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.product-detail-vector {
  position: relative;
  min-height: 480px;
  overflow: visible;
  border: none;
  background: transparent;
}

.product-detail-vector img {
  position: absolute;
  top: 15%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 210%;
  transform: translate(-42%, -50%) rotate(16deg);
  opacity: 0.6;
  filter: drop-shadow(0 0 24px rgba(255, 186, 1, 0.25));
  pointer-events: none;
}

.product-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-align: left;
}

.product-detail-title {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #f6b717;
  padding-bottom: 0.5em;
  line-height: 1.1;
}

.product-detail-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-height: 14em;
  overflow-y: auto;
  padding-right: 0.4em;
}

.product-detail-description p {
  margin: 0 0 0.8em;
  font-size: 0.95rem;
}

.product-detail-description p:last-child {
  margin-bottom: 0;
}

.product-option-description {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

.product-option-description[hidden] {
  display: none;
}

.product-option-wrap {
  display: flex;
  border: 2px solid #c98e1a;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(225, 163, 33, 0.22) 0%,
    rgba(120, 80, 10, 0.18) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.product-option-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffb601' d='M6 8 0 0h12z'/></svg>")
    no-repeat right 1.1em center;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-align-last: center;
  padding: 0.9em 2.2em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.product-option-select option {
  background: #2a2121;
  color: #fff;
  font-weight: 700;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-top: 0.4em;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}

.row-label {
  opacity: 0.9;
}

.product-row .price {
  font-weight: 800;
  color: #ffba01;
  font-size: 1.1rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.qty-btn {
  background: transparent no-repeat center / contain;
  color: transparent;
  border: none;
  padding: 0;
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: filter 0.2s ease, transform 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.qty-btn.minus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><polygon points='12,3 12,13 3.5,8' fill='%23ffb601' stroke='%23ffb601' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/></svg>");
}

.qty-btn.plus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><polygon points='4,3 4,13 12.5,8' fill='%23ffb601' stroke='%23ffb601' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/></svg>");
}

.qty-btn:hover {
  filter: brightness(1.2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  transform: scale(1.1);
}

.qty {
  min-width: 2em;
  padding: 0.2em 1em;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(74, 52, 11, 0.4);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.qty-price {
  align-self: center;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  padding: 0.4em 0 0.2em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  width: 100%;
  padding: 1em;
  margin-top: 0.4em;
  border: none;
  border-radius: 1em;
  background: linear-gradient(90deg, #c48d00 0%, #a56f00 49%, #7a4f00 100%);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(206, 134, 0, 0.35);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.add-to-cart:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.add-to-cart img {
  width: 1.6em;
  height: auto;
  filter: brightness(0) invert(1);
}

.back-to-shop {
  position: absolute;
  top: 1.4em;
  left: 1.6em;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 1, 0.25);
  background: rgba(24, 20, 14, 0.45);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    transform 0.2s ease;
}

.back-to-shop span {
  font-size: 1.1rem;
  line-height: 1;
  color: #ffba01;
  transition: transform 0.2s ease;
}

.back-to-shop:hover {
  color: #fff;
  border-color: #ffba01;
  background: rgba(255, 186, 1, 0.12);
}

.back-to-shop:hover span {
  transform: translateX(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 860px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 1.8em;
    padding: 1.8em;
  }

  .product-detail-vector {
    min-height: 320px;
  }

  .product-detail-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: 0 1em;
  }

  .product-detail-card {
    padding: 1.2em;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }

  .qty-price {
    font-size: 1.6rem;
  }
}
