/* Shopify-Style Product Page */
.product-detail-main {
    padding: 2rem 0;
    background: #ffffff;
}

.product-page {
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Product Media */
.product-media {
    position: sticky;
    top: 100px;
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-product-image {
    aspect-ratio: 1;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover {
    border-color: #e5e7eb;
}

.thumbnail.active {
    border-color: #6d388b;
}

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

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

.product-header {
    margin-bottom: 2rem;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #121212;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

.stars i.filled {
    fill: currentColor;
}

.rating-text {
    color: #757575;
    font-size: 0.875rem;
}

/* Price */
.price-container {
    margin-bottom: 2rem;
}

.price-item--large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #121212;
}

/* Product Form */
.product-form {
    margin-bottom: 2rem;
}

.product-form__buttons {
    margin-bottom: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    white-space: nowrap;
}

.button--full-width {
    width: 100%;
}

.product-form__cart-submit {
    background-color: #6d388b;
    color: #ffffff;
}

.product-form__cart-submit:hover {
    background-color: #5a2f73;
    transform: translateY(-1px);
}

.product-form__note {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #666;
}

.product-form__note p {
    margin-bottom: 0.5rem;
}

/* Product Accordion */
.product-accordion {
    margin-bottom: 2rem;
}

.accordion__details {
    border-bottom: 1px solid #e5e5e5;
}

.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.summary__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.material-icon {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

.accordion__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #121212;
    margin: 0;
}

.icon-caret {
    width: 10px;
    height: 6px;
    transition: transform 0.2s;
}

.accordion__details[open] .icon-caret {
    transform: rotate(180deg);
}

.accordion__content-wrapper {
    padding-bottom: 1rem;
}

.accordion__content {
    color: #666;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.compatibility-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #121212;
    margin-bottom: 0.75rem;
}

.compatibility-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compatibility-item li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #666;
}

/* View Details Link */
.product-view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6d388b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.product-view-details:hover {
    text-decoration: underline;
}

.icon-arrow {
    width: 14px;
    height: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-media {
        position: static;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .price-item--large {
        font-size: 2rem;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .compatibility-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-detail-main {
        padding: 1rem 0;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-item--large {
        font-size: 1.75rem;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
    
    .accordion__summary {
        padding: 0.75rem 0;
    }
    
    .accordion__title {
        font-size: 1rem;
    }
    
    .material-icon {
        font-size: 20px;
    }
}

/* Loading states */
.main-product-image.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.thumbnail.loading {
    background: #f1f5f9;
}