/* ==========================================
   PRODUCT DETAIL PAGE – product.css
   ========================================== */

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 14px 20px;
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #111;
}

.breadcrumb span {
  color: #ccc;
}

.breadcrumb-current {
  color: #111 !important;
  font-weight: 500;
}

/* ── PDP Layout ── */
.pdp {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0 0 40px;
}

/* ── Gallery ── */
.pdp-gallery {
  position: relative;
}

.pdp-main-img {
  background: #f2f2f2;
  overflow: hidden;
}

.pdp-main-img img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.pdp-thumbnails {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  overflow-x: auto;
}

.pdp-thumb {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  background: #f2f2f2;
}

.pdp-thumb.active {
  border-color: #111;
}

.pdp-thumb:hover:not(.active) {
  border-color: #ccc;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Product Info ── */
.pdp-info {
  padding: 20px 20px 0;
}

.pdp-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #111;
  margin-bottom: 4px;
}

.pdp-variant {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.pdp-price {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
}

/* ── Labels ── */
.pdp-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 10px;
}

/* ── Color Swatches ── */
.pdp-colors {
  margin-bottom: 24px;
}

.pdp-color-swatches {
  display: flex;
  gap: 8px;
}

.pdp-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
}

.pdp-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111;
}

.pdp-swatch:hover:not(.active) {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ccc;
}

/* ── Size Grid ── */
.pdp-sizes {
  margin-bottom: 24px;
}

.pdp-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 52px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.size-btn:hover {
  border-color: #111;
}

.size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ── Quantity ── */
.pdp-quantity {
  margin-bottom: 24px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: fit-content;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-input {
  width: 50px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #111;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

/* ── Add to Cart Button ── */
.pdp-atc {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

/* ── Accordions ── */
.pdp-description,
.pdp-delivery {
  border-top: 1px solid #eee;
}

.pdp-description details,
.pdp-delivery details {
  padding: 0;
}

.pdp-description summary,
.pdp-delivery summary {
  padding: 16px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdp-description summary::-webkit-details-marker,
.pdp-delivery summary::-webkit-details-marker {
  display: none;
}

.pdp-description summary::after,
.pdp-delivery summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
}

.pdp-description details[open] summary::after,
.pdp-delivery details[open] summary::after {
  content: '−';
}

.pdp-description p,
.pdp-delivery p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  padding-bottom: 16px;
}

/* ── Cart Toast Notification ── */
.cart-toast {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: top 0.4s ease;
}

.cart-toast.show {
  top: 20px;
}

.cart-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cart-toast-inner svg {
  stroke: #4caf50;
  flex-shrink: 0;
}

.cart-toast-link {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: underline;
  margin-left: 10px;
}

/* ==========================================
   RESPONSIVE – TABLET (768px+)
   ========================================== */
@media (min-width: 768px) {
  .pdp {
    flex-direction: row;
    padding: 0 30px 60px;
    gap: 30px;
  }

  .pdp-gallery {
    flex: 1;
    max-width: 55%;
  }

  .pdp-main-img img {
    max-height: 600px;
    object-fit: cover;
  }

  .pdp-thumbnails {
    padding: 10px 0;
  }

  .pdp-info {
    flex: 1;
    padding: 10px 0 0;
    max-width: 45%;
  }

  .breadcrumb {
    padding: 14px 30px;
  }
}

/* ==========================================
   RESPONSIVE – DESKTOP (1024px+)
   ========================================== */
@media (min-width: 1024px) {
  .pdp {
    padding: 0 60px 80px;
    gap: 50px;
  }

  .pdp-gallery {
    max-width: 58%;
  }

  .pdp-main-img img {
    max-height: 700px;
  }

  .pdp-thumb {
    width: 72px;
    height: 90px;
  }

  .pdp-info {
    max-width: 42%;
    padding: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }

  .pdp-title {
    font-size: 26px;
  }

  .pdp-price {
    font-size: 22px;
  }

  .breadcrumb {
    padding: 14px 60px;
  }
}

/* ==========================================
   RESPONSIVE – LARGE DESKTOP (1440px+)
   ========================================== */
@media (min-width: 1440px) {
  .pdp {
    padding: 0 80px 100px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .breadcrumb {
    padding: 14px 80px;
  }
}

/* ── Model Is Also Wearing ── */
.miaw-container {
  margin-top: 36px;
  background: #f8f8f8;
  padding: 24px;
  border-radius: 2px;
}
.miaw-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
  color: #000;
}
.miaw-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.miaw-item:last-child {
  margin-bottom: 0;
}
.miaw-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
.miaw-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 120px;
}
.miaw-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.miaw-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.miaw-variant {
  font-size: 13px;
  color: #888;
}
.miaw-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.miaw-action {
  display: flex;
  margin-top: auto;
  gap: 0;
}
.miaw-select {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23111%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.miaw-add {
  flex: 1;
  background: #116b53;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.miaw-add:hover {
  background: #0d5440;
}

/* ── You May Also Like ── */
.ymal-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  border-top: 1px solid #eee;
}
.ymal-section h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #111;
  text-align: left;
}
@media (min-width: 768px) {
  .ymal-section {
    padding: 0 30px 60px;
  }
}
@media (min-width: 1024px) {
  .ymal-section {
    padding: 0 60px 80px;
  }
}
@media (min-width: 1440px) {
  .ymal-section {
    padding: 0 80px 80px;
  }
}
