/* Product Detail */
.product-detail {
    padding-top: 20px;
}

/* Gallery */
.product-gallery__main {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: zoom-in;
    margin-bottom: 15px;
}

.product-gallery__main-img {
    max-height: 450px;
    width: 100%;
    object-fit: contain;
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
}

.product-gallery__thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 5px;
    background: var(--color-bg-light);
    transition: border-color var(--transition-fast);
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
    border-color: var(--color-accent);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info__vendor {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info__title {
    font-size: 28px;
    font-weight: var(--fw-extrabold);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-info__price-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.product-info__price {
    font-size: 24px;
    font-weight: var(--fw-extrabold);
    color: var(--color-text);
}

.product-info__compare-price {
    font-size: 18px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-info__save-badge {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: var(--fw-bold);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.product-info__stock {
    margin-bottom: 20px;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector__label {
    display: block;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    margin-bottom: 8px;
    color: var(--color-text);
}

.quantity-selector__controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    background: var(--color-bg-light);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
}

.quantity-btn:hover {
    background: var(--color-border);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Add to Cart button on product page */
.product-detail .add-to-cart-btn {
    margin-bottom: 20px;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 25px;
}

.social-sharing__label {
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.social-share-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Product Description */
.product-info__description {
    margin-top: 5px;
}

.product-info__description h3 {
    font-size: 16px;
    font-weight: var(--fw-bold);
    margin-bottom: 12px;
}

.product-info__description p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--color-white);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 5001;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--color-white);
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* Recently Viewed */
.recently-viewed {
    display: none;
}

.recently-viewed.has-items {
    display: block;
}
