/*
 Theme Name: Blocksy Child
 Theme URI: https://creativethemes.com/blocksy/
 Description:  Child theme for the Blocksy theme
 Author:       Nikola Matejic
 Template:     blocksy
 Version:      1.0.0
*/

/* ========================================
   COLOR SCHEME
   Manage these colors from Appearance > Customize > Colors
   Or edit the values below for custom colors
   ======================================== */
:root {
    /* Primary Green Palette - Natural/Earthy tones for rocks/minerals */
    --theme-primary-green: #24582a;        /* Main brand green */
    --theme-primary-green-dark: #1c4521;   /* Darker green for depth */
    --theme-primary-green-light: #3d7a4a;  /* Lighter green for accents */
    --theme-sage-green: #87a878;           /* Soft sage for subtle elements */

    /* Neutral/Cream Palette */
    --theme-light-cream: #f4f3e8;          /* Main cream background */
    --theme-light-bg: #f2f1e6;             /* Alternative light background */
    --theme-warm-white: #fafaf7;           /* Pure white with warmth */
    --theme-warm-beige: #ece2d4;           /* Light warm beige - header/footer */
    --theme-stone-gray: #d4d2c8;           /* Stone-like gray */

    /* Accent for special cases */
    --theme-earth-brown: #8b7355;          /* Earthy brown (minimal use) */

    /* Opacity variants */
    --theme-green-light-transparent: #3d7a4a15;
    --theme-green-transparent: #24582a21;
    --theme-cream-overlay: #f4f3e8cc;
}

/* ========================================
   HEADER & FOOTER
   ======================================== */

/* Override Blocksy's default header background */
.ct-header,
header[data-row="middle"],
[data-row="top-row"],
[data-device="desktop"] .ct-header {
    background-color: var(--theme-warm-beige) !important;
    border-bottom: 1px solid var(--theme-stone-gray);
}

.ct-header .site-title,
.ct-header .site-description {
    color: var(--theme-primary-green-dark) !important;
}

/* Logo text */
.site-title a {
    color: var(--theme-primary-green-dark) !important;
}

/* Main navigation links */
.ct-header [data-id="menu"] > ul > li > a,
nav[data-id="menu"] > ul > li > a {
    color: var(--theme-primary-green-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ct-header [data-id="menu"] > ul > li > a:hover,
nav[data-id="menu"] > ul > li > a:hover {
    color: var(--theme-primary-green) !important;
}

/* Header icons (cart, user) */
/* Mobile menu */
.ct-panel,
.ct-panel-content {
    background-color: var(--theme-warm-beige) !important;
}

.ct-panel .ct-menu-link {
    color: var(--theme-primary-green-dark) !important;
}

/* Footer - Clean light footer to match header */
footer,
footer[data-row*="bottom"],
footer[data-row="bottom-row"],
.ct-footer {
    background-color: var(--theme-warm-beige) !important;
    border-top: 1px solid var(--theme-stone-gray);
}

footer .widget-title,
footer h1, footer h2, footer h3, footer h4 {
    color: var(--theme-primary-green-dark) !important;
}

footer a {
    color: var(--theme-primary-green) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--theme-primary-green-dark) !important;
}

footer p,
footer li,
footer span {
    color: #333 !important;
}

/* ========================================
   GLOBAL PAGE STYLES
   ======================================== */

/* Clean page background */
body {
    background-color: var(--theme-warm-white) !important;
}

/* Main content area */
#main,
.site-main {
    background-color: transparent;
}

#comments {
    overflow: hidden;
}

/*HOME PAGE*/

/* Home page buttons - consistent hover style */
.home .button,
.home a.button,
.home .wp-block-button__link,
.home .elementor-button {
    transition: background-color 0.3s ease;
}

.home .button:hover,
.home a.button:hover,
.home .wp-block-button__link:hover,
.home .elementor-button:hover {
    background-color: var(--theme-primary-green-dark) !important;
    color: white !important;
}

.home-page-hero-text {
    position: relative;
    right: 10px;
}

.home-page-hero-subtitle {
    font-weight: 300;
}

.home-page-gallery-grid {
    figure {
        img {
            height: 100%;
        }
    }
}

.featured-product-name {
    font-weight: 300;
}

.featured-product-img-2 > img {
    float: right;
}

/* Hero image - responsive sizing */
@media (max-width: 768px) {
    .hero-image img {
        height: 400px !important;
        max-width: 100% !important;
    }

    .featured-product-img {
        width: 250px !important;
    }

    .featured-product-2-desc-col {
        order: 2;
    }

    .hp-featured-product-col-2 {
        gap: 0 !important;
    }

    .home-page-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
body.woocommerce.archive ul.products li.product {
    background-color: var(--theme-light-cream);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.woocommerce.archive ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.woocommerce.archive ul.products li.product .ct-image-container {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

body.woocommerce.archive ul.products li.product .woocommerce-loop-product__title {
    color: var(--theme-primary-green-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

body.woocommerce.archive ul.products li.product .price {
    color: var(--theme-primary-green);
    font-weight: 600;
    font-size: 1.1em;
}

body.woocommerce.archive ul.products li.product .button {
    border-radius: 3px;
    border: none;
    width: 100%;
}

body.woocommerce.archive ul.products li.product .button:hover {
    background-color: var(--theme-primary-green);
    color: var(--theme-light-cream);
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.4);
}

body.woocommerce.archive .entry-header .page-title {
    font-size: 48px;
    font-weight: 500;
    color: var(--theme-primary-green-dark);
    letter-spacing: -0.5px;
}

/* Responsive title sizing */
@media (max-width: 768px) {
    body.woocommerce.archive .entry-header .page-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    body.woocommerce.archive .entry-header .page-title {
        font-size: 28px;
    }
}

body.woocommerce.archive .hero-section {
    background-image: linear-gradient(180deg, var(--e-global-color-blocksy_palette_6) 0%, transparent 100%);
}

body.woocommerce.archive #main {
    background-image: linear-gradient(0deg, var(--e-global-color-blocksy_palette_6) 0%, var(--theme-green-transparent) 80%);
}

body.woocommerce.archive .woo-listing-top .woocommerce-result-count {
    color: #000000;
    letter-spacing: 1px;
}

body.woocommerce.archive .woo-listing-top .woocommerce-ordering select {
    -moz-appearance:none; /* Firefox */
    -webkit-appearance:none; /* Safari and Chrome */
    appearance:none;
    background-color: var(--theme-light-cream);
    color: var(--theme-primary-green-dark);
    border: 1px solid var(--theme-stone-gray);
    border-radius: 4px;
    padding: 8px 32px 8px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    option {
        color: var(--theme-primary-green-dark);
    }
}

body.woocommerce.archive .page-numbers {
    color: #000000;
    border: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
}

body.woocommerce.archive .page-numbers.current {
    color: var(--theme-light-cream);
}

body.woocommerce.archive ul.products li.product .out-of-stock-badge {
    border-radius: 3px;
    display: none !important;
}

.out-of-stock-badge {
    display: none !important;
}

/* Navigation Dropdown Menus */
#menu-top-navigation > li > .sub-menu {
    border-radius: 6px;
    background-color: var(--theme-warm-beige) !important;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--theme-stone-gray);
}

.menu-item:hover {
    text-decoration: underline;
    text-decoration-color: var(--theme-primary-green);
}

nav[class*=menu] li[class*=current-menu-] > .ct-menu-link {
    font-weight: bolder;
}

.ct-header [data-id="menu"] .sub-menu {
    border-radius: 6px;
    background-color: var(--theme-warm-beige) !important;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--theme-stone-gray);
}

.ct-header [data-id="menu"] .sub-menu .ct-menu-link {
    color: var(--theme-primary-green-dark) !important;
}

.sub-menu .menu-item:hover {
    text-decoration: underline;
    text-decoration-color: var(--theme-primary-green);
}

#menu-top-navigation > li > .sub-menu > li > a {
    color: var(--theme-primary-green-dark) !important;
}

/* Mini Cart Dropdown */
.ct-header [data-id="cart"] .ct-cart-content,
.ct-cart-content {
    background-color: var(--theme-warm-beige) !important;
    border: 1px solid var(--theme-stone-gray);
}

.woocommerce-mini-cart__buttons .button.wc-forward {
    background-color: var(--theme-primary-green);
    color: white;
}

.woocommerce-mini-cart__total {
    font-size: 14px !important;
}

.woocommerce-mini-cart~.buttons .button {
    color: white !important;
}

.woocommerce-mini-cart~.buttons .button:hover {
    background-color: var(--theme-primary-green-dark);
    color: white !important;
}

/* Mini cart items */
.woocommerce-mini-cart-item a {
    color: var(--theme-primary-green-dark) !important;
}

/* PDP */

/* Related/Featured Products on Single Product Page */
.single-product ul.products li.product,
.related.products ul.products li.product,
.upsells.products ul.products li.product {
    background-color: var(--theme-light-cream);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-product ul.products li.product:hover,
.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.single-product ul.products li.product .ct-image-container,
.related.products ul.products li.product .ct-image-container,
.upsells.products ul.products li.product .ct-image-container {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.single-product ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
    color: var(--theme-primary-green-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.single-product ul.products li.product .price,
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
    color: var(--theme-primary-green);
    font-weight: 600;
    font-size: 1.1em;
}

.single-product ul.products li.product .button,
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
    border-radius: 3px;
    border: none;
    width: 100%;
}

.single-product ul.products li.product .button:hover,
.related.products ul.products li.product .button:hover,
.upsells.products ul.products li.product .button:hover {
    background-color: var(--theme-primary-green);
    color: var(--theme-light-cream);
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.4);
}

/* Related Products Section Headings */
.related.products > h2,
.upsells.products > h2 {
    color: var(--theme-primary-green-dark);
    font-weight: 500;
    margin-bottom: 30px;
}

.ct-default-gallery .entry-summary {
    background-color: var(--theme-light-cream);
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--theme-stone-gray);
    form.variations_form table.variations select {
        background-color: var(--theme-light-cream);
        border: 1px solid black;
        border-radius: 4px;
    }
    div.quantity input[type=number] {
        background-color: var(--theme-light-cream);
        border: 1px solid black;
        border-radius: 4px;
    }
    div.quantity .ct-increase:hover, div.quantity .ct-decrease:hover {
        color: var(--theme-primary-green-dark);
    }
    .ct-cart-actions .added_to_cart {
        background-color: var(--theme-primary-green-light);
        color: white;
    }
    .ct-cart-actions .added_to_cart:hover {
        background-color: var(--theme-primary-green-dark);
        color: white;
    }
}


.ct-accordion-heading.ct-expandable-trigger.is-width-constrained {
    border-top: none !important;
}

.woocommerce-product-attributes.shop_attributes {
    background-color: var(--theme-primary-green);
    color: var(--theme-light-cream);
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.8);
    border: hidden;
    border-radius: 8px;
}

.woocommerce-product-attributes-item > td, .woocommerce-product-attributes-item th {
    border: hidden;
}

.woocommerce-product-attributes tr:nth-child(even) th, .woocommerce-product-attributes tr:nth-child(even) td {
    background: var(--theme-primary-green-dark) !important;
}

.woocommerce-product-attributes th {
    font-size: 18px;
}

.woocommerce-product-attributes td {
    font-size: 16px;
}

.woocommerce-product-attributes th, .woocommerce-product-attributes td {
    padding: 15px 0 15px 50px;
    letter-spacing: 1px;
}

.woocommerce-product-attributes tr:last-child th {
    border-bottom-left-radius: 8px;
}

.woocommerce-product-attributes tr:last-child td {
    border-bottom-right-radius: 8px;
}

.woocommerce-product-attributes-item__value > p > a {
    color: var(--theme-light-cream);
}

.woocommerce-Reviews {
    background-color: var(--theme-light-cream);
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--theme-stone-gray);
}

/* Scrollable table wrapper for mobile */
.scrollable-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.scrollable-table-wrapper table {
    min-width: 100%;
    margin: 0;
}

/*CART PAGE*/

.ct-woocommerce-cart-form .cart_totals, .woocommerce-cart-form {
    background-color: var(--theme-light-cream);
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--theme-stone-gray);
}

.woocommerce-cart .hero-section {
    display: none;
}

.woocommerce-cart #main {
    background-image: linear-gradient(0deg, var(--e-global-color-blocksy_palette_6) 0%, var(--theme-green-transparent) 100%);
}

.ct-woocommerce-cart-form .cart_totals h2 {
    font-size: 20px !important;
}

.quantity[data-type=type-2] input[type=number] {
    background-color: var(--theme-light-bg);
}

div.quantity .ct-increase:hover, div.quantity .ct-decrease:hover {
    color: white !important;
    background: var(--theme-primary-green-light) !important;
}

/* Cart page buttons - consistent hover style */
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart .checkout-button,
.woocommerce-cart .button {
    transition: background-color 0.3s ease;
}

.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce-cart .button:hover {
    background-color: var(--theme-primary-green-dark) !important;
    color: white !important;
}

/* Gallery Page */
.gallery-page-grid figure img {
    height: 100%;
}

@media (max-width: 768px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}