/* ==========================================
   BRAINS FROIDS - IceBarrel Product Page Styles
   Based on IceTubs Design
   ========================================== */

:root {
    --color-black: #0A0A0A;
    --color-dark: #1A1A1A;
    --color-blue: #2563EB;
    --color-blue-dark: #1D4ED8;
    --color-gray: #9CA3AF;
    --color-white: #FFFFFF;
}

/* Product Section */
.product-section {
    padding: 4rem 0;
    background: var(--color-black);
    min-height: 100vh;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    width: 100%;
    height: 600px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: rgba(26, 26, 26, 0.5);
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
}

.thumbnail.active {
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

/* Product Info */
.product-info {
    color: white;
}

.product-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stars {
    color: var(--color-blue);
    font-size: 1.2rem;
}

.rating-text {
    color: var(--color-gray);
    font-size: 0.95rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.price-label {
    color: var(--color-gray);
    font-size: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.price-vat {
    color: var(--color-gray);
    font-size: 0.875rem;
}

.product-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #D1D5DB;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* Product Options */
.product-options {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 2rem;
}

.option-label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.option-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.option-btn {
    padding: 1rem;
    background: rgba(26, 26, 26, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--color-blue);
    background: rgba(59, 130, 246, 0.1);
}

.option-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.option-name {
    font-weight: 600;
    font-size: 1rem;
}

.option-price {
    color: var(--color-blue);
    font-size: 0.875rem;
}

/* Add-ons List */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.addon-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.addon-item:hover {
    background: rgba(26, 26, 26, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
}

.addon-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--color-blue);
}

.addon-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.addon-name {
    color: white;
    font-weight: 500;
}

.addon-price {
    color: var(--color-blue);
    font-weight: 600;
}

/* Purchase Section */
.purchase-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: inline-flex;
    background: rgba(26, 26, 26, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: rgba(59, 130, 246, 0.1);
}

.quantity-selector input {
    width: 60px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    color: white;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.total-label {
    color: var(--color-gray);
    font-size: 1.125rem;
}

.total-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-blue);
}

.btn-add-cart {
    width: 100%;
    padding: 1.25rem;
    background: var(--color-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-add-cart:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Features List */
.features-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: #D1D5DB;
}

.feature i {
    color: var(--color-blue);
    font-size: 1.25rem;
}

/* Product Accordions */
.product-accordions {
    margin-top: 4rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.accordion-header:hover {
    color: var(--color-blue);
}

.accordion-header i {
    transition: transform 0.3s;
    color: var(--color-blue);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #D1D5DB;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 1.5rem 0 2rem;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    color: var(--color-gray);
    font-size: 0.875rem;
}

.spec-value {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Dimensions Content */
.dimensions-content h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.dimensions-content h3:first-child {
    margin-top: 0;
}

.dimensions-content ul {
    list-style: none;
    padding: 0;
}

.dimensions-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.dimensions-content li:before {
    content: "•";
    color: var(--color-blue);
    position: absolute;
    left: 0;
}

/* Materials Content */
.materials-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.materials-content ul {
    list-style: none;
    padding: 0;
}

.materials-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.materials-content li:before {
    content: "•";
    color: var(--color-blue);
    position: absolute;
    left: 0;
}

/* Delivery Content */
.delivery-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.delivery-content ul {
    list-style: none;
    padding: 0;
}

.delivery-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.delivery-content li:before {
    content: "✓";
    color: var(--color-blue);
    position: absolute;
    left: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.faq-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.faq-item h3 {
    color: var(--color-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #D1D5DB;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .gallery-main {
        height: 400px;
    }
    
    .gallery-thumbnails {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .thumbnail {
        width: 100%;
        height: 80px;
    }
    
    .option-buttons {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 2rem 0;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
    
    .accordion-header {
        font-size: 1.125rem;
    }
}