:root {
    --primary-color: #d20a11;
    --primary-hover: #a80000;
    --success-color: #198754;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* Breadcrumbs */
.product-page-container .breadcrumb {
    background-color: var(--light-gray);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}
.product-page-container .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Product Gallery */
.product-gallery-wrapper {
    position: sticky;
    top: 20px;
}
.product-main-image-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    cursor: zoom-in;
}
.product-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-main-image-container:hover .product-main-image {
    transform: scale(1.1);
}

.product-thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}
.product-thumbnail-wrapper {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.product-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-thumbnail-wrapper.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(210, 10, 17, 0.5);
}

/* Related Products Section */
.related-products-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
}
.related-products-section .section-title h2 {
    font-weight: 700;
    color: var(--text-dark);
}
.related-products-slider {
    padding-bottom: 3rem; /* Space for pagination */
}
.related-products-slider .swiper-slide {
    width: 250px; /* Adjust as needed */
}
.related-products-slider .product-card {
    height: 100%;
    margin-bottom: 0;
}
.related-products-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .product-gallery-wrapper {
        position: static;
    }
    .order-card .product-title-main {
        font-size: 1.75rem;
    }
    .current-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .form-actions {
        flex-direction: column;
    }
}

/* Product Info Tabs */
.product-info-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}
.product-info-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.product-info-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}
.product-info-tabs .tab-content {
    padding: 2rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
}
.product-long-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Social Share */
.social-share-wrapper {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}
.social-share-wrapper h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.social-btn.facebook { background-color: #1877F2; }
.social-btn.twitter { background-color: #1DA1F2; }
.social-btn.whatsapp { background-color: #25D366; }

@media (max-width: 991.98px) {
    .social-share-wrapper { margin-top: 2rem; }
}

/* Order Card */
.order-card-wrapper {
    position: sticky;
    top: 20px;
}
.order-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.order-card .product-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.order-card .price-section-main {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.order-card .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}
.order-card .original-price-main {
    font-size: 1.25rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.order-card .discount-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.order-card .stock-status .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}
.order-card .form-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}
.order-card .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.order-card .form-control,
.order-card .form-select {
    border-radius: 0.5rem;
}

/* Price Summary in Order Card */
.price-summary {
    background-color: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0;
}
.price-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.price-summary-item:last-child {
    margin-bottom: 0;
}
.price-summary-item.total {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}
.price-summary-item.total strong {
    color: var(--primary-color);
}

/* Form Actions in Order Card */
.form-actions {
    display: flex;
    gap: 1rem;
}
.form-actions .quantity-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}
.form-actions .quantity-selector .form-control {
    border: none;
    box-shadow: none;
    width: 60px;
    background: transparent;
    font-weight: 600;
    padding: 0;
}
.form-actions .quantity-selector .btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
}
.form-actions .quantity-selector .btn-icon:hover {
    color: var(--primary-color);
}
.btn-submit-order {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-submit-order:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Optional Add to Cart */
.add-to-cart-optional {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}
.add-to-cart-optional span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.add-to-cart-optional .btn {
    width: 100%;
    border-radius: 0.75rem;
}

/* Responsive for Order Card */
@media (max-width: 991.98px) {
    .order-card-wrapper {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .order-card {
        padding: 1rem;
    }
    .order-card .product-title-main {
        font-size: 1.5rem;
    }
    .form-actions .quantity-selector {
        justify-content: center;
    }
}