/*
Theme Name: Hemlock House Interiors
Theme URI: https://example.com/hemlock-house
Author: Jacob Kehler
Author URI: https://example.com
Description: A bespoke home decor ecommerce theme for Hemlock House Interiors.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hemlock-house
Tags: e-commerce, custom-background, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --brand-olive: #4a5d23; 
    --brand-cream: #f6f5f2; 
    --brand-charcoal: #2d2d2a;
    --brand-stone: #a8a29e;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--brand-cream);
    color: var(--brand-charcoal);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

.nav-link {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.btn-primary {
    background-color: var(--brand-olive);
    color: white;
    padding: 14px 40px;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #3a4a1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 93, 35, 0.2);
}

.wood-texture {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%3C373737' stroke-opacity='0.03'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 307 638 232 539 161 428 149 188 18 116'/%3E%3Cpath d='M91 792L34 797 26 743 17 602 3 387 23 355 31 177 44 114 62 166 174 6'/%3E%3Cpath d='M500 823L577 811 551 703 502 649 460 552 455 456 490 408 601 300 645 289 712 252 812 232'/%3E%3Cpath d='M9 268L126 239 226 210 333 216 508 188 520 99 527 10'/%3E%3C/g%3E%3C/svg%3E");
}

.image-container {
    position: relative;
    background: #fff;
    padding: 24px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .image-container {
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: rgba(74, 93, 35, 0.15);
}

.category-card {
    overflow: hidden;
    position: relative;
    background-color: #2d2d2a;
}

.category-card img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
    opacity: 0.8;
}

.category-card:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

.category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.parallax-wrapper {
    will-change: transform;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* WooCommerce Single Product Custom Styling */
.woocommerce-custom-summary .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.2;
    color: var(--brand-charcoal);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .woocommerce-custom-summary .product_title {
        font-size: 3rem; /* md:text-5xl */
    }
}

.woocommerce-custom-summary .price {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; /* text-2xl */
    color: var(--brand-stone);
    font-style: italic;
    margin-bottom: 1.5rem;
    display: block;
}

.woocommerce-custom-summary .woocommerce-product-details__short-description {
    color: var(--brand-charcoal);
    font-weight: 300;
    line-height: 2;
    font-size: 1rem; /* text-base */
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 162, 158, 0.3);
}

.woocommerce-custom-summary .woocommerce-product-details__short-description p {
    margin-bottom: 1rem;
}

.woocommerce-custom-summary .woocommerce-product-details__short-description ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce-custom-summary .woocommerce-product-details__short-description ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--brand-stone);
    font-size: 0.875rem;
}

.woocommerce-custom-summary .woocommerce-product-details__short-description ul li::before {
    content: "•";
    color: var(--brand-olive);
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1;
    top: -0.1rem;
}

/* Add to Cart Form */
.woocommerce-custom-summary form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.woocommerce-custom-summary form.cart .quantity input.qty {
    width: 4rem;
    height: 3rem;
    text-align: center;
    border: 1px solid rgba(168, 162, 158, 0.4);
    background: transparent;
    color: var(--brand-charcoal);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
}

.woocommerce-custom-summary form.cart button.single_add_to_cart_button {
    background-color: var(--brand-olive);
    color: white;
    padding: 14px 40px;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    height: 3rem;
    display: flex;
    align-items: center;
}

.woocommerce-custom-summary form.cart button.single_add_to_cart_button:hover {
    background-color: #3a4a1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 93, 35, 0.2);
}

/* Meta Data (SKU, Categories) */
.woocommerce-custom-summary .product_meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-stone);
    border-top: 1px solid rgba(168, 162, 158, 0.3);
    padding-top: 2rem;
}

.woocommerce-custom-summary .product_meta a {
    color: var(--brand-olive);
    transition: opacity 0.3s ease;
}

.woocommerce-custom-summary .product_meta a:hover {
    opacity: 0.7;
}

/* Product Image Gallery Refinements */
.woocommerce-product-gallery {
    opacity: 1 !important; 
    width: 100% !important;
    float: none !important;
}

/* Hide default magnifying glass */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

.woocommerce-product-gallery .flex-viewport {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Ensure the main image scales cleanly without jumping or cropping */
.woocommerce-product-gallery .flex-viewport img {
    width: 100%;
    height: auto;
    display: block;
}

/* Thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin-left: 0;
}

/* Hide the featured image from repeating in the thumbnail gallery */
.woocommerce-product-gallery .flex-control-thumbs li:first-child {
    display: none !important;
}

/* Custom Accordion Details Styling */
.hemlock-accordion {
    border-bottom: 1px solid rgba(168, 162, 158, 0.3);
    margin-bottom: 0;
}

.hemlock-accordion:first-of-type {
    border-top: 1px solid rgba(168, 162, 158, 0.3);
}

.hemlock-accordion summary {
    list-style: none; /* Hide default arrow */
    cursor: pointer;
    padding: 1.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--brand-charcoal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

/* Hide webkit default arrow */
.hemlock-accordion summary::-webkit-details-marker {
    display: none;
}

.hemlock-accordion summary:hover {
    color: var(--brand-olive);
}

.hemlock-accordion summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--brand-stone);
    transition: transform 0.3s ease;
}

.hemlock-accordion[open] summary::after {
    content: '−'; /* Minus sign */
}

.hemlock-accordion .accordion-content {
    padding-bottom: 1.5rem;
    color: var(--brand-charcoal);
    font-weight: 300;
    line-height: 2;
    font-size: 0.95rem;
    animation: fadeInDown 0.4s ease forwards;
}

/* Specific styling for the add to cart button in the new layout */
.woocommerce .hemlock-add-to-cart-wrapper form.cart {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.woocommerce .hemlock-add-to-cart-wrapper button.button.alt.single_add_to_cart_button {
    background-color: var(--brand-olive);
    color: white;
    padding: 16px 40px;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    height: auto;
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    margin: 0;
}

.woocommerce .hemlock-add-to-cart-wrapper button.button.alt.single_add_to_cart_button:hover {
    background-color: #3a4a1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 93, 35, 0.2);
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: calc(25% - 0.75rem);
    list-style: none;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-radius: 2px;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(74, 93, 35, 0.3); /* brand-olive */
}

/* Product Editorial Description Section */
.product-editorial-content {
    color: var(--brand-charcoal);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 2.2;
    font-size: 1.05rem;
}

/* Drop Cap for the very first paragraph */
.product-editorial-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 0.8;
    float: left;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--brand-olive);
    font-weight: 400;
}

.product-editorial-content p {
    margin-bottom: 2rem;
}

/* Elegant Blockquotes (like the Ethos section) */
.product-editorial-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    line-height: 1.3;
    font-style: italic;
    text-align: center;
    color: var(--brand-charcoal);
    margin: 4rem auto;
    max-width: 80%;
    position: relative;
}

.product-editorial-content blockquote::before {
    content: "“";
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(168, 162, 158, 0.2);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    z-index: -1;
}
