/* Product Page Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    background: #0d1117;
    padding: 20px 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(139, 148, 158, 0.8);
}

.breadcrumb-item {
    color: rgba(139, 148, 158, 0.8);
    font-weight: 400;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: rgba(240, 246, 252, 0.9);
}

.breadcrumb-item:last-child {
    color: rgba(255, 107, 53, 0.9);
    font-weight: 500;
}

.breadcrumb-separator {
    color: rgba(139, 148, 158, 0.5);
    font-weight: 300;
}

/* Product Section */
.product-section {
    background: #0d1117;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    position: relative;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.4);
    grid-column: 1 / -1;
}

.badge-text {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 12% 38% 50%;
    gap: 0;
    height: auto;
    min-height: 600px;
}

/* Column 1: Product Variants */
.product-variants {
    padding-right: 20px;
    border-right: 1px solid rgba(48, 54, 61, 0.3);
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
    height: 600px;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.6) transparent;
}

/* Custom scrollbar for variants list */
.variants-list::-webkit-scrollbar {
    width: 6px;
}

.variants-list::-webkit-scrollbar-track {
    background: rgba(22, 27, 34, 0.3);
    border-radius: 3px;
}

.variants-list::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.variants-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}

.variant-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    background: rgba(22, 27, 34, 0.2);
    opacity: 0.6;
    aspect-ratio: 3/4;
    width: 100%;
}

.variant-item:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
    opacity: 0.8;
}

.variant-item.active {
    border-color: rgba(255, 107, 53, 0.8);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
    opacity: 0.4;
    transform: scale(1.05);
}

.variant-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.3) 0%, 
        rgba(255, 140, 66, 0.2) 50%,
        rgba(255, 87, 34, 0.3) 100%);
    border-radius: 14px;
    z-index: -1;
    filter: blur(8px);
}

.variant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: all 0.4s ease;
}

.variant-item:hover .variant-image {
    filter: brightness(1.1) contrast(1.05);
}

.variant-item.active .variant-image {
    filter: brightness(1.2) contrast(1.1);
}

.variant-label {
    display: none;
}

/* Column 2: Main Image */
.product-image-main {
    padding: 0 30px;
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(22, 27, 34, 0.3);
    border: 1px solid rgba(48, 54, 61, 0.3);
}

/* Hide mobile variant lines on desktop */
.mobile-variant-lines {
    display: none;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.image-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(13, 17, 23, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.image-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.8);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.image-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Column 3: Product Details */
.product-details {
    padding-left: 40px;
}

.product-info {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    position: sticky;
    top: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0 0 16px 0;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.2;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 107, 53, 0.9);
    margin: 0 0 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.product-description {
    font-size: 1rem;
    color: rgba(240, 246, 252, 0.7);
    line-height: 1.6;
    margin: 0 0 48px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* Product Options */
.product-options {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.2);
}

.product-options:last-child {
    border-bottom: none;
}

.options-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0 0 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(240, 246, 252, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.color-option:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #f0f6fc;
}

.color-option.selected {
    background: rgba(255, 107, 53, 0.2);
    color: #f0f6fc;
}

.color-box {
    width: 44px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.color-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.cup-options,
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cup-option,
.size-option {
    padding: 10px 16px;
    background: rgba(48, 54, 61, 0.3);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 8px;
    color: rgba(240, 246, 252, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.cup-option:hover,
.size-option:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.5);
    color: #f0f6fc;
    transform: translateY(-1px);
}

.cup-option.selected,
.size-option.selected {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.8);
    color: #f0f6fc;
}

/* Cup-Size Relationship Styles */
.size-option.disabled {
    background: rgba(48, 54, 61, 0.15);
    border-color: rgba(48, 54, 61, 0.25);
    color: rgba(139, 148, 158, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.size-option.disabled:hover {
    transform: none;
    background: rgba(48, 54, 61, 0.15);
    border-color: rgba(48, 54, 61, 0.25);
    color: rgba(139, 148, 158, 0.4);
}

.size-option.available {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.1);
}

.size-option.available:hover {
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.15);
}

.size-option.mutual {
    position: relative;
}

.size-option.mutual::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: rgba(34, 197, 94, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.4);
}

.size-option.limited {
    position: relative;
}

.size-option.limited::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: rgba(234, 179, 8, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(234, 179, 8, 0.4);
}

/* Product Sections */
.product-section-item {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.2);
    padding-bottom: 32px;
}

.product-section-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header.collapsible {
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-header.collapsible:hover {
    color: rgba(255, 107, 53, 0.9);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.section-arrow {
    font-size: 0.8rem;
    color: rgba(139, 148, 158, 0.7);
    transition: transform 0.3s ease;
}

.section-header.collapsible.expanded .section-arrow {
    transform: rotate(180deg);
}

.section-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.section-content:not(.collapsed) {
    max-height: 1000px;
    opacity: 1;
    margin-top: 16px;
}

.section-content p {
    font-size: 0.95rem;
    color: rgba(240, 246, 252, 0.7);
    line-height: 1.5;
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 15% 35% 50%;
    }
    
    .product-details {
        padding-left: 30px;
    }
    
    .product-info {
        padding: 0;
    }
    
    .product-name {
        font-size: 2.2rem;
    }
    
    .variants-list {
        height: 600px;
    }
}

@media (max-width: 768px) {
    /* Remove gap between breadcrumb and hero */
    .breadcrumb-section {
        padding: 15px 0;
    }
    
    .product-section {
        padding: 0;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 0;
    }
    
    /* Position featured badge under image on mobile */
    .featured-badge {
        position: static;
        margin: 20px auto;
        display: flex;
        justify-content: center;
        width: fit-content;
        order: 2;
        grid-column: 1;
        grid-row: 2;
    }
    
    /* Hide standalone variants section */
    .product-variants {
        display: none;
    }
    
    /* Hero image styling - full width, no margins */
    .product-image-main {
        padding: 0;
        margin: 0 -20px;
        order: 1;
        position: relative;
        grid-column: 1;
        grid-row: 1;
    }
    
    .image-container {
        height: 600px;
        border: none;
        border-radius: 0;
        background: transparent;
        margin: 0;
        position: relative;
    }
    
    /* Mobile variant lines within the image */
    .mobile-variant-lines {
        position: absolute;
        bottom: -10px;
        left: 20px;
        right: 20px;
        height: 20px;
        display: flex;
        gap: 2px;
        z-index: 5;
    }
    
    .mobile-variant-line {
        flex: 1;
        height: 3px;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-variant-line.active {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-variant-line:hover {
        background: rgba(255, 255, 255, 0.6);
    }
    
    /* Keep dots as dots for image navigation */
    .image-dots {
        bottom: 15px;
        background: rgba(13, 17, 23, 0.8);
        padding: 8px 16px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }
    
    .image-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .image-dot.active {
        background: rgba(255, 107, 53, 0.9);
        border-color: rgba(255, 107, 53, 0.8);
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
    }
    
    .image-dot:hover {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(1.1);
    }
    
    .product-details {
        padding: 20px;
        order: 3;
        grid-column: 1;
        grid-row: 3;
    }
    
    .product-info {
        position: static;
        max-height: none;
        padding: 0;
    }
    
    .product-name {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    /* Remove gap between breadcrumb and hero */
    .breadcrumb-section {
        padding: 10px 0;
    }
    
    .product-section {
        padding: 0;
    }
    
    .product-container {
        padding: 0 16px;
    }
    
    .product-layout {
        gap: 0;
        grid-template-rows: auto auto 1fr;
    }
    
    /* Hero image - full width with negative margin */
    .product-image-main {
        margin: 0 -16px;
    }
    
    .image-container {
        height: 600px;
    }
    
    /* Adjust mobile variant lines for smaller screens */
    .mobile-variant-lines {
        bottom: -10px;
        left: 16px;
        right: 16px;
    }
    
    .mobile-variant-line {
        height: 2px;
    }
    
    .product-info {
        padding: 0;
    }
    
    .product-name {
        font-size: 1.6rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    /* Keep dots styling consistent */
    .image-dots {
        bottom: 10px;
        padding: 6px 12px;
    }
    
    .image-dot {
        width: 8px;
        height: 8px;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
} 

/* Variant image loading states */
.variant-image, .main-image, .product-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.variant-image[src], .main-image[src], .product-img[src] {
    opacity: 1;
}

/* Hide variants with no valid images */
.variant-item[style*="display: none"] {
    display: none !important;
}

/* Ensure smooth transitions for variant switching */
.variant-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Loading state for images */
.image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.image-container.loading::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Improved error states */
.variant-item.error {
    opacity: 0.3;
    pointer-events: none;
}

.variant-item.loading {
    opacity: 0.6;
}

/* Better responsive layout for many variants */
@media (max-width: 768px) {
    .mobile-variant-lines {
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .mobile-variant-line {
        min-width: 20px;
        flex: 1 1 auto;
    }
} 