/* ===================================
   CSS Variables - Color Scheme from Component 2
   =================================== */
:root {
    --primary-gradient-start: #FFC7DA;
    --primary-gradient-mid: #FFDFEA;
    --primary-gradient-end: #F9F6F2;
    --accent-pink: #FC4482;
    --accent-purple-mid: #8D77F7;
    --text-dark: #1a1a1a;
    --text-medium: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --color-dark-purple: #2B2449;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: transparent;
    min-height: 100vh;
    color: var(--text-medium);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 2rem
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===================================
   Main Product Page Layout
   =================================== */
.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    backdrop-filter: blur(10px);
    /*transform: scale(0.5);*/
    transform-origin: top center;
}

.product-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===================================
   Product Gallery
   =================================== */
.product-gallery {
    position: relative;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===================================
   Product Details
   =================================== */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.125rem;
    color: #ddd;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ===================================
   Size Selection
   =================================== */
.size-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    letter-spacing: 0.5px;
}

.size-options {
    display: flex;
    gap: 0.75rem;
}

.size-btn {
    flex: 1;
    padding: 0.875rem;
    background: var(--white);
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.size-btn:hover {
    border-color: var(--accent-purple-mid);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 119, 247, 0.2);
}

.size-btn.selected {
    background: var(--color-dark-purple);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(141, 119, 247, 0.4);
}

/* ===================================
   Add to Bag Button
   =================================== */
.add-to-bag-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-dark-purple);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
}

/* ===================================
   Product Info Links
   =================================== */
.product-info {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.info-link {
    font-size: 0.875rem;
    color: var(--text-medium);
    text-decoration: underline;
    cursor: default;
}

/* ===================================
   Accordion
   =================================== */
.accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-medium);
}

/* ===================================
   Complete the Look Section
   =================================== */
.complete-look-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    height: 60px;
    line-height: 60px;
}

.category-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    height: 60px;
}

.tab-btn {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    border-color: var(--accent-purple-mid);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 119, 247, 0.2);
}

.tab-btn.active {
    background: var(--color-dark-purple);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(141, 119, 247, 0.4);
}

/* ===================================
   Carousel
   =================================== */
.look-layout {
    display: grid;
    grid-template-columns: 2fr 5fr;
    gap: 2rem;
    align-items: start;
}

.static-look {
    width: 100%;
}

.look-carousel {
    position: relative;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    transition: opacity 0.6s ease-in-out;
}

.look-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.look-image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.look-image {
    height: 100%;
    max-height:360px;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
    border-radius: 16px;
}

/* ===================================
   Toast Notification
   =================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */

/*
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 1rem;
    }

    .product-container {
        padding: 2rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.75rem;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 1.5rem;
    }

    .size-options {
        gap: 0.5rem;
    }

    .size-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}
*/

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-container,
.complete-look-section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}