/* =========================================
   GLOBAL
========================================= */

.product-page {
  padding: 40px 8% 100px;

  background: #ffffff;
}

/* =========================================
   NAV ACTIVE
========================================= */

.nav-active {
  font-weight: 700 !important;
}

/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  align-items: center;

  margin-bottom: 40px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #888;
}

.breadcrumb a {
  color: #111;

  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span:last-child {
  color: #999;
}

/* =========================================
   PRODUCT DETAILS
========================================= */

.product-details {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 70px;

  align-items: start;
}

/* =========================================
   PRODUCT GALLERY
========================================= */

.product-gallery {
  width: 100%;
}

.main-product-image {
  position: relative;

  width: 100%;

  height: 650px;

  overflow: hidden;

  background: #f2f2f2;
}

.main-product-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.main-product-image:hover img {
  transform: scale(1.04);
}

.detail-badge {
  position: absolute;

  top: 20px;

  left: 20px;

  z-index: 2;

  padding: 8px 12px;

  background: white;

  color: #111;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;
}

/* =========================================
   THUMBNAILS
========================================= */

.product-thumbnails {
  display: flex;

  gap: 12px;

  margin-top: 15px;
}

.thumbnail {
  width: 90px;

  height: 110px;

  padding: 0;

  border: 1px solid transparent;

  background: #eee;

  overflow: hidden;

  cursor: pointer;

  transition: 0.3s;
}

.thumbnail img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.thumbnail:hover {
  transform: translateY(-3px);
}

.thumbnail.active {
  border: 2px solid #111;
}

/* =========================================
   PRODUCT INFORMATION
========================================= */

.product-information {
  position: sticky;

  top: 100px;
}

.product-detail-category {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;

  color: #888;
}

.product-information h1 {
  margin-top: 12px;

  font-size: clamp(32px, 4vw, 55px);

  line-height: 1;

  letter-spacing: -2px;
}

.product-rating {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 22px;
}

.stars {
  font-size: 14px;

  letter-spacing: 2px;
}

.product-rating span {
  font-size: 11px;

  font-weight: 600;
}

.product-rating .reviews {
  color: #888;

  font-weight: 500;
}

/* =========================================
   PRICE
========================================= */

.detail-price {
  margin-top: 25px;

  font-size: 28px;

  font-weight: 700;
}

/* =========================================
   DESCRIPTION
========================================= */

.product-description {
  margin-top: 25px;

  max-width: 600px;

  color: #666;

  line-height: 1.8;

  font-size: 14px;
}

/* =========================================
   AI STYLE MATCH
========================================= */

.ai-style-match {
  margin-top: 30px;

  padding: 20px;

  display: flex;

  align-items: center;

  gap: 15px;

  border: 1px solid #ddd;

  background: #f8f8f8;
}

.ai-match-icon {
  width: 45px;

  height: 45px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #d8ff3f;

  font-size: 20px;
}

.ai-style-match div:nth-child(2) {
  display: flex;

  flex-direction: column;

  gap: 5px;

  flex: 1;
}

.ai-style-match small {
  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #777;
}

.ai-style-match strong {
  font-size: 12px;

  letter-spacing: 0.5px;
}

.ai-style-match a {
  color: #111;

  font-size: 10px;

  font-weight: 700;

  text-decoration: none;

  white-space: nowrap;
}

/* =========================================
   PRODUCT OPTIONS
========================================= */

.product-option {
  margin-top: 30px;
}

.option-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 15px;
}

.option-header span {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.5px;
}

.option-header strong {
  font-size: 10px;

  color: #777;

  letter-spacing: 1px;
}

/* =========================================
   COLORS
========================================= */

.color-options {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.color-btn {
  min-width: 75px;

  padding: 12px 15px;

  border: 1px solid #ddd;

  background: white;

  color: #111;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

  cursor: pointer;

  transition: 0.25s;
}

.color-btn:hover {
  border-color: #111;
}

.color-btn.active {
  background: #111;

  color: white;

  border-color: #111;
}

/* =========================================
   SIZES
========================================= */

.size-options {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.size-btn {
  width: 52px;

  height: 45px;

  border: 1px solid #ddd;

  background: white;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.size-btn:hover {
  border-color: #111;
}

.size-btn.active {
  background: #111;

  color: white;

  border-color: #111;
}

/* =========================================
   QUANTITY
========================================= */

.quantity-section {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.quantity-section .option-header {
  margin-bottom: 0;
}

.quantity-selector {
  display: flex;

  align-items: center;

  border: 1px solid #ddd;
}

.quantity-selector button {
  width: 40px;

  height: 40px;

  border: none;

  background: white;

  font-size: 20px;

  cursor: pointer;

  transition: 0.2s;
}

.quantity-selector button:hover {
  background: #111;

  color: white;
}

.quantity-selector span {
  width: 45px;

  text-align: center;

  font-size: 12px;

  font-weight: 700;
}

/* =========================================
   ACTION BUTTONS
========================================= */

.product-actions {
  display: flex;

  gap: 12px;

  margin-top: 35px;
}

.detail-add-cart {
  flex: 1;

  padding: 18px;

  border: none;

  background: #111;

  color: white;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.5px;

  cursor: pointer;

  transition: 0.3s;
}

.detail-add-cart:hover {
  background: #333;

  transform: translateY(-2px);
}

.detail-wishlist {
  width: 58px;

  border: 1px solid #111;

  background: white;

  color: #111;

  font-size: 18px;

  cursor: pointer;

  transition: 0.3s;
}

.detail-wishlist:hover {
  background: #111;

  color: white;
}

.detail-wishlist.active {
  background: #111;

  color: white;
}

/* =========================================
   PRODUCT FEATURES
========================================= */

.product-features {
  margin-top: 35px;

  padding-top: 25px;

  border-top: 1px solid #ddd;

  display: flex;

  flex-wrap: wrap;

  gap: 25px;
}

.product-features div {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 10px;

  font-weight: 600;
}

.product-features i {
  font-size: 14px;
}

/* =========================================
   PRODUCT DETAILS TABS
========================================= */

.details-tabs {
  margin-top: 100px;

  padding-top: 60px;

  border-top: 1px solid #ddd;
}

.tabs-header {
  display: flex;

  gap: 30px;

  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 15px 0;

  border: none;

  border-bottom: 2px solid transparent;

  background: transparent;

  color: #777;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.5px;

  cursor: pointer;

  transition: 0.3s;
}

.tab-btn.active {
  color: #111;

  border-bottom-color: #111;
}

.tab-content {
  display: none;

  max-width: 700px;

  padding: 30px 0;

  color: #666;

  font-size: 14px;

  line-height: 1.8;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 20px;
}

.tab-content li {
  margin-bottom: 10px;
}

/* =========================================
   COMPLETE THE LOOK
========================================= */

.complete-look {
  margin-top: 80px;

  padding: 80px 0;

  border-top: 1px solid #ddd;
}

.complete-look-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  margin-bottom: 40px;
}

.complete-look h2 {
  margin-top: 15px;

  font-size: clamp(40px, 5vw, 70px);

  line-height: 0.9;

  letter-spacing: -3px;
}

.complete-look h2 span {
  font-family: "Playfair Display", serif;

  font-style: italic;

  font-weight: 500;
}

.complete-products {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.look-product {
  cursor: pointer;
}

.look-image {
  height: 400px;

  overflow: hidden;

  background: #eee;
}

.look-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.look-product:hover .look-image img {
  transform: scale(1.06);
}

.look-product h3 {
  margin-top: 15px;

  font-size: 17px;
}

.look-product span {
  display: block;

  margin-top: 7px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #777;
}

/* =========================================
   TOAST
========================================= */

.toast {
  position: fixed;

  right: 30px;

  bottom: 30px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 16px 22px;

  background: #111;

  color: white;

  font-size: 12px;

  transform: translateY(100px);

  opacity: 0;

  transition: 0.4s;

  z-index: 9999;
}

.toast.show {
  transform: translateY(0);

  opacity: 1;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
  .product-details {
    grid-template-columns: 1fr 1fr;

    gap: 40px;
  }

  .main-product-image {
    height: 550px;
  }

  .complete-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .look-image {
    height: 300px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {
  .product-page {
    padding: 30px 6% 70px;
  }

  .product-details {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .product-information {
    position: static;
  }

  .main-product-image {
    height: 600px;
  }

  .details-tabs {
    margin-top: 70px;
  }

  .complete-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .complete-products .look-product:last-child {
    display: none;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 550px) {
  .product-page {
    padding: 25px 5% 60px;
  }

  .breadcrumb {
    margin-bottom: 25px;

    font-size: 8px;
  }

  .main-product-image {
    height: 480px;
  }

  .product-thumbnails {
    gap: 8px;
  }

  .thumbnail {
    width: 70px;

    height: 85px;
  }

  .product-information h1 {
    font-size: 38px;
  }

  .ai-style-match {
    align-items: flex-start;

    flex-wrap: wrap;
  }

  .ai-style-match a {
    width: 100%;

    margin-top: 5px;
  }

  .product-features {
    flex-direction: column;

    gap: 15px;
  }

  .tabs-header {
    gap: 18px;

    overflow-x: auto;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .product-actions {
    margin-top: 30px;
  }

  .complete-look {
    margin-top: 50px;

    padding: 60px 0;
  }

  .complete-look-header {
    display: block;
  }

  .complete-products {
    grid-template-columns: 1fr;
  }

  .complete-products .look-product:last-child {
    display: block;
  }

  .look-image {
    height: 420px;
  }

  .toast {
    right: 15px;

    left: 15px;

    bottom: 15px;
  }
}
