/* Single Product Page Styles */
.single-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 150px;
}

/* Product Showcase Layout */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

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

.sticky-gallery {
    position: sticky;
    top: 100px;
}

.main-image-container {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.image-zoom-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.main-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-zoom-wrapper:hover .main-product-image {
    transform: scale(1.05);
}

/* Thumbnail Slider */
.product-thumbnail-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    position: relative;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #2c5282;
}

.thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Styles */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.product-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #EDF2F7;
    color: #2D3748;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.125rem;
    color: #4A5568;
    margin-bottom: 1.5rem;
}

/* Product Meta Info */
.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    color: #718096;
    font-size: 0.875rem;
}

.meta-value {
    color: #2D3748;
    font-weight: 500;
}

.meta-value.in-stock {
    color: #48BB78;
}

.meta-value.out-of-stock {
    color: #E53E3E;
}

/* Product Description */
.product-description {
    color: #4A5568;
    line-height: 1.8;
}

.description-content {
    font-size: 1rem;
}

/* Product Highlights */
.product-highlights {
    background: #F7FAFC;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 1.5rem;
}

.section-icon {
    color: #2c5282;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-item i {
    color: #48BB78;
    font-size: 0.875rem;
}

/* Call To Action Section */
.product-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button.primary {
    background-color: #2c5282;
    color: white;
}

.cta-button.primary:hover {
    background-color: #2a4365;
}

.cta-button.secondary {
    background-color: #4299E1;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button.secondary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4299E1, #2B6CB0);
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.cta-button.secondary:hover:before {
    transform: scale(1.1);
}

.cta-button.secondary i {
    font-size: 1.1em;
}

/* Related Products Section */
.related-products-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #F7FAFC;
}

.related-products-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Make entire card clickable */
.related-product-card a,
.product-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.product-image-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 0;
}

.product-card-title,
.product-title {
    font-size: 1.125rem;
    color: #2D3748;
    margin-bottom: 1rem;
    text-decoration: none;
}

.product-card h3,
.product-card h3 a {
    text-decoration: none;
    color: #2D3748;
}

/* Product Card Badge Styles */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-badge span {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge .onsale {
    background-color: #E53E3E;
    color: white;
}

.product-badge .featured {
    background-color: #2c5282;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-product-container {
        padding: 1.5rem;
        padding-top: 120px;
    }
    
    .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sticky-gallery {
        position: relative;
        top: 0;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .single-product-container {
        padding: 1rem;
        padding-top: 100px;
    }
    
    .product-thumbnail-slider {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .meta-item {
        width: 100%;
    }
}
