/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0.18
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* WooCommerce Product Technical Specifications Layout */
.product-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.product-description-content {
    flex: 1 1 550px;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.product-specs-content {
    flex: 0 1 350px;
    min-width: 300px;
}

.product-specs-sidebar {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-specs-header {
    background: #f5f5f5;
    padding: 12px 18px;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0 !important;
}

.product-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.product-specs-table tr:last-child {
    border-bottom: none;
}

.product-specs-table tr:nth-child(even) {
    background: #fafafa;
}

.product-specs-table td {
    padding: 12px 18px !important;
    font-size: 14px;
    line-height: 1.4;
    border-top: none !important;
    border-bottom: none !important;
}

.product-specs-table td.spec-label {
    font-weight: 500;
    color: #666666;
    width: 45%;
    text-align: left;
}

.product-specs-table td.spec-value {
    color: #111111;
    font-weight: 600;
    width: 55%;
    text-align: left;
}

@media only screen and (max-width: 768px) {
    .product-details-container {
        flex-direction: column;
    }
    .product-specs-content {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }
    .product-description-content {
        padding: 20px !important;
    }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* Custom WooCommerce Horizontal Filter Bar Styling */
.custom-horizontal-filter-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-bar-title {
    display: flex;
    flex-direction: column !important; /* Stack vertically */
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 800;
    font-size: 9px !important; /* Softer vertical text size */
    text-transform: uppercase;
    color: #4a5568;
    border-right: 1px solid #e2e8f0;
    padding-right: 12px;
    letter-spacing: 0.5px;
    height: 40px;
    line-height: 1 !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.filter-bar-title .filter-icon svg {
    color: #4a5568;
    vertical-align: middle;
    margin-right: 0 !important; /* Center the icon */
}

.filter-bar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    align-items: end;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

/* YITH Filter container overrides */
.custom-horizontal-filter-bar-wrapper .yith-wcan-filters {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: contents !important;
}

.custom-horizontal-filter-bar-wrapper .yith-wcan-filters .filters-container {
    padding: 0 !important;
    display: contents !important;
}

.custom-horizontal-filter-bar-wrapper .yith-wcan-filters .filters-container form {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-horizontal-filter-bar-wrapper .yith-wcan-filter,
.custom-horizontal-filter-bar-wrapper .custom-price-filter-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    min-width: 0 !important;
    width: 100% !important;
}

.custom-horizontal-filter-bar-wrapper .yith-wcan-filter .filter-title,
.custom-horizontal-filter-bar-wrapper .custom-price-filter-block .filter-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #718096 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.custom-horizontal-filter-bar-wrapper .yith-wcan-filter .filter-content,
.custom-horizontal-filter-bar-wrapper .custom-price-filter-block .filter-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Hide YITH original select elements since they are replaced by JS anchor dropdowns */
.custom-horizontal-filter-bar-wrapper select.filter-dropdown {
    display: none !important;
}

/* Custom Price Select element styling */
.custom-horizontal-filter-bar-wrapper select.custom-price-select {
    display: inline-block !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 4px !important;
    color: #2d3748 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 28px 8px 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    line-height: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%234a5568%22%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3%200.3%204.7%206%2010.4l5.7-5.7z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.custom-horizontal-filter-bar-wrapper select.custom-price-select:hover,
.custom-horizontal-filter-bar-wrapper select.custom-price-select:focus {
    border-color: #4a5568 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(74, 85, 104, 0.1) !important;
}

/* Global styling overrides for YITH dropdown anchor tag / div button */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown,
a.yit-wcan-select-open {
    display: inline-block !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 4px !important;
    color: #2d3748 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 30px 8px 12px !important; /* Extra padding on the right for arrow */
    min-width: 145px !important;
    max-width: 220px !important;
    height: 38px !important;
    line-height: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-decoration: none !important;
    text-align: left !important;
    position: relative !important;
}

/* Specific overrides to allow child popover menus to render outside the button bounds */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown {
    overflow: visible !important;
}

a.yit-wcan-select-open {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Custom premium drop-down arrow for YITH dropdown button */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown:after,
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown:before,
a.yit-wcan-select-open::after,
a.yit-wcan-select-open:after {
    display: none !important; /* hide default arrows */
    content: none !important;
}

/* Add custom premium drop-down arrow */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    right: 10px !important;
    top: calc(50% - 6px) !important; /* Center vertically (height is 12px) */
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%234a5568%22%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3%200.3%204.7%206%2010.4l5.7-5.7z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
    background-position: center !important;
    transition: transform 0.2s ease !important;
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown.open::after {
    transform: rotate(180deg) !important; /* Rotate arrow when open */
}

/* Ensure the legacy select anchor tag also uses the SVG arrow correctly */
a.yit-wcan-select-open {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%234a5568%22%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3%200.3%204.7%206%2010.4l5.7-5.7z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px !important;
}

/* Active states for dropdown button */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown:hover,
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown:focus,
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown.open,
a.yit-wcan-select-open:hover,
a.yit-wcan-select-open:focus,
a.yit-wcan-select-open.active {
    border-color: #4a5568 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(74, 85, 104, 0.1) !important;
    color: #1a202c !important;
}

/* Ensure the label inside yith-wcan-dropdown behaves nicely with ellipsis */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-label {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-right: 15px !important; /* Avoid overlapping the arrow */
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    line-height: 20px !important;
}

/* Style the YITH dropdown list wrapper globally */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper,
div.yith-wcan-select-wrapper {
    background: #ffffff !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 4px !important;
    padding: 10px 0 !important;
    min-width: 200px !important;
    width: max-content !important; /* Allow the menu to expand to fit its contents */
    max-width: 320px !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important; /* Expand to the right, do not force right: 0 */
    top: calc(100% + 4px) !important;
    overflow: hidden !important; /* Prevent scrollbar clipping issues outside the wrapper */
}

/* Style the matching items list inside the popover */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan {
    margin: 0 !important;
    padding: 0 12px 0 0 !important; /* Padding on right to separate scrollbar from text */
    list-style: none !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* Hide horizontal scrollbar completely */
    box-sizing: border-box !important;
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li a,
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li span,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li a,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li span {
    display: block !important;
    padding: 8px 15px !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: background 0.1s ease !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    white-space: nowrap !important; /* No word wrapping */
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li a:hover,
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li span:hover,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li a:hover,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li span:hover {
    background: #f7fafc !important;
    color: #1a202c !important;
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li.active a,
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items li.active span,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li.chosen a,
div.yith-wcan-select-wrapper ul.yith-wcan-select.yith-wcan li.chosen span {
    background: #edf2f7 !important;
    color: #2b6cb0 !important;
    font-weight: 600 !important;
}

/* Premium scrollbar styling for the filter options */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items::-webkit-scrollbar,
div.yith-wcan-select-wrapper::-webkit-scrollbar {
    width: 6px !important;
}
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items::-webkit-scrollbar-track,
div.yith-wcan-select-wrapper::-webkit-scrollbar-track {
    background: transparent !important;
}
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items::-webkit-scrollbar-thumb,
div.yith-wcan-select-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e0 !important;
    border-radius: 3px !important;
}
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .matching-items::-webkit-scrollbar-thumb:hover,
div.yith-wcan-select-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0 !important;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .custom-horizontal-filter-bar-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .filter-bar-title {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        padding-right: 0;
        padding-bottom: 10px;
        height: auto;
        line-height: 1;
    }
    
    .filter-bar-content,
    .custom-horizontal-filter-bar-wrapper .yith-wcan-filters .filters-container form {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .custom-horizontal-filter-bar-wrapper select.custom-price-select,
    .custom-horizontal-filter-bar-wrapper a.yit-wcan-select-open,
    .custom-horizontal-filter-bar-wrapper .yith-wcan-select-wrapper,
    .custom-horizontal-filter-bar-wrapper .yith-wcan-filter,
    .custom-price-filter-block,
    .custom-horizontal-filter-bar-wrapper .yith-wcan-dropdown,
    .custom-horizontal-filter-bar-wrapper .dropdown-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Hide default WooCommerce sorting dropdown */
.woocommerce-ordering {
    display: none !important;
}

/* Custom Star Rating Loop Styling */
.custom-rating-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    gap: 4px !important;
    margin: 5px 0 !important;
}
.custom-rating-wrapper .star-rating {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    width: 5.4em !important; /* 5 stars width limit */
}
.custom-rating-wrapper .star-rating::before,
.custom-rating-wrapper .star-rating span::before {
    color: #f5a623 !important;
}
.custom-rating-wrapper .custom-rating-count {
    color: #718096 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Hide product tabs navigation menu */
.product-tabs {
    display: none !important;
}

/* Hide product quick view completely (button + hover tool tray) */
a.quick-view,
.quick-view,
.product-small a.quick-view,
.box-image a.quick-view,
.image-tools a.quick-view,
.grid-tools a.quick-view,
.products .quick-view {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
}

/* Hide empty grid-tools bar if it only existed for Quick View */
.product-small .image-tools.grid-tools,
.products .box-image .image-tools.grid-tools {
    display: none !important;
}

/* Key Benefits Box - Product Summary */
.ravi-key-benefits-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 18px 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.ravi-benefits-title {
    background: linear-gradient(135deg, #7b1a1a 0%, #9b2626 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px;
}

.ravi-benefits-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}

.ravi-benefits-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 9px 16px !important;
    border-bottom: 1px solid #f0e8d8 !important;
    margin: 0 !important;
}

.ravi-benefits-list li:last-child {
    border-bottom: none !important;
}

.benefit-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: #7b1a1a;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    text-decoration: none !important;
}

.benefit-text {
    font-size: 13px;
    color: #1a202c !important;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    text-decoration: none !important;
}

/* Extra specificity to override Flatsome's inherited link/text colors */
.woocommerce div.product .ravi-key-benefits-box .ravi-benefits-list li .benefit-text,
.woocommerce div.product .ravi-key-benefits-box .ravi-benefits-list li span,
.ravi-benefits-list li .benefit-text {
    color: #1a202c !important;
    text-decoration: none !important;
}

.woocommerce div.product .ravi-key-benefits-box .ravi-benefits-list li .benefit-num,
.ravi-benefits-list li .benefit-num {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* Constrain single product main image height */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    max-height: 480px !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper img {
    max-height: 480px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Nav Menu Link Colors */
#main-menu a,
#main-menu > ul > li > a,
.header .nav a,
.nav-bar .nav a {
    color: #1a1a1a !important;
}

#main-menu a:hover,
#main-menu > ul > li > a:hover,
#main-menu > ul > li.current-menu-item > a,
#main-menu > ul > li.current-menu-parent > a {
    color: #7b1a1a !important;
}

/* Single Product Title */
.product-title.product_title,
h1.product_title,
.entry-title.product_title {
    color: var(--fs-color-primary, #7b1a1a) !important;
}

.custom-horizontal-filter-bar-wrapper .yith-wcan-filter .yith-wcan-dropdown,
.custom-horizontal-filter-bar-wrapper a.yit-wcan-select-open {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-right: 28px !important;
    padding-left: 10px !important;
}

/* Breadcrumb Colors */
.woocommerce-breadcrumb.breadcrumbs,
.woocommerce-breadcrumb.breadcrumbs a {
    color: #666666 !important;
}

.woocommerce-breadcrumb.breadcrumbs a:hover {
    color: #7b1a1a !important;
}

.single-product .product-info a,
.single-product .product_meta a,
.single-product .woocommerce-breadcrumb.breadcrumbs a {
    color: var(--fs-color-primary, #7b1a1a) !important;
}

.products .product-title a,
.products .product-title a:hover,
.products .product-title a:focus,
.products .box-text a:hover,
.products .box-text a:focus {
    color: var(--fs-color-primary, #7b1a1a) !important;
}

.products .box-text .category,
.products .box-text .product-cat {
    display: none !important;
}

/* Single Product: Keep title on one line */
/* Use fluid font size so long titles don't wrap on desktop */
.product-title.product_title,
h1.product_title,
.entry-title.product_title {
    font-size: clamp(20px, 2.4vw, 30px) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
    .product-title.product_title,
    h1.product_title,
    .entry-title.product_title {
        white-space: normal !important;
        font-size: clamp(20px, 5vw, 26px) !important;
    }
}

/* Single product consultation CTA */
.single-product form.cart .quantity,
.single-product form.cart .ux-quantity {
    display: none !important;
}

.single-product form.cart {
    display: block !important;
}

.single-product .single_add_to_cart_button.button,
.single-product .ravi-whatsapp-cta {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    text-transform: none !important;
}

.single-product .single_add_to_cart_button.button:hover,
.single-product .single_add_to_cart_button.button:focus,
.single-product .ravi-whatsapp-cta:hover,
.single-product .ravi-whatsapp-cta:focus {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

.single-product .product-share,
.single-product .share-icons {
    display: none !important;
}

.product_meta .posted_in {
    display: none !important;
}

.product_meta .ravi-consultation-note {
    border-top: 1px dotted #ddd;
    display: block;
    font-size: 13px;
    padding: 8px 0;
    color: #4a5568;
}

/* Homepage layout blocks */
.ravi-home-category-strip {
    background: #fff;
}

.ravi-home-section-kicker {
    color: #8b1a1a;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.ravi-home-category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;
}

.ravi-home-category-grid > br {
    display: none !important;
}

.ravi-home-hero {
    background: linear-gradient(115deg, #f9c9d5 0%, #ffe8ee 52%, #f5a9bd 100%);
    border-radius: 8px;
    overflow: hidden;
}

.ravi-home-hero h1,
.ravi-home-promo h2 {
    color: #111;
    letter-spacing: 0;
}

.ravi-home-circle {
    background: #fff;
    border: 1px solid #eadfe2;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(34, 20, 24, .055);
    color: #111 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ravi-home-circle:hover,
.ravi-home-circle:focus {
    border-color: #d8b8c0;
    box-shadow: 0 16px 34px rgba(34, 20, 24, .09);
    color: #8b1a1a !important;
    transform: translateY(-2px);
}

.ravi-home-circle img {
    aspect-ratio: 4 / 3;
    display: block;
    flex: 0 0 auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.ravi-home-circle span {
    align-items: center;
    color: inherit;
    display: flex;
    flex: 0 0 56px;
    font-size: 13px;
    font-weight: 800;
    justify-content: flex-start;
    line-height: 1.25;
    padding: 12px 12px 14px;
}

@media (max-width: 900px) {
    .ravi-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ravi-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ravi-home-circle span {
        flex-basis: 52px;
        font-size: 12px;
        padding: 10px 10px 12px;
    }
}

.home .products .product-small {
    margin-bottom: 28px;
}

.home .products .product-small .col-inner,
.home .products .product-small .product-small.box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home .products .box-image {
    background: #f8f5f3;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.home .products .box-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 132px;
    padding-bottom: 12px;
}

.home .products .box-text-products .title-wrapper {
    flex: 0 0 40px;
    height: 40px;
    margin-bottom: 7px;
    overflow: hidden;
}

.home .products .box-text-products .product-title {
    display: -webkit-box !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    min-height: 0;
    max-height: 40px;
    overflow: hidden !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
}

.home .products .box-text-products .product-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home .products .box-text-products .price-wrapper {
    align-items: center;
    display: flex !important;
    flex: 0 0 42px;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: auto;
    min-height: 42px;
}

.home .products .box-text-products .custom-rating-wrapper {
    justify-content: center;
    margin: 0 0 5px !important;
    min-height: 18px;
    width: 100%;
}

.home .products .box-text-products .price {
    display: block;
    line-height: 1.25;
    margin: 0;
    min-height: 18px;
    text-align: center;
}

.ravi-knowledge-hub {
    margin: 0 auto;
    max-width: 1160px;
    padding: 46px 22px 72px;
}

.ravi-knowledge-hub h1 {
    color: #202938;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 14px;
}

.ravi-knowledge-lede {
    color: #647080;
    font-size: 17px;
    line-height: 1.62;
    margin: 0 0 30px;
    max-width: 820px;
}

.ravi-knowledge-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ravi-knowledge-card {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .045);
    color: #202938 !important;
    display: block;
    min-height: 150px;
    padding: 20px;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ravi-knowledge-card:hover,
.ravi-knowledge-card:focus {
    border-color: #7b1a1a;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .08);
    transform: translateY(-2px);
}

.ravi-knowledge-card span {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 10px;
}

.ravi-knowledge-card small {
    color: #66717f;
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 849px) {
    .ravi-knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ravi-knowledge-hub {
        padding: 34px 16px 56px;
    }

    .ravi-knowledge-grid {
        grid-template-columns: 1fr;
    }
}

.ravi-home-promo {
    background: linear-gradient(115deg, #f8b9c8 0%, #ffe5ec 100%);
    border-radius: 8px;
}

.ravi-home-media-logo {
    color: #111;
    display: inline-block;
    font-family: Georgia, serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    margin: 0 20px 12px;
}


/* =====================================================================
   CONSISTENT 2-COLUMN PRODUCT LAYOUT
   Flatsome's "col large-6" only activates the side-by-side columns at
   ≥ 1024 px. Below that breakpoint both columns stack to full width,
   making some product pages look different from others depending on the
   viewport size.  The rules below force every single-product page to
   always show gallery on the LEFT (50 %) and summary on the RIGHT (50 %)
   for any screen width ≥ 640 px (tablet and above).
   ===================================================================== */
@media (min-width: 640px) {

    /* Keep the row as a non-wrapping flex row */
    .woocommerce .product-main > .row.content-row,
    .woocommerce-page .product-main > .row.content-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }

    /* Gallery column: fixed 50 % width */
    .woocommerce .product-main .product-gallery.col,
    .woocommerce-page .product-main .product-gallery.col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        box-sizing: border-box !important;
    }

    /* Summary column: fill the remaining 50 % */
    .woocommerce .product-main .product-info.summary,
    .woocommerce-page .product-main .product-info.summary {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
    }

    /* Hide the optional sidebar so the summary always gets the full 50 % */
    .woocommerce .product-main #product-sidebar,
    .woocommerce-page .product-main #product-sidebar {
        display: none !important;
    }
}

/* =====================================================================
   RAVI HAIR — EDITORIAL SINGLE PRODUCT
   Inspired by a clean article layout: strong headline, card-based content,
   consultation sidebar, long-form guide, and a full-width inquiry panel.
   ===================================================================== */
.single-product #main {
    background: #f3f6fa;
}

.single-product .shop-page-title,
.single-product .product-main,
.single-product .product-footer,
.single-product .related-products-wrapper {
    display: none !important;
}

.ravi-single-product {
    --ravi-accent: #842321;
    --ravi-accent-strong: #6f1c1b;
    --ravi-heading: var(--fs-color-primary, #8b1a1a);
    --ravi-text: #000000;
    --ravi-muted: #667085;
    --ravi-soft-muted: #7b8491;
    color: var(--ravi-text);
    font-family: Lato, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 34px 0 88px;
}

.ravi-single-product h1,
.ravi-single-product h2,
.ravi-single-product h3,
.ravi-single-product h4,
.ravi-single-product p,
.ravi-single-product li,
.ravi-single-product a,
.ravi-single-product button,
.ravi-single-product input,
.ravi-single-product textarea {
    font-family: Lato, sans-serif;
}

.ravi-product-shell {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 24px;
}

.ravi-breadcrumb {
    align-items: center;
    color: var(--ravi-soft-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 7px;
    margin: 0 0 22px;
}

.ravi-breadcrumb a {
    color: var(--ravi-soft-muted) !important;
    text-decoration: none;
}

.ravi-breadcrumb a:hover,
.ravi-breadcrumb a:focus {
    color: var(--ravi-accent) !important;
}

.ravi-product-hero {
    max-width: 900px;
    padding: 0 0 28px;
}

.ravi-eyebrow {
    color: var(--ravi-accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.ravi-product-hero h1 {
    color: var(--ravi-heading) !important;
    font-size: 31px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.16 !important;
    margin: 0 0 15px !important;
    max-width: 980px;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.ravi-product-deck {
    color: var(--ravi-text);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 760px;
}

.ravi-product-grid {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .92fr);
}

.ravi-card {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(31, 41, 55, .035);
}

.ravi-product-overview {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
    padding: 28px;
}

.ravi-main-image-wrap {
    aspect-ratio: 4 / 5;
    background: #f4f2ef;
    border-radius: 11px;
    overflow: hidden;
}

.ravi-main-image {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity .18s ease;
    width: 100%;
}

.ravi-thumbnails {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}

.ravi-thumb {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    overflow: hidden;
    padding: 0;
    transition: border-color .18s ease, transform .18s ease;
}

.ravi-thumb:hover,
.ravi-thumb:focus,
.ravi-thumb.is-active {
    border-color: var(--ravi-accent);
    outline: none;
    transform: translateY(-1px);
}

.ravi-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ravi-product-summary {
    align-self: center;
}

.ravi-summary-topline {
    align-items: center;
    border-bottom: 1px solid #eceff3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 18px;
}

.ravi-rating {
    color: var(--ravi-accent-strong);
    font-size: 13px;
    font-weight: 700;
}

.ravi-price,
.ravi-price .amount {
    color: var(--ravi-heading);
    font-size: 18px;
    font-weight: 700;
}

.ravi-product-summary h2,
.ravi-product-sidebar h2,
.ravi-product-content h2,
.ravi-specs-card h2,
.ravi-contact-panel h2 {
    color: var(--ravi-heading);
    font-weight: 700;
    letter-spacing: 0;
}

.ravi-product-summary h2 {
    font-size: 25px;
    line-height: 1.18;
    margin: 0 0 17px;
}

.ravi-benefits {
    counter-reset: ravi-benefit;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.ravi-benefits li {
    align-items: flex-start;
    border-bottom: 1px solid #eef1f4;
    display: grid;
    font-size: 14px;
    gap: 11px;
    grid-template-columns: 26px 1fr;
    line-height: 1.45;
    margin: 0;
    padding: 10px 0;
    color: var(--ravi-text);
}

.ravi-benefits li::before {
    align-items: center;
    background: var(--ravi-accent);
    border-radius: 999px;
    color: #fff;
    content: counter(ravi-benefit);
    counter-increment: ravi-benefit;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    height: 23px;
    justify-content: center;
    width: 23px;
}

.ravi-primary-cta,
.ravi-sidebar-cta {
    background: var(--ravi-accent) !important;
    border: 1px solid var(--ravi-accent) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    min-height: 48px;
    padding: 14px 20px !important;
    text-align: center;
    text-transform: none !important;
}

.ravi-primary-cta {
    display: block !important;
    width: 100%;
}

.ravi-primary-cta:hover,
.ravi-primary-cta:focus,
.ravi-sidebar-cta:hover,
.ravi-sidebar-cta:focus {
    background: var(--ravi-accent-strong) !important;
    border-color: var(--ravi-accent-strong) !important;
    color: #fff !important;
}

.ravi-microcopy {
    color: var(--ravi-soft-muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 10px 0 0;
    text-align: center;
}

.ravi-product-sidebar {
    overflow: hidden;
    position: sticky;
    top: 92px;
}

.ravi-product-sidebar > section {
    padding: 28px;
}

.ravi-product-sidebar > section + section {
    border-top: 1px solid #e8ebef;
}

.ravi-product-sidebar h2 {
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 14px;
}

.ravi-product-sidebar p:not(.ravi-eyebrow) {
    color: var(--ravi-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ravi-sidebar-cta {
    display: block !important;
    width: 100%;
}

.ravi-related-links h3 {
    color: var(--ravi-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.ravi-related-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ravi-related-links li {
    border-bottom: 1px solid #eef1f4;
    margin: 0;
    padding: 10px 0;
}

.ravi-related-links li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ravi-related-links a {
    color: var(--ravi-text) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.ravi-related-links a:hover,
.ravi-related-links a:focus {
    color: var(--ravi-accent) !important;
}

.ravi-product-content {
    margin-top: 30px;
    padding: 42px 48px;
}

.ravi-specs-card {
    margin-top: 30px;
    padding: 42px 48px;
}

.ravi-specs-heading {
    margin-bottom: 24px;
}

.ravi-specs-table-wrap {
    border: 1px solid #e6eaee;
    border-radius: 12px;
    overflow: hidden;
}

.ravi-specs-table {
    border-collapse: collapse;
    color: var(--ravi-text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 !important;
    width: 100%;
}

.ravi-specs-table tr {
    border-bottom: 1px solid #e8edf2;
}

.ravi-specs-table tr:last-child {
    border-bottom: 0;
}

.ravi-specs-table th,
.ravi-specs-table td {
    border: 0 !important;
    padding: 14px 18px !important;
    text-align: left;
    vertical-align: top;
}

.ravi-specs-table th {
    background: #f8fafc;
    color: #000000;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    width: 32%;
}

.ravi-specs-table td {
    background: #fff;
    color: var(--ravi-text);
    font-weight: 400;
}

.ravi-content-heading {
    border-bottom: 1px solid #e7eaee;
    margin-bottom: 28px;
    padding-bottom: 22px;
}

.ravi-product-content h2,
.ravi-specs-card h2,
.ravi-contact-panel h2 {
    font-size: 32px;
    line-height: 1.12;
    margin: 0;
}

.ravi-prose {
    color: var(--ravi-text);
    font-size: 16px;
    line-height: 1.72;
    margin: 0 auto;
    max-width: 920px;
}

.ravi-prose > :first-child {
    margin-top: 0;
}

.ravi-prose h1,
.ravi-prose h2,
.ravi-prose h3,
.ravi-prose h4 {
    color: var(--ravi-heading) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
}

.ravi-prose h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
}

.ravi-prose h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 36px 0 13px;
}

.ravi-prose h3 {
    font-size: 21px;
    margin: 28px 0 10px;
}

.ravi-prose a {
    color: var(--ravi-accent) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ravi-prose table {
    border: 1px solid #dfe4ea;
    border-collapse: separate;
    border-radius: 10px;
    border-spacing: 0;
    display: table;
    font-size: 14px;
    margin: 20px 0 32px;
    overflow: hidden;
    width: 100%;
}

.ravi-prose th,
.ravi-prose td {
    border-bottom: 1px solid #e6eaee;
    border-right: 1px solid #e6eaee;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.ravi-prose tr:last-child td,
.ravi-prose tr:last-child th {
    border-bottom: 0;
}

.ravi-prose td:last-child,
.ravi-prose th:last-child {
    border-right: 0;
}

.ravi-prose tr:nth-child(even) {
    background: #f8fafc;
}

.ravi-contact-panel {
    display: grid;
    gap: 58px;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    margin-top: 30px;
    padding: 48px;
}

.ravi-inquiry-form {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

.ravi-inquiry-form label {
    margin: 0;
}

.ravi-inquiry-form label span {
    display: block;
    font-size: 0;
}

.ravi-inquiry-form input,
.ravi-inquiry-form textarea {
    background: #f4f6f9;
    border: 1px solid #dce2e8;
    border-radius: 7px;
    box-shadow: none;
    color: var(--ravi-heading);
    font-size: 14px;
    margin: 0;
    min-height: 48px;
    padding: 12px 14px;
    width: 100%;
}

.ravi-inquiry-form textarea {
    min-height: 111px;
    resize: vertical;
}

.ravi-inquiry-form label:nth-child(4),
.ravi-inquiry-form .ravi-primary-cta,
.ravi-form-status {
    grid-column: 1 / -1;
}

.ravi-inquiry-form input:focus,
.ravi-inquiry-form textarea:focus {
    background: #fff;
    border-color: var(--ravi-accent);
    box-shadow: 0 0 0 3px rgba(132, 35, 33, .1);
    outline: none;
}

.ravi-form-status {
    color: var(--ravi-muted);
    font-size: 12px;
    margin: -3px 0 0;
    min-height: 18px;
}

.ravi-contact-copy {
    border-left: 1px solid #e5e9ed;
    padding-left: 48px;
}

.ravi-contact-copy p:not(.ravi-eyebrow),
.ravi-contact-copy li {
    color: #000000;
    font-size: 15px;
    line-height: 1.65;
}

.ravi-contact-panel h2 {
    color: #000000;
}

.ravi-contact-copy ul {
    margin: 20px 0 0 20px;
}

@media (max-width: 1024px) {
    .ravi-product-grid {
        grid-template-columns: 1fr;
    }

    .ravi-product-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: static;
    }

    .ravi-product-sidebar > section + section {
        border-left: 1px solid #e8ebef;
        border-top: 0;
    }
}

@media (max-width: 760px) {
    .ravi-single-product {
        padding: 24px 0 60px;
    }

    .ravi-product-shell {
        padding: 0 15px;
    }

    .ravi-product-hero h1 {
        font-size: 28px !important;
    }

    .ravi-product-deck {
        font-size: 15px;
    }

    .ravi-product-overview {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ravi-main-image-wrap {
        aspect-ratio: 4 / 4.6;
    }

    .ravi-product-sidebar {
        display: block;
    }

    .ravi-product-sidebar > section + section {
        border-left: 0;
        border-top: 1px solid #e8ebef;
    }

    .ravi-product-content,
    .ravi-specs-card,
    .ravi-contact-panel {
        padding: 28px 20px;
    }

    .ravi-specs-table-wrap {
        border-radius: 10px;
    }

    .ravi-specs-table,
    .ravi-specs-table tbody,
    .ravi-specs-table tr,
    .ravi-specs-table th,
    .ravi-specs-table td {
        display: block;
        width: 100%;
    }

    .ravi-specs-table th {
        padding-bottom: 4px !important;
    }

    .ravi-specs-table td {
        padding-top: 4px !important;
    }

    .ravi-product-content h2,
    .ravi-specs-card h2,
    .ravi-contact-panel h2 {
        font-size: 27px;
    }

    .ravi-prose {
        font-size: 15px;
    }

    .ravi-prose table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    .ravi-contact-panel {
        gap: 35px;
        grid-template-columns: 1fr;
    }

    .ravi-inquiry-form {
        grid-template-columns: 1fr;
    }

    .ravi-inquiry-form label,
    .ravi-inquiry-form .ravi-primary-cta,
    .ravi-form-status {
        grid-column: 1;
    }

    .ravi-contact-copy {
        border-left: 0;
        border-top: 1px solid #e5e9ed;
        padding-left: 0;
        padding-top: 32px;
    }
}

/* =====================================================================
   RAVI HAIR — EDITORIAL SINGLE POST
   Reuses the single-product visual system for long-form journal content.
   ===================================================================== */
.single-post #main,
.ravi-post-main {
    background: #f3f6fa;
}

.ravi-single-post {
    --ravi-heading: var(--fs-color-primary, #8b1a1a);
    --ravi-text: #000000;
    color: var(--ravi-text);
    padding: 34px 0 88px;
}

.ravi-post-hero {
    max-width: 940px;
}

.ravi-post-grid {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .92fr);
}

.ravi-post-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 38px 42px;
}

.ravi-post-featured-image {
    border-radius: 11px;
    margin: 0 0 30px;
    overflow: hidden;
}

.ravi-post-featured-image img {
    display: block;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    width: 100%;
}

.ravi-post-toc {
    background: #f7f8fa;
    border: 1px solid #e1e6eb;
    border-radius: 11px;
    margin: 0 0 32px;
    padding: 24px 26px;
}

.ravi-post-toc h2 {
    color: var(--ravi-heading);
    font-size: 24px;
    letter-spacing: -.02em;
    margin: 0 0 13px;
}

.ravi-post-toc ol {
    margin: 0;
    padding-left: 20px;
}

.ravi-post-toc li {
    color: #7b1a1a;
    font-size: 14px;
    line-height: 1.45;
    margin: 7px 0;
    padding-left: 4px;
}

.ravi-post-toc .ravi-toc-level-3 {
    margin-left: 18px;
}

.ravi-post-toc a,
.ravi-text-link {
    color: #4d5664 !important;
    font-weight: 600;
}

.ravi-post-toc a:hover,
.ravi-post-toc a:focus,
.ravi-text-link:hover,
.ravi-text-link:focus {
    color: #7b1a1a !important;
}

.ravi-article-prose {
    max-width: none;
}

.ravi-article-prose > p:first-child {
    color: var(--ravi-text);
    font-size: 17px;
    line-height: 1.72;
}

.ravi-article-prose blockquote {
    background: #f7f8fa;
    border-left: 4px solid #7b1a1a;
    color: var(--ravi-text);
    font-size: 18px;
    margin: 28px 0;
    padding: 20px 24px;
}

.ravi-article-prose img {
    border-radius: 9px;
    height: auto;
    margin: 10px 0 22px;
    max-width: 100%;
}

.ravi-post-meta {
    border-top: 1px solid #e5e9ed;
    color: #7b8491;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 19px;
}

.ravi-post-sidebar {
    position: sticky;
    top: 92px;
}

.ravi-related-empty {
    color: #717b89;
    font-size: 13px !important;
    margin: 0 0 10px !important;
}

.ravi-post-contact {
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .ravi-post-grid {
        grid-template-columns: 1fr;
    }

    .ravi-post-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: static;
    }
}

@media (max-width: 760px) {
    .ravi-single-post {
        padding: 24px 0 60px;
    }

    .ravi-post-content {
        padding: 26px 20px;
    }

    .ravi-post-sidebar {
        display: block;
    }

    .ravi-post-toc {
        padding: 20px;
    }

    .ravi-post-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Global Main Content Headings Color Override to match design system */
#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6,
#main h1 a,
#main h2 a,
#main h3 a,
#main h4 a,
#main h5 a,
#main h6 a {
    color: #8b1a1a !important;
}

/* Reduce large vertical gaps between category sections on the homepage */
.home .section:not(.ravi-home-hero):not(.ravi-home-promo):not(.ravi-home-trust) {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
.home .section:not(.ravi-home-hero):not(.ravi-home-promo):not(.ravi-home-trust) .row {
    margin-bottom: 0 !important;
}

/* Make default template text pages narrower and style them as cards matching post layout (excluding homepage) */
.page-template-default.page:not(.home) #main {
    background: #f3f6fa;
}

.page-template-default.page:not(.home) #content.page-wrapper {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-template-default.page:not(.home) #content.page-wrapper .row-main {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.page-template-default.page:not(.home) #content.page-wrapper .col-inner {
    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(31, 41, 55, .035);
    padding: 42px 46px;
}

/* Adjust padding for mobile screens */
@media (max-width: 760px) {
    .page-template-default.page:not(.home) #content.page-wrapper {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .page-template-default.page:not(.home) #content.page-wrapper .col-inner {
        padding: 30px 20px;
        border-radius: 12px;
    }
}

/* =============================================
   RAVI HAIR — FOOTER DESIGN SYSTEM
   Targets the actual markup structure:
   <strong> for headings, <p> for nav text.
   ============================================= */

/* Column headings: accent red, uppercase, compact */
#footer .col-inner > strong,
#footer .col-inner [style*="border-left"] > strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0392b;
    margin-bottom: 14px;
}

/* Nav/body paragraph text */
#footer p,
#footer .col-inner p {
    font-size: 13px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 12px;
}

/* Links inside footer paragraphs */
#footer p a,
#footer .col-inner p a {
    color: rgba(255, 255, 255, 0.60) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

#footer p a:hover,
#footer .col-inner p a:hover {
    color: #ffffff !important;
}

/* Bold labels inside paragraphs (e.g. WhatsApp:) */
#footer p strong,
#footer .col-inner p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    font-size: inherit;
    display: inline;
    margin-bottom: 0;
}

/* Right column divider */
#footer .col-inner [style*="border-left"] {
    border-left-color: rgba(255, 255, 255, 0.14) !important;
    padding-left: 32px !important;
}

/* Mobile: remove left border divider */
@media (max-width: 767px) {
    #footer .col-inner [style*="border-left"] {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 32px;
    }
}

/* RAVI_DESKTOP_PROSE_JUSTIFY_START */
@media screen and (min-width: 1024px) {
    body.single-post .ravi-article-prose {
        text-align: justify;
        text-justify: inter-word;
    }

    body.single-post .ravi-article-prose .tocer {
        text-align: start;
    }

    body.single-post .ravi-article-prose h1,
    body.single-post .ravi-article-prose h2,
    body.single-post .ravi-article-prose h3,
    body.single-post .ravi-article-prose h4,
    body.single-post .ravi-article-prose h5,
    body.single-post .ravi-article-prose h6 {
        text-align: left;
    }
}
/* RAVI_DESKTOP_PROSE_JUSTIFY_END */

/* RAVI_POST_CONTENT_OVERFLOW_GUARD_START */
body.single-post .ravi-post-grid > *,
body.single-post .ravi-post-content,
body.single-post .ravi-article-prose {
    box-sizing: border-box;
    min-width: 0;
}

body.single-post .ravi-article-prose {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    width: 100%;
}

body.single-post .ravi-article-prose > * {
    max-width: 100%;
}
/* RAVI_POST_CONTENT_OVERFLOW_GUARD_END */

/* Homepage — Hair Knowledge & Buyer Guides
   Matches home product card rhythm: Lato, equal columns, fixed image + body clamp */
.ravi-home-knowledge {
    background: #ffffff;
    font-family: Lato, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ravi-home-knowledge,
.ravi-home-knowledge h2,
.ravi-home-knowledge h3,
.ravi-home-knowledge p,
.ravi-home-knowledge a,
.ravi-home-knowledge .button {
    font-family: Lato, sans-serif !important;
}

.ravi-home-knowledge .ravi-home-section-kicker {
    color: #8b1a1a;
    display: block;
    font-family: Lato, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ravi-home-knowledge h2,
.ravi-home-knowledge .ravi-home-knowledge__heading {
    color: #111 !important;
    font-family: Lato, sans-serif !important;
    font-size: clamp(26px, 3.2vw, 34px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
    text-transform: none !important;
}

.ravi-home-knowledge h2 strong,
.ravi-home-knowledge .ravi-home-knowledge__heading strong {
    color: inherit;
    font-weight: 800;
}

.ravi-home-knowledge__lede {
    color: #5c6670;
    font-family: Lato, sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.7 !important;
    margin: 0 auto 22px !important;
    max-width: 760px;
}

/* Equal-height 4-up grid */
.ravi-home-guides {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;
}

.ravi-home-guides__card {
    background: #fff;
    border: 1px solid #eadfe2;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(34, 20, 24, .045);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ravi-home-guides__card:hover {
    border-color: #d8b8c0;
    box-shadow: 0 16px 34px rgba(34, 20, 24, .09);
    transform: translateY(-2px);
}

.ravi-home-guides__media {
    background: #f8f5f3;
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    overflow: hidden;
    width: 100%;
}

.ravi-home-guides__img {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.ravi-home-guides__img--placeholder {
    background: linear-gradient(135deg, #f3e6e9 0%, #f8f5f3 100%);
    min-height: 0;
}

.ravi-home-guides__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 132px;
    padding: 14px 14px 16px;
}

.ravi-home-guides__title {
    font-family: Lato, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
    min-height: 38px;
    text-transform: none !important;
}

.ravi-home-guides__title a {
    color: #111 !important;
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ravi-home-guides__title a:hover,
.ravi-home-guides__title a:focus {
    color: #8b1a1a !important;
}

.ravi-home-guides__meta { display: none !important; /* publish date removed */
    /* keep rule for safety */
    color: #8b1a1a;
    font-family: Lato, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.3;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ravi-home-guides__excerpt {
    color: #667085 !important;
    display: -webkit-box;
    flex: 1 1 auto;
    font-family: Lato, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    margin: 6px 0 12px !important;
    min-height: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ravi-home-guides__more {
    color: #8b1a1a !important;
    display: inline-block;
    font-family: Lato, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    line-height: 1.2;
    margin-top: auto;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ravi-home-guides__more:hover,
.ravi-home-guides__more:focus {
    color: #6f1414 !important;
    text-decoration: underline !important;
}

.ravi-home-knowledge .button.primary.is-outline,
.ravi-home-knowledge__cta {
    border-color: #8b1a1a !important;
    color: #8b1a1a !important;
    font-family: Lato, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    margin-top: 18px;
    text-transform: uppercase;
}

.ravi-home-knowledge .button.primary.is-outline:hover {
    background: #8b1a1a !important;
    color: #fff !important;
}

@media (max-width: 999px) {
    .ravi-home-guides {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 549px) {
    .ravi-home-knowledge h2,
    .ravi-home-knowledge .ravi-home-knowledge__heading {
        font-size: 24px !important;
    }

    .ravi-home-knowledge__lede {
        font-size: 15px !important;
    }

    .ravi-home-guides {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ravi-home-guides__body {
        min-height: 150px;
        padding: 12px 10px 14px;
    }

    .ravi-home-guides__title {
        font-size: 13px !important;
        min-height: 36px;
    }
}

/* Vietnamese review gallery — 2-col equal rows, full chat text readable */
.page-id-3509 .entry-content .gallery,
.postid-3509 .entry-content .gallery,
.page-id-3509 .gallery,
.page-id-3509 .gallery-columns-2,
.page-id-3509 .gallery-columns-3,
.page-id-3509 .gallery-columns-4 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    align-items: stretch !important;
    gap: 28px 24px !important;
    margin: 28px auto 48px !important;
    width: 100% !important;
    max-width: 980px !important;
    clear: both !important;
}

/* Kill WP float column model completely */
.page-id-3509 .gallery .gallery-item,
.page-id-3509 .gallery-item {
    float: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100%;
    background: #fff;
    border: 1px solid #eadfe2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(34, 20, 24, 0.05);
    box-sizing: border-box !important;
    text-align: left !important;
}

/* Fixed media frame so every card in a row lines up */
.page-id-3509 .gallery-item .gallery-icon {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 10px 10px 0 !important;
    width: 100% !important;
    height: 520px !important;
    max-height: 520px !important;
    min-height: 520px !important;
    line-height: 0 !important;
    background: #f3eef0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.page-id-3509 .gallery-item .gallery-icon a {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 0 !important;
}

/* Full screenshot visible inside fixed frame (no crop of chat text) */
.page-id-3509 .gallery-item img,
.page-id-3509 .gallery-item .gallery-icon img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: top center !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* Caption band same height — keeps bottoms aligned */
.page-id-3509 .gallery-item .gallery-caption,
.page-id-3509 .gallery-caption {
    display: flex !important;
    align-items: flex-start !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 14px 16px 16px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    color: #1a1a1a !important;
    font-family: Lato, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    background: #fff !important;
}

.page-id-3509 .gallery br.clear,
.page-id-3509 .gallery br {
    display: none !important;
}

@media (max-width: 900px) {
    .page-id-3509 .gallery-item .gallery-icon {
        height: 440px !important;
        max-height: 440px !important;
        min-height: 440px !important;
    }
}

@media (max-width: 640px) {
    .page-id-3509 .entry-content .gallery,
    .page-id-3509 .gallery,
    .page-id-3509 .gallery-columns-2,
    .page-id-3509 .gallery-columns-3,
    .page-id-3509 .gallery-columns-4 {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        max-width: 480px !important;
    }

    .page-id-3509 .gallery-item .gallery-icon {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        padding: 8px 8px 0 !important;
    }

    .page-id-3509 .gallery-item img,
    .page-id-3509 .gallery-item .gallery-icon img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* RAVI header nav fix — one stable row (load + sticky scroll) */
@media (min-width: 850px) {
    .header-main .header-inner {
        align-items: center !important;
        flex-wrap: nowrap !important;
        max-width: 1280px;
        min-height: 70px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-main #logo,
    .header-main .logo,
    .header-main .logo a,
    .header-main .logo img {
        max-height: 42px !important;
        width: auto !important;
    }

    /* Keep primary nav on a single horizontal row always */
    .header-nav-main,
    .header.has-sticky .header-nav-main,
    .header.has-sticky.stuck .header-nav-main,
    .sticky-jump .stuck .header-nav-main,
    .header-wrapper.stuck .header-nav-main {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 2px;
        max-width: 100%;
        overflow: visible;
    }

    .header-nav-main > li {
        float: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .header-nav-main > li > a.nav-top-link {
        display: inline-flex !important;
        align-items: center !important;
        color: #1a1a1a !important;
        font-size: 14px !important;
        font-weight: 650 !important;
        letter-spacing: 0.01em;
        line-height: 1.15 !important;
        min-height: 0 !important;
        height: auto !important;
        max-width: none !important;
        padding: 10px 9px !important;
        text-transform: none !important;
        white-space: nowrap !important;
        word-break: normal !important;
    }

    .header-nav-main > li > a.nav-top-link:hover,
    .header-nav-main > li.current-menu-item > a.nav-top-link,
    .header-nav-main > li.current-menu-parent > a.nav-top-link,
    .header-nav-main > li.current-product_cat-ancestor > a.nav-top-link {
        color: #7b1a1a !important;
    }

    /* Sticky / stuck: same single-row rules, no tall double band */
    .header.has-sticky.stuck .header-main,
    .sticky-jump .header-wrapper.stuck .header-main,
    .header-wrapper.stuck .header-main {
        min-height: 64px !important;
    }

    .header.has-sticky.stuck .header-nav-main > li > a.nav-top-link,
    .sticky-jump .stuck .header-nav-main > li > a.nav-top-link,
    .header-wrapper.stuck .header-nav-main > li > a.nav-top-link {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    /* Prevent sticky placeholder creating a huge empty gap look */
    .sticky-jump .header-wrapper:not(.stuck) + .header-wrapper,
    .sticky-jump .stuck + .header-wrapper {
        /* no-op guard */
    }

    .header-nav-main > li.has-dropdown > .nav-dropdown,
    .header-nav-main > li.menu-item-has-children > .nav-dropdown {
        border-color: #e4e7eb;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 16px 34px rgba(20, 25, 32, 0.12);
        padding: 10px 0;
    }

    .header-nav-main > li.has-dropdown > .nav-dropdown > li > a,
    .header-nav-main > li.menu-item-has-children > .nav-dropdown > li > a {
        color: #414852;
        font-size: 12px;
        padding: 8px 18px;
        text-transform: none;
        white-space: normal;
    }
}

@media (min-width: 850px) and (max-width: 1100px) {
    .header-nav-main > li > a.nav-top-link {
        font-size: 13px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .header-main .logo a,
    .header-main .logo img {
        max-height: 36px !important;
    }
}

/* RAVI header nav size bump — larger labels after removing Hair Texture */
@media (min-width: 850px) {
    .header-nav-main > li > a.nav-top-link {
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
        padding: 12px 12px !important;
    }

    .header-main .header-inner {
        min-height: 74px;
    }

    .header-main #logo,
    .header-main .logo a,
    .header-main .logo img {
        max-height: 46px !important;
    }
}

@media (min-width: 850px) and (max-width: 1100px) {
    .header-nav-main > li > a.nav-top-link {
        font-size: 13px !important;
        padding: 10px 9px !important;
    }
}

/* RAVI product archive grid fix — no giant blank gaps between rows */
.tax-product_cat .products.row,
.post-type-archive-product .products.row,
.woocommerce.archive .products.row {
    align-items: stretch;
}

.tax-product_cat .products .product-small,
.post-type-archive-product .products .product-small,
.woocommerce.archive .products .product-small {
    margin-bottom: 24px !important;
    display: flex;
}

.tax-product_cat .products .product-small > .col-inner,
.post-type-archive-product .products .product-small > .col-inner,
.woocommerce.archive .products .product-small > .col-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
}

.tax-product_cat .products .product-small .box,
.post-type-archive-product .products .product-small .box,
.woocommerce.archive .products .product-small .box {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
}

/* Lock image frame to square — never stretch into a white tower */
.tax-product_cat .products .box-image,
.post-type-archive-product .products .box-image,
.woocommerce.archive .products .box-image {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 10px !important;
    overflow: hidden !important;
    background: #f3f1f0 !important;
    border-radius: 4px;
}

.tax-product_cat .products .box-image .image-fade_in_back,
.tax-product_cat .products .box-image .image-tools,
.post-type-archive-product .products .box-image .image-fade_in_back,
.woocommerce.archive .products .box-image .image-fade_in_back {
    height: 100% !important;
}

.tax-product_cat .products .box-image a,
.post-type-archive-product .products .box-image a,
.woocommerce.archive .products .box-image a {
    display: block !important;
    height: 100% !important;
    line-height: 0 !important;
}

.tax-product_cat .products .box-image img,
.post-type-archive-product .products .box-image img,
.woocommerce.archive .products .box-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
}

/* Hover back-image must stay absolute so it never adds height */
.tax-product_cat .products .box-image img.back-image,
.tax-product_cat .products .box-image img.show-on-hover,
.post-type-archive-product .products .box-image img.back-image,
.woocommerce.archive .products .box-image img.back-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.tax-product_cat .products .box-text,
.post-type-archive-product .products .box-text,
.woocommerce.archive .products .box-text {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-bottom: 8px !important;
}

.tax-product_cat .products .box-text-products .title-wrapper,
.post-type-archive-product .products .box-text-products .title-wrapper,
.woocommerce.archive .products .box-text-products .title-wrapper {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 40px;
    max-height: none;
    margin-bottom: 6px !important;
    overflow: hidden !important;
}

.tax-product_cat .products .box-text-products .product-title,
.post-type-archive-product .products .box-text-products .product-title,
.woocommerce.archive .products .box-text-products .product-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
    max-height: none !important;
    margin: 0 !important;
}

.tax-product_cat .products .box-text-products .price-wrapper,
.post-type-archive-product .products .box-text-products .price-wrapper,
.woocommerce.archive .products .box-text-products .price-wrapper {
    margin-top: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
}

/* Kill global min-heights that inflate empty cards on archives */
.tax-product_cat .products .box-text,
.post-type-archive-product .products .box-text {
    min-height: 0 !important;
}

/* RAVI product archive — prevent white-tower rows (image tools + clearfix) */
.tax-product_cat .products .box-image .image-tools,
.post-type-archive-product .products .box-image .image-tools,
.woocommerce.archive .products .box-image .image-tools {
    position: absolute !important;
    z-index: 2;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.tax-product_cat .products .box-image .image-fade_in_back,
.post-type-archive-product .products .box-image .image-fade_in_back,
.woocommerce.archive .products .box-image .image-fade_in_back {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Placeholder still stays square */
.tax-product_cat .products .box-image img.woocommerce-placeholder,
.post-type-archive-product .products .box-image img.woocommerce-placeholder {
    object-fit: contain !important;
    background: #f0eeed !important;
    padding: 18%;
    box-sizing: border-box !important;
}

/* Prefer contain for extension photos that are white-background studio shots */
.tax-product_cat-raw-vietnamese-hair-extensions .products .box-image img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
}

/* No giant bottom margin between product rows */
.tax-product_cat .products .product-small,
.post-type-archive-product .products .product-small {
    margin-bottom: 18px !important;
    padding-bottom: 0 !important;
}

.tax-product_cat .row-small > .col,
.tax-product_cat .products.row .product-small.col {
    margin-bottom: 18px !important;
}

/* Clearfix after each row must not create extra band */
.tax-product_cat .products .col.last + .product-small,
.tax-product_cat ul.products::after {
    clear: both;
}

/* Single post: author in top kicker with Ravi Hair Journal */
.ravi-post-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.ravi-post-kicker__sep {
  opacity: 0.55;
}
.ravi-byline--top .ravi-byline__author,
.ravi-byline__author {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.ravi-byline--top .ravi-byline__author:hover,
.ravi-byline__author:hover {
  color: #7b1a1a;
  border-bottom-color: #7b1a1a;
}

/* === Ravi fix 2026-07: product card names === */
.tax-product_cat .products .box-text-products .title-wrapper,
.post-type-archive-product .products .box-text-products .title-wrapper,
.woocommerce.archive .products .box-text-products .title-wrapper,
.home .products .box-text-products .title-wrapper {
    max-height: none !important;
    overflow: visible !important;
    min-height: 0 !important;
}
.tax-product_cat .products .box-text-products .category,
.tax-product_cat .products .box-text-products .product-cat,
.post-type-archive-product .products .box-text-products .category,
.post-type-archive-product .products .box-text-products .product-cat,
.woocommerce.archive .products .box-text-products .category,
.woocommerce.archive .products .box-text-products .product-cat,
.home .products .box-text-products .category,
.home .products .box-text-products .product-cat,
.products .box-text .category,
.products .box-text .product-cat {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.tax-product_cat .products .box-text-products .product-title,
.post-type-archive-product .products .box-text-products .product-title,
.woocommerce.archive .products .box-text-products .product-title,
.home .products .box-text-products .product-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    max-height: none !important;
    min-height: 2.7em !important;
    line-height: 1.35 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 4px !important;
}
.tax-product_cat .products .box-text-products .product-title a,
.post-type-archive-product .products .box-text-products .product-title a,
.woocommerce.archive .products .box-text-products .product-title a,
.home .products .box-text-products .product-title a {
    color: #1a1a1a !important;
}
