/**
 * WooCommerce Single Product Page Styles
 * 
 * CSS for single product page
 *
 * @package TattooEdu
 * @version 1.0.0
 */

/* ===== SINGLE PRODUCT LAYOUT ===== */

.woocommerce-shop-page {
    padding: 100px;
  }

.shop-container {
    max-width: 900px;
    width: 100%;
}

/* ===== PRODUCT LAYOUT ===== */

.product-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* ===== PRODUCT IMAGES ===== */

.product-images {
    flex: 1;
    max-width: 50%;
}

.product-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: #1a1a1a;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PRODUCT INFO ===== */

.product-info {
    flex: 1;
    max-width: 50%;
}

.product-breadcrumbs {
    margin: 0px !important;
}

.woocommerce-breadcrumb {
    margin: 0 !important;
}

.product-breadcrumbs .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #1a1a1a;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 10px;
    font-size: 1.5rem;
}

.product-price ins {
    text-decoration: none;
}

/* ===== PRODUCT RATING ===== */

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* ===== PRODUCT DESCRIPTION ===== */

.product-description {
    line-height: 1.6;
    color: #666;
    font-size: 16px;
}

/* ===== ADD TO CART SECTION ===== */


.quantity-selector label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.quantity-selector input[type="number"] {
    width: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-single {
    width: 100%;
    padding: 20px 30px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.add-to-cart-single:hover {
    background-color: #333;
}

.add-to-cart-single.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.add-to-cart-single.added {
    background-color: #28a745;
}

/* ===== PRODUCT META ===== */

.product-meta {
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.meta-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #1a1a1a;
    width: 120px;
    flex-shrink: 0;
}

.meta-value {
    color: #666;
    font-size: 14px;
}

.meta-value a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-value a:hover {
    color: #1a1a1a;
}

.stock-status.instock {
    color: #28a745;
    font-weight: 600;
}

.stock-status.outofstock {
    color: #dc3545;
    font-weight: 600;
}

/* ===== SOCIAL SHARE ===== */

.product-share {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    margin-right: 15px;
}

.share-buttons {
    display: inline-flex;
    gap: 10px;
}

.share-buttons a {
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    background-color: #1a1a1a;
    color: white;
}

/* ===== PRODUCT TABS ===== */

.product-tabs {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button.active,
.tab-button:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.tabs-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-content {
    line-height: 1.6;
    color: #666;
}

/* ===== ATTRIBUTES TABLE ===== */

.attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.attributes-table tr {
    border-bottom: 1px solid #f5f5f5;
}

.attribute-label {
    padding: 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #1a1a1a;
    width: 30%;
    vertical-align: top;
}

.attribute-value {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

/* ===== REVIEWS ===== */

.reviews-list {
    margin-bottom: 40px;
}

.review-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f5f5f5;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: #1a1a1a;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-content {
    color: #666;
    line-height: 1.6;
}

/* ===== ADD REVIEW FORM ===== */

.add-review h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-review {
    padding: 15px 30px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.submit-review:hover {
    background-color: #333;
}

.submit-review.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== RELATED PRODUCTS ===== */

.related-products {
    margin-top: 60px;
}

.related-products h3 {
    font-size: 2rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-product-item {
    text-align: center;
}

.related-product-image {
    margin-bottom: 15px;
}

.related-product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.related-product-item:hover .related-product-image img {
    opacity: 0.8;
}

.related-product-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-title a:hover {
    color: #666;
}

.related-product-price {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1000px) {
    .woocommerce-shop-page {
        padding: 60px;
    }
    
    .product-layout {
        gap: 40px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .woocommerce-shop-page {
        padding: 30px;
    }
    
    .product-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-images,
    .product-info {
        max-width: 100%;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-product-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .woocommerce-shop-page {
        padding: 20px;
    }
    
    .product-layout {
        gap: 20px;
    }
    
    .product-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-buttons a {
        text-align: center;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-right: none;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .meta-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .meta-label {
        width: auto;
    }
}