/* Theme Color Palette */

/* Base Reset, Typography & Layout */
*, *::before, *::after { box-sizing: border-box; }

img {
	height: auto;
	max-width: 100%;
	border: 0
}

figure {
	margin: 0
}

.site-main {
    padding: 40px 0px;
}

/* Navigation & Header/Footer Wrappers */
.lootilyo-block-header,
.site-header.is-sticky,
.mini-cart-drawer {
    background-color: var(--color-bg);
}
.lootilyo-block-header { position: sticky; top: 0; z-index: 100; }
.lootilyo-block-footer { background: var(--color-accent-tint); border-top: 1px solid var(--color-accent); }

.main-navigation a,
.footer-navigation a {
    color: var(--color-text);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
}

.wc-block-components-drawer__close-wrapper .wc-block-components-drawer__close {
    background-color: black !important;
    color: #ffffff !important;
    top: 30px;
    right: 30px;
    height: 36px;
    width: 36px;
    padding: 5px !important;
    min-height: 20px !important;
    border-radius: 4px;
}

.scrollToTop.back-top {
    position: fixed !important;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #111;
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.scrollToTop.back-top.show {
    opacity: 1;
    visibility: visible;
}

.scrollToTop.back-top .icon {
    font-size: 22px;
    color: #fff;
}

.footer-menu-title {
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    line-height: 1.3;
}

.footer-menu-title::after {
    background-color: #fff;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    width: 50px;
    height: 3px;
    border-radius: 4px;
}

.payment-options figure img {
    filter: grayscale(100%);
    transition: .3s ease-in-out;
}

.payment-options figure img:hover {
    filter: grayscale(0);
}

/* =========================================
   Header Base & Desktop Polish
   ========================================= */
#header.site-header {
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .2);
}

#header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
}

#header .header-logo {
    flex-shrink: 0;
}

#header .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

#header .header-actions figure {
    margin: 0;
    display: flex;
    align-items: center;
}

/* Primary Buttons & WooCommerce Add to Cart */
.button,
.btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
input[type="submit"]:hover,
.btn-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover{
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
    opacity: 0.8;
}

.wc-block-mini-cart button:hover {
    background-color: transparent !important;
    border-color: var(--color-black) !important;
    color: var(--color-black) !important;
}

.btn-primary {
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-outline {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-accent);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* High-Priority CTAs (Checkout, Buy Now) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.cta-highlight {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.cta-highlight:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: var(--color-white);
}

/* Promotional Badges (Sale / Discount) */
.woocommerce span.onsale,
.promo-badge,
.lootilyo-save-badge {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
    border-radius: 4px;
    padding: 5px 8px;
    line-height: 1;
    top: 20px !important;
    right: 20px !important;
    min-height: auto;
    border: 1px solid #000000;
    font-size: 12px;
}

/* Breadcrumbs, Notices & Sorting */
.woocommerce-breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 12px; display: none; }
.woocommerce-notices-wrapper { margin-bottom: 16px; }
.woocommerce-ordering select { padding: 8px 12px; border: 1px solid var(--color-accent); border-radius: 6px; background: var(--color-surface); color: var(--color-text); font-size: 0.9rem; cursor: pointer; }

/* ===== SHOP TOOLBAR ===== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e6e6e6;
  height: 50px;
  background: #ffffff;
  margin-bottom: 28px;
  position: relative;
  z-index: 20;
}

.shop-toolbar__left {
  display: flex;
  align-items: center;
  height: 100%;
}

.content-area {
    padding-bottom: 30px;
}

/* Hide/Show Filters Button */
.shop-toolbar__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 22px;
  background: transparent;
  border: none;
  border-right: 1px solid #e6e6e6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555555;
  transition: color 0.2s ease, background 0.2s ease;
}

.shop-toolbar__filter-btn:hover {
  color: #111111;
  background: #fafafa;
}

.shop-toolbar__sort {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 260px;
}

/* Hide the entire WooCommerce form so it doesn't push the button down */
.shop-toolbar__sort.has-custom-dropdown .woocommerce-ordering {
  display: none !important;
}

.custom-sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  width: 100%;
  white-space: nowrap;
  padding: 0 20px;
  background: transparent;
  border: none;
  border-right: 1px solid #e6e6e6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555555;
  transition: color 0.2s ease, background 0.2s ease;
}

.custom-sort-trigger:hover {
  color: #111111;
  background: #fafafa;
}

.custom-sort-trigger svg {
  transition: transform 0.2s ease;
}

.shop-toolbar__sort.is-open .custom-sort-trigger svg {
  transform: rotate(180deg);
}

.custom-sort-menu {
  position: absolute;
  top: 100%;
  left: -1px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: none;
  z-index: 30;
  width: calc(100% + 1px);
  min-width: calc(100% + 1px);
}

.shop-toolbar__sort.is-open .custom-sort-menu {
  display: block;
}

.custom-sort-option {
  padding: 11px 18px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #666666;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.custom-sort-option:hover {
  background: #f7f7f7;
  color: #111111;
}

.custom-sort-option.is-active {
  background: #efefef;
  color: #111111;
  font-weight: 600;
}

/* ===== GRID CONTROL BUTTONS ===== */
.shop-toolbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 100%;
}

.grid-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  transition: color 0.2s ease;
}

.grid-btn:hover,
.grid-btn.active {
  color: #333333;
}

/* ===== COLLAPSIBLE SIDEBAR & GRID OVERRIDES ===== */
.shop-layout.filters-hidden > aside,
.shop-layout.filters-hidden .shop-sidebar,
.shop-layout.filters-hidden #secondary {
  display: none !important;
}

.shop-layout.filters-hidden .shop-content {
  width: 100%;
  flex: 1 1 100%;
}

/* Override WooCommerce default product grid columns */
.shop-content ul.products.grid-cols-1,
.shop-content ul.products.grid-cols-2,
.shop-content ul.products.grid-cols-3,
.shop-content ul.products.grid-cols-4 {
  display: grid !important;
  gap: 24px;
}

.shop-content ul.products.grid-cols-1::before,
.shop-content ul.products.grid-cols-2::before,
.shop-content ul.products.grid-cols-3::before,
.shop-content ul.products.grid-cols-4::before,
.shop-content ul.products.grid-cols-1::after,
.shop-content ul.products.grid-cols-2::after,
.shop-content ul.products.grid-cols-3::after,
.shop-content ul.products.grid-cols-4::after {
  display: none !important;
}

.shop-content ul.products.grid-cols-1 > li.product,
.shop-content ul.products.grid-cols-2 > li.product,
.shop-content ul.products.grid-cols-3 > li.product,
.shop-content ul.products.grid-cols-4 > li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.shop-content ul.products.grid-cols-1 {
  grid-template-columns: 1fr !important;
}

.shop-content ul.products.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.shop-content ul.products.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.shop-content ul.products.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.shop-layout { display: flex; gap: 32px; align-items: flex-start; }
.shop-sidebar { width: 250px; flex-shrink: 0; padding-right: 12px; }
.shop-sidebar.is-hidden { display: none; }
.shop-content { flex: 1; min-width: 0; }

.grid-btn[data-cols="1"] {
  display: none !important;
}

/* Custom Price & Product Type Sidebar */
.lootilyo-filter-group { margin-bottom: 32px; }
.lootilyo-filter-group__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0 0 18px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    cursor: pointer;
}
.lootilyo-filter-group__header:hover {
    background: none;
    border: none;
    color: var(--color-primary-hover);
}
.lootilyo-caret { font-size: 20px; color: var(--color-primary); transition: transform 0.2s; }
.lootilyo-filter-group:not(.is-open) .lootilyo-caret { transform: rotate(-90deg); }
.lootilyo-filter-group:not(.is-open) .lootilyo-filter-group__body { display: none; }

/* Dual-Thumb Price Slider */
.lootilyo-range-slider { position: relative; height: 22px; display: flex; align-items: center; margin-bottom: 18px; }
.lootilyo-range-track, .lootilyo-range-fill { position: absolute; height: 4px; border-radius: 2px; left: 0; right: 0; }
.lootilyo-range-track { background: var(--color-accent); opacity: 0.45; }
.lootilyo-range-fill { background: var(--color-primary); }
.lootilyo-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
}
.lootilyo-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(55, 55, 55, 0.35);
    cursor: pointer;
}
.lootilyo-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(55, 55, 55, 0.35);
    cursor: pointer;
}

/* Underlined £ Min - £ Max Inputs */
.lootilyo-price-inputs { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lootilyo-price-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-accent);
    padding: 6px 4px;
    font-size: 0.92rem;
    color: var(--color-text);
}
.lootilyo-price-box input {
    width: 64px;
    border: none;
    outline: none;
    text-align: right;
    font-size: 0.92rem;
    color: var(--color-text);
    background: transparent;
    -moz-appearance: textfield;
}
.lootilyo-price-box input::-webkit-outer-spin-button,
.lootilyo-price-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lootilyo-price-sep { color: var(--color-text-muted); }

/* Right-Aligned Square Checkboxes */
.lootilyo-checkbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lootilyo-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--color-text);
    user-select: none;
}
.lootilyo-checkbox-row input { position: absolute; opacity: 0; pointer-events: none; }
.lootilyo-checkbox-box {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--color-accent);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--color-surface);
}
.lootilyo-checkbox-row input:checked + .lootilyo-checkbox-box { background: var(--color-primary); border-color: var(--color-primary); }
.lootilyo-checkbox-row input:checked + .lootilyo-checkbox-box::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* 4-Column Product Grid, Cards & Secondary Sections */
.woocommerce ul.products,
ul.products {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

/* Product Loading State */
ul.products.is-loading {
    position: relative !important;
    pointer-events: none !important;
}

/* Dim product cards */
ul.products.is-loading li.product {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

/* Spinner on first product item */
ul.products.is-loading li.product:first-child {
    position: static !important;
}

ul.products.is-loading li.product:first-child::after {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -21px;
    border: 5px solid #D1D1D1;
    border-top-color: #4F5B36;
    border-right-color: #4F5B36;
    border-radius: 50%;
    box-sizing: border-box;
    animation: lootilyo-spin 0.7s linear infinite;
    z-index: 99999;
}

@keyframes lootilyo-spin {
    to {
        transform: rotate(360deg);
    }
}

.woocommerce ul.products li.product,
ul.products li.lootilyo-card,
.secondary-section {
    background-color: var(--color-background);
}

.woocommerce ul.products li.product,
ul.products li.lootilyo-card {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;x`
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.lootilyo-card:hover { box-shadow: 0 6px 18px rgba(79, 91, 54, 0.10); border-color: var(--color-primary); }
/* .lootilyo-card__thumb { position: relative; display: block; background: var(--color-surface); aspect-ratio: 1 / 1; overflow: hidden; }
.lootilyo-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } */

/* Product image area */
.lootilyo-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

/* Show complete product image */
.lootilyo-card__thumb img.woocommerce_thumbnail {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    border-radius: 0;
}

.lootilyo-save-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
}
.lootilyo-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title {font-weight: 600; margin: 0 0 8px; line-height: 1.35; color: var(--color-black); }
.lootilyo-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.92rem; margin-top: auto; }
.lootilyo-card-color { color: var(--color-text-muted); font-size: 0.85rem; }
.woocommerce ul.products li.product .price,
.lootilyo-card__meta .price { font-weight: 700; color: var(--color-text); }
.lootilyo-card__meta .price del { color: var(--color-text-muted); font-weight: 400; margin-left: 4px; }
.lootilyo-card__meta .price ins { text-decoration: none; color: var(--color-secondary); }
/* .woocommerce-price-suffix { display: block; width: 100%; font-size: 0.78rem; color: var(--color-text-muted); font-weight: 400; } */
.load-more-wrap { text-align: center; margin-top: 32px; }
.lootilyo-no-products { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--color-text-muted); border: 1px dashed var(--color-accent); border-radius: 8px; background: var(--color-surface); }

/* Quick Order Form Modal */
.lootilyo-modal { display: none; position: fixed; inset: 0; background: rgba(55, 55, 55, 0.65); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.lootilyo-modal.is-open { display: flex; }
.lootilyo-modal__dialog { background: var(--color-bg); border: 1px solid var(--color-accent); width: 100%; max-width: 540px; border-radius: 10px; padding: 24px; }
.lootilyo-modal__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Global Full-Width Page Banner with Centered Title & Breadcrumb */
.lootilyo-page-banner {
    width: 100%;
    min-height: 350px;
    background-color: var(--color-accent-tint);
    background-size: cover;
    background-position: 70%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    position: relative;
}
.lootilyo-page-banner__inner {
    position: relative;
    z-index: 2;
    max-width: 80%;
    transform: translateY(-60px);
    margin-left: auto;
    margin-right: auto;
}
.lootilyo-page-banner__title {
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.lootilyo-page-banner__breadcrumb {
    color: var(--color-text);
}
.lootilyo-page-banner__breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}
.lootilyo-page-banner__breadcrumb a:hover {
    text-decoration: underline;
}

/* Header Navigation Links & Active Page Underline */
.header-nav .wp-block-navigation-item__content {
    position: relative;
    padding-bottom: 6px;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.header-nav .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

/* Active Page State */
/* .header-nav .current-menu-item > .wp-block-navigation-item__content,
.header-nav .wp-block-navigation-item__content[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 600;
} */

.header-nav .current-menu-item > .wp-block-navigation-item__content::after,
.header-nav .wp-block-navigation-item__content[aria-current="page"]::after,
.header-nav .wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
}

/* Header Search Trigger Button */
.lootilyo-search-trigger {
    background: transparent !important;
    border: none !important;
    color: var(--color-text) !important;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
    height: 45px;
    width: 45px;
}
.lootilyo-search-trigger:hover {
    color: var(--color-primary) !important;
}

/* Full-Screen Search Overlay Modal */
.lootilyo-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(20, 20, 20, 0.78);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lootilyo-search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* Top-Right White Close Box */
.lootilyo-search-modal__close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 36px;
    height: 36px;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
    border: none !important;
    border-radius: 2px;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.lootilyo-search-modal__close:hover {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
}

/* Centered Frosted Search Bar */
.lootilyo-search-modal__inner {
    width: 100%;
    max-width: 780px;
    padding: 0 16px;
    box-sizing: border-box;
}
.lootilyo-search-modal__form {
 
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
}
.lootilyo-search-modal__input {
    flex: 1;
    width: 100%;
    min-width: 0; /* Fixes overflow on 320px mobile screens */
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--color-white) !important;
    font-size: 1.15rem;
    padding: 12px 8px;
}
.lootilyo-search-modal__input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}
.lootilyo-search-modal__submit {
    flex-shrink: 0; /* Keeps the icon from getting squished */
    background: transparent !important;
    border: none !important;
    color: var(--color-white) !important;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}
.lootilyo-search-modal__submit:hover {
    color: var(--color-accent) !important;
}

.search-modal-close {
  position: fixed; /* or absolute relative to the modal overlay */
  top: 16px;
  right: 16px;
  z-index: 10001; /* Higher than the modal content and sticky header */
  cursor: pointer;
  pointer-events: auto;
}

/* =====================================
   WOOCOMMERCE CUSTOMER REVIEW FORM
===================================== */

/* Main Review Box */
.eco-review-box {
    width: 100%;
    background: #fafafa;
    padding: 40px 20px 50px;
    box-sizing: border-box;
}

/* Main Heading */
.eco-review-box .eco-review-heading {
    max-width: 750px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #ddd;
}

/* Review Content */
.eco-review-box .eco-review-content {
    max-width: 750px;
    margin: 0 auto;
}

/* Reviews Heading */
.eco-review-box .woocommerce-Reviews-title {
    display: none;
}

/* No Reviews Message */
.eco-review-box .woocommerce-noreviews {
    font-size: 16px;
    color: #555;
    margin: 40px 0 40px;
}

/* Review Form */
.eco-review-box #commentform {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 0;
}

/* Review Form Title */
.eco-review-box .comment-reply-title {
    display: block;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #111;
    padding-bottom: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

/* Email Notice */
.eco-review-box .comment-notes {
    order: 1;
    width: 100%;
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Name Field */
.eco-review-box .comment-form-author {
    order: 2;
    width: calc(50% - 12px);
    margin: 0 24px 0 0 !important;
}

/* Email Field */
.eco-review-box .comment-form-email {
    order: 3;
    width: calc(50% - 12px);
    margin: 0;
}

.eco-review-box .comment-form-email input, 
.eco-review-box .comment-form-author input {
    height: 48px;
    padding: 10px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: transparent;
    box-sizing: border-box;
    outline: none;
}

/* Name and Email Labels */
.eco-review-box .comment-form-author label,
.eco-review-box .comment-form-email label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* Name and Email Inputs */
.eco-review-box .comment-form-author input,
.eco-review-box .comment-form-email input {
    width: 100%;
    box-sizing: border-box;
}

/* Save Consent */
.eco-review-box .comment-form-cookies-consent {
    order: 4;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    color: #555;
    margin: 0;
}

.eco-review-box .comment-form-cookies-consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

/* Rating Section */
.eco-review-box .comment-form-rating {
    order: 5;
    width: 100%;
    margin: 0;
}

.eco-review-box .comment-form-rating label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* Rating Stars */
.eco-review-box .stars {
    margin: 0;
}

.eco-review-box .stars a {
    color: #ff9800 !important;
    font-size: 21px;
    margin-right: 4px;
    text-decoration: none;
}

/* Review Textarea */
.eco-review-box .comment-form-comment {
    order: 6;
    width: 100%;
    position: relative;
    margin: 0;
}

.eco-review-box .comment-form-comment label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

.eco-review-box .comment-form-comment textarea {
    width: 100%;
    min-height: 210px;
    padding: 45px 20px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: transparent;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
}

/* Input Focus */
.eco-review-box .comment-form-comment textarea:focus,
.eco-review-box input[type="text"]:focus,
.eco-review-box input[type="email"]:focus {
    border-color: #999;
}

/* Submit Button */
.eco-review-box .form-submit {
    order: 7;
    width: 100%;
    margin: 0;
}

.eco-review-box #submit {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 34px;
    min-width: 122px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.eco-review-box #submit:hover {
    background: #333;
}

/* ==============================
   Lootilyo Custom 404 Page
============================== */

.lootilyo-404-page {
    position: relative;
    min-height: 650px;
    height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/404bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 50px 20px;
    box-sizing: border-box;
}

.lootilyo-404-overlay {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .7);
}

.lootilyo-404-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 750px;
    text-align: center;
    color: #F7EADA;
}

.lootilyo-404-icon {
    font-size: 65px;
    line-height: 1;
    margin-bottom: 5px;
    color: #D1AC81;
}

.lootilyo-404-number {
    font-size: clamp(120px, 18vw, 240px);
    line-height: 0.9;
    font-weight: 800;
    color: #F7EADA;
    margin: 0 0 15px;
    letter-spacing: 5px;
}

.lootilyo-404-content h2 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    margin: 15px 0;
}

.lootilyo-404-divider {
    width: 90px;
    height: 3px;
    background: #ffffff;
    margin: 22px auto;
}

.lootilyo-404-content p {
    max-width: 550px;
    margin: 0 auto 35px;
    font-size: 19px;
    line-height: 1.6;
    color: #ffffff;
}

.lootilyo-404-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: transparent;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lootilyo-404-button:hover {
    background: #ffffff;
    color: #000000 !important;
}

.lootilyo-404-button span {
    font-size: 23px;
}

/* ========================================
   SINGLE BLOG PAGE
======================================== */

.site-single {
    width: 100%;
    padding: 0;
    margin: 0;
}

.site-single .container {
    max-width: 1320px;
    width: 90%;
    margin: 0 auto;
}

.site-single .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.site-single .col-sm-12 {
    width: 100%;
    padding: 0;
}

.site-single .main-content {
    width: 100%;
    padding: 25px 0px 40px 0;
}

/* ========================================
   SINGLE POST WRAPPER
======================================== */

.post-each-single {
    width: 100%;
    margin: 0 !important;
    padding: 0;
}

/* Hide duplicate title if banner already displays it */
.post-each-single > .post-title {
    display: none;
}

/* Featured Image */
.post-each-single > .post-image {
    width: 100%;
    margin-bottom: 25px;
}

.post-each-single > .post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #e8e3d9;
}

.post-navigation .prev-post,
.post-navigation .next-post {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--color-black);
    color: #fff !important;
    border: 1px solid var(--color-black);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a {
    color: var(--color-white) !important;
}

/* Arrow Base */
.post-navigation .prev-post i,
.post-navigation .next-post i {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Previous Post - Arrow moves left */
.post-navigation .prev-post:hover i {
    transform: translateX(-4px);
}

/* Next Post - Arrow moves right */
.post-navigation .next-post:hover i {
    transform: translateX(4px);
}

/* Button Hover */
.post-navigation a:hover {
    opacity: 0.8;
}

/* ========================================
   POST CONTENT AREA
======================================== */

.post-content-area {
    width: 100%;
    padding: 18px 0 0;
}


/* ========================================
   POST META
======================================== */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.post-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    margin: 0;
}

.post-meta li .fa {
    font-size: 14px;
    color: #333;
}

.post-meta li a {
    color: #777;
    text-decoration: none;
}

.post-meta li a:hover {
    color: #4f5b36;
}


/* ========================================
   BLOG CONTENT
======================================== */

.post-content.entry-content {
    width: 100%;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.post-content.entry-content p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.post-content.entry-content h2 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    margin: 30px 0 10px;
}

.post-content.entry-content h3 {
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    margin: 26px 0 8px;
}

.post-content.entry-content h4 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    margin: 24px 0 8px;
}

.post-content.entry-content ul,
.post-content.entry-content ol {
    padding-left: 25px;
    margin: 15px 0 22px;
}

.post-content.entry-content li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 5px;
}

.post-content.entry-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.post-content.entry-content img {
    max-width: 100%;
    height: auto;
}

.post-content.entry-content a {
    color: #4f5b36;
    text-decoration: underline;
}


/* ========================================
   SOCIAL SHARING
======================================== */

.single-post-footer {
    width: 100%;
    margin-top: 25px;
    padding: 0 0 20px;
}

.post-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-social .rtin-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.post-social-sharing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-social-sharing a {
    width: 20px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-social-sharing a:hover {
    color: #4f5b36;
}


/* ========================================
   POST TAGS
======================================== */

.post-tags {
    margin: 20px 0;
    font-size: 13px;
    color: #555;
}

.post-tags a {
    color: #777;
    text-decoration: none;
    margin-left: 5px;
}


/* ========================================
   PREVIOUS / NEXT POST
======================================== */

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.post-navigation a:hover {
    color: #4f5b36;
}


/* ========================================
   COMMENTS SECTION
======================================== */

.comments-wrapper {
    width: 100%;
    margin-top: 10px;
}

.comments-wrapper .comments-title,
.comments-wrapper .comment-reply-title {
    font-size: 21px;
    font-weight: 600;
    color: #222;
    margin: 0 0 15px;
}

.comments-wrapper .logged-in-as,
.comments-wrapper .comment-notes {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.comments-wrapper .comment-form-comment textarea {
    width: 100%;
    min-height: 175px;
    padding: 15px;
    background: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 13px;
    color: #333;
    resize: vertical;
}

.comments-wrapper .comment-form-comment textarea:focus {
    outline: none;
    border-color: #4f5b36;
}

.comments-wrapper .comment-form input:not([type="submit"]) {
    width: 100%;
    padding: 12px;
    background: #f4f4f4;
    border: 1px solid #eee;
}

.comments-wrapper .form-submit {
    margin: 10px 0 0;
}

.comments-wrapper .submit {
    background: #111;
    color: #fff;
    border: 0;
    padding: 14px 22px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
}

.comments-wrapper .submit:hover {
    background: #4f5b36;
}


/* ========================================
   RELATED POSTS
======================================== */

.related-posts {
    margin-top: 45px;
    width: 100%;
}

.related-posts-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 25px;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.related-post {
    margin: 0;
}

.related-post .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-post .post-title {
    display: block;
    font-size: 18px;
    margin: 12px 0;
}

.related-post .post-title a {
    color: #222;
    text-decoration: none;
}

.related-post .post-date,
.related-post .post-excerpt {
    font-size: 13px;
    color: #777;
}

.related-post .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #4f5b36;
    text-decoration: none;
}

/* ========================================
   BLOG LISTING PAGE
======================================== */

.site-blog-listing {
    width: 100%;
    padding: 60px 0;
}

.site-blog-listing .container {
    max-width: 1320px;
    width: 90%;
    margin: 0 auto;
}

.site-blog-listing .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.site-blog-listing .col-sm-12 {
    width: 100%;
    padding: 0;
}

.site-blog-listing .main-content {
    width: 100%;
}

/* Listing Header */

.blog-listing-header {
    margin-bottom: 35px;
}

.blog-listing-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0;
}


/* ========================================
   BLOG GRID
======================================== */

.blog-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}


/* ========================================
   BLOG CARD
======================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* Card Image */

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 14px;
}


/* ========================================
   CARD CONTENT
======================================== */

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}


/* Category */

.blog-card-category {
    margin-bottom: 10px;
}

.blog-card-category a {
    display: inline-block;
    padding: 5px 12px;
    background: #f7eada;
    color: #4f5b36;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
}


/* Title */

.blog-card-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 14px;
}

.blog-card-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #4f5b36;
}


/* ========================================
   CARD META
======================================== */

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.blog-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #888;
    margin: 0;
}

.blog-card-meta li i {
    font-size: 11px;
    color: #4f5b36;
}


/* ========================================
   CARD EXCERPT
======================================== */

.blog-card-excerpt {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}


/* ========================================
   READ MORE BUTTON
======================================== */

.blog-card-footer {
    margin-top: auto;
    padding-top: 5px;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 17px;
    background: var(--color-black);
    color: var(--color-white) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #000000;
}

.blog-card-read-more:hover {
   opacity: 0.8 !important;
}

.blog-card-read-more i {
    font-size: 12px;
}

.wpcf7-list-item {
    margin: 0 !important;
}

/* ========================================
   PAGINATION
======================================== */

.blog-listing-pagination {
    margin-top: 45px;
    text-align: center;
}

.blog-listing-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.blog-listing-pagination a,
.blog-listing-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.blog-listing-pagination .current {
    background: #4f5b36;
    color: #fff;
    border-color: #4f5b36;
}


/* No Posts */

.blog-no-posts {
    padding: 40px 20px;
    text-align: center;
    background: #f7f7f7;
    border-radius: 6px;
}

/* ========================================
   CONTACT PAGE
======================================== */

.contact-page-content {

    color: #373737;
}

/* Google Map */
.contact-page-content iframe {
    width: 100% !important;
    height: 380px !important;
    border: 0 !important;
    border-radius: 12px;
    margin-bottom: 45px;
}

/* Main headings */
.contact-page-content h3 {
    margin: 28px 0 12px;
}

/* Paragraphs */
.contact-page-content p {
   
    margin-bottom: 18px;
}

/* Contact links */
.contact-page-content a:not(.wp-block-button__link) {
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    color: var(--color-secondary);
}

.contact-page-content a:not(.wp-block-button__link):hover {
    color: #D0764C;
    opacity: 0.8;
}

/* Contact information */
.contact-page-content h3:not(.rtin-title) {
    position: relative;
}

.contact-page-content h3:not(.rtin-title)::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #D0764C;
    margin-top: 8px;
    border-radius: 5px;
}

/* Contact Form */
.contact-page-content .metro-contact-form {
    background: #F7EADA;
    padding: 35px;
    border-radius: 12px;
    margin-top: 35px;
}

.contact-page-content .metro-contact-form {
    font-size: 28px;
    color: #4F5B36;
    font-weight: 700;
    margin: 0 0 25px;
}

/* Form rows */
.contact-page-content .metro-contact-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.contact-page-content .metro-contact-form .col-md-6 {
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

.contact-page-content .metro-contact-form .form-group {
    margin-bottom: 18px;
}

.contact-page-content .metro-contact-form .form-group p br {
    display: none !important;
}

.contact-page-content .metro-contact-form p {
    margin: 0;
}

/* Inputs and textarea */
.contact-page-content .metro-contact-form .form-control {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #ded4c5;
    border-radius: 6px;
    background: #fff;
    color: #373737;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.contact-page-content .metro-contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-page-content .metro-contact-form .form-control:focus {
    border-color: #4F5B36;
    box-shadow: 0 0 0 3px rgba(79, 91, 54, 0.10);
}

.contact-page-content .metro-contact-form .form-control::placeholder {
    color: #888;
}

/* Submit button */
.contact-page-content .metro-contact-form input[type="submit"],
.wpcf7-form input.wpcf7-submit {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border: 1px solid #000000 !important;
    border-radius: 5px !important;
    padding: 15px 30px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-page-content .metro-contact-form input[type="submit"]:hover,
.wpcf7-form input.wpcf7-submit:hover {
   opacity: 0.8;
}

/* Contact Form 7 messages */
.contact-page-content .wpcf7-response-output,
.wpcf7-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 12px !important;
    border-radius: 5px;
    font-size: 16px;
    color: var(--color-success);
}

.contact-page-content .wpcf7-response-output br,
.wpcf7-form .wpcf7-response-output br {
    display: none;
}

.contact-page-content .wpcf7-response-output .download-lnk-pdf,
.wpcf7-form .wpcf7-response-output .download-lnk-pdf {
    font-size: 16px !important;
    margin-left: 10px !important;
    color: var(--color-secondary) !important;
}


.wpcf7 form.invalid .wpcf7-response-output {
    color: #dc3232 ;
    border-color: #dc3232 !important;
}

/* =====================================
   GLOBAL LIST WITH ARROW ICON
===================================== */

ul.wp-block-list {
    list-style-position: outside;
    padding-left: 25px;
}

ul.wp-block-list li {
    padding-left: 10px;
}

ul.wp-block-list li::marker {
    font-size: 20px;
}

ol.wp-block-list li::marker {
    font-weight: 800;
}

/* Hide existing SVG icons */
.entry-content ul li svg,
.wp-block-list li svg {
    display: none !important;
}

/* Ordered Lists */
.entry-content ol,
.wp-block-list:where(ol) {
    padding-left: 25px;
    margin: 20px 0 25px;
}

.entry-content ol li {
    margin-bottom: 12px;
    padding-left: 5px;
    line-height: 1.7;
}


/* Product Category Grid */
.lootilyo-category-grid {
    display: grid;
    grid-template-columns: repeat(var(--category-columns, 4), minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* Category Card */
.lootilyo-category-card {
    display: flex;
    flex-direction: column;
    background: var(--color-background, #F7EADA);
    overflow: hidden;
    height: 100%;
}

/* Category Image */
.lootilyo-category-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.lootilyo-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lootilyo-category-card:hover .lootilyo-category-image img {
    transform: scale(1.05);
}

/* Category Content */
.lootilyo-category-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 25px 20px;
    gap: 18px;
}

/* Category Title */
.lootilyo-category-title {
    margin: 0;
    color: var(--color-primary, #4F5B36);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.lootilyo-category-title span {
    font-weight: 400;
}

/* View Category Button */
.lootilyo-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 11px 22px;
    background: var(--color-black);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px !important;
}

.lootilyo-category-button:hover {
   opacity: 0.8;
}


@media (max-width: 1024px) { 
    ul.products { 
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; 
    }

    #header .header-logo {
        order: 1;
    }

    #header .header-actions {
        order: 2;
        margin-left: auto; /* Pushes actions + menu to the right side */
    }

    #header .header-nav {
        order: 3;
        width: auto;
        flex-shrink: 0;
    }

    /* 2. Force WordPress Mobile Menu up to 1024px */
    #header .header-nav .wp-block-navigation__responsive-container-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 4px;
    }

    #header .header-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    /* 3. Style the Open Mobile Menu Overlay */
    #header .header-nav .wp-block-navigation__responsive-container.is-menu-open {
        display: block !important;
        position: fixed;
        inset: 0;
        background-color: #ffffff;
        z-index: 100000;
        padding: 24px;
        overflow-y: auto;
    }

    #header .header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding-top: 48px;
    }

    #header .header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px;
        width: 100%;
    }

     .lootilyo-404-page {
        min-height: 600px;
        height: auto;
    }

    .lootilyo-404-number {
        font-size: 180px;
    }

    .single_add_to_cart_button {
        font-size: 12px !important;
    }

    .lootilyo-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {

    body.single-post .lootilyo-page-banner {
        min-height: 190px;
        padding: 35px 20px;
    }

    body.single-post .lootilyo-page-banner__title {
        font-size: 26px;
    }

    .site-single .container {
        width: 92%;
    }

    .related-posts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Blog listing  */

    .blog-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card-title {
        font-size: 18px;
    }

}

@media (max-width: 781px) {
    .wp-block-social-links,
    .payment-options {
        justify-content: left !important;
    }

    .woocommerce-form-register {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    .shop-layout { flex-direction: column; }
    .shop-sidebar { width: 100%; border-bottom: 1px solid var(--color-accent); padding-bottom: 20px; }
    ul.products,
    .single-product ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
    }

    .lootilyo-page-banner {
        min-height: 180px;
        padding: 36px 16px;
        background-position: 15% center;
    }
    .lootilyo-page-banner__title {
        font-size: 1.65rem;
    }

    .shop-content ul.products.grid-cols-3,
    .shop-content ul.products.grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .lootilyo-page-banner__inner {
        transform: translateY(-15px);
        max-width: 100%;
    }

    .shop-toolbar__left {
        width: auto !important;
        flex: 1 1 0%;
        min-width: 0;
    }

    .shop-toolbar {
        width: 100%;
        max-width: 100%;
    }

  .shop-toolbar__filter-btn {
    padding: 0 8px;
    gap: 5px;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .shop-toolbar__sort {
    min-width: 0 !important;
    flex: 1 1 0%;
  }

  .custom-sort-trigger {
    min-width: 0 !important;
    width: 100%;
    padding: 0 8px;
    gap: 4px;
    font-size: 10px;
    border-right: 1px solid #e6e6e6;
  }

  .custom-sort-trigger .js-sort-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .custom-sort-menu {
    left: auto;
    right: 0;
    min-width: 100%;
    width: max-content;
    max-width: calc(100vw - 32px);
  }

  .custom-sort-option {
    white-space: normal;
  }

  .shop-toolbar__right,
  .toolbar-right {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    flex-shrink: 0;
  }

  .grid-btn[data-cols="1"],
  .grid-btn[data-cols="2"] {
    display: inline-flex !important;
  }

  .grid-btn[data-cols="3"],
  .grid-btn[data-cols="4"] {
    display: none !important;
  }

  .eco-review-box {
        padding: 30px 15px 40px;
    }

    .eco-review-box .eco-review-heading {
        font-size: 19px;
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .eco-review-box .woocommerce-noreviews {
        margin: 30px 0 45px;
    }

    .eco-review-box .comment-reply-title {
        font-size: 17px;
        padding-bottom: 15px;
    }

    /* Name and Email Stack on Mobile */
    .eco-review-box .comment-form-author,
    .eco-review-box .comment-form-email {
        width: 100%;
        margin: 0;
    }

    .eco-review-box .comment-form-comment textarea {
        min-height: 180px;
    }

    .eco-review-box #submit {
        padding: 13px 28px;
    }

    .lootilyo-404-number {
        margin: 0 auto 20px;
        text-align: center;
    }

    .lootilyo-404-number img {
        width: 75%;
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Blog Detail page  */

    body.single-post .lootilyo-page-banner {
        min-height: 160px;
        padding: 30px 15px;
        background-position: center;
    }

    body.single-post .lootilyo-page-banner__title {
        font-size: 22px;
        line-height: 1.4;
    }

    body.single-post .lootilyo-page-banner__breadcrumb {
        font-size: 14px;
        line-height: 1.6;
    }

    .site-single .container {
        width: 92%;
    }

    .post-content-area {
        padding-top: 15px;
    }

    .post-meta {
        gap: 10px 14px;
        margin-bottom: 20px;
    }

    .post-meta li {
        font-size: 14px;
    }

    .post-content.entry-content {
        font-size: 13px;
    }

    .post-content.entry-content p {
        font-size: 13px;
        line-height: 1.75;
        margin-bottom: 15px;
    }

    .post-content.entry-content h2 {
        font-size: 21px;
        margin-top: 25px;
    }

    .post-content.entry-content h3 {
        font-size: 19px;
        margin-top: 22px;
    }

    .post-content.entry-content h4 {
        font-size: 16px;
    }

    .post-content.entry-content li {
        font-size: 13px;
    }

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

    .related-posts-list {
        grid-template-columns: 1fr;
    }

    .related-post .post-image img {
        height: auto;
    }

    .comments-wrapper .comment-form-comment textarea {
        min-height: 140px;
    }

    /* Blog listing  */

    .site-blog-listing {
        padding: 35px 0;
    }

    .site-blog-listing .container {
        width: 92%;
    }

    .blog-listing-header {
        margin-bottom: 25px;
    }

    .blog-listing-title {
        font-size: 26px;
    }

    .blog-listing-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card-title {
        font-size: 19px;
    }

    .blog-card-meta {
        gap: 8px 12px;
    }

    .blog-card-excerpt {
        font-size: 13px;
    }

    /* contact page  */

    .contact-page-content {
        padding: 25px 15px 45px !important;
    }

    /* .contact-page-content iframe {
        height: 280px !important;
        margin-bottom: 30px;
    } */

    .contact-page-content h3 {
        font-size: 21px;
    }

    .contact-page-content .metro-contact-form {
        padding: 22px 18px;
    }

    .contact-page-content .metro-contact-form .rtin-title {
        font-size: 20px;
    }

    .contact-page-content .metro-contact-form .col-md-6 {
        width: 100%;
    }

    .contact-page-content .metro-contact-form input[type="submit"] {
        width: 100%;
    }

    .entry-content ul li,
    .wp-block-list li {
        font-size: 15px;
        margin-bottom: 10px;
    }

    
    /* Product catgeory page  */

    .lootilyo-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lootilyo-category-content {
        padding: 14px 12px;
        gap: 14px;
    }

    .lootilyo-category-title {
        font-size: 16px;
    }

    .lootilyo-category-button {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .lootilyo-404-page {
        min-height: 550px;
        padding: 60px 20px;
        background-position: center;
    }

    .lootilyo-404-icon {
        font-size: 45px;
    }

    .lootilyo-404-number {
        font-size: 115px;
        letter-spacing: 0;
    }

    .lootilyo-404-content h2 {
        font-size: 32px;
    }

    .lootilyo-404-content p {
        font-size: 16px;
    }

    .lootilyo-404-button {
        padding: 14px 22px;
        font-size: 16px;
    }
}

@media (min-width: 450px) and (max-width: 782px) {

    .footer-menu-link {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 30px;
    }

    .footer-menu-link > .wp-block-column {
        flex: 1 1 50% !important;
        width: 50% !important;
        min-width: 0;
    }

}

@media (max-width: 480px) {
   
    #header .header-logo img {
        width: 50px;
        height: 50px;
    }

    #header .header-actions {
        gap: 10px;
    }

    /* Hide the £0.00 text on very small screens to prevent crowding */
    #header .wc-block-mini-cart__amount {
        display: none;
    }

    /* Blog Details  */

    body.single-post .lootilyo-page-banner__title {
        font-size: 19px;
    }

    .post-meta {
        gap: 12px 35px;
    }

    .post-content.entry-content h2 {
        font-size: 19px;
    }

    .post-content.entry-content h3 {
        font-size: 17px;
    }

    .post-content.entry-content h4 {
        font-size: 15px;
    }

    .post-social-sharing {
        gap: 10px;
    }

    .blog-listing-title {
        font-size: 23px;
    }

    .blog-card-image {
        aspect-ratio: 16 / 10;
    }

    .blog-card-content {
        padding: 15px;
    }

    .blog-card-title {
        font-size: 17px;
    }

    .blog-card-read-more {
        padding: 10px 14px;
    }

    .single-product ul.products,
    #two-column .form-row {
        grid-template-columns: 1fr !important;
    }

    .lootilyo-category-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        gap: 12px;
    }

    .post-navigation a {
        padding: 11px 14px;
        font-size: 12px;
        gap: 7px;
    }
}

