/* ============================================
   LENHAS PORTUGAL : Product Detail Page Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb-container {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #4B5563;
  font-weight: 600;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  color: #9CA3AF;
}

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

.breadcrumb a:hover {
  color: #1E3F27;
}

.breadcrumb li:last-child {
  color: #111827;
  font-weight: 700;
}

/* Product Layout */
.product-details-section {
  padding-top: 1.5rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #E8E0D8;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5DDD4;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background-color: #E8E0D8;
}

.thumbnail.active {
  border-color: #1E3F27;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(30, 63, 39, 0.3);
}

.thumbnail:hover:not(.active) {
  border-color: #2C5E3A;
  opacity: 0.9;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: 'Lora', serif;
  color: #111827;
  margin-top: 0.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-description {
  color: #374151;
  line-height: 1.65;
  font-size: 1.05rem;
  font-weight: 500;
}

.product-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background-color: white;
  border-radius: 12px;
  border: 1px solid #E5DDD4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #111827;
  font-weight: 600;
  font-size: 0.98rem;
}

.product-specs-list svg {
  width: 20px;
  height: 20px;
  color: #1E3F27;
  flex-shrink: 0;
}

/* Options */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-group > label {
  font-weight: 700;
  color: #111827;
  font-size: 1rem;
}

.options-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.option-btn {
  padding: 0.75rem 1.4rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 50px;
}

.option-btn:hover {
  border-color: #1E3F27;
  background-color: #F0FDF4;
}

.option-btn.active {
  border-color: #1E3F27;
  background-color: #1E3F27;
  color: #FFFFFF;
  font-weight: 700;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600 !important;
  color: #111827 !important;
  min-height: 44px;
  font-size: 0.95rem;
}

.checkbox-label input {
  display: none;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #9CA3AF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: white;
}

.checkbox-label input:checked + .custom-checkbox {
  background-color: #1E3F27;
  border-color: #1E3F27;
}

.checkbox-label input:checked + .custom-checkbox::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Purchase area */
.product-purchase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.price-display {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1A3C24;
}

.purchase-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  overflow: hidden;
  height: 52px;
  background: white;
}

.qty-btn {
  background-color: #F3F4F6;
  border: none;
  width: 44px;
  height: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: #E5E7EB;
}

#qty-input {
  width: 50px;
  height: 100%;
  border: none;
  border-left: 1.5px solid #D1D5DB;
  border-right: 1.5px solid #D1D5DB;
  text-align: center;
  font-weight: 700;
  color: #111827;
  font-size: 1.1rem;
  background: white;
  -moz-appearance: textfield;
}
#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #D4722A;
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(212, 114, 42, 0.3);
  transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #B85E1F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 114, 42, 0.4);
}

/* Specs Table */
.specs-section {
  background-color: #FAFAF8;
  margin-top: 3rem;
  padding: 3rem 0;
  border-top: 1px solid #E5DDD4;
}

.specs-section h2 {
  font-size: 1.8rem;
  color: #1A3C24;
  margin-bottom: 1.5rem;
  font-family: 'Lora', serif;
  font-weight: 700;
}

.table-container {
  overflow-x: auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E5DDD4;
  padding: 1.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.specs-table th {
  font-weight: 700;
  color: #1A3C24;
  width: 40%;
  background-color: #FAFAF8;
}

.specs-table td {
  color: #1F2937;
  font-weight: 600;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}
