/* ==========================================================================
   MELOSHOP FRONTEND PREMIUM STYLE CUSTOMIZATIONS
   ========================================================================== */

/* 1. RELATED / UPSELL PRODUCTS ON SINGLE PRODUCT PAGE */
/* Selectors verified from DevTools HTML inspection */

/* ── Tên sản phẩm ── */
.single-product .related .product-small p.name.product-title,
.single-product .related .product-small p.name.product-title a,
.single-product .related .product-small .woocommerce-loop-product__title,
.single-product .up-sells .product-small p.name.product-title,
.single-product .up-sells .product-small p.name.product-title a,
.single-product .up-sells .product-small .woocommerce-loop-product__title {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #334155 !important;
}

/* ── Giá ── */
.single-product .related .product-small .price-wrapper .price,
.single-product .related .product-small .price-wrapper .price .woocommerce-Price-amount,
.single-product .related .product-small .price-wrapper .price .woocommerce-Price-amount bdi,
.single-product .up-sells .product-small .price-wrapper .price,
.single-product .up-sells .product-small .price-wrapper .price .woocommerce-Price-amount,
.single-product .up-sells .product-small .price-wrapper .price .woocommerce-Price-amount bdi {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #65b32e !important;
}

/* ── Giá gạch ngang ── */
.single-product .related .product-small .price del .woocommerce-Price-amount,
.single-product .up-sells .product-small .price del .woocommerce-Price-amount {
    font-size: 11px !important;
    color: #94a3b8 !important;
}






/* 2. SINGLE PRODUCT PAGE */

/* Brand green for Add to Cart button */
.single-product .single_add_to_cart_button.button {
    background-color: #46b450 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important; /* Nhỏ hơn một chút */
    height: 40px !important; /* Chiều cao khớp hoàn hảo với nút số lượng */
    line-height: 40px !important; /* Căn giữa chữ theo chiều dọc */
    padding: 0 24px !important; /* Dùng padding ngang, bỏ padding dọc để kiểm soát height */
    transition: background-color 0.2s ease !important;
}

.single-product .single_add_to_cart_button.button:hover {
    background-color: #3c9d46 !important;
}

/* Quantity input styling */
.single-product .quantity {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-right: 15px !important;
    padding: 0 !important;
}

.single-product .quantity input {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.single-product .quantity input.minus,
.single-product .quantity input.plus {
    width: 32px !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.single-product .quantity input.minus {
    border-radius: 6px 0 0 6px !important;
    border-right: none !important;
}

.single-product .quantity input.plus {
    border-radius: 0 6px 6px 0 !important;
    border-left: none !important;
}

.single-product .quantity input.qty {
    width: 48px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.single-product .quantity input.minus:hover,
.single-product .quantity input.plus:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* 3. PRODUCT META GRID (THE EXTENSION FIELDS) */

/* Modernized Meta Grid Container */
.product-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    background-color: #f8fafc !important; /* Soft light background */
    padding: 16px !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
    margin: 25px 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* Individual Meta Items - cleaner white cards with shadows */
.product-meta-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    min-height: 65px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    margin: 0 !important;
}

.product-meta-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* Meta Icons using brand colors */
.product-meta-icon {
    margin-right: 12px !important;
    width: 26px !important;
    height: 26px !important;
    color: #46b450 !important; /* Green primary icon color */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.product-meta-icon svg,
.product-meta-icon i {
    width: 100% !important;
    height: 100% !important;
    font-size: 20px !important;
    color: #46b450 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Label and value styles */
.product-meta-label {
    font-size: 11px !important;
    color: #64748b !important; /* Slate grey */
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.product-meta-value {
    font-size: 14px !important;
    color: #1e293b !important; /* Dark slate */
    font-weight: 600 !important;
    line-height: 1.3 !important;
    display: block !important;
}

/* Description area line-height boost */
.single-product .entry-content p,
.single-product #tab-description p {
    line-height: 1.625 !important;
    color: #334155 !important;
    font-size: 15px !important;
}

.single-product .entry-content ul li,
.single-product #tab-description ul li {
    line-height: 1.6 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    font-size: 15px !important;
}

/* 4. KATEGORIEN SIDEBAR WIDGET */
.widget_product_categories,
.widget.widget_product_categories {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

/* Tiêu đề Widget */
.widget_product_categories .widget-title,
.widget.widget_product_categories .widget-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 15px !important;
    position: relative !important;
    padding-bottom: 8px !important;
    border-bottom: none !important;
}

/* Gạch chân màu xanh lục thương hiệu dưới tiêu đề */
.widget_product_categories .widget-title::after,
.widget.widget_product_categories .widget-title::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 35px !important;
    height: 3px !important;
    background-color: #46b450 !important;
    border-radius: 2px !important;
}

/* Danh sách danh mục */
.widget_product_categories ul.product-categories {
    margin-top: 15px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.widget_product_categories ul.product-categories li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.widget_product_categories ul.product-categories li:last-child {
    border-bottom: none !important;
}

.widget_product_categories ul.product-categories li a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border-radius: 6px !important;
}

/* Hover trượt nhẹ và đổi màu nền + chữ sang xanh */
.widget_product_categories ul.product-categories li a:hover {
    background-color: rgba(70, 180, 80, 0.05) !important;
    color: #46b450 !important;
    padding-left: 12px !important;
}

/* Danh mục hiện tại (Active) */
.widget_product_categories ul.product-categories li.current-cat > a {
    background-color: rgba(70, 180, 80, 0.08) !important;
    color: #46b450 !important;
    font-weight: 600 !important;
    padding-left: 12px !important;
}

/* 5. STICKY ADD TO CART BAR */
@media (min-width: 850px) {
    .sticky-add-to-cart .sticky-add-to-cart__product {
        display: flex !important;
        align-items: center !important;
        max-width: 1080px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .sticky-add-to-cart__product .product-title-small {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        margin-right: auto !important;
        max-width: 450px !important; /* Tăng độ rộng để chứa tên sản phẩm dài */
        display: inline-block !important;
        vertical-align: middle !important;
        padding-left: 10px !important;
    }

    .sticky-add-to-cart__product form.cart {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        margin-left: 20px !important;
        gap: 12px !important;
    }
}

/* Tối ưu hóa Sticky Add to Cart trên Điện thoại (Mobile) */
@media (max-width: 849px) {
    .sticky-add-to-cart-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background-color: #ffffff !important; /* Chống nhìn xuyên thấu chữ phía sau */
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08) !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 8px 12px !important;
    }

    .sticky-add-to-cart-wrapper .sticky-add-to-cart {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        position: relative !important;
    }

    .sticky-add-to-cart-wrapper .sticky-add-to-cart__product {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Ẩn ảnh nhỏ thumbnail trên mobile để tăng diện tích sử dụng */
    .sticky-add-to-cart-wrapper .sticky-add-to-cart-img {
        display: none !important;
    }

    /* Ép form chứa số lượng và nút mua dàn hàng ngang trên 1 dòng */
    .sticky-add-to-cart-wrapper form.cart {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        justify-content: space-between !important;
    }

    /* Bộ đếm số lượng tinh gọn bên trái */
    .sticky-add-to-cart-wrapper form.cart .quantity {
        display: inline-flex !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .sticky-add-to-cart-wrapper form.cart .quantity input {
        height: 38px !important;
        line-height: 38px !important;
    }

    /* Nút thêm vào giỏ hàng chiếm trọn không gian còn lại bên phải */
    .sticky-add-to-cart-wrapper form.cart .single_add_to_cart_button.button {
        flex: 1 !important;
        margin: 0 !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 13px !important;
        padding: 0 15px !important;
        border-radius: 6px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        background-color: #46b450 !important;
        color: #ffffff !important;
    }
}

/* 6. SINGLE PRODUCT DETAIL SUMMARY & GALLERY REDESIGN */

/* Page background */
.single-product .product-main,
.single-product .custom-product-page {
    background-color: #f8fafc !important;
    padding: 30px 0 !important;
}

/* ── Equal-height columns: make the Flatsome row a flex container ── */
.single-product .product-main > .row,
.single-product .custom-product-page > .row,
.single-product .custom-product-page > div > .row,
.single-product .woocommerce .row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

/* The Flatsome column wrapper must also be a flex container so col-inner fills height */
.single-product .product-main > .row > .col,
.single-product .custom-product-page > .row > .col,
.single-product .custom-product-page > div > .row > .col {
    display: flex !important;
    flex-direction: column !important;
}

/* col-inner grows to fill full column height */
.single-product .product-main > .row > .col > .col-inner,
.single-product .custom-product-page > .row > .col > .col-inner,
.single-product .custom-product-page > div > .row > .col > .col-inner {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Left Column: White Card applied ONLY to the col-inner wrapper */
/* Do NOT apply card styles to .woocommerce-product-gallery — it breaks Flexslider */
.single-product .custom-product-page .col.large-5 > .col-inner,
.single-product .product-main .col.large-6:first-child > .col-inner,
.single-product .product-main .col.large-5:first-child > .col-inner {
    background-color: #ffffff !important;
    padding: 20px !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;  /* so zoom icon is positioned relative to card */
    box-sizing: border-box !important;
    width: 100% !important;
    /* NO height: 100% here — let the gallery expand naturally */
    overflow: hidden !important;
    border-radius: 16px !important;
}

/* Let the WooCommerce gallery render naturally inside the card */
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    position: relative !important;
    /* No background, no padding, no border-radius — card is handled by col-inner */
}

/* Gallery main image */
.single-product .woocommerce-product-gallery__image img,
.single-product .product-gallery img {
    border-radius: 10px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Fix Zoom Icon Position – relative to .woocommerce-product-gallery (position:relative) */
.single-product .woocommerce-product-gallery__trigger,
.single-product .zoom-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99 !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    color: #475569 !important;
}

/* Thumbnail Gallery list */
.single-product .product-thumbnails,
.single-product .flex-control-thumbs {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: wrap !important;
}

.single-product .product-thumbnails .col,
.single-product .flex-control-thumbs li {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 3px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    width: 58px !important;
    height: 58px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.single-product .product-thumbnails .is-selected,
.single-product .product-thumbnails .col:hover,
.single-product .flex-control-thumbs .flex-active,
.single-product .flex-control-thumbs li:hover {
    border-color: #65b32e !important;
    box-shadow: 0 0 0 1px #65b32e !important;
}

.single-product .product-thumbnails img,
.single-product .flex-control-thumbs img {
    border-radius: 5px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}



/* Right Column: Product Summary Card – ultra-subtle ring, no thick border */
.single-product div.product-summary,
.single-product .entry-summary,
.single-product .product-info,
.single-product .custom-product-page .col.large-7 > .col-inner,
.single-product .product-main .col.large-6:last-child > .col-inner,
.single-product .product-main .col.large-7:last-child > .col-inner {
    background-color: #ffffff !important;
    padding: 32px 36px !important;
    border-radius: 16px !important;
    border: none !important;
    /* single-pixel ring via box-shadow so it's never thicker than 1px */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    outline: none !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Remove Flatsome inner row/col margins & extra borders */
.single-product .product-summary .row,
.single-product .product-info .row,
.single-product .entry-summary .row,
.single-product .custom-product-page .row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-product .product-summary .col,
.single-product .product-summary .columns,
.single-product .product-info .col,
.single-product .product-info .columns,
.single-product .entry-summary .col,
.single-product .entry-summary .columns,
.single-product .custom-product-page .col.large-7 .col,
.single-product .custom-product-page .col.large-7 .columns {
    padding: 0 !important;
    margin: 0 !important;
}

.single-product .product-summary .col-inner,
.single-product .product-info .col-inner,
.single-product .entry-summary .col-inner {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Product Title */
.single-product .product-title,
.single-product .product_title,
.single-product .custom-product-page .product-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    text-transform: none !important;
}

/* Green Accent Bar under Title */
.single-product .product-title::after,
.single-product .product_title::after,
.single-product .custom-product-page .product-title::after {
    content: "" !important;
    display: block !important;
    width: 34px !important;
    height: 2.5px !important;
    background-color: #65b32e !important;
    border-radius: 2px !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
}

/* Hide Flatsome default divider */
.single-product .product-summary .is-divider,
.single-product .custom-product-page .is-divider {
    display: none !important;
}

/* Product Metadata (PZN & Categories) */
.single-product .product_meta,
.single-product .custom-product-page .product_meta {
    border: none !important;
    padding: 0 0 16px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.single-product .product_meta > span,
.single-product .custom-product-page .product_meta > span {
    border: none !important;
    padding: 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.single-product .product_meta a,
.single-product .custom-product-page .product_meta a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.single-product .product_meta a:hover,
.single-product .custom-product-page .product_meta a:hover {
    color: #65b32e !important;
    text-decoration: underline !important;
}

.single-product .product_meta .sku_wrapper::before,
.single-product .custom-product-page .product_meta .sku_wrapper::before {
    content: "🏷️" !important;
    font-size: 13.5px !important;
}

.single-product .product_meta .posted_in::before,
.single-product .custom-product-page .product_meta .posted_in::before {
    content: "📂" !important;
    font-size: 13.5px !important;
}

/* Price Display */
.single-product .price,
.single-product .price .amount,
.single-product .product-info .price,
.single-product .product-info .price .amount,
.single-product .custom-product-page .price,
.single-product .custom-product-page .price .amount {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #65b32e !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.single-product .price del .amount {
    font-size: 17px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
    text-decoration: line-through !important;
}

/* Tax Subtext */
.single-product .woocommerce-product-details__short-description,
.single-product .product-info .tax-info,
.single-product .custom-product-page .tax-info {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
    margin-top: 5px !important;
    margin-bottom: 20px !important;
}

/* Quantity & Add to Cart Container */
.single-product form.cart,
.single-product .custom-product-page form.cart {
    margin: 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

/* Modern Quantity Input Box */
.single-product .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .quantity input.minus,
.single-product .quantity input.plus {
    width: 38px !important;
    height: 44px !important;
    line-height: 44px !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    border-radius: 0 !important;
}

.single-product .quantity input.minus:hover,
.single-product .quantity input.plus:hover {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

.single-product .quantity input.qty {
    width: 42px !important;
    height: 44px !important;
    line-height: 44px !important;
    border: none !important;
    border-left: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    text-align: center !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    border-radius: 0 !important;
}

/* Green "IN DEN WARENKORB" Button - WITHOUT ICON */
.single-product .single_add_to_cart_button.button,
.single-product .single_add_to_cart_button {
    background-color: #65b32e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 28px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
}

/* Remove icon from button */
.single-product .single_add_to_cart_button.button::before,
.single-product .single_add_to_cart_button::before,
.single-product .single_add_to_cart_button .icon-shopping-cart,
.single-product .single_add_to_cart_button i {
    display: none !important;
    content: "" !important;
}

.single-product .single_add_to_cart_button.button:hover,
.single-product .single_add_to_cart_button:hover {
    background-color: #559b24 !important;
}

/* Delivery Status Badge with SVG Truck Icon */
.single-product .product-summary p.delivery-time,
.single-product .product-info .delivery-time,
.single-product .custom-product-page p.delivery-time {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

.single-product .product-summary p.delivery-time::before,
.single-product .product-info .delivery-time::before,
.single-product .custom-product-page p.delivery-time::before {
    content: "" !important;
    display: inline-block !important;
    width: 24px !important;
    height: 18px !important;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2365b32e'><path d='M64 48C46.3 48 32 62.3 32 80V368c0 17.7 14.3 32 32 32H84.3c13.2-28.4 41.7-48 75.7-48s62.5 19.6 75.7 48h112.6c13.2-28.4 41.7-48 75.7-48s62.5 19.6 75.7 48H512V224H352V80c0-17.7-14.3-32-32-32H64zm320 224h128v48H384V272zM160 464a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm264-32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z'/></svg>") no-repeat center !important;
    background-size: contain !important;
    flex-shrink: 0 !important;
}

/* Social Share Circle Buttons */
.single-product .social-icons,
.single-product .custom-product-page .social-icons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 24px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.single-product .social-icons a,
.single-product .custom-product-page .social-icons a {
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    color: #a1a1aa !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13.5px !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.single-product .social-icons a:hover,
.single-product .custom-product-page .social-icons a:hover {
    background-color: #f0fdf4 !important;
    border-color: #65b32e !important;
    color: #65b32e !important;
    transform: translateY(-2px) !important;
}

/* 7. BOTTOM PRODUCT META GRID CARD (FULL WIDTH BAR) */

.product-meta-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ffffff !important;
    padding: 22px 30px !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    margin: 28px 0 !important;
    gap: 0 !important;
}

.product-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex: 1 !important;
    padding: 0 24px !important;
    border: none !important;
    border-right: 1px solid #f1f5f9 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-height: auto !important;
}

.product-meta-item:first-child {
    padding-left: 0 !important;
}

.product-meta-item:last-child {
    border-right: none !important;
    padding-right: 0 !important;
}

.product-meta-item:hover {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Green Icon Square */
.product-meta-icon {
    width: 44px !important;
    height: 44px !important;
    background-color: #65b32e !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.product-meta-icon i,
.product-meta-icon svg {
    color: #ffffff !important;
    font-size: 19px !important;
    width: 20px !important;
    height: 20px !important;
}

.product-meta-content {
    display: flex !important;
    flex-direction: column !important;
}

.product-meta-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 3px !important;
    display: block !important;
}

.product-meta-value {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    display: block !important;
}

/* Mobile responsive for meta grid card */
@media (max-width: 768px) {
    .product-meta-grid {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 20px !important;
    }
    .product-meta-item {
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 0 0 16px 0 !important;
    }
    .product-meta-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}

/* Remove empty UX Builder blocks */
.single-product .custom-product-page .col.large-7 .text:has(p:empty),
.single-product .custom-product-page .col.large-7 p:empty,
.single-product .custom-product-page .col.large-7 .text-block:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
