.lcf-header-menu {
	position: relative;
	overflow: visible;
}

.lcf-header-menu__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0
}

.lcf-header-menu__link {
	display: inline-block;
	text-decoration: none !important;
	transition: .2s
}

/* Dropdown (mega menu) */
.lcf-header-menu__item {
	position: static
}

.lcf-header-menu__dropdown {
    display: none;
    position: absolute;
	/* Make the dropdown span the full viewport width */
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	top: 100%;
	width: auto;
	z-index: 999999;
	background: #fff;
	padding: 24px 32px;
	box-sizing: border-box
}

.lcf-header-menu__item:not(.lcf-header-menu__item--mobile):hover > .lcf-header-menu__dropdown {
    display: block
}

.lcf-header-menu__dropdown-inner {
	display: block;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.lcf-header-menu__thumb {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: cover
}

.lcf-header-menu__links {
	min-width: 0;
	width: 100%
}

.lcf-header-menu__dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns:repeat(4, minmax(0, 1fr));
	gap: 16px
}

.lcf-header-menu__dropdown-link {
	display: block;
	text-decoration: none;
	padding-left: 15px;
}

/* Child item layout: thumbnail left, text right */
.lcf-header-menu__dropdown-item {
	display: flex;
	align-items: center;
}

.lcf-header-menu__dropdown .lcf-header-menu__media {
	padding: 0;
	overflow: hidden;
}

.lcf-header-menu__dropdown .lcf-header-menu__thumb {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Make sure the links column truly spans full width */
.lcf-header-menu__links,
.lcf-header-menu__dropdown-list {
	width: 100%;
}

/* Responsive columns for the child categories grid */
@media (max-width: 1200px) {
	.lcf-header-menu__dropdown-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.lcf-header-menu__dropdown-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .lcf-header-menu__dropdown-list { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* Mobile variant: vertical list and inline dropdowns */
.lcf-header-menu--mobile .lcf-header-menu__list,
.lcf-header-menu__list--vertical {
    flex-direction: column;
}

.lcf-header-menu--mobile .lcf-header-menu__item {
    position: relative;
}

.lcf-header-menu--mobile .lcf-header-menu__link {
    display: block;
    padding: 10px 0;
}

/* Dropdown sits under the parent item, not full-width overlay */
.lcf-header-menu--mobile .lcf-header-menu__dropdown,
.lcf-header-menu__dropdown--mobile {
    position: static;
    margin: 0;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    padding: 8px 0 12px;
    background: transparent;
}

/* For mobile variant, dropdowns are controlled by JS (accordion). Do not open on hover/focus. */

.lcf-header-menu--mobile .lcf-header-menu__dropdown-inner {
    padding-left: 12px;
}

.lcf-header-menu--mobile .lcf-header-menu__dropdown-list,
.lcf-header-menu__dropdown-list--mobile {
    display: flex;
    flex-direction: column;
}

.lcf-header-menu__dropdown-item--mobile .lcf-header-menu__dropdown-link {
    display: inline-block;
}

.lcf-header-menu__item--mobile {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	border-bottom: 1px solid #bc5a45;
}

.lcf-header-menu__item--mobile .lcf-header-menu__toggle {
	padding: 0;
	width: 30px;
	height: 30px;
	line-height: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	margin-left: 15px;
	border-color: transparent;
	background: transparent !important;
}

.lcf-header-menu__toggle-icon {
	border: solid #bc5a45;
	border-width: 0 4px 4px 0;
	display: inline-block;
	padding: 4px;
	transform: rotate(45deg);
	transition: .2s;
	margin-top: -2px;
}

.lcf-header-menu__toggle[aria-expanded="true"] .lcf-header-menu__toggle-icon {
	transform: rotate(-135deg);
	margin-top: 2px;
}

/* =============================
   LCF Product Loop (grid)
   ============================= */

/* Header with products per page selector */
.lcf-product-loop__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.lcf-product-loop__header > div {
	margin-left: 15px;
}

.lcf-product-loop__per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcf-product-loop__per-page label {
    font-size: 14px;
    margin: 0;
}

.lcf-product-loop__per-page-select {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 21px;
    background: #fff;
    cursor: pointer;
    min-width: 70px;
}

.lcf-product-loop__per-page-select:focus {
    outline: none;
    border-color: var(--e-global-color-accent);
}

.lcf-product-loop__sorting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcf-product-loop__sorting-select {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 21px;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

.lcf-product-loop__sorting-select:focus {
    outline: none;
    border-color: var(--e-global-color-accent);
}

.lcf-product-loop {
    width: 100%;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
    box-sizing: border-box;
}

.lcf-product-loop__filter-group {
    border: 0;
    line-height: 1;
    padding: 0;
	position: relative;
}

.lcf-product-loop__filter-group:after {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	position: absolute;
	bottom: 0;
	left: 0;
	background: var(--e-global-color-primary);
}

.lcf-product-loop__filter-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
	width: 100%;
}

.lcf-product-loop__filter-group .lcf-product-loop__filter-title::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-style: solid;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 8px;
}

.lcf-product-loop__filter-group.is-open .lcf-product-loop__filter-title::after {
    transform: rotate(-135deg);
}

.lcf-product-loop__filter-option {
    display: block;
}
.lcf-product-loop__filter-items {
	display: none;
}
.lcf-product-loop__reset {
	flex: auto;
	margin-left: 0 !important;
}
.lcf-product-loop__filters-reset {
	color: #000 !important;
	font-size: 14px !important;
}
.lcf-product-loop__items {
    /* Safe defaults; Elementor controls will override these via inline selectors */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
    min-width: 0;
}

.lcf-product-loop__item {
    width: 100%;
    box-sizing: border-box;
}

/* Pagination */
.lcf-product-loop__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.lcf-product-loop__pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lcf-product-loop__page-btn {
	font-size: 18px !important;
    padding: 0 10px;
    cursor: pointer;
}

.lcf-product-loop__page-btn.is-active {
	font-weight: 700 !important;
}

.lcf-product-loop__ellipsis {
    padding: 0 6px;
    opacity: .7;
}

.lcf-product-loop__pagination .lcf-product-loop__prev,
.lcf-product-loop__pagination .lcf-product-loop__next {
    cursor: pointer;
    padding: 10px;
    border: unset;
	border-radius: 50%;
	line-height: 0;
	background-color: var(--e-global-color-accent);
	color: var(--e-global-color-backgroundAccent);
	fill: var(--e-global-color-backgroundAccent);
}

.lcf-product-loop__pagination button svg {
	width: 20px;
}

.lcf-product-loop__pagination button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* Loading state */
.lcf-product-loop.is-loading .lcf-product-loop__items {
    opacity: .6;
    pointer-events: none;
}

/* Responsive: stack filters above items on narrow screens */
@media (max-width: 768px) {
    .lcf-product-loop {
        grid-template-columns: 1fr;
    }

    .lcf-product-loop__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .lcf-product-loop__items {
        grid-template-columns: 1fr;
    }
}


/* Woo styles */
/* Non-table order details (separate summary + products). No colors or fonts defined. */
.lcf-woo-order {
    display: grid;
    gap: 20px;
}

.lcf-woo-order__title {
    margin: 0;
}

.lcf-woo-order__summary-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
}

/* Shared card look to better align with site blocks */
.lcf-woo-order__summary,
.lcf-woo-order__items {
    background: var(--e-global-color-background);
    border: 1px solid var(--e-global-color-accent);
    border-radius: 21px;
}

/* Summary block */
.lcf-woo-order__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 15px 18px;
	height: fit-content;
}

.lcf-woo-order__summary-item { display: contents; }
.lcf-woo-order__summary-label { font-weight: 600; }
.lcf-woo-order__summary-value { justify-self: end; }

/* Products list */
.lcf-woo-order__products-title { margin: 6px 0 -4px; }

.lcf-woo-order__items {
	padding: 15px 18px;
    list-style: none;
    margin: 0;
    overflow: hidden; /* for rounded corners */
}

.lcf-woo-order__item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
}

.lcf-woo-order__item:last-child .lcf-woo-order__item-row { padding-bottom: 0; }

.lcf-woo-order__item-main { min-width: 0; }
.lcf-woo-order__item-name { font-weight: 600; display: inline-block; margin-right: 8px; }
.lcf-woo-order__item-meta { white-space: nowrap; text-align: right; }
.lcf-woo-order__item-qty { margin-right: 10px; }

.lcf-woo-order__purchase-note { padding: 0 18px 16px; }

/* Responsive */
@media (max-width: 768px) {
    .lcf-woo-order__summary {
        grid-template-columns: 1fr;
        gap: 8px 0;
    }
    .lcf-woo-order__summary-value { justify-self: start; }

    .lcf-woo-order__item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .lcf-woo-order__item-meta { text-align: left; white-space: normal; }

	.lcf-woo-order__summary-wrapper {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

/* Custom Fields table from third-party plugin (exact HTML provided) */
table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields {
    /* Card-like container to match other sections */
    background: var(--e-global-color-background);
    border: 1px solid var(--e-global-color-accent);
    border-radius: 21px;
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
	font-size: 14px;
	padding: 15px 18px;
	margin: 0;
}

/* Remove ALL inner borders and zebra striping coming from theme/Woo defaults */
table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields tbody tr,
table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields tbody tr:nth-child(odd),
table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields tbody tr:nth-child(even) {
    background: transparent !important;
}

table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th,
table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
    border: 0 !important;
    background: transparent !important;
}

table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th,
table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
    padding: 8px 18px;
    vertical-align: top;
}

table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th {
    font-weight: 600;
    width: 35%;
    white-space: nowrap;
	padding-left: 0;
}

table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
	text-align: right;
	padding-right: 0;
}

/* Responsive stacking for small screens */
@media (max-width: 768px) {
    table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields tbody tr {
        display: block;
    }
    table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th,
    table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
        display: block;
        width: 100%;
    }
    table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th {
        padding-bottom: 6px;
    }
    table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
        padding-top: 0;
		text-align: left;
		padding-left: 0;
		padding-bottom: 0;
    }
}