/* Product Detail Page Specific Styles */
.page-hero {
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    background: rgba(0, 0, 0, 0.6);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/backgrounds/back2.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    z-index: -1;
}


.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.product-detail {
    background-color: white;
    padding: 100px 0;
}

.product-gallery {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}


/* Price Section Styling */
.product-price {
    margin-top: 20px;
    font-size: 1.5rem; /* Increase font size */
    font-weight: bold;
    display: flex;
    gap: 10px;
    align-items: center;
}

.old-price {
    padding-right: 20px;
    font-size: 2rem;
    color: red;
    text-decoration: line-through;
}

.new-price {
    font-size: 3rem; /* Larger size for the new price */
    color: green; /* Green color to highlight the new price */
    font-weight: bold;
}

/* Price Type Label */
.price-type {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
    font-size: 25px;
}
.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
    gap: 6px;
}


.main-image {
    flex: 2;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.product-description ul li {
    font-size: 1.2rem;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.thumbnail {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.thumbnail:hover::after,
.thumbnail.active::after {
    opacity: 1;
}

.thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    margin: 40px 0 20px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.product-meta span {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 1rem;
}

.product-meta i {
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.product-description h3 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.features-list i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.specs-table th {
    font-weight: 600;
    color: var(--primary-color);
    width: 30%;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Share modal styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.share-option:hover {
    background-color: #f8f9fa;
}

.share-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.share-option span {
    font-size: 0.9rem;
}

.share-link-container {
    display: flex;
    margin-top: 1rem;
}

.share-link {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px 0 0 8px;
    background-color: #f8f9fa;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-link-btn {
    padding: 0.75rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-link-btn:hover {
    background-color: var(--primary-color);
}

/* Social media specific colors */
.facebook { color: #1877F2; }
.twitter { color: #1DA1F2; }
.linkedin { color: #0077B5; }
.whatsapp { color: #25D366; }
.email { color: #EA4335; }

.related-products {
    background-color: #f8f9fa;
    padding: 100px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-gallery {
        flex-direction: column;
    }
    
    .thumbnail-container {
        flex-direction: row;
        order: -1;
        margin-bottom: 20px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 120px 0 80px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .thumbnail-container {
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover::after {
    animation: ripple 1s ease-out;
}

.btn-secondary {
    background-color: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: rotate(15deg);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.product-navigation-modern {
    margin-top: 30px;
    margin-bottom: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    font-family: 'Segoe UI', sans-serif;
    gap: 1rem;
    flex-wrap: wrap;
    transition: var(--transition);
}

.product-navigation-modern .nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.product-navigation-modern .nav-button:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
    box-shadow: var(--box-shadow-hover);
}

.product-navigation-modern .nav-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
    background-color: var(--light-gray);
    color: var(--text-light);
}

.product-navigation-modern .product-position {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}
