/* ============================================
   GIZARI CHROME SHOP - PRODUCT PAGE STYLES
   ============================================ */

/* ============================================
   PRODUCT PAGE LAYOUT
   ============================================ */
.product-page {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--color-base-light);
}

.product-breadcrumb {
    padding: var(--space-lg) 0;
    background: var(--color-base);
    border-bottom: 1px solid var(--color-base-lighter);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.product-loading,
.product-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) 0;
    text-align: center;
}

.product-loading span,
.product-error p {
    color: var(--color-gray-400);
    margin-top: var(--space-md);
}

.product-error i {
    font-size: 4rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
}

.product-error h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

/* ============================================
   PRODUCT CONTENT GRID
   ============================================ */
.product-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

@media (min-width: 1024px) {
    .product-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
        padding: var(--space-3xl) 0;
    }
}

/* ============================================
   PRODUCT GALLERY
   ============================================ */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery__main {
    position: relative;
    background: var(--color-base);
    border: 1px solid var(--color-base-lighter);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.product-gallery__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform var(--transition-heavy);
}

.product-gallery__main:hover .product-gallery__image {
    transform: scale(1.05);
}

.product-gallery__zoom {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--color-base-lighter);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
}

.product-gallery__main:hover .product-gallery__zoom {
    opacity: 1;
}

.product-gallery__zoom:hover {
    background: var(--color-led-blue);
    border-color: var(--color-led-blue);
}

.product-gallery__thumbs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
}

.product-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--color-base);
    border: 2px solid var(--color-base-lighter);
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

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

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

/* ============================================
   PRODUCT INFO
   ============================================ */
.product-info {
    padding: var(--space-lg) 0;
}

@media (min-width: 1024px) {
    .product-info {
        padding: 0;
    }
}

.product-info__vendor {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-led-blue);
    margin-bottom: var(--space-sm);
}

.product-info__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.product-info__price {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-info__price-current {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}

.product-info__price-compare {
    font-size: 1.25rem;
    color: var(--color-gray-500);
    text-decoration: line-through;
}

.product-info__badge {
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-condensed);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-info__badge--sale {
    background: var(--color-red);
    color: var(--color-white);
}

.product-info__stock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.product-info__stock.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.product-info__description {
    color: var(--color-gray-300);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.product-info__description ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.product-info__description li {
    margin-bottom: var(--space-sm);
}

/* ============================================
   VARIANTS
   ============================================ */
.product-variants {
    margin-bottom: var(--space-xl);
}

.variant-group {
    margin-bottom: var(--space-lg);
}

.variant-group__label {
    display: block;
    font-family: var(--font-condensed);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-300);
    margin-bottom: var(--space-sm);
}

.variant-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.variant-option {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-base);
    border: 1px solid var(--color-base-lighter);
    color: var(--color-gray-300);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.variant-option:hover {
    border-color: var(--color-gray-500);
    color: var(--color-white);
}

.variant-option.selected {
    border-color: var(--color-led-blue);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-white);
}

.variant-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   QUANTITY & ADD TO CART
   ============================================ */
.product-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--color-base-lighter);
    background: var(--color-base);
}

.quantity-selector__btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-selector__btn:hover {
    background: var(--color-base-lighter);
    color: var(--color-white);
}

.quantity-selector__input {
    width: 60px;
    height: 44px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-base-lighter);
    border-right: 1px solid var(--color-base-lighter);
    color: var(--color-white);
    font-size: 1rem;
    text-align: center;
    -moz-appearance: textfield;
}

.quantity-selector__input::-webkit-outer-spin-button,
.quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions__add {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.product-actions__add.added {
    background: #22c55e;
}

/* ============================================
   PRODUCT META
   ============================================ */
.product-meta {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-base-lighter);
    border-bottom: 1px solid var(--color-base-lighter);
    margin-bottom: var(--space-xl);
}

.product-meta__item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.product-meta__item:last-child {
    margin-bottom: 0;
}

.product-meta__label {
    color: var(--color-gray-500);
}

.product-meta__value {
    color: var(--color-gray-300);
}

.product-meta__link {
    color: var(--color-led-blue);
    text-decoration: none;
}

.product-meta__link:hover {
    text-decoration: underline;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.product-trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-gray-400);
}

.product-trust__item i {
    color: var(--color-led-blue);
}

/* ============================================
   ZOOM MODAL
   ============================================ */
.zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.zoom-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-modal__image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products {
    padding: var(--space-4xl) 0;
    background: var(--color-base);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .product-gallery {
        position: static;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions__add {
        width: 100%;
    }
    
    .product-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
