
:root {
  --pd-ink: #172b3a;
  --pd-muted: #697681;
  --pd-border: #e7e9eb;
  --pd-accent: #c49a58;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--pd-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.detail-header {
  min-height: 82px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--pd-border);
}

.detail-logo img {
  width: 125px;
  height: 54px;
  object-fit: contain;
}

.detail-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.detail-header a,
.detail-footer a {
  color: var(--pd-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.detail-header nav a {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-cart {
  border: 1px solid var(--pd-border);
  border-radius: 3px;
  padding: 12px 16px;
}

#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--pd-ink);
  color: white;
}

.detail-main {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 25px 0 75px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--pd-muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(35px, 6vw, 85px);
  align-items: start;
}

.detail-image-frame {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f5f2;
  overflow: hidden;
}

.detail-image-frame img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 9px 13px;
  color: white;
  background: var(--pd-ink);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-information { padding-top: 8px; }

.brand-label {
  margin: 0 0 17px;
  color: var(--pd-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.detail-category {
  margin: 0 0 8px;
  color: var(--pd-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.detail-information h1 {
  margin: 0 0 15px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.8px;
}

.detail-rating {
  margin-bottom: 22px;
  color: #92703b;
  font-size: 13px;
}

.detail-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

#detail-price {
  font-size: 29px;
  font-weight: 700;
}

#detail-old-price {
  color: #879099;
  font-size: 17px;
}

#detail-discount {
  padding: 6px 9px;
  color: #246b4b;
  background: #eaf5ee;
  font-size: 11px;
  font-weight: 700;
}

.tax-note {
  margin: 9px 0 20px;
  color: var(--pd-muted);
  font-size: 12px;
}

.detail-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--pd-border);
}

.stock-label {
  margin: 0 0 22px;
  color: #247348;
  font-size: 13px;
  font-weight: 700;
}

.stock-label.out-of-stock { color: #b42318; }

.quantity-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}

.quantity-row label {
  font-size: 13px;
  font-weight: 700;
}

.quantity-control {
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #d9dde0;
}

.quantity-control button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.quantity-control input {
  width: 45px;
  height: 40px;
  padding: 0;
  border: 0;
  outline: none;
  text-align: center;
  font-size: 14px;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-actions button {
  min-height: 53px;
  padding: 13px;
  border: 1px solid var(--pd-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  transition: .2s ease;
}

.add-cart-button {
  color: white;
  background: var(--pd-ink);
}

.buy-now-button {
  color: var(--pd-ink);
  background: white;
}

.detail-actions button:hover:not(:disabled) {
  border-color: var(--pd-accent);
  background: var(--pd-accent);
  color: white;
}

.detail-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.detail-message {
  min-height: 20px;
  margin: 13px 0;
  color: #247348;
  font-size: 13px;
}

.service-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
}

.service-points > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-points > div > span {
  color: var(--pd-accent);
  font-size: 21px;
}

.service-points p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 11px;
  line-height: 1.8;
}

.service-points strong { color: var(--pd-ink); }

.description-block { padding-top: 18px; }

.description-block h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.description-block p {
  color: #66727b;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-status {
  padding: 35px 0;
  color: var(--pd-muted);
  font-size: 14px;
}

.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 5%;
  background: #111b23;
  color: white;
}

.detail-footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2px;
}

.detail-footer a { color: white; }

@media (max-width: 760px) {
  .detail-header { min-height: 68px; padding: 10px 4%; gap: 12px; }
  .detail-logo img { width: 90px; height: 42px; }
  .detail-header nav { gap: 12px; }
  .detail-header nav a { font-size: 10px; letter-spacing: 0; }
  .header-cart { padding: 9px; font-size: 11px !important; }
  .detail-main { width: 92%; padding-top: 18px; }
  .product-detail { grid-template-columns: 1fr; gap: 27px; }
  .detail-image-frame { min-height: 300px; max-height: 460px; }
  .detail-image-frame img { max-height: 420px; }
  .detail-information { padding-top: 0; }
  .detail-information h1 { font-size: 29px; }
  .detail-actions button { min-height: 49px; font-size: 10px; }
}

@media (max-width: 390px) {
  .detail-header nav { gap: 8px; }
  .detail-header nav a { font-size: 9px; }
  .detail-logo img { width: 68px; }
  .service-points { grid-template-columns: 1fr; }
}


/* NUMBER SIZE BUTTON FIX */
.size-selection {
  display: block;
  position: relative;
  z-index: 2;
  margin: 22px 0;
  width: 100%;
}

.size-heading {
  margin: 0 0 12px;
  color: #172b4d;
  font-size: 14px;
  font-weight: 700;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.size-options .size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 1px solid #d5d9df;
  border-radius: 5px;
  background: #fff;
  color: #172b4d;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.size-options .size-option:hover {
  border-color: #172b4d;
}

.size-options .size-option.selected,
.size-options .size-option[aria-pressed="true"] {
  background: #172b4d;
  border-color: #172b4d;
  color: #fff;
}

.size-options .size-option:focus-visible {
  outline: 2px solid #64748b;
  outline-offset: 3px;
}

.size-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #c62828;
  font-size: 13px;
}

@media (max-width: 480px) {
  .size-options { gap: 8px; }
  .size-options .size-option {
    width: 46px;
    height: 42px;
  }
}


/* HOMEPAGE NAVBAR STYLE */
.detail-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 82px;
  padding: 12px 28px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.detail-header .detail-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.detail-header .detail-logo img {
  display: block;
  width: 112px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.detail-header .detail-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 18px;
}

.detail-header .detail-navigation a {
  color: #172b4d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .35px;
  white-space: nowrap;
  transition: color .2s ease;
}

.detail-header .detail-navigation a:hover {
  color: #a56b36;
}

.detail-header .detail-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.detail-header .detail-header-actions a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.detail-header .detail-login {
  color: #172b4d;
}

.detail-header .detail-register {
  color: #fff;
  background: #172b4d;
  padding: 10px 12px;
  border-radius: 3px;
}

.detail-header .header-cart {
  color: #172b4d;
}

#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  background: #172b4d;
  color: white;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .detail-header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 20px;
  }

  .detail-header .detail-navigation {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .detail-header {
    padding: 12px;
    gap: 10px;
  }

  .detail-header .detail-logo img {
    width: 82px;
  }

  .detail-header .detail-header-actions {
    gap: 9px;
  }

  .detail-header .detail-header-actions a {
    font-size: 11px;
  }

  .detail-header .detail-register {
    padding: 8px;
  }

  .detail-header .detail-navigation {
    gap: 12px;
  }

  .detail-header .detail-navigation a {
    font-size: 10px;
  }
}


/* COLOR BUTTON CLICK FIX */
.color-selection,
.color-options {
  position: relative;
  pointer-events: auto;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 1;
}

.color-options .color-option {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.color-options .color-option.selected,
.color-options .color-option[aria-pressed="true"] {
  outline: 2px solid #172b4d;
  outline-offset: 3px;
  border-color: #172b4d;
  font-weight: 700;
}

.color-options .color-option:focus-visible {
  outline: 2px solid #172b4d;
  outline-offset: 3px;
}


/* ACTUAL COLOR BUTTON STYLES */
.color-options .color-option {
  min-width: 78px;
  min-height: 38px;
  padding: 9px 14px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.color-options .color-option[data-color="Blue"] {
  background: #1769d2;
  color: #ffffff;
}

.color-options .color-option[data-color="Black"] {
  background: #111111;
  color: #ffffff;
}

.color-options .color-option[data-color="Light Blue"] {
  background: #add8e6;
  color: #172b4d;
}

.color-options .color-option[data-color="Grey"] {
  background: #808080;
  color: #ffffff;
}

.color-options .color-option[data-color="Dark Blue"] {
  background: #082b63;
  color: #ffffff;
}

.color-options .color-option[data-color="White"] {
  background: #ffffff;
  color: #222222;
  border-color: #cbd5e1;
}

.color-options .color-option[data-color="Beige"] {
  background: #d8c3a5;
  color: #30271c;
}

.color-options .color-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
}

.color-options .color-option.selected,
.color-options .color-option[aria-pressed="true"] {
  outline: 3px solid #e0a526;
  outline-offset: 2px;
  border-color: #e0a526;
  box-shadow: 0 0 0 2px #ffffff inset;
}

.color-options .color-option:focus-visible {
  outline: 3px solid #e0a526;
  outline-offset: 3px;
}
