/* Template Details Page Styles */

:root {
    --pumpkin: #fc7a1e;
}

/* General Styles */
.section-padding {
    padding: 60px 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding: 0 15px;
}

.col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding: 0 15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.bg-light {
    background-color: #f5f5f5;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pumpkin);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* Template Preview Section */
.template-preview {
    margin-bottom: 30px;
    position: relative;
}

.template-preview .row {
    display: flex;
    flex-wrap: wrap;
}

.template-preview .col-md-3 {
    width: 30%;
    padding-right: 15px;
}

.template-preview .col-md-9 {
    width: 70%;
    padding-left: 15px;
}

.template-thumbnails {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    position: relative;
}

.thumbnail-item {
    margin-bottom: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    opacity: 1;
}

.thumbnail-item.active {
    border-color: #007bff;
    opacity: 1;
}

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

.thumbnail-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.thumbnail-nav button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-nav button:hover {
    background: #007bff;
    color: white;
}

.main-preview-container {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

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

.preview-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.preview-action {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-action:hover {
    background: #007bff;
    color: white;
}

.preview-action.wishlist.active i {
    color: #ff5252;
}

/* Preview Modal */
.preview-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.preview-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.preview-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.preview-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Template Info Card */
.template-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.template-info-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category {
    background-color: rgba(252, 122, 30, 0.1);
    color: var(--pumpkin);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    margin-right: 8px;
    color: #FFD700;
}

.template-price {
    margin-bottom: 25px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--pumpkin);
}

.old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

/* Template Actions */
.template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--pumpkin);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #e06010;
}

.btn-outline {
    background-color: transparent;
    color: var(--pumpkin);
    border: 2px solid var(--pumpkin);
}

.btn-outline:hover {
    background-color: rgba(252, 122, 30, 0.1);
}

.wishlist-btn {
    padding: 12px 20px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: #f5f5f5;
    color: var(--pumpkin);
}

/* Template Details */
.template-details {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.label {
    min-width: 120px;
    font-weight: 600;
    color: #666;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Description Section */
.description-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.description-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Product Actions Mobile */
.product-actions-mobile {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.product-actions-mobile .template-price {
    margin-bottom: 15px;
    text-align: center;
}

.product-actions-mobile .template-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.product-actions-mobile .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
}

/* Template Tabs */
.template-tabs {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.template-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.template-tabs .nav-item {
    margin-bottom: -1px;
    white-space: nowrap;
}

.template-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.template-tabs .nav-link:hover {
    color: #007bff;
}

.template-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: transparent;
}

.template-tab-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Tab Content Styling */
.description-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.features-list, .included-list, .compatibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li, .included-list li, .compatibility-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.features-list li:last-child, .included-list li:last-child, .compatibility-list li:last-child {
    border-bottom: none;
}

.features-list li i, .included-list li i, .compatibility-list li i {
    color: #007bff;
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.compatibility-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.compatibility-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.customization-cta {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.customization-cta h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.customization-cta p {
    margin-bottom: 15px;
}

/* Reviews Styling */
.reviews-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.average-rating {
    text-align: center;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.stars {
    color: #ffc107;
    margin: 10px 0;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

.reviews-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 16px;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-content h5 {
    margin-top: 0;
    margin-bottom: 10px;
}

.review-content p {
    margin-bottom: 0;
}

.write-review, .login-to-review {
    text-align: center;
    margin-top: 20px;
}

/* Sidebar */
.sidebar-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.included-list, .compatibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li, .compatibility-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.included-list li i, .compatibility-list li i {
    margin-right: 10px;
    color: var(--pumpkin);
}

/* Related Templates */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
}

.template-image {
    position: relative;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-image:hover .template-overlay {
    opacity: 1;
}

.template-image:hover img {
    transform: scale(1.05);
}

.template-preview-btn {
    padding: 8px 16px;
    background-color: var(--pumpkin);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.template-preview-btn:hover {
    background-color: #e06010;
}

.template-wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #666;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-wishlist-btn:hover {
    background-color: var(--pumpkin);
    color: white;
}

.template-info {
    padding: 20px;
}

.template-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.template-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.template-info h3 a:hover {
    color: var(--pumpkin);
}

.template-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .col-lg-7, .col-lg-5, .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .template-actions {
        flex-direction: column;
    }
    
    .template-actions .btn, 
    .template-actions .wishlist-btn {
        width: 100%;
    }
    
    .section-padding {
        padding: 40px 0;
    }
} 

/* Responsive Adjustments */
@media (max-width: 991px) {
    .template-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: 15px;
        padding-right: 0;
    }
    
    .thumbnail-item {
        margin-right: 10px;
        margin-bottom: 0;
        width: 80px;
        flex-shrink: 0;
    }
    
    .thumbnail-nav {
        display: none;
    }
    
    .template-tabs {
        justify-content: flex-start;
    }
    
    .template-tab-content {
        padding: 20px 15px;
    }
}

@media (max-width: 767px) {
    .template-preview .row {
        flex-direction: column-reverse;
    }
    
    .col-md-2 {
        width: 100%;
    }
    
    .col-md-10 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .template-header-content {
        margin-top: 20px;
    }
    
    .template-info-card {
        margin-bottom: 20px;
    }
    
    .template-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
} 