
.product-page {
    margin-top: 100px;
    margin-bottom: 80px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-gallery {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.product-gallery:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--secondary-color);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.thumbnail:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Enhanced Price Section */
.price-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}



.original-price {
    font-size: 1.4rem;
    opacity: 0.9;
    text-decoration: line-through;
    margin-right: 15px;
}

.discount-badge {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 15px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Variants Styling */
.variant-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.variant-section:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-light);
}

.variant-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.variant-title::before {
    content: '🎨';
    font-size: 1.2rem;
}

#sizesSection .variant-title::before {
    content: '📏';
}

.color-options, .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-option::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.color-option.active {
    transform: scale(1.15);
    border-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.color-option.active::after {
    border-color: var(--secondary-color);
}

.color-option.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
}

.size-option {
    padding: 12px 22px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    min-width: 70px;
    text-align: center;
}

.size-option:hover:not(.out-of-stock) {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
}

.size-option.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.size-option.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
}

.quantity-input {
    width: 100px;
    height: 50px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Stock Status */
.stock-status {
    padding: 18px 25px;
    border-radius: 12px;
    font-weight: 600;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.stock-status.in-stock {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left-color: var(--success-color);
}

.stock-status.low-stock {
    background: rgba(243, 156, 18, 0.1);
    color: #d35400;
    border-left-color: var(--warning-color);
}

.stock-status.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left-color: var(--accent-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-add-to-cart, .btn-like {
    flex: 1;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-like {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-like:hover {
    background: #fff5f7;
    border-color: #ff6b8b;
    color: #ff6b8b;
    transform: translateY(-3px);
}

.btn-like.active {
    background: #ff6b8b;
    color: white;
    border-color: #ff6b8b;
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Product Meta */
.product-meta {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: white;
    box-shadow: var(--shadow-light);
    transform: translateX(5px);
}

.meta-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Related Products */
.related-products {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-products h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.related-products h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), transparent);
    border-radius: 2px;
}

.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: white;
    box-shadow: var(--shadow-light);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-img-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 20px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.product-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 10px 0;
}

.product-card-old-price {
    font-size: 0.8rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-gallery {
        position: static;
        margin-bottom: 30px;
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .current-price {
        font-size: 0.9;
    }
}

@media (max-width: 768px) {
    .product-page {
        margin-top: 80px;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .variant-section, .quantity-selector, .product-meta {
        padding: 20px;
    }
}

/* Breadcrumb Styling */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}










/* Add to your CSS file */
.product-policies {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-policies .accordion {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.product-policies .accordion-item {
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

.product-policies .accordion-item:last-child {
    border-bottom: none;
}

.product-policies .accordion-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--primary-color);
    font-weight: 600;
    padding: 18px 20px;
    border: none;
    transition: all 0.3s ease;
}

.product-policies .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    box-shadow: none;
}

.product-policies .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* Makes the arrow white */
}

.product-policies .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    border-color: var(--secondary-color);
}

.product-policies .accordion-button:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.product-policies .accordion-button:not(.collapsed):hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
}

.product-policies .accordion-body {
    background: #f8f9fa;
    padding: 25px;
    line-height: 1.8;
}

.product-policies .accordion-body ol,
.product-policies .accordion-body ul {
    padding-right: 20px;
}

.product-policies .accordion-body li {
    margin-bottom: 10px;
}

.product-policies .policy-meta {
    font-size: 0.9rem;
}

/* Compact view for policies (optional) */
.policies-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.policy-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.policy-card h6 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-card h6 i {
    color: var(--secondary-color);
}

.policy-card .policy-content {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.policy-card .policy-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white);
}

.policy-card .read-more {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 10px;
    display: inline-block;
}