/* 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 */
.template-preview {
    position: relative;
    margin-bottom: 30px;
}

.main-preview {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.template-gallery {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.gallery-item {
    flex: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Template Info Card */
.template-info-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    height: 100%;
}

.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;
}

.description-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

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

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

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

/* Reviews */
.reviews-summary {
    display: flex;
    margin-bottom: 30px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-right: 30px;
}

.rating-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

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

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

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

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.reviewer-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

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

.review-content p {
    color: #555;
    line-height: 1.6;
}

/* 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;
    }
} 