/* ===== PRODUCT DETAIL PAGE ===== */
.page-product { background: #fff; color: #111; }
.page-product .header.scrolled { position: fixed; top: 0; margin-top: 0; }

.product-detail { max-width: 1320px; margin: 0 auto; padding: 100px 48px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Image Gallery */
.product-gallery { position: sticky; top: 100px; }
.product-main-img { width: 100%; aspect-ratio: 1/1; background: #f5f5f5; overflow: hidden; margin-bottom: 16px; }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-main-img:hover img { transform: scale(1.08); }

.product-thumbs { display: flex; gap: 12px; }
.product-thumb { width: 80px; height: 80px; background: #f0f0f0; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; }
.product-thumb.active { border-color: #111; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-info { padding-top: 20px; }

.product-breadcrumb { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 400; color: #999; letter-spacing: 0.5px; margin-bottom: 24px; }
.product-breadcrumb a { color: #999; text-decoration: none; transition: color 0.2s; }
.product-breadcrumb a:hover { color: #111; }
.product-breadcrumb span { margin: 0 8px; }

.product-detail-name { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-style: normal; font-size: clamp(28px, 3vw, 42px); color: #111; margin-bottom: 8px; letter-spacing: 1px; line-height: 1.2; }

.product-detail-desc { display: none; }

.product-detail-price { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 500; color: #111; letter-spacing: 0.5px; margin-bottom: 32px; }

.product-divider { width: 100%; height: 1px; background: #e5e5e5; margin-bottom: 32px; }

/* Details Accordion */
.product-details-section { margin-bottom: 24px; }
.product-details-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid #e5e5e5; cursor: pointer; background: none; border-left: none; border-right: none; border-bottom: none; }
.product-details-toggle span { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; color: #111; text-transform: uppercase; }
.product-details-toggle svg { transition: transform 0.3s; color: #111; }
.product-details-toggle.open svg { transform: rotate(180deg); }

.product-details-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.product-details-content.open { max-height: 1200px; }
.product-details-content p { font-family: 'Montserrat', sans-serif; font-size: 13px; color: #666; line-height: 1.8; padding: 0 0 20px; }
.product-details-content ul { list-style: none; padding: 0 0 20px; }
.product-details-content li { font-family: 'Montserrat', sans-serif; font-size: 13px; color: #666; line-height: 2; padding-left: 16px; position: relative; }
.product-details-content li::before { content: '·'; position: absolute; left: 0; color: #111; font-weight: 700; }
.product-details-content li.no-bullet { padding-left: 0; margin-bottom: 4px; }
.product-details-content li.no-bullet::before { content: none; }

/* Add to Bag */
/* Button Group */
.product-btn-group { display: flex; gap: 12px; margin-top: 8px; }
.product-add-btn { flex: 1; padding: 18px 0; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: #fff; background: #111; border: none; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.product-add-btn:hover { background: #333; transform: translateY(-1px); }
.product-custom-btn { flex: 1; padding: 18px 0; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: #111; background: transparent; border: 1.5px solid #111; cursor: pointer; transition: background 0.3s, color 0.3s, transform 0.2s; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.product-custom-btn:hover { background: #111; color: #fff; transform: translateY(-1px); }

.product-wishlist-btn { flex: 1; padding: 16px 0; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: #111; background: transparent; border: 1.5px solid #111; cursor: pointer; transition: background 0.3s, color 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.product-wishlist-btn:hover { background: #111; color: #fff; }
.product-wishlist-btn svg { transition: stroke 0.3s; }
.product-wishlist-btn:hover svg { stroke: #fff; }

/* Secondary button row (wishlist + share) */
.product-btn-secondary { display: flex; gap: 12px; margin-top: 12px; }

/* Share button — square icon-only */
.product-share-btn { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: #111; background: transparent; border: 1.5px solid #111; cursor: pointer; transition: background 0.3s, color 0.3s; }
.product-share-btn:hover { background: #111; color: #fff; }
.product-share-btn svg { transition: stroke 0.3s; }
.product-share-btn:hover svg { stroke: #fff; }

/* Share popover */
.share-popover { position: fixed; z-index: 11000; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.share-popover.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.share-popover-items { display: flex; gap: 8px; background: #fff; border-radius: 40px; padding: 8px 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.share-popover-item { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.share-popover-item:hover { transform: scale(1.1); }
.share-popover-item.wa { background: #25D366; color: #fff; }
.share-popover-item.wa:hover { box-shadow: 0 0 0 4px rgba(37,211,102,0.25); }
.share-popover-item.x { background: #111; color: #fff; }
.share-popover-item.x:hover { box-shadow: 0 0 0 4px rgba(0,0,0,0.2); }
.share-popover-item.cp { background: #555; color: #fff; }
.share-popover-item.cp:hover { box-shadow: 0 0 0 4px rgba(85,85,85,0.25); }
/* Copied state — show checkmark overlay */
.share-popover-item.copied::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; border-radius: 50%; background: inherit; animation: popIn 0.25s ease; }
.share-popover-item.copied svg { opacity: 0; }
@keyframes popIn { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* You May Also Like */
.also-like-section { background: #fff; padding: 60px 48px 80px; border-top: 1px solid #eee; }
.also-like-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-style: italic; font-size: clamp(24px, 3vw, 36px); color: #111; text-align: center; margin-bottom: 40px; }
.also-like-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1320px; margin: 0 auto; }

@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .also-like-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-detail { padding: 100px 20px 60px; }
  .also-like-section { padding: 40px 20px 60px; }
  .also-like-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
