/*
Theme Name: Crochet
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.3212
*/

:root {
    --brand-primary: #08a65a;
    --brand-dark: #067a43;
    --brand-darker: #065f38;
    --brand-light: #f0faf5;
    --brand-accent: #f5f5f5;
    --text-main: #222222;
    --text-light: #555555;
    --font-base-size: 16;
    --font-btn-size: 16px;
    --font-btn-weight: 500;
    --font-h1-desktop: 52;
    --font-h1-tablet: 40;
    --font-h1-mobile: 32;
    --font-h2-desktop: 36;
    --font-h2-tablet: 30;
    --font-h2-mobile: 26;
    --font-h3-desktop: 28;
    --font-h3-tablet: 24;
    --font-h3-mobile: 22;
    --font-h4-desktop: 22;
    --font-h4-tablet: 19;
    --font-h4-mobile: 18;
    --font-h5-desktop: 18;
    --font-h5-mobile: 16;
    --font-h6-desktop: 16;
    --font-h6-mobile: 15;
    --color-button-hover: 6, 122, 67;
    --color-heading: 34, 34, 34;
    --color-foreground-secondary: 85, 85, 85;
}

body {
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.button, button, input[type=button], input[type=reset], input[type=submit] {
    font-weight: 500;
    letter-spacing: 0.02em;
}
h1, .h1 { font-size: calc(((var(--font-h1-mobile)) / (var(--font-base-size))) * 1rem); line-height: 1.25; color: var(--text-main); }
h2, .h2 { font-size: calc(((var(--font-h2-mobile)) / (var(--font-base-size))) * 1rem); line-height: 1.3; color: var(--text-main); }
h3, .h3 { font-size: calc(((var(--font-h3-mobile)) / (var(--font-base-size))) * 1rem); line-height: 1.35; color: var(--text-main); }
h4, .h4 { font-size: calc(((var(--font-h4-mobile)) / (var(--font-base-size))) * 1rem); line-height: 1.4; }
h5, .h5 { font-size: calc(((var(--font-h5-mobile)) / (var(--font-base-size))) * 1rem); line-height: 1.5; }
h6, .h6 { font-size: calc(((var(--font-h6-mobile)) / (var(--font-base-size))) * 1rem); line-height: 1.5; }

@media only screen and (min-width: 768px) {
    .h1, h1 { font-size: calc(((var(--font-h1-tablet)) / (var(--font-base-size))) * 1rem); line-height: 1.22; }
    .h2, h2 { font-size: calc(((var(--font-h2-tablet)) / (var(--font-base-size))) * 1rem); line-height: 1.25; }
    h3, .h3 { font-size: calc(((var(--font-h3-tablet)) / (var(--font-base-size))) * 1rem); line-height: 1.3; }
    h4, .h4 { font-size: calc(((var(--font-h4-tablet)) / (var(--font-base-size))) * 1rem); line-height: 1.4; }
}
@media only screen and (min-width: 1280px) {
    .h1, h1 { font-size: calc(((var(--font-h1-desktop)) / (var(--font-base-size))) * 1rem); line-height: 1.15; }
    .h2, h2 { font-size: calc(((var(--font-h2-desktop)) / (var(--font-base-size))) * 1rem); line-height: 1.22; }
    h3, .h3 { font-size: calc(((var(--font-h3-desktop)) / (var(--font-base-size))) * 1rem); line-height: 1.25; }
    h4, .h4 { font-size: calc(((var(--font-h4-desktop)) / (var(--font-base-size))) * 1rem); line-height: 1.3; }
    h5, .h5 { font-size: calc(((var(--font-h5-desktop)) / (var(--font-base-size))) * 1rem); }
    h6, .h6 { font-size: calc(((var(--font-h6-desktop)) / (var(--font-base-size))) * 1rem); }
}

/* Navigation */
.nav-line-bottom>li>a:before, .nav-line-grow>li>a:before, .nav-line>li>a:before {
    height: 2px; width: 0; transform: none; left: 0;
    background-color: var(--brand-primary) !important;
}
.nav-line-bottom>li>a:hover:before, .nav-line-grow>li>a:hover:before, .nav-line>li>a:hover:before,
.nav .current-menu-item a:before { width: 100%; }
.header-main .nav-left { justify-content: center; }
.nav-small.nav>li.html { font-size: 1em; }
.nav-right a:before { display: none !important; }

/* Topbar */
#top-bar { font-size: 13px; letter-spacing: 0.02em; }

/* Buttons */
.single_add_to_cart_button.button, .sticky-add-to-cart-select-options-button, .checkout-button {
    background-color: var(--brand-primary) !important;
    width: 100%; line-height: 51px; text-transform: uppercase;
    border-radius: 8px; transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.single_add_to_cart_button.button:hover, .sticky-add-to-cart-select-options-button:hover, .checkout-button:hover {
    background-color: var(--brand-dark) !important;
}
.woocommerce-mini-cart__buttons.buttons a { width: 100%; line-height: 51px; text-transform: uppercase; }
.add-to-cart-button a {
    background-color: var(--brand-primary) !important;
    line-height: 45px; text-transform: uppercase; width: 100%;
    border: none; font-size: 16px !important; padding: 0 1em;
    border-radius: 8px; transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.add-to-cart-button a:hover {
    background-color: var(--brand-dark) !important;
    box-shadow: 0 0 0 .2rem rgba(8, 166, 90, 0.3);
}

/* Product */
.ux-quantity { margin-bottom: 10px; }
body a.plain { color: var(--brand-primary); }
span.amount { color: var(--text-main); font-weight: 500; font-size: 16px; }
.product-price-container span.amount { font-size: 24px; }
.product-title a { font-size: 16px; font-weight: 500; color: var(--text-main); }
.product-title a:hover { color: var(--brand-primary); }
.product-title.entry-title { font-size: 30px; }
.category-filtering a { text-transform: none; }
.woocommerce-breadcrumb { display: none; }
body .product-section { border-top: none; }
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}

/* Accordion / Tabs */
body a.accordion-title {
    font-size: 18px; font-weight: 500; color: var(--brand-primary);
    border-top: none; border-bottom: 1px solid #e0e0e0; padding: .6em 2.3em .6em 0;
}
body a.accordion-title:after { display: none !important; }
body .accordion-title.active { background: none !important; font-weight: 500; }
.accordion .toggle { right: 0; left: auto; opacity: 1; }
.toggle i { font-size: 1.3em; color: var(--brand-primary) !important; }
.accordion-inner { padding: 1em 0; }
.accordion-item { margin-bottom: 20px; }
.product-tabs li { padding: 0 14px; }
.tabbed-content .nav-line-bottom>li.active>a:before { width: 100%; }
.tabbed-content .nav-line-bottom>li>a { padding: 5px 0; }
.product-tabs .tab-panels { padding-top: 2em; }

/* Sidebar & Widgets */
.widget .is-divider { display: none; }
span.widget-title {
    color: var(--text-main); font-weight: 600;
    font-size: calc(var(--font-base-size, 16) * 1px); text-transform: none;
}
.widget a { color: var(--text-light); }
.widget>ul>li+li, ul.menu>li+li { border-top: none; }
.widget a, .tabbed-content .nav.nav-line a { position: relative; }
.widget a:after {
    content: ""; height: 1px; display: block; position: absolute;
    left: 0; width: 0; bottom: 0; background-color: var(--brand-primary); transition: all .25s ease;
}
.widget a:hover:after { width: 100%; }
.widget a:hover { color: var(--brand-primary); }

/* Table & Ordering */
th { font-weight: 500; color: var(--text-main); }
.woocommerce-ordering, .woocommerce-ordering select { border-radius: 8px; }

/* Categories */
.box-category .header-title { font-size: 20px; }
body .categories-sliders .col, body .categories-sliders .box-text { padding-bottom: 0 !important; }

/* Reviews */
body .jdgm-prev-badge[data-average-rating='0.00'], body .jdgm-prev-badge { display: block !important; }
body .jdgm-widget.jdgm-widget { display: block !important; margin-bottom: 20px; }

/* Upsell */
.salesgen-upsell-bundle h2 { font-size: 17px; font-weight: 500; }
.quantity .minus, .quantity .plus { margin: 0 !important; }

/* WCPA Custom Product Add-ons */
body .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color label { font-weight: 400; }
body .wcpa_form_outer .wcpa_form_item .color-group.color-inline .wcpa_color label span {
    padding: 0px 14px; height: 36px !important; line-height: 36px !important; border-radius: 8px;
}
body .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color input:checked+label span {
    border: 1px solid #404040; background-color: #404040 !important; box-shadow: none; color: #fff;
}
.wcpa_form_outer .wcpa_form_item .wcpa_helptext { font-size: .9em; }
.wcpa_form_outer label { margin-bottom: 0; }
.wcpa_form_outer .wcpa_form_item .color-group .wcpa_color { margin: 0 .2em .5em 0; }
.wcpa_form_item { margin: 0 0 1em; }
.float-position { position: absolute; left: 90px; z-index: 9; top: -1px; }
.wcpa_form_outer .wcpa_row { position: relative; }
a.size-chart-icon { font-size: 12px; text-decoration: underline; }
.wcpa_form_outer { margin: 1em 0 0; width: 100%; }
.size-chart-icon {
    margin-left: 10px; cursor: pointer; text-decoration: underline; text-transform: capitalize;
    font-size: 0.8em; padding-left: 30px;
    background-repeat: no-repeat; background-position: left center; background-size: 22px; display: inline-block;
}
.wcpa_drag_drop .wcpa-upload-message, .wcpa_form_outer .wcpa_error_msg {
    color: red; font-size: 13px; margin-top: -6px; text-align: left;
}

/* Trust Bar */
.tpm-trust-bar { background: #ffffff; border-bottom: 1px solid #eee; }
.tpm-trust-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 6px; padding: 12px 10px;
}
.tpm-trust-item .tpm-icon { font-size: 28px; color: var(--brand-primary); }
.tpm-trust-item h6 {
    font-weight: 600; font-size: 13px; margin: 0; color: var(--text-main);
    text-transform: uppercase; letter-spacing: 0.03em;
}
.tpm-trust-item p { font-size: 12px; color: var(--text-light); margin: 0; line-height: 1.4; }

/* Section Heading Line */
.tpm-heading-line {
    width: 60px; height: 3px; background: var(--brand-primary);
    margin: 14px auto 0; border-radius: 2px; display: block;
}

/* Testimonials */
.tpm-testimonials-section { background-color: var(--brand-light) !important; }
.tpm-testimonials-section .col-inner {
    background: #fff; border-radius: 12px; padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tpm-testimonials-section .col-inner:hover {
    transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* About Cards */
.tpm-about-card {
    text-align: center; padding: 30px 20px; border-radius: 12px;
    background: var(--brand-accent); transition: transform 0.3s ease; height: 100%;
}
.tpm-about-card:hover { transform: translateY(-3px); }
.tpm-about-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.tpm-about-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* CTA Section */
.tpm-cta-section { text-align: center; }
.tpm-cta-section h2 { color: #ffffff; font-weight: 700; }
.tpm-cta-section p { color: rgba(255,255,255,0.9); font-size: 17px; }

/* Footer */
.footer-widgets .widget-title, #footer .widget-title {
    font-weight: 600; font-size: 16px; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-main); margin-bottom: 16px;
}
.footer-widgets .widget a { color: var(--text-light); font-size: 14px; line-height: 2; }
.footer-widgets .widget a:hover { color: var(--brand-primary); }
.absolute-footer { font-size: 13px; }

/* Social Icons */
.follow-us-horizontal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.follow-us-horizontal .social-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 14px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.follow-us-horizontal .social-circle:hover { transform: translateY(-3px); opacity: 0.85; }
.follow-us-horizontal .facebook { background: #1877f2; }
.follow-us-horizontal .instagram { background: #e4405f; }
.follow-us-horizontal .tiktok { background: #010101; }
.follow-us-horizontal .x-twitter { background: #14171a; }
.follow-us-horizontal .email { background: var(--brand-primary); }
.follow-us-horizontal .phone { background: var(--brand-primary); }
.follow-us-horizontal .pinterest { background: #bd081c; }
.follow-us-horizontal .youtube { background: #ff0000; }

/* Checkout Tip Styles */
.order_tip_title { display: none; }
.woocommerce-checkout .add-tip {
    border: 1px solid #dedede; margin-bottom: 30px; margin-top: 20px;
    border-radius: 5px; background: #fafafa;
}
.woocommerce-checkout .add-tip p.sub-title {
    border-bottom: 1px solid #d9d9d9 !important; margin-bottom: 0 !important;
    padding: 10px 10px 15px 10px !important; background: #fff !important;
}
.woocommerce-checkout .add-tip #wooot_order_tip_form {
    padding: 20px 10px 15px 10px; background: #fafafa; width: 100%; overflow: hidden; font-size: 16px;
}
#wooot_order_tip_form { margin-bottom: 0 !important; }
body .wooot_order_tip_form_inputs { background-color: transparent !important; border: none !important; padding: 0 !important; }
#wooot_order_tip_form .woo_order_tip, .woocommerce-checkout .add-tip .woo_order_tip_remove {
    height: 56px; margin-right: -4px; background: #fff !important;
    border: 1px solid #d9d9d9 !important; width: 20% !important;
    color: #545454 !important; border-radius: 0px !important; line-height: 20px; padding: 0 !important;
}
.woocommerce-checkout .add-tip #wooot_order_tip_form .woo_order_tip_remove {
    border-top-left-radius: 5px !important; border-bottom-left-radius: 5px !important; display: inline-block !important;
}
body #wooot_order_tip_form .woo_order_tip.active {
    border: 1px solid #004990 !important; background-color: #f0f5ff !important; color: var(--brand-primary) !important;
}
.woocommerce-checkout .add-tip p.sub-title-2 { border-top: 1px solid #eee; padding: 0px 10px !important; margin-bottom: 0; }
.woocommerce-checkout .add-tip #woo_order_tip_custom {
    border-top-right-radius: 5px !important; border-bottom-right-radius: 5px !important; height: 56px;
}
body .woo_order_tip_apply {
    border-radius: 5px; float: right; margin-right: 5px !important; margin-left: 0 !important;
    line-height: 48px !important; height: 48px !important; background-color: var(--brand-primary) !important;
}
.woo_order_tip_custom_text_field input { border-radius: 5px !important; border: 1px solid #d9d9d9 !important; }
.woo_order_tip_custom_text_field { width: 79% !important; }
.woocommerce-checkout .add-tip .woo_order_tip_apply {
    width: 17%; background: #ededed; margin-left: 5px; margin-bottom: 3px;
    text-transform: none; font-weight: 500; color: #000; display: inline-block !important;
    height: 47px !important; line-height: 47px !important; padding: 0 !important; font-size: 15px;
}
body .input-text.woo_order_tip_custom_text { padding: 0 10px !important; }
.woocommerce-checkout .add-tip .woo_order_tip_custom_text_field input {
    border-radius: 5px !important; border: 1px solid #d9d9d9 !important;
    margin-bottom: 0; height: 38px; box-shadow: none; display: inline-block !important; background: #fff;
}
body #wooot_order_tip_form .woo_order_tip.first {
    border-top-left-radius: 8px !important; border-bottom-left-radius: 8px !important;
}

/* Mobile */
@media only screen and (max-width: 499px) {
    .woocommerce-checkout .add-tip .woo_order_tip_apply { width: 20%; }
    .add-to-cart-button a { font-size: 14px; }
    .jdgm-review-widget--small .jdgm-form__fieldset-actions .jdgm-btn { display: block; margin: 0 auto; }
}
