/* Sidebar box */
.pdd-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.pdd-box__hd {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
}

.pdd-box__list {
  margin: 0;
  padding: 0;
}

.pdd-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-top: 1px dashed #eee;
  padding: 8px 0;
}

.pdd-row:first-child {
  border-top: none;
  padding-top: 0;
}

.pdd-row dt {
  color: #555;
}

.pdd-row dd {
  margin: 0;
  text-align: right;
  color: #111;
}

/* Special Offer Box */
.pdd-special-offer {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.pdd-box__content {
  margin: 0;
  padding: 0;
}

.pdd-offer-text {
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pdd-offer-price {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

/* Gallery fallback grid (when [gallery] cannot be used) */
.pdd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
  padding: 0;
}

.pdd-gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdd-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pdd-gallery__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.pdd-gallery__item:hover .pdd-gallery__img {
  transform: scale(1.05);
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
  .pdd-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .pdd-gallery__img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .pdd-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .pdd-gallery__img {
    height: 120px;
  }
}

/* Debug styles (Admin Only) */
.pdd-debug {
  background: #f0f0f0;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
}

.pdd-debug h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.pdd-debug pre {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
