/*
Theme Name: Barnapole Child
Theme URI: https://barnapole.com
Description: Custom child theme for Barnapole single-product e-commerce site
Author: Barnapole
Template: porto
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../porto/style.css");

/* Custom Barnapole Styles */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --brand-primary: #00d084;
    --brand-secondary: #1a8fb8;
    --brand-gradient: linear-gradient(135deg, #00d084 0%, #1a8fb8 100%);
    --accent-success: #28a745;
    --accent-warning: #ffc107;
    --accent-danger: #dc3545;
}

.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --text-tertiary: #6c757d;
    --border-color: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Hide Porto header on homepage */
body.home #header,
body.home .header-wrapper,
body.page-template-front-page #header,
body.page-template-front-page .header-wrapper {
    display: none !important;
}

/* Remove Porto margins/padding on homepage */
body.home #main,
body.page-template-front-page #main {
    padding: 0 !important;
    margin: 0 !important;
}

body.home .main-content,
body.page-template-front-page .main-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure full width */
body.home .container,
body.page-template-front-page .container {
    max-width: 100% !important;
    padding: 0 !important;
}


/* ========================================
   Product Section - Split Screen Layout
   ======================================== */

.product-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.product-section-container .section-label {
    display: block;
    color: var(--primary-color, #00d4aa);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-section-container > h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #1a1a1a;
}

.product-section-container > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-split-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 40px;
}

/* Left: Product Gallery */
.product-gallery {
    flex: 1;
    max-width: 500px;
}

.main-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-thumbnails .thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain;
    padding: 8px;
    background: #f8f8f8;
}

.product-thumbnails .thumb:hover {
    border-color: var(--primary-color, #00d4aa);
}

.product-thumbnails .thumb.active {
    border-color: var(--primary-color, #00d4aa);
    background: #fff;
}

/* Right: Product Details */
.product-details {
    flex: 1;
    max-width: 600px;
}

.product-category {
    color: var(--primary-color, #00d4aa);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-rating {
    color: #ffa500;
    font-size: 18px;
    margin-bottom: 16px;
}

.product-rating span {
    color: #666;
    font-size: 14px;
    margin-left: 8px;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color, #00d4aa);
    margin-bottom: 24px;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 24px;
}

.product-meta {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
    margin-bottom: 24px;
}

.product-meta p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 48px;
    border: none;
    background: #f8f8f8;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #e0e0e0;
}

#productQty {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    height: 52px;
    background: var(--primary-color, #00d4aa);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background: #00b892;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.product-social {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.product-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-social a:hover {
    background: var(--primary-color, #00d4aa);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-split-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .product-gallery,
    .product-details {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}
