/* ============================================
   LUFF - Product Page Styles
   Mobile-First Responsive Design
   ============================================ */

/* Product Detail Section */
.product-detail {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: var(--spacing-3xl);
    background: var(--pure-white);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.gallery-main {
    background: var(--off-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}

/* Product Slideshow */
.product-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.product-slide:first-of-type {
    position: relative;
}

.product-slide.active {
    opacity: 1;
}

.product-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--primary-black);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    z-index: 10;
}

.product-nav:hover {
    opacity: 1;
    background: var(--pure-white);
    box-shadow: var(--shadow-md);
}

.product-prev {
    left: 10px;
}

.product-next {
    right: 10px;
}

.product-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.product-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}

.product-dot.active {
    background: var(--primary-black);
}

.product-dot:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-thumbnails .thumb {
    height: 100px;
    background: var(--off-white);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

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

.gallery-thumbnails .thumb.active,
.gallery-thumbnails .thumb:hover {
    border-color: var(--primary-black);
}

/* Product Info */
.product-info {
    animation: fadeInUp 0.8s ease-out;
}

.product-header {
    margin-bottom: var(--spacing-xl);
}

.product-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: var(--spacing-sm) 0;
}

.product-tagline {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-black);
}

.price-note {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.product-description {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--off-white);
    border-bottom: 1px solid var(--off-white);
    margin-bottom: var(--spacing-lg);
}

.product-description p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Product Specifications */
.product-specs {
    margin-bottom: var(--spacing-lg);
}

.product-specs h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--off-white);
    border-radius: 4px;
}

.spec-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--medium-gray);
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
}

/* Colorway Selection */
.colorway-selection {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--off-white);
}

.colorway-selection h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.colorway-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.colorway-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--off-white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}

.colorway-option:hover {
    border-color: var(--light-gray);
}

.colorway-option.selected {
    border-color: var(--primary-black);
    background: var(--off-white);
}

.colorway-option input {
    display: none;
}

.colorway-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.colorway-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-black);
}

.colorway-error {
    color: #c41e3a;
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
}

/* Customization Section */
.customization-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--off-white);
}

.customization-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.customization-toggle input {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.customization-toggle input:checked + .checkbox-custom {
    background: var(--primary-black);
    border-color: var(--primary-black);
}

.customization-toggle input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.customization-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-black);
}

.customization-input {
    margin-top: var(--spacing-md);
}

.customization-fields {
    display: flex;
    gap: var(--spacing-md);
}

.custom-field {
    flex: 1;
}

.custom-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-xs);
}

.custom-field input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 2px solid var(--off-white);
    border-radius: 8px;
    transition: var(--transition-base);
    font-family: inherit;
}

.custom-field input:focus {
    outline: none;
    border-color: var(--primary-black);
}

.custom-field input::placeholder {
    color: var(--light-gray);
    font-weight: 400;
}

.customization-helper {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: var(--spacing-xs);
}

.customization-error {
    color: #c41e3a;
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

/* Product Features */
.product-features {
    margin-bottom: var(--spacing-lg);
}

.product-features h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    color: var(--medium-gray);
    line-height: 1.6;
}

.features-list svg {
    flex-shrink: 0;
    color: var(--primary-black);
    margin-top: 2px;
}

/* Product Actions */
.product-actions {
    margin-bottom: var(--spacing-lg);
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    color: var(--medium-gray);
}

.shipping-info svg {
    flex-shrink: 0;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--off-white);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--off-white);
    border-radius: 4px;
}

.trust-badge svg {
    flex-shrink: 0;
    color: var(--primary-black);
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-black);
}

/* Additional Info Section */
.additional-info {
    padding: var(--spacing-3xl) 0;
    background: var(--off-white);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.info-card {
    background: var(--pure-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Tablet Responsive */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
    }

    .gallery-main {
        height: 500px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-badges {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Responsive */
@media (min-width: 1024px) {
    .product-detail {
        padding-top: 120px;
    }

    .product-gallery {
        position: sticky;
        top: 120px;
        align-self: start;
    }

    .gallery-main {
        height: 600px;
    }

    .gallery-thumbnails .thumb {
        height: 120px;
    }
}

/* Shopping Cart Section */
.cart-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--off-white);
    border-radius: 8px;
}

.cart-section h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--pure-white);
    border-radius: 6px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-black);
}

.cart-item-custom {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-style: italic;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-black);
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition-base);
}

.cart-item-remove:hover {
    color: #c41e3a;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--light-gray);
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-shipping-note {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-align: right;
    margin-bottom: var(--spacing-md);
}

.btn-secondary {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: var(--spacing-sm);
}

.btn-secondary:hover {
    background: var(--primary-black);
    color: var(--pure-white);
}