/* Product Hero Section - Matching Homepage Style */

.product-hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: var(--bg-primary);
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.product-hero-image {
    position: sticky;
    top: 100px;
    width: 100%;
    height: 100%;
    min-height: 600px;
    max-height: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: stickyBounce 0.6s ease-out;
}

/* Legacy single-image fallback (kept for compatibility) */

@keyframes stickyBounce {
    0% {
        transform: translateY(-20px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-product-img {
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-hero-image:hover .hero-product-img {
    transform: scale(1.05);
}

.product-hero-info {
    padding: 40px 0;
}

.product-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.product-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-transform: capitalize;
}

.product-hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.description-text {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.description-text.expanded {
    max-height: none;
}

.read-more-btn {
    margin-top: 12px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.read-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.product-hero-details {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.detail-value.price-highlight {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-hero-actions {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: 16px;
    align-items: center;
}

.product-hero-actions .btn-back {
    grid-column: 2;
}

.product-hero-actions .btn-add-wishlist {
    grid-column: 3;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-explore:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 31, 61, 0.3);
}

.btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.btn-wishlist:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-add-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-wishlist:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-hero-image {
        min-height: 400px;
        position: static;
    }

    .product-hero-title {
        font-size: 42px;
    }

    .product-hero-actions {
        grid-template-columns: 1fr auto auto 1fr;
    }
}

@media (max-width: 768px) {
    .product-hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .product-hero-title {
        font-size: 36px;
    }

    .product-hero-subtitle {
        font-size: 16px;
    }

    .product-hero-description {
        font-size: 14px;
    }

    .product-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-hero-actions .btn-back,
    .product-hero-actions .btn-add-wishlist {
        width: 100%;
        justify-content: center;
    }
}


.detail-item--sizes {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.size-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}

.size-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.size-btn.selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: stickyBounce 0.6s ease-out;
}

.product-gallery-main .hero-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-gallery-main:hover .hero-product-img {
    transform: scale(1.05);
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-thumb:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.product-gallery-thumb.active {
    border-color: var(--accent-color);
}

@media (max-width: 992px) {
    .product-gallery {
        position: static;
    }

    .product-gallery-main {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .product-gallery-thumb {
        width: 56px;
        height: 56px;
    }
}
