/* Product Page Specific Styles */

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: inline-block;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* Product Main */
.product-main {
    background: white;
    border-radius: 20px;
    margin: -2rem auto 3rem;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

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

.main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #667eea;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.main-image svg {
    width: 80%;
    height: 80%;
    transition: all 0.3s ease;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail svg {
    width: 70%;
    height: 70%;
}

/* Product Info */
.product-details h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #1d1d1f, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.product-description {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

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

.option-group label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-button {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    background: white;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-button:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.option-button.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    background: #f5f5f7;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e5e5e7;
}

.quantity-input {
    border: none;
    padding: 0.8rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    width: 60px;
    background: white;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-to-cart {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-buy-now {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5e7;
}

.tab-button {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: #667eea;
    background: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.tab-content p {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e7;
}

.specs-table th {
    font-weight: 600;
    color: #1d1d1f;
    background: #f5f5f7;
}

.specs-table td {
    color: #6e6e73;
}

/* Related Products */
.related-products {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.related-products h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2rem;
    text-align: center;
}

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

.related-card {
    background: #f5f5f7;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.related-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.related-image svg {
    width: 70%;
    height: 70%;
}

.related-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.related-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.related-link {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Product */
/* Large tablets */
@media (max-width: 1024px) {
    .product-header {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    
    .product-content {
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .main-image {
        height: 350px;
        font-size: 5rem;
    }
    
    .product-details h1 {
        font-size: 2.2rem;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

/* Tablets and mobile landscape */
@media (max-width: 768px) {
    .product-header {
        padding: 2rem 1rem 1rem;
    }
    
    .breadcrumb {
        padding: 0.8rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .main-image {
        height: 320px;
        font-size: 4.5rem;
    }
    
    .thumbnail-gallery {
        gap: 0.8rem;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .product-details h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .add-to-cart {
        width: 100%;
        padding: 1.2rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .product-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .breadcrumb {
        padding: 0.6rem 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .product-main {
        margin: -1rem auto 2rem;
        border-radius: 15px;
    }
    
    .product-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .main-image {
        height: 280px;
        font-size: 3.5rem;
        border-radius: 15px;
    }
    
    .thumbnail-gallery {
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 8px;
    }
    
    .product-details h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .product-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .product-actions {
        gap: 1rem;
    }
    
    .quantity-selector {
        gap: 1rem;
    }
    
    .quantity-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .quantity-display {
        font-size: 1.1rem;
        min-width: 45px;
    }
    
    .add-to-cart {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .product-tabs {
        margin-top: 2rem;
    }
    
    .tab-button {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .tab-content {
        padding: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .related-products {
        padding: 2rem 1rem;
    }
    
    .related-products h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .related-card {
        padding: 1.2rem;
    }
    
    .related-image {
        height: 150px;
        font-size: 2.5rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .product-header {
        padding: 1.2rem 0.8rem 0.8rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .product-content {
        padding: 1.2rem;
    }
    
    .main-image {
        height: 250px;
        font-size: 3rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .product-details h1 {
        font-size: 1.6rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .quantity-display {
        font-size: 1rem;
        min-width: 40px;
    }
    
    .add-to-cart {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .tab-button {
        padding: 0.9rem;
        font-size: 0.85rem;
    }
    
    .tab-content {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .related-products h2 {
        font-size: 1.6rem;
    }
    
    .related-card {
        padding: 1rem;
    }
    
    .related-image {
        height: 120px;
        font-size: 2rem;
    }
    
    .related-card h3 {
        font-size: 1.1rem;
    }
    
    .related-price {
        font-size: 1rem;
    }
    
    .related-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}