/* ===================================
   Product Detail Page Styles
   =================================== */

/* Product Card Links (for listing pages) */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link .product-card {
    cursor: pointer;
}

/* Product Detail Layout */
.product-detail {
    padding: 2rem 4rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 1;
}

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

.gallery-main[data-placeholder]::after {
    content: attr(data-placeholder);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 2;
}

.gallery-main .product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

/* Product Info */
.product-detail-info {
    padding-top: 1rem;
}

.product-detail-info .product-category {
    font-size: 0.8rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.product-detail-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 1rem;
}

.product-detail-info .difficulty-badge {
    margin-bottom: 1.5rem;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 2rem;
}

/* Color Picker */
.color-picker {
    margin-bottom: 2rem;
}

.color-picker-label {
    display: block;
    font-size: 0.85rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.color-picker-label span {
    font-weight: 400;
    color: var(--warm-gray);
}

.color-picker-swatches {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-pick {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
}

.color-pick:hover {
    transform: scale(1.15);
}

.color-pick.active {
    border-color: var(--charcoal);
    box-shadow: 0 0 0 3px white inset;
}

/* Add to Cart Button */
.product-detail-actions {
    margin-bottom: 2rem;
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--charcoal);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 157, 119, 0.3);
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* Product Specs */
.product-specs {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--sand);
    border-radius: 16px;
}

.product-specs h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.spec-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--sage);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 2px;
}

.spec-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
}

.spec-item span {
    font-size: 0.85rem;
    color: var(--warm-gray);
    line-height: 1.4;
}

/* Features List */
.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--warm-gray);
    border-bottom: 1px solid var(--sand);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li svg {
    width: 16px;
    height: 16px;
    stroke: var(--sage);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Care Guide Link */
.care-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--sage);
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.care-guide-link:hover {
    background: var(--sage);
    color: white;
}

.care-guide-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* Trust Signals */
.product-trust {
    border-top: 1px solid var(--sand);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--warm-gray);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--sage);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .product-detail {
        padding: 1.5rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .product-detail-name {
        font-size: 2.2rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-detail-name {
        font-size: 1.8rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .gallery-main {
        border-radius: 16px;
    }
}
