/*
Theme Name: Motta Child Theme
Theme URI: http://motta.uix.store/
Author: UIX Themes
Author URI: http://uix.store
Description: A fully responsive Premium WordPress Theme with a pixel perfect design and extensive functionality
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motta
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Template: motta
*/


/* ==================================================
   CRAFMA HEADER CATEGORY MENU
   ================================================== */

.header-category-menu {
    display: block;
}

.header-category__content {
    display: none;
}

.header-category-menu.motta-open .header-category__content {
    display: block;
}


/* ==================================================
   CRAFMA HEADER SEARCH
   ================================================== */

.header-search__container {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search__field {
    width: 100%;
    height: 45px;
    padding-right: 48px;
    border: 1px solid #cccccc;
    border-radius: 30px;
    box-sizing: border-box;
    font-size: 16px;
}

.header-search__button {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 5;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--motta-color-primary, var(--primary-color, #cb2e67)) !important;
    fill: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer;
    transform: translateY(-50%);
}

.header-search__button .motta-button__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-search__icon {
    display: none !important;
}


/* ==================================================
   CRAFMA PRODUCT GRID — ETSY-INSPIRED
   WooCommerce + Motta
   ================================================== */

ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

ul.products li.product {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    text-align: left !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* Main product thumbnail only */
ul.products li.product .woocommerce-loop-product__link > img,
ul.products li.product .product-thumbnail img,
ul.products li.product .motta-product-thumbnail img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px 8px 0 0 !important;
    object-fit: cover !important;
    transition: opacity 0.3s ease !important;
}

ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    margin: 0.75rem 0 0.25rem !important;
    padding: 0 0.75rem !important;
    overflow: hidden !important;
    color: #222222 !important;
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

ul.products li.product .price {
    display: block !important;
    margin: 0 !important;
    padding: 0 0.75rem 0.75rem !important;
    color: #222222 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

ul.products li.product .price ins {
    color: #c62828 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

ul.products li.product .onsale {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 10 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    background-color: #d5641c !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}


/* ==================================================
   CRAFMA MOBILE PRODUCT GRID
   ================================================== */

@media screen and (max-width: 767px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
        row-gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products::before,
    .woocommerce ul.products::after,
    .woocommerce-page ul.products::before,
    .woocommerce-page ul.products::after {
        display: none !important;
        content: none !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: none !important;
        box-sizing: border-box !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__link > img,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__link > img,
    .woocommerce ul.products li.product .product-thumbnail img,
    .woocommerce-page ul.products li.product .product-thumbnail img,
    .woocommerce ul.products li.product .motta-product-thumbnail img,
    .woocommerce-page ul.products li.product .motta-product-thumbnail img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        margin: 0 !important;
        padding: 8px 9px 0 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .woocommerce ul.products li.product .price {
        margin: 0 !important;
        padding: 5px 9px 9px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .woocommerce ul.products li.product .sold-by-meta,
    .woocommerce ul.products li.product .wcfmmp_sold_by_container,
    .woocommerce ul.products li.product .wcfmmp_sold_by_wrapper {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 12px !important;
    }
}


/* ==================================================
   REMOVE QUICK VIEW FROM PRODUCT GRIDS
   ================================================== */

ul.products li.product .quick-view-button,
ul.products li.product .product-quick-view,
ul.products li.product .motta-product-quick-view,
ul.products li.product .product-quickview,
ul.products li.product .quick-view,
ul.products li.product a.quick-view,
ul.products li.product [class*="quick-view"],
ul.products li.product [class*="quickview"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Hide catalogue Add to Cart on mobile */
@media screen and (max-width: 767px) {

    ul.products li.product .add_to_cart_button,
    ul.products li.product .ajax_add_to_cart,
    ul.products li.product a.product_type_simple,
    ul.products li.product a.product_type_variable,
    ul.products li.product a.product_type_grouped,
    ul.products li.product a.product_type_external {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


/* ==================================================
   MOBILE ITEM DETAILS / GALLERY OVERLAP FIX
   Scoped to the combined Item details tab so other
   Motta and WCFM accordions keep their native behaviour.
   ================================================== */

@media screen and (max-width: 767px) {

    body.single-product .woocommerce-tabs,
    body.single-product #tab-crafma_item_details {
        position: relative !important;
        z-index: 10 !important;
        clear: both !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        float: none !important;
        background-color: #ffffff !important;
        background-image: none !important;
    }

    body.single-product #tab-crafma_item_details::before,
    body.single-product #tab-crafma_item_details::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }

    body.single-product
    #tab-crafma_item_details
    .crafma-item-description img {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 16px 0 !important;
        float: none !important;
        opacity: 1 !important;
        object-fit: contain !important;
        transform: none !important;
    }

    body.single-product
    #tab-crafma_item_details
    .crafma-item-description h1,
    body.single-product
    #tab-crafma_item_details
    .crafma-item-description h2,
    body.single-product
    #tab-crafma_item_details
    .crafma-item-description h3,
    body.single-product
    #tab-crafma_item_details
    .crafma-item-description h4,
    body.single-product
    #tab-crafma_item_details
    .crafma-item-description p,
    body.single-product
    #tab-crafma_item_details
    .crafma-item-description ul,
    body.single-product
    #tab-crafma_item_details
    .crafma-item-description ol {
        position: relative !important;
        z-index: 2 !important;
        color: #222222 !important;
        background: transparent !important;
    }

    body.single-product div.product .woocommerce-product-gallery {
        position: relative !important;
        z-index: 1 !important;
        clear: both !important;
        height: auto !important;
        overflow: hidden !important;
    }
}


/* ==================================================
   CRAFMA HOMEPAGE — REFINED PRODUCT SHELVES
   ================================================== */

/* Section spacing */
.crafma-shelf,
.crafma-tiles,
.crafma-regions,
.crafma-vendors {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
}

.crafma-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}

.crafma-section-heading h2 {
    margin: 0 !important;
    font-size: clamp(21px, 1.5vw, 27px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

/* View All buttons */
.crafma-pill,
.crafma-pill--outline {
    width: auto !important;
    min-width: auto !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 17px !important;
    border-width: 1.5px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.crafma-pill--outline:hover {
    background: #29252d !important;
    color: #ffffff !important;
}

/* Product shelf arrows */
.crafma-shelf__arrow {
    position: absolute !important;
    top: clamp(100px, 8vw, 122px) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #30223b !important;
    color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(48, 34, 59, 0.22) !important;
    cursor: pointer !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 40px !important;
    transform: translateY(-50%) !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.crafma-shelf__arrow:hover {
    background: var(--motta-color-primary, var(--e-global-color-primary, #cb2e67)) !important;
    box-shadow: 0 6px 18px rgba(48, 34, 59, 0.28) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.crafma-shelf__arrow--prev {
    left: 8px !important;
}

.crafma-shelf__arrow--next {
    right: 8px !important;
}

.crafma-shelf__arrow[hidden] {
    display: none !important;
}

/* Track and cards */
.crafma-shelf__track {
    gap: 16px !important;
    padding-top: 2px !important;
    padding-right: 45px !important;
    padding-bottom: 8px !important;
}

.crafma-card {
    flex-basis: clamp(200px, 16vw, 235px) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.crafma-card__media {
    border-radius: 10px !important;
}

.crafma-card__content {
    padding: 8px 2px 0 !important;
}

.crafma-card__title {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.crafma-card__price {
    margin-top: 3px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.crafma-card__vendor {
    margin-top: 4px !important;
    font-size: 12px !important;
}

.crafma-card__badge {
    top: 10px !important;
    left: 10px !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Editorial banners */
.crafma-editorial {
    gap: 22px !important;
    padding-top: 28px !important;
    padding-bottom: 36px !important;
}

.crafma-editorial__main,
.crafma-editorial__side {
    min-height: 360px !important;
    border-radius: 14px !important;
}

.crafma-editorial__copy {
    padding: clamp(30px, 4vw, 58px) !important;
}

.crafma-editorial__copy h2 {
    max-width: 480px !important;
    font-size: clamp(34px, 3.2vw, 50px) !important;
    line-height: 1.05 !important;
}

.crafma-editorial__copy p {
    max-width: 440px !important;
    margin-bottom: 22px !important;
    font-size: 16px !important;
}

.crafma-editorial__button {
    padding: 11px 19px !important;
    font-size: 14px !important;
}

/* Discovery tiles */
.crafma-tiles__track {
    gap: 14px !important;
}

.crafma-tile {
    flex-basis: clamp(210px, 16.5vw, 250px) !important;
    border-radius: 11px !important;
}

.crafma-tile__label {
    bottom: 14px !important;
    max-width: calc(100% - 22px) !important;
    padding: 8px 13px !important;
    font-size: 13px !important;
}

/* Region cards */
.crafma-regions__grid {
    gap: 10px !important;
}

.crafma-regions__grid a {
    min-height: 104px !important;
    padding: 13px !important;
    border-radius: 11px !important;
}

/* Trust strip */
.crafma-trust {
    margin-top: 28px !important;
    padding: 26px 28px !important;
    border-radius: 14px !important;
}

.crafma-trust__intro {
    margin-bottom: 18px !important;
}


/* ==================================================
   HOMEPAGE TABLET
   ================================================== */

@media screen and (max-width: 1024px) {

    .crafma-shelf__arrow {
        top: clamp(95px, 10vw, 112px) !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        font-size: 24px !important;
        line-height: 36px !important;
    }

    .crafma-shelf__arrow--prev {
        left: 5px !important;
    }

    .crafma-shelf__arrow--next {
        right: 5px !important;
    }

    .crafma-card {
        flex-basis: clamp(190px, 27vw, 220px) !important;
    }
}


/* ==================================================
   HOMEPAGE MOBILE
   ================================================== */

@media screen and (max-width: 767px) {

    .crafma-shelf,
    .crafma-tiles,
    .crafma-regions,
    .crafma-vendors {
        padding-top: 16px !important;
        padding-bottom: 22px !important;
    }

    .crafma-section-heading {
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .crafma-section-heading h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .crafma-pill,
    .crafma-pill--outline {
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .crafma-shelf__arrow {
        display: none !important;
    }

    .crafma-shelf__track {
        gap: 10px !important;
        padding-right: 30px !important;
    }

    .crafma-card {
        flex: 0 0 44vw !important;
    }

    .crafma-card__title {
        font-size: 14px !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2 !important;
    }

    .crafma-card__price {
        font-size: 15px !important;
    }

    .crafma-card__vendor {
        display: none !important;
    }

    .crafma-editorial {
        gap: 14px !important;
        padding-top: 18px !important;
        padding-bottom: 24px !important;
    }

    .crafma-editorial__main,
    .crafma-editorial__side {
        min-height: 310px !important;
        border-radius: 12px !important;
    }

    .crafma-editorial__copy {
        padding: 25px 22px !important;
    }

    .crafma-editorial__copy h2 {
        font-size: 32px !important;
    }

    .crafma-tile {
        flex: 0 0 70vw !important;
    }

    .crafma-trust {
        padding: 22px 17px !important;
    }
}


/* ==================================================
   REMOVE HOMEPAGE TITLE AREA
   ================================================== */

body.home .page-header,
body.home .entry-header,
body.home h1.entry-title,
body.home .page-title,
body.home .motta-page-header {
    display: none !important;
}

body.home .site-main,
body.home .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ==================================================
   EDITORIAL CARD — UNIVERSAL TEXT READABILITY
   ================================================== */

.crafma-editorial__side {
    position: relative !important;
    isolation: isolate !important;
}

.crafma-editorial__side::before {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(
        180deg,
        rgba(20, 14, 23, 0.04) 0%,
        rgba(20, 14, 23, 0.10) 35%,
        rgba(20, 14, 23, 0.55) 67%,
        rgba(20, 14, 23, 0.92) 100%
    ) !important;
    content: "" !important;
    pointer-events: none !important;
}

.crafma-editorial__side-copy {
    position: relative !important;
    z-index: 3 !important;
    max-width: 90% !important;
}

.crafma-editorial__side-copy,
.crafma-editorial__side-copy h1,
.crafma-editorial__side-copy h2,
.crafma-editorial__side-copy h3,
.crafma-editorial__side-copy p,
.crafma-editorial__side-copy span {
    color: #ffffff !important;
}

.crafma-editorial__side-copy h2 {
    margin-bottom: 10px !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55), 0 8px 22px rgba(0, 0, 0, 0.35) !important;
}

.crafma-editorial__side-copy > span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 9px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 999px !important;
    background: rgba(20, 14, 23, 0.38) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.crafma-editorial__shade {
    display: none !important;
}

/* ==================================================
   CRAFMA — MOTTA PRODUCT ACCORDIONS
   Etsy-inspired appearance while preserving Motta,
   WooCommerce and WCFM accordion functionality.
   ================================================== */

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
    width: 100%;
    box-sizing: border-box;
}

body.single-product
.woocommerce-tabs
.woocommerce-Tabs-panel {
    width: 100%;
    margin: 0;
    border-top: 1px solid #dedad6;
    background: transparent;
    box-sizing: border-box;
}

body.single-product
.woocommerce-tabs
.woocommerce-Tabs-panel:last-of-type {
    border-bottom: 1px solid #dedad6;
}

/* Accordion heading generated by Motta */
body.single-product
.woocommerce-tabs
.motta-dropdown__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    min-height: 74px;
    padding: 20px 0;

    color: #2f2935;
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;

    text-decoration: none;
    background: transparent;
    border: 0;
    box-sizing: border-box;
}

/* Motta plus, minus and arrow icons */
body.single-product
.woocommerce-tabs
.motta-dropdown__title svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    color: #2f2935;
}

/* Motta controls opening and closing; do not override display here */
body.single-product
.woocommerce-tabs
.motta-dropdown__content {
    width: 100%;
    padding: 0 0 30px;
    background: transparent;
    box-sizing: border-box;
}


/* ==================================================
   COMBINED ITEM DETAILS CONTENT
   ================================================== */

body.single-product
.crafma-etsy-item-details {
    width: 100%;
    color: #38333c;
    font-family: 'Karla', sans-serif;
    box-sizing: border-box;
}

body.single-product
.crafma-item-section-title {
    margin: 10px 0 16px;
    color: #2f2935;
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}


/* ==================================================
   ITEM DETAILS — BUYER-FACING HIGHLIGHTS
   ================================================== */

body.single-product .crafma-item-highlights {
    margin: 0 0 24px;
}

body.single-product .crafma-item-highlight-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-product .crafma-item-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #332e37;
    font-family: 'Karla', sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

body.single-product .crafma-item-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    flex: 0 0 26px;
    color: #302a36;
}

body.single-product .crafma-item-highlight__icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

body.single-product .crafma-item-highlight__text {
    min-width: 0;
}

body.single-product .crafma-item-highlight__text strong {
    font-weight: 600;
}

body.single-product .crafma-item-highlight__text a {
    color: #302a36;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==================================================
   PRODUCT DESCRIPTION — LEARN MORE / SHOW LESS
   ================================================== */

body.single-product .crafma-item-description-section {
    margin-top: 24px;
}

body.single-product .crafma-item-description-toggle {
    position: relative;
}

body.single-product .crafma-item-description {
    margin: 0;
    color: #38333c;
    font-family: 'Karla', sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

body.single-product .crafma-item-description p {
    margin: 0 0 18px;
    font-size: inherit;
    line-height: inherit;
}

body.single-product .crafma-item-description p:last-child {
    margin-bottom: 0;
}

body.single-product .crafma-item-description ul,
body.single-product .crafma-item-description ol {
    margin: 14px 0 20px 22px;
}

body.single-product .crafma-item-description li {
    margin-bottom: 7px;
}

body.single-product .crafma-item-description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px 0;
}

/* JavaScript adds this class only when the description is genuinely long. */
body.single-product .crafma-item-description-toggle.is-collapsible .crafma-item-description__content {
    overflow: hidden;
    transition: max-height 0.28s ease;
}

body.single-product .crafma-item-description__fade {
    display: none;
}

body.single-product .crafma-item-description-toggle.is-collapsible:not(.is-expanded) .crafma-item-description__fade {
    position: absolute;
    right: 0;
    bottom: 44px;
    left: 0;
    display: block;
    height: 72px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.92) 62%,
        #ffffff 100%
    );
    pointer-events: none;
}

body.single-product .crafma-item-description__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-height: 42px;
    margin: 14px auto 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2f2935;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

body.single-product .crafma-item-description-toggle.is-collapsible .crafma-item-description__toggle {
    display: flex;
}

body.single-product .crafma-item-description__toggle:hover,
body.single-product .crafma-item-description__toggle:focus-visible {
    background: #f7f3f1;
}

body.single-product .crafma-item-description__less {
    display: none;
}

body.single-product .crafma-item-description-toggle.is-expanded .crafma-item-description__more {
    display: none;
}

body.single-product .crafma-item-description-toggle.is-expanded .crafma-item-description__less {
    display: inline;
}

body.single-product .crafma-item-description__toggle-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

body.single-product .crafma-item-description-toggle.is-expanded .crafma-item-description__toggle-icon {
    transform: rotate(225deg) translate(-1px, -1px);
}


/* ==================================================
   PRODUCT ATTRIBUTES
   ================================================== */

body.single-product
.crafma-product-attributes {
    margin-top: 30px;
}

body.single-product
.crafma-product-attributes
table.shop_attributes {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

body.single-product
.crafma-product-attributes
table.shop_attributes tr {
    border-top: 1px solid #ebe7e3;
}

body.single-product
.crafma-product-attributes
table.shop_attributes tr:last-child {
    border-bottom: 1px solid #ebe7e3;
}

body.single-product
.crafma-product-attributes
table.shop_attributes th,
body.single-product
.crafma-product-attributes
table.shop_attributes td {
    padding: 14px 0;
    border: 0;
    background: transparent !important;
    vertical-align: top;
    text-align: left;
}

body.single-product
.crafma-product-attributes
table.shop_attributes th {
    width: 38%;
    padding-right: 18px;
    color: #332e37;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

body.single-product
.crafma-product-attributes
table.shop_attributes td {
    color: #49424c;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    font-style: normal;
}

body.single-product
.crafma-product-attributes
table.shop_attributes td p {
    margin: 0;
    padding: 0;
    font-style: normal;
}


/* ==================================================
   PRODUCT ACCORDIONS — MOBILE
   ================================================== */

@media screen and (max-width: 767px) {

    body.single-product
    .woocommerce-tabs
    .motta-dropdown__title {
        min-height: 66px;
        padding: 17px 0;
        font-size: 20px;
    }

    body.single-product
    .woocommerce-tabs
    .motta-dropdown__content {
        padding-bottom: 24px;
    }

    body.single-product
    .crafma-item-section-title {
        font-size: 18px;
    }

    body.single-product .crafma-item-highlight,
    body.single-product .crafma-item-description {
        font-size: 16px;
    }

    body.single-product
    .crafma-product-attributes
    table.shop_attributes th,
    body.single-product
    .crafma-product-attributes
    table.shop_attributes td {
        display: block;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    body.single-product
    .crafma-product-attributes
    table.shop_attributes th {
        padding-bottom: 3px;
    }

    body.single-product
    .crafma-product-attributes
    table.shop_attributes td {
        padding-top: 3px;
        padding-bottom: 14px;
    }
}


/* ==================================================
   ITEM DETAILS — MOBILE REFINEMENTS
   ================================================== */

@media screen and (max-width: 767px) {
    body.single-product .crafma-item-highlights {
        margin-bottom: 20px;
    }

    body.single-product .crafma-item-highlight-list {
        gap: 11px;
    }

    body.single-product .crafma-item-highlight {
        gap: 10px;
    }

    body.single-product .crafma-item-highlight__icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        flex-basis: 24px;
    }

    body.single-product .crafma-item-highlight__icon svg {
        width: 21px;
        height: 21px;
    }

    body.single-product .crafma-item-description-section {
        margin-top: 20px;
    }

    body.single-product .crafma-item-description__toggle {
        margin-top: 10px;
        font-size: 14px;
    }

    body.single-product .crafma-item-description-toggle.is-collapsible:not(.is-expanded) .crafma-item-description__fade {
        bottom: 42px;
        height: 62px;
    }
}
/* ==================================================
   CRAFMA SINGLE PRODUCT — FINAL ETSY-STYLE ACCORDION
   Applies to Item details, shipping/returns, policies
   and reviews while preserving their original content.
   ================================================== */

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
    width: 100% !important;
    margin-top: 24px !important;
    border: 0 !important;
    background: transparent !important;
}

/* Replace horizontal tabs with full-width Etsy-style rows on every screen. */
body.single-product .woocommerce-tabs .motta-tabs-heading {
    display: none !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel.wc-tab {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #d9d5d2 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel:last-of-type {
    border-bottom: 1px solid #d9d5d2 !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    width: 100% !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 19px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #222222 !important;
    font-family: 'Karla', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.18s ease !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__title:hover,
body.single-product .woocommerce-tabs .motta-dropdown__title:focus-visible {
    background: #faf9f8 !important;
    outline: none !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__title svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex: 0 0 17px !important;
    color: #222222 !important;
    fill: currentColor !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__title .icon-active {
    display: none !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__title.active .icon-noactive {
    display: none !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__title.active .icon-active {
    display: block !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 2px 26px !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

body.single-product .woocommerce-tabs .motta-dropdown__content[hidden] {
    display: none !important;
}

body.single-product .woocommerce-tabs .crafma-accordion-open > .motta-dropdown__title {
    padding-bottom: 14px !important;
}

body.single-product .woocommerce-tabs .crafma-accordion-open > .motta-dropdown__content {
    animation: crafmaAccordionReveal 0.2s ease-out both;
}

@keyframes crafmaAccordionReveal {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 767px) {
    body.single-product .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 18px !important;
    }

    body.single-product .woocommerce-tabs .motta-dropdown__title {
        min-height: 60px !important;
        padding: 17px 1px !important;
        font-size: 17px !important;
    }

    body.single-product .woocommerce-tabs .motta-dropdown__content {
        padding: 0 1px 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product .woocommerce-tabs .crafma-accordion-open > .motta-dropdown__content {
        animation: none !important;
    }
}

/* ==================================================
   CRAFMA — PRODUCT DETAILS OUTSIDE THE ACCORDION
   Always visible between Item details and WCFM shipping.
   ================================================== */

body.single-product
.woocommerce-tabs
#tab-crafma_product_details {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #d9d5d2 !important;
    background: transparent !important;
}

/* Motta generates a dropdown title for every registered tab. Hide it only
   for Product details because this section is intentionally not collapsible. */
body.single-product
.woocommerce-tabs
#tab-crafma_product_details
> .motta-dropdown__title {
    display: none !important;
}

body.single-product
.woocommerce-tabs
#tab-crafma_product_details
> .motta-dropdown__content,
body.single-product
.woocommerce-tabs
#tab-crafma_product_details
> .motta-dropdown__content[hidden] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 24px 2px 28px !important;
    background: transparent !important;
}

body.single-product
#tab-crafma_product_details
.crafma-product-attributes--standalone {
    margin: 0 !important;
}

body.single-product
#tab-crafma_product_details
.crafma-item-section-title {
    margin: 0 0 15px !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
}

body.single-product
#tab-crafma_product_details
.crafma-product-attributes
 table.shop_attributes tr:first-child {
    border-top: 0 !important;
}

body.single-product
#tab-crafma_product_details
.crafma-product-attributes
 table.shop_attributes th {
    width: 42% !important;
    color: #332e37 !important;
    font-weight: 600 !important;
}

body.single-product
#tab-crafma_product_details
.crafma-product-attributes
 table.shop_attributes td {
    color: #49424c !important;
    font-weight: 400 !important;
}

@media screen and (max-width: 767px) {
    body.single-product
    .woocommerce-tabs
    #tab-crafma_product_details
    > .motta-dropdown__content,
    body.single-product
    .woocommerce-tabs
    #tab-crafma_product_details
    > .motta-dropdown__content[hidden] {
        padding: 20px 1px 24px !important;
    }

    body.single-product
    #tab-crafma_product_details
    .crafma-item-section-title {
        font-size: 17px !important;
    }
}
