/*
Theme Name: Green Belt Glass
Theme URI: https://greenbeltglass.com
Description: Custom theme for Green Belt Glass - handcrafted glass art
Author: Green Belt Glass
Version: 1.0
*/

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #0f1913 50%, #0d1117 100%);
    background-attachment: fixed;
    color: #e5e7eb;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.site-logo {
    width: 100%;
    text-align: center;
}

.site-logo .logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: opacity 0.2s;
}

.site-logo .logo-link:hover {
    opacity: 0.9;
}

.site-logo .logo-image {
    width: 600px;
    height: 200px;
    object-fit: contain;
    display: block;
    pointer-events: auto;
}

.site-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.site-nav a {
    color: #c9d1d9;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.header-cart {
    position: absolute;
    right: 40px;
    top: 40px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-decoration: none;
    font-weight: 600;
}

.header-cart:hover {
    background: rgba(16, 185, 129, 0.25);
}

/* MAIN CONTENT */
.site-main {
    max-width: 100%;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* Make WooCommerce containers full width */
.woocommerce,
.woocommerce-page {
    max-width: 100% !important;
    width: 100% !important;
}

.woocommerce .content-area,
.woocommerce-page .content-area {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .site-main,
.woocommerce-page .site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px !important;
}

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

.post-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: #10b981;
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.post-card h2 {
    margin-bottom: 10px;
}

.post-card h2 a {
    color: #10b981;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
}

.post-card h2 a:hover {
    color: #34d399;
}

.post-excerpt {
    color: #c9d1d9;
    font-size: 0.95em;
    margin-top: 10px;
}

.post-meta {
    color: #6ee7b7;
    font-size: 0.85em;
    margin-top: 10px;
}

/* SINGLE POST */
.single-post-content {
    max-width: 900px;
    margin: 0 auto;
}

.single-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #30363d;
}

.single-header h1 {
    font-size: 3em;
    color: #10b981;
    font-weight: 800;
    margin-bottom: 15px;
}

.post-content {
    color: #e5e7eb;
    font-size: 1.15em;
    line-height: 1.9;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2 {
    color: #10b981;
    font-size: 2em;
    margin: 40px 0 20px;
    padding-top: 25px;
    border-top: 2px solid #30363d;
}

.post-content h3 {
    color: #34d399;
    font-size: 1.5em;
    margin: 30px 0 15px;
}

.post-content ul,
.post-content ol {
    margin: 25px 0 25px 40px;
}

.post-content li {
    margin-bottom: 12px;
}

/* SHOP/PRODUCTS */
.woocommerce ul.products,
.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
    gap: 18px;
    list-style: none;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    justify-content: center;
}

/* Remove any pseudo-elements that might break layout */
.products::before,
.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
.product {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s;
    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
}

/* Ensure first product shows */
.product:first-child {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product::before,
.product::after {
    display: none !important;
    content: none !important;
}

.product:hover {
    border-color: #10b981;
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.product img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.product h2,
.product .woocommerce-loop-product__title {
    color: #10b981;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product .price {
    color: #34d399;
    font-weight: 700;
    font-size: 1.3em;
    margin: 8px 0 12px;
    display: block;
}

.product .button,
.button {
    background: #10b981;
    color: #0d1117;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin-top: auto;
}

.product .button {
    width: 100%;
}

.button:hover {
    background: #34d399;
    transform: translateY(-2px);
}

/* SINGLE PRODUCT PAGE - CENTERED LAYOUT */
.woocommerce div.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

.woocommerce div.product .woocommerce-product-gallery {
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 600px !important;
}

.woocommerce div.product .summary.entry-summary,
.woocommerce div.product .summary {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 800px !important;
    width: 100% !important;
}

.woocommerce div.product .product_title {
    text-align: center !important;
    margin: 20px auto !important;
    color: #10b981 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    margin: 15px auto !important;
    color: #34d399 !important;
}

.woocommerce div.product .product_meta {
    text-align: center !important;
    margin: 20px auto !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    text-align: center !important;
    margin: 20px auto !important;
}

.woocommerce div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 30px auto !important;
}

.woocommerce div.product form.cart .quantity {
    margin: 10px auto !important;
    text-align: center !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    margin: 10px auto !important;
    display: inline-block !important;
}

.woocommerce div.product .woocommerce-product-details__short-description ul,
.woocommerce div.product .woocommerce-product-details__short-description ol {
    list-style: none !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 20px auto !important;
}

.woocommerce div.product .woocommerce-product-details__short-description li {
    text-align: center !important;
    padding: 8px 0 !important;
    display: block !important;
}

/* Add custom bullet using ::before - ensure it's truly inline */
.woocommerce div.product .woocommerce-product-details__short-description li::before {
    content: "• " !important;
    color: #10b981 !important;
    font-weight: bold !important;
    margin-right: 5px !important;
}

/* Ensure paragraph inside list items doesn't break layout */
.woocommerce div.product .woocommerce-product-details__short-description li p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-product-rating {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 15px auto !important;
}

/* Product tabs should remain default (already centered in WooCommerce) */
.woocommerce-tabs {
    max-width: 1200px;
    margin: 40px auto !important;
}

/* FOOTER */
.site-footer {
    background: #161b22;
    border-top: 1px solid #30363d;
    padding: 40px;
    text-align: center;
    color: #8b949e;
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .blog-grid,
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 20px;
    }
    
    .site-logo .logo-link {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .site-logo .logo-image {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .header-cart {
        position: static;
        margin-top: 10px;
    }
    
    .site-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blog-grid,
    .products {
        grid-template-columns: 1fr;
    }
    
    .site-main {
        padding: 0 20px;
    }
    
    .single-header h1 {
        font-size: 2em;
    }
}
