/**
* Theme Name: Blonwe Child
* Description: This is a child theme of Blonwe, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: blonwe
* Version: 1.3.0
*/
:root {
    /* Colors */
    --color-border: #dcdcdc;
    --color-bg: #ffffff;
    --color-accent: #fcc300;
    --color-active-bg: #f1f8f4;
    --color-text: #333333;
    --color-muted-border: #eeeeee;
    --color-primary: #BC384E;
    --color-chip-bg: #e8f5e9;
    --shadow-color: rgba(149, 157, 165, 0.2);

    /* Font sizes & line-heights */
    --fs-16: 16px;
    --fs-14: 14px;
    --lh-1: 1rem;
    --lh-20: 20px;
}

/* Hide default variation table */
/* .variations,
.variations_form table {
    display: none !important;
} */
.gc-variation-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.gc-variation-card {
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    background: var(--color-bg);
    transition: all 0.2s ease;
}

.gc-variation-card:hover {
    border-color: var(--color-accent);
}

.gc-variation-card.active {
    border-color: var(--color-accent);
    background: var(--color-active-bg);
}

.gc-var-title {
    display: block;
    font-size: var(--fs-16);
}

.gc-var-price {
    display: block;
    margin-top: 6px;
    font-size: var(--fs-16);
    color: var(--color-text);
}

.gc-pack-price {
    font-size: var(--fs-16);
    line-height: var(--lh-1);
}

/* _________________________ */

.gc-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 20px 0;
    background: var(--color-bg);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.gc-tab {
    position: relative;
    font-size: var(--fs-16) !important;
    height: 100% !important;
    flex-wrap: wrap;
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    outline: none;
    display: flex;
    align-items: center;
    text-align: center;
    min-height: 50px;
}

.gc-tab:hover {
    background: rgba(188, 56, 78, 0.05);
    color: var(--color-primary);
}

.gc-tab:focus {
    background: rgba(188, 56, 78, 0.1);
    color: var(--color-primary);
}

.gc-tab.active {
    color: var(--color-primary);
    background: rgba(188, 56, 78, 0.05);
}

.gc-chip {
    font-size: var(--fs-14);
    color: var(--color-primary);
    line-height: var(--lh-20);
    padding: 2px 6px;
    margin-left: 6px;
    background: var(--color-chip-bg);
    border-radius: 12px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.gc-tab:hover .gc-chip,
.gc-tab.active .gc-chip {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.gc-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--color-primary);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

/* Body classes for different modes */
.gc-pickup-mode .gc-tab[data-tab="pickup"] {
    color: var(--color-primary);
}

.gc-delivery-mode .gc-tab[data-tab="delivery"] {
    color: var(--color-primary);
}

/* Responsive tab styling */
@media (max-width: 768px) {
    .gc-tabs {
        margin: 15px 0;
    }

    .gc-tab {
        padding: 10px 12px;
        font-size: 14px !important;
        min-height: 45px;
    }

    .gc-chip {
        font-size: 12px;
        padding: 1px 4px;
        margin-left: 4px;
    }
}

/* Animation for smooth transitions */
@keyframes tabActivate {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gc-tab.active {
    border-bottom: 1px solid var(--color-primary);
    ;
    animation: tabActivate 0.2s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gc-tab {
        border-bottom: 1px solid transparent;
    }

    .gc-tab:focus {
        border-color: var(--color-primary);
    }

    .gc-tab.active {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .gc-tab,
    .gc-tab-indicator,
    .gc-chip {
        transition: none;
    }

    .gc-tab.active {
        animation: none;
    }
}

.gc-pack-title {
    font-size: var(--fs-16) !important;
}

/* ------------------------------- */

.gc-packs {
    display: grid;
    gap: 20px;
    /* border: 1px solid #e5e5e5; */
    padding: 20px 0 0 0;
    border-radius: 8px;
    margin: 0;
}

/* If exactly 2 children */
.gc-packs:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* If exactly 3 children */
.gc-packs:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.gc-pack {
    flex-direction: column;
    height: 100% !important;
    border-bottom: 2px solid var(--color-primary) !important;
    padding: 16px;
    border-radius: 6px !important;
    /* background: var(--color-bg); */
    font-weight: 600 !important;
    cursor: pointer !important;
}

.gc-pack.active {
    background: var(--color-primary) !important;
    color: var(--color-bg) !important;
}

.product-inventory {
    font-size: var(--fs-16) !important;
}

.hello-wrapper .single-product {
    border-radius: 10px;
    padding: 20px;
}

/* .single-product-sticky .product-inner {
    display: grid;
    grid-template-columns: 100% 80% 20%;
} */

.single_variation_wrap {
    width: 100%;
    padding: 20px 0 0 0;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    margin: 0 0 10px 0;
    width: 100%;
}

.woocommerce-variation-add-to-cart>* {
    font-size: var(--fs-16) !important;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.social-media {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 10px 0 0 0;
    padding: 0;
}

.gc-pack-image {
    max-width: 30px !important;
}

/* Dynamic Product Elements */
.product-breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
}

.product-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    color: var(--color-primary);
}

.product-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.product-breadcrumbs .current-product {
    color: #333;
    font-weight: 500;
}

.product-category-badge {
    margin-bottom: 10px;
}

.category-name {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hello-wrapper .product-title {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 10px 0 15px 0 !important;
    line-height: 1.3 !important;
}

.product-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-rating-wrapper .star-rating {
    font-size: 16px;
}

.rating-count {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

.write-review-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.write-review-link:hover {
    text-decoration: underline;
}

.add-to-wishlist {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.add-to-wishlist:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

.heart-icon {
    font-size: 16px;
}

.gc-tab.active {
    border-bottom: 2px solid var(--color-primary) !important;
}

.hello-wrapper .product,
.hello-wrapper .product.first {
    display: grid !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-rating-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-title {
        font-size: 24px !important;
    }

    .product-breadcrumbs {
        font-size: 12px;
    }
}

/* Hide label column */
.variations th.label {
    display: none;
}

/* Remove default table styling */
.variations,
.variations tbody,
.variations tr,
.variations td {
    display: block;
    width: 100%;
}

/* Wrapper spacing */
.variations {
    margin: 20px 0;
}

/* SELECT CONTAINER */
.variations td.value {
    padding: 0;
}

/* Hide default select (we will restyle it) */
.variations select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #dcdcdc;
    border-radius: 10px;
    padding: 20px 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232e7d32' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    transition: all 0.3s ease;
}

/* Hover */
.variations select:hover {
    border-color: #2e7d32;
}

/* Selected */
.variations select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
    outline: none;
}

/* PRICE LOOK (Woo price area) */
.single_variation .price {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
    margin-top: 10px;
}

/* Member offer badge */
.variations td.value::before {
    content: "MEMBER OFFER";
    display: inline-block;
    background: #a67c00;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 14px;
    margin-bottom: 10px;
}

/* Optional: Green border after selection */
.variations select:not([value=""]) {
    border-color: #2e7d32;
}

.variations {
    display: none !important;
}

/* ______________ */

.gc-fulfillment {
    padding: 20px 0 0 0;
    border-radius: 8px;
    margin: 0 0 20px 0;
    background: #fff;
}

.gc-tabs {
    display: flex;
    gap: 20px;
    margin: 20px 0 0 0;
}

.gc-tab-content {
    display: none;
    font-size: 14px;
}

.gc-tab-content.active {
    display: block;
}

.gc-store-name {
    display: block;
    margin-top: 5px;
}

.gc-available {
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
}

.woocommerce-product-attributes-item__value p {
    margin: 0;
}

.gc-tabs img.wp-smiley,
.gc-tabs img.emoji {
    filter: brightness(0) saturate(100%) invert(27%) sepia(63%) saturate(6234%) hue-rotate(380deg) brightness(91%) contrast(96%);
}

.gc-tab.active img.wp-smiley,
.gc-tab.active img.emoji,
.gc-tab:hover img.wp-smiley,
.gc-tab:hover img.emoji {
    filter: brightness(0) invert(1);
}

.gc-hidden {
    display: none !important;
}

.background-orange-light {
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
}

.background-orange-light p,
.gc-tab-content p {
    margin: 0;
}

.product-summary-wrapper {
    padding: 20px;
    border: 1px solid rgb(229, 229, 229);
    border-radius: 8px;
}

.gc-delivery-address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    margin: 0 0 20px 0;
}

#changeadd {
    font-weight: 600;
    font-size: 14px;
    background: none;
    justify-content: center;
    color: green;
}

.gc-store-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.gc-label{
    font-weight: 600;
}

.gc-delivery-times div {
    display: flex;
    justify-content: space-between;
    padding: 0 0 5px 0;
    align-items: anchor-center;
}

.gc-delivery-scheduled {
    flex-direction: column;
}

.wp-block-search__button-outside{
    margin: 20px 0 0 0;
}

#tab-description {
    display: none !important;
}

.gc-product-wrapper {
    display: flex;
    flex-direction: column-reverse;
}