/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Product Detail */
.product-detail {
    padding: 10rem 0 3rem;
}

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

/* Product Image */
.product-image {
    position: sticky;
    top: 120px;
}

.main-image {
    position: relative;
    background: #f1f3f4;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: zoom-in;
}

.main-image:hover .image-zoom-overlay {
    opacity: 1;
}

/* Product Info */
.product-info {
    padding-left: 2rem;
}

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

.product-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

/* Product Description */
.product-description {
    margin-bottom: 2rem;
}

.product-description h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

/* Size Selection */
.size-selection {
    margin-bottom: 2rem;
}

.size-selection h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.size-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    background: #f1f3f4;
    border: 2px solid #dadce0;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 48px;
    text-align: center;
}

.size-option:hover {
    background: #e8eaed;
    border-color: #bdc1c6;
    color: #000000;
}

.size-option.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Product Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e8eaed;
}

.feature-item svg {
    color: #000000;
    flex-shrink: 0;
}

.feature-content h4 {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: #9aa0a6;
    font-size: 0.875rem;
}

/* Related Products */
.related-products {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 3rem;
    text-align: center;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 1rem;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 2px solid #dadce0;
    color: #000000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.carousel-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #e8eaed;
    color: #bdc1c6;
    border-color: #dadce0;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    background: #e8eaed;
    color: #bdc1c6;
    border-color: #dadce0;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Product Card Styles */
.product-card {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 420px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image-card {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image-card img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #000000;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-content {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex: 1;
    min-height: 180px;
}

.product-title-card {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
    flex-shrink: 0;
}

.product-price-card {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.product-price-card .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
}

.view-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    margin-top: auto;
}

.view-link:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
    border-color: #bfdbfe;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-info {
        padding-left: 0;
    }
    
    .product-image {
        position: static;
    }
    
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .product-card {
        flex: 0 0 280px;
        min-width: 280px;
        height: 400px;
    }
    
    .product-image-card {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .carousel-wrapper {
        padding: 0 30px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .product-card {
        flex: 0 0 260px;
        min-width: 260px;
        height: 380px;
    }
    
    .product-image-card {
        height: 200px;
    }
    
    .product-content {
        min-height: 160px;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {    
    .product-title {
        font-size: 1.25rem;
    }
    
    .size-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .size-option {
        min-width: auto;
    }
    
    .carousel-wrapper {
        padding: 0 20px;
    }
    
    .product-card {
        flex: 0 0 240px;
        min-width: 240px;
        height: 360px;
    }
    
    .product-image-card {
        height: 180px;
    }
    
    .product-content {
        min-height: 140px;
        padding: 1rem 0.75rem;
    }
    
    .product-title-card {
        font-size: 1rem;
        min-height: 2.5rem;
    }
    
    .product-price-card .current-price {
        font-size: 1.125rem;
    }
}