/*
Theme Name: Goldish-Child
Theme URI: https://parkofideas.com/goldish/
Text Domain: goldish-child
Description: Jewelry Store WooCommerce Theme
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.0.1
Template: goldish
Author: parkofideas.com
Author URI: https://parkofideas.com
Tags: right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, theme-options, translation-ready
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/* Force 2x2 Grid for Product Gallery (Layout 2) with 5px Gap */
@media (min-width: 768px) {
    .c-product--layout-2 .c-product__slider--list {
        gap: 5px;
    }

    .c-product--layout-2 .c-product__slider-item:first-child,
    .c-product--layout-2 .c-product__slider-item:not(:first-child) {
        flex: 0 0 auto;
        width: calc(50% - 2.5px);
    }

    .c-product--layout-2 .c-product__slider-item:first-child {
        padding-bottom: calc(var(--image-product-prop) / 2);
        background-color: var(--image-background-color);
    }

    .c-product--layout-2 .c-product__slider-item:first-child img {
        mix-blend-mode: darken;
    }

    /* Adjust Column Widths (Images 65%, Details 35%) */
    .c-product--layout-2 .c-product__col-1 {
        width: 65%;
    }

    .c-product--layout-2 .c-product__col-2 {
        width: 35%;
    }

    /* Ensure content fits in narrower details column */
    .c-product--layout-2 .c-product__col-2 .js-sticky-sidebar {
        padding-left: 50px;
        padding-right: 50px;
    }

    .c-product--layout-2 .c-product__atc-wrap .button,
    .c-product--layout-2 .woobt-form .button {
        min-width: 0;
        max-width: 100%;
    }

    /* COMPACT LAYOUT OVERRIDES */

    /* Reduce space between title and price */
    .c-product__wrap .price {
        margin-top: 10px !important;
    }

    /* Reduce space between description/short-desc and variations */
    .c-product__atc-wrap {
        margin-top: 15px !important;
    }

    /* Reduce spacing within variation rows */
    .c-product__atc-wrap td.label {
        padding-bottom: 5px !important;
    }

    .c-product__atc-wrap tr:not(:last-child) td {
        padding-bottom: 10px !important;
    }

    /* Reduce height of select boxes */
    .c-product__atc-wrap select {
        height: 40px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .c-product__atc-wrap .c-custom-selectInner {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Reduce space before Add to Cart button section */
    .woocommerce-variation-add-to-cart {
        margin-top: 15px !important;
    }

    /* Reduce button padding */
    .c-product__atc-wrap .button,
    .woobt-form .button {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Reduce space before Meta (SKU, Categories) */
    .c-product .product_meta {
        margin-top: 15px !important;
    }

    /* Reduce Additional Info spacing if present */
    .c-product__additional-info {
        margin-top: 20px !important;
    }
}

/* =Diamond Features
-------------------------------------------------------------- */
.c-product__diamond-buttons {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    pointer-events: auto;
    /* Ensure clicks pass through if container has limitations */
}

.c-diamond-btn {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    line-height: 1;
}

.c-diamond-btn:hover {
    background: #fff;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.c-diamond-btn i {
    font-size: 16px;
}

.c-diamond-btn img.c-diamond-btn__icon {
    width: 18px !important;
    max-width: 18px !important;
    height: auto !important;
    display: inline-block;
    flex-shrink: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    position: static !important;
    /* Override theme absolute positioning */
}

/* Specific fix for font icon vertically */
i.c-diamond-btn__icon {
    width: auto;
    height: auto;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Modals */
.c-diamond-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.c-diamond-modal.active {
    display: flex;
    opacity: 1;
}

.c-diamond-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.c-diamond-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.c-diamond-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.c-diamond-modal__body {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #fff;
}

.c-diamond-modal__body iframe {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* Prevent body scroll when modal open */
body.diamond-modal-open {
    overflow: hidden;
}

/* Hide Zoom/Plus Icon on Product Images */
.c-product__round {
    display: none !important;
}