/* =====================================================
   PRODUCT DETAIL SECTION
===================================================== */

.product-detail-sec {
  width: 100%;
  margin-top: 90px;
  background: #f7f3ee;
  font-family: var(--font-secondary);
  padding: 3rem 1.5rem 0 1.5rem;
}

.product-detail-sec::after {
  content: "";
  display: block;
  width: 500px;
  height: 1px;
  background: #5a3e2b;
  margin: 4rem auto 0rem;
}

.product-detail-sec .product-detail-sec-content {
  width: 100%;
}

.product-detail-sec .product-detail-sec-wrapper {
  width: 100%;
}

.product-detail-sec .product-detail-sec-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-sec .product-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

/* =====================================================
   IMAGE SECTION
===================================================== */

.product-detail-sec .image-section {
  position: sticky;
  top: 130px;
  max-width: 460px;
  width: 100%;
  overflow: hidden; /* 🔑 prevents overflow on mobile */
}

.product-detail-sec .main-image-wrapper {
  width: 100%;
}

.product-detail-sec .main-image {
  width: 100%;
  height: 460px;
  object-fit: contain;
  border-radius: 22px;
  background: #f4f1ed;
}

/* =====================================================
   THUMBNAILS
===================================================== */

.product-detail-sec .thumbnail-wrapper {
  position: relative;
/*   display: flex; */
  display: none;
  align-items: center;
  margin-top: 14px;
  padding: 0 1rem;
}

.product-detail-sec .thumb-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f0e9;
  color: #5a3e2b;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  align-items: center;
  justify-content: center;
}

.product-detail-sec .thumb-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.product-detail-sec .thumb-nav.left {
  left: 2px;
}

.product-detail-sec .thumb-nav.right {
  right: 2px;
}

.product-detail-sec .thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 6px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.product-detail-sec .thumbnail-strip::-webkit-scrollbar {
  height: 4px;
}

.product-detail-sec .thumbnail-strip::-webkit-scrollbar-thumb {
  background: #d6c8bd;
  border-radius: 10px;
}

.product-detail-sec .thumb {
  flex: 0 0 auto; /* 🔑 prevents layout breaking */
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f4f1ed;
  transition: all 0.25s ease;
}

.product-detail-sec .thumb.active {
  border-color: #c47a2c;
}

/* =====================================================
   DETAILS SECTION
===================================================== */

.product-detail-sec .details-section {
  padding-top: 0.5rem;
}

.product-detail-sec .product-brand {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b5a4d;
  margin-bottom: 0.6rem;
}

.product-detail-sec .product-title {
  font-family: var(--font-primary);
  font-size: 2.6rem;
  line-height: 1.15;
  color: #5a3e2b;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.product-detail-sec .product-category {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: #6b5a4d;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-detail-sec .product-category a {
  color: #be8545;
  text-decoration: underline;
}

/* =====================================================
   DESCRIPTION
===================================================== */

.product-detail-sec .description p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #6b5a4d;
  margin-bottom: 1.1rem;
}

.product-detail-sec .description p a {
  color: #be8545;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* =====================================================
   CONTACT
===================================================== */

.product-detail-sec .contact-title {
  font-family: var(--font-primary);
  font-size: 1.7rem;
  color: #5a3e2b;
  margin: 3rem 0 0.6rem;
  font-weight: 600;
}

.product-detail-sec .contact-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b5a4d;
  margin-bottom: 1.8rem;
}


/* =====================================================
   BUTTON
===================================================== */

.contact-actions {
  display: flex;
  gap: 14px;
}

.product-detail-sec .btn-with-icon {
  width: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* SVG icon */
.product-detail-sec .btn-with-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-detail-sec .btn-primary {
  background: #593d2b;
  color: #ffffff;
}

.product-detail-sec .btn-primary:hover {
  background: #7f583d;
}

.product-detail-sec .btn-primary:active {
  transform: scale(0.97);
}

.product-detail-sec .btn-whatsapp {
  background: #25d366; /* WhatsApp green */
  color: #ffffff;
}

.product-detail-sec .btn-whatsapp:hover {
  background: #1ebe5d;
}

.product-detail-sec .btn-whatsapp:active {
  transform: scale(0.97);
}

/* =====================================================
   RESPONSIVE
===================================================== */


@media (max-width: 1100px) {
  .contact-actions {
    flex-direction: column;
  }
  .product-detail-sec .btn-with-icon {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .product-detail-sec .product-layout {
    gap: 3rem;
  }

  .product-detail-sec .product-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  .product-detail-sec .product-category {
    margin-bottom: 1rem;
  }
  .product-detail-sec .description p {
    line-height: 1.4;
  }
}

@media (max-width: 910px) {
  .product-detail-sec .image-section {
    max-width: 370px;
  }
  .product-detail-sec .contact-title {
    margin: 2rem 0 0.6rem;
  }
}

@media (max-width: 768px) {
  .product-detail-sec .product-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-sec .image-section {
    position: static;
    max-width: 100%;
  }

  .product-detail-sec .main-image {
    height: 400px;
  }

  .product-detail-sec .thumb-nav {
    display: none;
  }

  .product-detail-sec .thumbnail-strip {
    padding-right: 10px;
  }

  .product-detail-sec .form-row {
    grid-template-columns: 1fr;
  }
	
  .contact-actions {
    flex-direction: column;
  }

  .product-detail-sec .btn-with-icon {
    width: 100%;
    justify-content: center;
  }


  .product-detail-sec .btn {
    width: 100%;
    text-align: center;
  }

  .product-detail-sec .contact-desc {
    margin-bottom: 1rem;
  }
  .product-detail-sec .contact-title {
    margin: 1rem 0 0.6rem;
  }
  .product-detail-sec .product-layout {
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .product-detail-sec {
    margin-top: 70px;
    padding: 1rem 1rem 0 1rem;
  }
  .product-detail-sec::after {
    width: 300px;
    margin: 2rem auto 0rem;
  }
}

@media (max-width: 480px) {
  .product-detail-sec .product-title {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .product-detail-sec .main-image {
    height: 320px;
    border-radius: 18px;
  }

  .product-detail-sec .thumb {
    width: 64px;
    height: 64px;
  }
}




/* ================= IMAGE MODAL ================= */

.produt-details-image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.produt-details-image-modal.show {
  display: block;
}

.produt-details-image-modal .image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.produt-details-image-modal .image-modal-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.produt-details-image-modal .image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-secondary);
}

.produt-details-image-modal .image-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.produt-details-image-modal .image-actions {
  display: flex;
  gap: 10px;
}

.produt-details-image-modal .image-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.produt-details-image-modal .image-actions button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.produt-details-image-modal .image-actions svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
}

/* Body */
.produt-details-image-modal .image-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.produt-details-image-modal .image-modal-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* ===== IMAGE MODAL FOOTER ===== */
.produt-details-image-modal .image-modal-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-secondary);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.produt-details-image-modal .image-modal-footer span {
  opacity: 0.9;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .produt-details-image-modal .image-actions button {
    width: 32px;
    height: 32px;
  }

  .produt-details-image-modal .image-modal-footer {
    font-size: 0.8rem;
    padding: 12px 14px;
  }
}






/* =====================================================
   PRODUCT DETAILS FORM MODAL
===================================================== */

.product-details-form-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
}

.product-details-form-modal.active {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   MODAL BOX
===================================================== */

.product-details-form-modal .modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);

  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
}

.product-details-form-modal.active .modal {
  transform: scale(1) translateY(0);
}

/* =====================================================
   MODAL HEADER
===================================================== */

.product-details-form-modal .modal-header {
  padding: 26px 28px 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.product-details-form-modal .modal-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  color: #5a3e2b;
  margin: 0;
}

.product-details-form-modal .modal-close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f3f3;
  color: #333;
  font-size: 22px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.product-details-form-modal .modal-close:hover {
  background: #ffe5e5;
  color: #c62828;
}

/* =====================================================
   MODAL BODY
===================================================== */

.product-details-form-modal .modal-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
  max-height: calc(90vh - 90px);
}

/* Product name highlight */
.product-details-form-modal .product-name {
  background: #f4f1ed;
  border: 1px solid #e3d7cc;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;

  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #5a3e2b;
}

/* =====================================================
   FORM (REUSE YOUR EXISTING STYLES)
===================================================== */

.product-details-form-modal .product-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-details-form-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-details-form-modal input,
.product-details-form-modal textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  background: #f2f2f2;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
}

.product-details-form-modal .date-input {
  width: 100%;
}

.product-details-form-modal input::placeholder,
.product-details-form-modal textarea::placeholder {
  color: #9a8f86;
}

.product-details-form-modal textarea {
  min-height: 100px;
  resize: vertical;
}

/* Submit button */
.product-details-form-modal .submit-btn {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  border: none;

  background: #593d2b;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;

  transition: all 0.2s ease;
}

.product-details-form-modal .submit-btn:hover {
  background: #7f583d;
}

.product-details-form-modal .submit-btn:active {
  transform: scale(0.97);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .product-details-form-modal .modal {
    max-width: 100%;
    border-radius: 16px;
  }

  .product-details-form-modal .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-details-form-modal .modal-header {
    padding: 20px;
  }

  .product-details-form-modal .date-input {
    width: 100%;
  }

  .product-details-form-modal .modal-title {
    font-size: 1.2rem;
  }

  .product-details-form-modal .modal-body {
    padding: 20px;
  }
}

