/* ========================================
   PRODUCT PAGE LAYOUT REDESIGN
   Two-column layout with collapsible sections
   ======================================== */

/* Main product layout wrapper */
.product-layout-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    align-items: flex-start;
    margin: 40px 0;
}

/* Gallery section - left side */
.product-layout-wrapper .product-gallery-section {
    flex: 0 0 45% !important;
    min-width: 0;
}

.product-gallery-section .woocommerce-product-gallery {
    margin-bottom: 0;
}

/* Summary/Info section - right side */
.product-layout-wrapper .summary.entry-summary {
    flex: 0 0 55% !important;
    min-width: 0;
    border: none;
    padding: 0;
    background: transparent;
}

.summary.entry-summary .content {
    padding: 0;
}

/* Product title styling */
.summary h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Product category/subtitle */
.summary .product-cat {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* Product price styling */
.summary .price {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary .price .woocommerce-price-suffix {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* Collapsible sections */
.product-collapsible-section {
    border-top: 1px solid #e0e0e0;
    margin: 0;
    padding: 0;
}

.product-collapsible-section:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.product-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    transition: color 0.3s ease;
}

.product-collapsible-header:hover {
    color: #5AC7D1;
}

.product-collapsible-header svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.product-collapsible-header.active svg {
    transform: rotate(180deg);
}

.product-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.product-collapsible-content.active {
    max-height: 1000px;
    padding: 0 0 16px 0;
}

/* Variations form section styling */
.product-variations-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* Price and cart wrapper for side-by-side layout */
.price-and-cart-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.product-price-display {
    flex: 0 0 auto;
    min-width: 150px;
}

.price-and-cart-wrapper .quantity-wrapper input#product-qty {
    color: #767676;
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22.4px;
    display: flex;
    width: 90px;
    height: 53px;
    padding: 15px 0;
    justify-content: center;
    align-items: center;
    border-radius: 41px;
    border: 1px solid #E6ECF7;
    background: #FFF;
}

.product-price-display .price {
    color: #0B201F;
    font-family: Lato;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0 0;
}

span.km_info {
    color: #767676;
    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 128.571% */
}

.quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 110px;
}

.quantity-wrapper label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.quantity-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    transition: border-color 0.3s ease;
    min-height: 40px;
    text-align: center;
}

.quantity-input:hover {
    border-color: #5AC7D1;
}

.quantity-input:focus {
    outline: none;
    border-color: #5AC7D1;
    box-shadow: 0 0 0 3px rgba(90, 199, 209, 0.1);
}

/* Chrome, Safari and Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.variations_button {
    flex: 1;
    min-width: 0;
}

.product-variations-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Variations form styling */
.product-variations-form-section .variations_form {
    display: block !important;
}

/* Variation buttons group */
.variation-selector-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 27px;
}

.variation-attribute-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-attribute-label {
color: #333232;
font-family: Lato;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 112.5% */
}

.variation-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variation-button {
    color: #333232;
    font-family: Lato;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 21.6px */
    display: inline-flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid #E6ECF7;
    cursor: pointer;
}

.variation-button:hover {
    border-color: #5096FF;
}

.variation-button.active {
    border-color: #5096FF;
}

.product-variations-form-section table.variations {
    width: 100%;
    display: none !important;
    margin-bottom: 20px;
}

.product-variations-form-section table.variations tbody {
    display: block;
}

.product-variations-form-section table.variations tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.product-variations-form-section table.variations td {
    display: block;
    padding: 0;
}

.product-variations-form-section table.variations .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

.product-variations-form-section table.variations select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.product-variations-form-section table.variations select:hover {
    border-color: #5AC7D1;
}

.product-variations-form-section table.variations select:focus {
    outline: none;
    border-color: #5AC7D1;
    box-shadow: 0 0 0 3px rgba(90, 199, 209, 0.1);
}

/* Single variation and add-to-cart button */
.product-collapsible-content .single_variation_wrap {
    display: block !important;
}

.product-collapsible-content .single_variation {
    margin-bottom: 20px;
}

.product-collapsible-content .single_add_to_cart_button {
    width: 100%;
    background: #5AC7D1;
    color: white;
    border: none;
    padding: 12px 0px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* Variation selector - color circles */
.variation-selector-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-selector-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.color-circles {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-circle:hover {
    border-color: #5AC7D1;
    transform: scale(1.1);
}

.color-circle.active {
    border-color: #5AC7D1;
    box-shadow: 0 0 0 3px rgba(90, 199, 209, 0.2);
}

/* Variation names/text */
.variation-names {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

#main .inner {
    padding: 60px 60px;
}

/* Add to cart button styling */
.single_add_to_cart_button {
    display: flex;
    width: 213px;
    height: 53px;
    padding: 15px 0px;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    border-radius: 41px;
    background: #5096FF;
    margin: 0 0 0 0;
    transition: ease .3s all;
    cursor: pointer;
    color: #FFF;
font-family: Lato;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 22.4px; /* 140% */
}

/* Variations section */
#variations {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #f0f0f0;
}

.variations-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.variations-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.variation-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variation-item-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.variation-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.variation-item:hover .variation-item-image img {
    transform: scale(1.05);
}

.variation-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #5AC7D1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Technical information section styling */
#tehnical {
    margin-top: 60px;
    padding: 60px 0;
    border-top: 2px solid #f0f0f0;
}

.technical-information-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.technical-info-group {
    display: flex;

}

.technical-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.technical-info-value {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
}

.technical-information__right {
    position: sticky;
    top: 80px;
}

.technical-information__right img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Related products section */
.related.products {
    margin-top: 80px;
}

.related.products h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Hide old variations button wrapper initially */
.variations-buttons-wrapper {
    display: none;
}

/* Technical Information - Inline after variations form */
.technical-information-inline {
    border-bottom: 1px solid #eee;
}

.technical-information-inline .technical-information-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.technical-information-inline .technical-information__left__variations-container {
    display: none;
}

.technical-information-inline .technical-information__left__variations-container.active {
    display: block;
}

.technical-information-inline .technical-info-group {
    margin-bottom: 20px;
}

.technical-information-inline .technical-info-label {
color: #0B201F;
    font-family: Lato;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    font-size: 18px;
    width: 38%;
    min-width: 38%;
}


.technical-information-inline .technical-info-value p {
    margin-bottom: 0px;
}

.technical-information-inline .technical-info-value {
color: #0B201F;
font-family: Lato;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 160%; /* 28.8px */
}

.technical-information-inline .technical-information__information__files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.technical-information-inline .technical-information__information__files a {
    color: #5AC7D1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.technical-information-inline .technical-information__information__files a:hover {
    color: #4aa4a8;
    text-decoration: underline;
}

.technical-information-inline .active-img {
    width: 100%;
    display: none;
}

.technical-information-inline .active-img.active {
    display: block;
}

.technical-information-inline .active-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .product-layout-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery-section {
        flex: 0 0 100%;
    }

    .summary.entry-summary {
        flex: 0 0 100%;
    }

    .technical-information__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .technical-information__right {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-layout-wrapper {
        gap: 20px;
        margin: 20px 0;
    }

    .summary h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .summary .price {
        font-size: 20px;
        margin: 16px 0;
    }

    .product-collapsible-header {
        padding: 12px 0;
        font-size: 13px;
    }

    .color-circles {
        gap: 10px;
    }

    .color-circle {
        width: 36px;
        height: 36px;
    }

    .single_add_to_cart_button {
        padding: 10px 30px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .variations-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .technical-information-title,
    .variations-section-title {
        font-size: 20px;
    }
}

/* ========================================
   PRODUCT LISTING PAGE STYLING
   Archive/Category page product items
   ======================================== */

.furny-product-item {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.furry-product-item:hover {
    border-color: #5AC7D1;
    box-shadow: 0 8px 20px rgba(90, 199, 209, 0.12);
    transform: translateY(-4px);
}

.furny-product-item:hover {
    border-color: #5AC7D1;
    box-shadow: 0 8px 20px rgba(90, 199, 209, 0.12);
    transform: translateY(-4px);
}

.furny-product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* Parent theme wrapper - apply flexbox for reordering */
.wpbf-woo-product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    gap: 0 !important;
}

/* Product image wrapper in list */
.furny-product-item .woocommerce-product-gallery,
.wpbf-woo-loop-thumbnail-wrapper {
    margin: 0;
    padding: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #f5f5f5;
    flex: 0 0 auto;
    order: 1;
}

.furny-product-item .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.wpbf-woo-loop-thumbnail-wrapper img,
.furny-product-item .woocommerce-product-gallery img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Product summary (title) - reorder to appear before info */
.wpbf-woo-loop-summary {
    order: 2;
    padding: 16px;
    padding-bottom: 0;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Product info wrapper */
.furny-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 16px 16px 16px;
    gap: 8px;
    order: 3;
}

/* Product title in list */
.furny-product-item h3,
.wpbf-woo-loop-summary h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: #1a1a1a;
    word-break: break-word;
}

.furny-product-item h3 a,
.wpbf-woo-loop-summary a h3,
.wpbf-woo-loop-summary .woocommerce-loop-product__title {
    color: #1a1a1a;
    text-decoration: none;
}

.furny-product-item h3 a:hover,
.wpbf-woo-loop-summary a h3:hover,
.wpbf-woo-loop-summary .woocommerce-loop-product__title:hover {
    color: #5AC7D1;
    text-decoration: none;
}

/* Hide category text in summary */
.wpbf-woo-product-category {
    display: none;
}

/* Product footer with price and button */
.furny-product-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* Price styling in list */
.furny-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.furny-product-price .price {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.furny-product-price .price span {
    display: inline;
}

.furny-product-price .price del {
    opacity: 0.5;
    font-size: 13px;
    text-decoration: line-through;
}

.furny-product-price .price ins {
    text-decoration: none;
    background: transparent;
    color: #1a1a1a;
}

/* View product link button */
.furny-view-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    background: #5AC7D1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #5AC7D1;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.3px;
    min-height: 40px;
}

.furny-view-product-link:hover {
    background: #ffffff;
    color: #5AC7D1;
    border-color: #5AC7D1;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(90, 199, 209, 0.2);
}

.furny-view-product-link:active {
    transform: scale(0.98);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .furny-product-item {
        border-radius: 6px;
    }

    .wpbf-woo-loop-thumbnail-wrapper img,
    .furny-product-item .woocommerce-product-gallery img {
        height: 200px;
    }

    .wpbf-woo-loop-summary {
        padding: 12px;
        padding-bottom: 0;
    }

    .furny-product-info {
        padding: 0 12px 12px 12px;
        gap: 6px;
    }

    .furny-product-item h3,
    .wpbf-woo-loop-summary h3 {
        font-size: 13px;
    }

    .furny-product-footer {
        gap: 10px;
        padding-top: 8px;
    }

    .furny-product-price {
        font-size: 14px;
    }

    .furny-view-product-link {
        padding: 9px 12px;
        font-size: 12px;
        min-height: 36px;
    }
}
