

/* SPACER */
/* SPACER */
/* GLOBAL CSS VARIABLES
Everything in root is to make it easier to edit custom parts of the site to match blocks; it means if any updates are made to the global styles that can't affect certain bits of custom css, this is my best work around to prevent us scrolling through the css and changing every small value. Hopefully it should just be a case of matching the stylisation of whatever has been set in global styles!
========================================================= */
:root {
    --transition-in: ease-in 0.5s;
    --transition-out: ease-out 0.5s;
	--button-padding: 0.85rem 1.4rem;
  --legend-padding: 0rem 1.4rem 0.3rem;
	--button-border-radius: 0px;
	--button-background-font-color: var(--wp--preset--color--base);
	--button-background-color: var(--wp--preset--color--accent);
	--button-background-hover-color: var(--wp--preset--color--contrast-2);
	--button-background-font:inherit;
	--button-background-font-size: var(--wp--preset--font-size--medium);
	--button-line-height: inherit;
	--button-text-decoration: none;
	--button-border: none;
	--button-border-color: none;
	--container-padding: 1rem;
  --mobile-padding: 0rem 1rem;
}

.wp-site-blocks {
	overflow-y: auto!important;
}

/* =========================================================
WORDPRESS DEFAULT BUTTON FIXES
========================================================= */
.wp-block-button__link,
.wp-element-button {
    transition: var(--transition-in);
    border-radius:var(--button-border-radius);
}
.wp-element-button:hover,
.wp-block-button__link:hover {
    transition: var(--transition-out);
    background-color: var(--button-background-hover-color) !important;
}

/* =========================================================
STYLING FOR RADIO BUTTONS   
========================================================= */

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--contrast);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: relative;
}

input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--wp--preset--color--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

select {
  font-size: var(--button-background-font-size);
  color: var(--wp--preset--color--contrast);
  border:1px solid #D8D8D8;
  border-radius: 0px;
  background-color: var(--wp--preset--color--base);
  padding: 5px;
}

/* =========================================================
TOP SITE BAR NAVIGATION
========================================================= */
.top_nav_container { }
.top_nav_bar { }

/* Reset link weights */
.top_nav_bar a {

}

/* Submenu container */
.top_nav_bar .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container {
    padding: 0;
    margin: 0;
    border: none !important;
    background-color: var(--wp--preset--color--custom-opaque);
    z-index: 999;
}

/* Submenu links */
.top_nav_bar .wp-block-navigation .has-child .wp-block-navigation__submenu-container li {
    background-color: transparent;
    margin: 0;
}

/* Submenu hover states */
.top_nav_bar .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    transition: var(--transition-in);
    background-color: rgba(0, 0, 0, 0);
    padding: 15px 20px;
}
.top_nav_bar .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--contrast);
    transition: var(--transition-out);
    text-decoration: none;
}

/* =========================================================
CATEGORY DISPLAY GRID
========================================================= */
.category-list {
    display: grid;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list .category-item {
    list-style: none;
}
.category-list.columns-3 { grid-template-columns: repeat(3, 1fr); }
.category-list.columns-4 { grid-template-columns: repeat(4, 1fr); }
.category-list.columns-5 { grid-template-columns: repeat(5, 1fr); }

.category-item {
    padding: 0;
    text-align: center;
    background-color: var(--wp--preset--color--accent);
    transition: var(--transition-in);
}
.category-item:hover {
    background-color: var(--wp--preset--color--contrast-2);
    transition: var(--transition-out);
}

.category-link {
    text-decoration: none;
    display: block;
    color: var(--wp--preset--color--base);
    font-weight: normal;
}

.category-image {
    background-color: #eee;
    text-align: center;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.category-image img {
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-weight: normal;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    text-align: center;
}

/* Optional niceties */
.category-link { display:flex; flex-direction:column; height:100%; }
.category-name { padding:8px 10px; word-wrap:break-word; hyphens:auto; }


/* Featured Product Carousal CSS for Product Name/Title */
.wc-block-product-template.is-product-collection-layout-carousel 
  li.wc-block-product h2.wp-block-post-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;   /* optional, but usually desired */
    height: 100%;         /* lets it fill the min-height you set via JS */
}

/* =========================================================
SHIPPING RIBBON
========================================================= */

/* Base ribbon across grid and single */
.ships-badge {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 1;
    color: var(--wp--preset--color--contrast);
    background-color: var(--wp--preset--color--base-2);
    padding: 5px 20px 5px 10px;
    font-size: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 0 0);
}

/* Keep your existing selectors working */
.ships-intl-badge,
.ships-uk-badge,
.ships-us-badge,
.ships-both-badge { /* inherits from .ships-badge */ }

/* Single product scale-up */
.single-product-information .ships-badge {
    position: relative;
    top: initial;
    font-size: 20px;
}

/* Remove the emoji ::before content mapping */
.ships-badge .flag::before { content: none; }

/* Group flags neatly */
.flag-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;              /* space between each flag */
  margin-right: 6px;     /* space between flags and text */
}

/* Flags themselves */
.ships-badge .flag {
  display: inline-block;
  width: 16px;
  height: 14px;
  background-size: cover;
  background-repeat: no-repeat;
  line-height: 1;
  flex-shrink: 0; /* prevents flags from squishing */
  margin: 0 2px 0 0;
}

.single-product-information .ships-badge .flag {
  width: 20px;
  height: 18px;
}

.ships-badge .flag-uk  { background-image:url('https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f1ec-1f1e7.svg'); }
.ships-badge .flag-us  { background-image:url('https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f1fa-1f1f8.svg'); }
.ships-badge .flag-ca  { background-image:url('https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f1e8-1f1e6.svg'); }
.ships-badge .flag-nz  { background-image:url('https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f1f3-1f1ff.svg'); }
.ships-badge .flag-au  { background-image:url('https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f1e6-1f1fa.svg'); }


.single-product .widget.ships-filter-widget {
  display: none;
}

/* =========================================================
PRODUCT GRID (MARKET + DOKAN OVERRIDES)
========================================================= */

/* Weird Woocommerce CSS that offsets product grid */
/* Disabled for now via css but keep an eye out for weird issues */
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
	display: none!important;
}

.dokan-store-products-filter-area{
  margin:0!important;
  display: none;
}

#dokan_store_section_best_selling {
    display: none; 
}

.product-collection-container,
.woocommerce ul.products,
.dokan-store-wrap ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    padding: 0;
}

.product-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

/* Product images */
.product-top { margin: 0; padding: 0; line-height: 0; }
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}
.product-link-overlay {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

/* Sale badge */
.product-sale .sale-badge { 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--accent);
    z-index: 2;
}

/* Product content */
.product-content { padding: 0; }
.product-title {
    margin: 0;
    padding: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4em;
    min-height: calc(2 * 1.4em);
    max-height: calc(2 * 1.4em);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-title a { color: var(--wp--preset--color--contrast); }

.product-vendor { font-size: 0.85rem; margin: 0; padding: 0 5px; }

.product-price-block {
    font-weight: bold;
    color: var(--wp--preset--color--contrast);
    display: flex;
    justify-content: center;
    font-size: var(--wp--preset--font-size--small);
    margin: 5px 0;
}
.product-price-block .dokan-discount-amount-text {
    display: block;
    font-weight: normal;
}
.product-price-block br { display: none; }

/* Product buttons */
.product-buttons {
    display: flex;
    flex-direction: column;
    margin: 15px 0 0;
}
.product-buttons br { display: none !important; }

/* Strip WP auto p wrappers */
.product-container > p,
.product-top > p,
.product-image > p,
.product-content > p,
.product-buttons > p { 
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   CUSTOM PRODUCT FILTER (SIDEBAR)
========================================================= */

.filter-sidebar {
  padding: 0 10px 10px;
  margin: 0 0 20px!important;
  border: 1px solid var(--wp--preset--color--custom-opaque-2);
  font-size: var(--wp--preset--font-size--small);
}

.filter-sidebar p {
  display: none;
}

/* Make legend behave nicely */
.filter-sidebar > legend {
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;               /* lets button size naturally */
}

.filter-sidebar .sidebar-toggle {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  /* animation */
  transition: 
    background-color 220ms ease,
    color 220ms ease,
    padding 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
  will-change: transform;
}

/* little press feedback */
.filter-sidebar .sidebar-toggle:active {
  transform: scale(0.98);
}

/* collapsed container state */
.filter-sidebar:has(.sidebar-toggle[aria-expanded="false"]) {
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  padding: 0;
}

/* collapsed button state */
.filter-sidebar:has(.sidebar-toggle[aria-expanded="false"]) .sidebar-toggle {
  width: 100%;
  padding-left: 1rem;   /* tweak to taste */
  padding-right: 1rem;  /* tweak to taste */
  box-shadow: none;
}



.sidebar-toggle br {
  display: none;
}

.custom-product-filter {
  max-width: 100%;
}

/* Generic labels + inputs */

.custom-product-filter .filter-section label {
  display: inline-block;
}

.custom-product-filter input[type="checkbox"] {
  accent-color: var(--wp--preset--color--accent);
}

.custom-product-filter .ship-filter input[type="radio"],
.custom-product-filter .ship-filter input[type="checkbox"] {
  flex: 0 0 auto;     /* no shrinking */
  min-width: 1.1em;   /* safety net */
}

/* Allow the text to wrap nicely */
.custom-product-filter .filter-section label span {
line-height: 100%;
  margin: 0.2rem 0 0;
}

/* Slots to hook more layout if needed */
.custom-product-filter .selected-filters {}
.custom-product-filter .filter-section {
  padding:0px;
  margin: 0px;
}


/* =========================================================
   FIELDSETS: SHIPPING + PRICE
========================================================= */

.custom-product-filter .sale-filter,
.custom-product-filter .ship-filter,
.custom-product-filter .price-filter {
  padding: 0rem 0.5rem;
  margin: 1rem 0 1rem;
  border-color: var(--wp--preset--color--custom-opaque-2);
  border-width: 1px;
  border-style: solid;
  font-size: var(--wp--preset--font-size--small);
}
.custom-product-filter .sale-filter legend,
.custom-product-filter .ship-filter legend,
.custom-product-filter .price-filter legend {
  padding: var(--legend-padding);
  font-size: var(--button-background-font-size);
}

.custom-product-filter .sale-filter label,
.custom-product-filter .ship-filter label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  flex-wrap: nowrap; /* keep input + text on same line; text will wrap */
}

.custom-product-filter .sale-filter p,
.custom-product-filter .ship-filter p,
.custom-product-filter .price-filter p {
  display: block;
  padding: 0;
  margin: 0;
}

.custom-product-filter .sale-filter br,
.custom-product-filter .ship-filter br,
.custom-product-filter .price-filter br {
  display: none;
}

/* =========================================================
   PRICE FILTER — MIN / MAX INLINE ROW
========================================================= */

.price-filter .price-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;              /* flush: no space between items */
}

.price-filter .price-input-container {
  flex: 1 1 0;
  min-width: 0;        /* prevents overflow */
  border: 1px solid var(--wp--preset--color--custom-opaque-2);
  padding: 6px 8px;
  border-radius: var(--button-border-radius);
  box-sizing: border-box;
}

/* Make the inputs fill their containers cleanly */
.price-filter .price-input-container > input {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  box-sizing: border-box;
}

/* Separator: perfectly centered between the two containers */
.price-filter .price-sep {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;      /* fixed width = always perfectly centered */
  margin: 0;           /* flush */
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  user-select: none;
}

.custom-product-filter .price-filter button {
  width: 100%;
  text-align: left;
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  border: var(--button-border);
  background-color: var(--button-background-color);
  font-family: var(--button-background-font);
  font-size: inherit;
  line-height: var(--button-line-height);
  color: var(--button-background-font-color);
  transition: var(--transition-in);
  margin: 10px 0px;
}

.custom-product-filter .price-filter button:hover {
  background-color: var(--button-background-hover-color);
  transition: var(--transition-out);
}


/* =========================================================
   CATEGORY GROUPS (fieldset + toggle button + body)
========================================================= */

.custom-product-filter .category-group {
  width: 100%;
  padding: 0;
  margin: 1rem 0 0;
  border: 0; /* hide fieldset border; we draw border on body instead */
  font-size: var(--wp--preset--font-size--small);
}

.category-group {
  padding:0;
  margin: 0;
  width:100%;
}

.category-group legend {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Toggle button (legend → button) */

.filter-sidebar .sidebar-toggle,
.category-group .group-toggle {
  width: 100%;
  text-align: left;
  border: none;
  font-family: var(--button-background-font);
  padding: var(--button-padding);
  font-size: var(--button-background-font-size);
  color: var(--button-background-font-color);
  background-color: var(--button-background-color);
  cursor: pointer;
  transition: var(--transition-in), box-shadow 0.2s ease, transform 0.2s ease;
}
.filter-sidebar .sidebar-toggle:hover,
.category-group .group-toggle:hover {
  color: var(--button-background-font-color);
  background-color: var(--wp--preset--color--contrast-2);
  transition: var(--transition-out);
}

/* Open state styling based on aria-expanded (no JS changes required) */
.filter-sidebar .sidebar-toggle[aria-expanded="true"],
.category-group .group-toggle[aria-expanded="true"] {
  color: var(--button-background-font-color);
  background-color: var(--wp--preset--color--contrast-2);
  transition: var(--transition-out);
}

/* Indicator animation (rotate + to ×–ish when expanded) */

.category-group .group-toggle .toggle-indicator {
  display: inline-block;
  float: right;
}

/* Group body – now draws the border instead of the fieldset */

.group-body {
  padding: 0.5rem 0rem;

}

.category-group .group-toggle br {
  display: none;
}


/* =========================================================
   CATEGORY TREE (parent + child lists)
========================================================= */

.custom-product-filter .filter-category-list,
.custom-product-filter .child-category {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-product-filter .filter-category-list > li,
.custom-product-filter .child-category > li {
  display: block;
  margin: 0;
  position: relative;
}

/* Expander toggle */

.custom-product-filter .cat-expander {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0;              /* right: 0 in LTR, left: 0 in RTL */
  transform: translateY(-50%);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  line-height: 120%;
  border-width: 0;
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--poppins);
  color: var(--button-background-font-color);
  background-color: var(--button-background-color);
  z-index: 1;
  padding: 4.9px 10px;
}

/* Placeholder stays aligned but invisible */
.custom-product-filter .cat-expander.placeholder {
  color: transparent;            /* hides '+' or '-' text */
  background-color: transparent;
  position: absolute;            /* keep your positioning */
}


/* Actual text links (category items) */

.cat-toggle {
  border: none;
  background: transparent;
  padding: 6px 0;
  margin: 0 0;
  line-height: 100%;
  font: inherit;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--poppins);
  width: 100%;
  text-align: left;
  color: var(--wp--preset--color--contrast);
  transition: var(--transition-in);
}

.cat-toggle:hover {
  color: var(--wp--preset--color--base);
  background-color: var(--wp--preset--color--accent);
  padding: 6px 12px;
  padding-right: 2rem; /* keep the gap on hover */
  transition: var(--transition-out);
}

/* Active/selected state – keep right padding here too */
.custom-product-filter li.active > .cat-toggle,
.custom-product-filter .cat-toggle.active {
  color: var(--wp--preset--color--base);
  font-weight: 600;
  padding: 6px 12px;
  padding-right: 2rem; /* important: keeps space for the icon */
}

/* Active filter highlights */

.custom-product-filter li.active > .cat-toggle,
.custom-product-filter .cat-toggle.active {
  color: var(--wp--preset--color--base);
  background-color: var(--wp--preset--color--accent);
  font-weight: 600;
  padding: 6px 12px;
}

/* Expanded child categories */

.custom-product-filter li > .child-category {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  border-left: 2px solid var(--wp--preset--color--accent);
  transition:
    max-height 0.32s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

.custom-product-filter li.expanded > .child-category {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  margin: 0;
  padding: 5px 0 5px 5px;
}


/* =========================================================
   ACTIVE FILTER TAGS + CLEAR BUTTON
========================================================= */


.active-filters {
  padding: 1rem 0 0;
}

.active-filter-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remove-filter {
    border-radius: 0px;
    border: none;
    color: var(--wp--preset--color--accent);
    background-color: var(--wp--preset--color--base);
    transition: var(--transition-in);
}

.remove-filter:hover {
    color: var(--wp--preset--color--contrast);
    background-color: var(--wp--preset--color--accent-5);
    transition: var(--transition-out);
}

.custom-product-filter .active-filters .active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 5px 5px 0;
  padding: 5px 10px;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
  font-size: var(--wp--preset--font-size--small);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-in);
}

.custom-product-filter .reset-filters {
    display: block;
  width: 100%;
  text-align: left;
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  border: var(--button-border);
  background-color: var(--button-background-color);
  font-family: var(--button-background-font);
  font-size: inherit;
    font-weight: normal;
  line-height: var(--button-line-height);
  color: var(--button-background-font-color);
  transition: var(--transition-in);
  margin: 10px 0px;
}

.custom-product-filter .active-filters .active-filter-pill:hover,
.custom-product-filter .reset-filters:hover {
  background-color: var(--wp--preset--color--contrast);
  transition: var(--transition-out);
}


/* Sidebar body animation */
#cpf-sidebar-body {
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s ease,
    padding 0.5s ease;
}

/* IMPORTANT: override hidden so it can animate */
#cpf-sidebar-body[hidden] {
  display: block !important;      /* overrides native hidden behavior */
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}



/* =========================================================
DOKAN CUSTOM STYLING
========================================================= */

/* Remove Profile Completness */
.dokan-panel.dokan-panel-default.dokan-profile-completeness {
    display: none;
}


/* Murdering that gap between shop vendor banner top and the top bar */
#primary.content-area {
    margin-top: 0!important;
}

/* Hide "Best selling products" section if the product list is empty */
#dokan_store_section_best_selling .vendor-best-sellers:has(ul.products:empty) {
  display: none;
}


/* Wrap */
.dokan-store-wrap {
    max-width: var(--wp--style--global--content-size);
    margin-top: 0!important;
    margin-left: auto!important;
    margin-right: auto!important;
    padding: var(--wp--style--root--padding);
}

/* Banner */
.custom-dokan-banner-container {
    width: 100vw;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 350px;
    overflow: hidden;

    /* Fallback color */
    background-color: var(--wp--preset--color--base-2);
    border-bottom: 10px solid var(--wp--preset--color--base-2);
}

/* Blurred background fill */
.custom-dokan-banner-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit; /* we'll override inline with JS/PHP if needed */
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.2); /* prevents visible edges after blur */
    z-index: 0;
}

/* Foreground banner image */
.custom-dokan-banner-container img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain; /* keeps original aspect */
    display: block;
    margin: 0 auto;
}


/* Profile frame */
.custom-dokan-profile-frame-wrapper { height: auto; }

/* Columns */
.custom-dokan-columns {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    margin-top: -100px;
    z-index: 1;
}
.custom-dokan-column { flex: 1; min-width: 200px; }
.profile_image_container {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
}
.store_name_container {
    flex: 1;
    padding: 100px 0 0 0;
    margin: 0;
}

.store_name_container .store-name {
    margin: 10px 0 0;
}

.store_name_container .store-name a {
    color: var(--wp--preset--color--contrast-3);
}

.store_name_container .store-name a:hover {
  color: var(--wp--preset--color--contrast-2);
}

/* Profile image */
.profile-img {
    height: 200px;
    width: 200px;
    border-radius: 10%;
    overflow: hidden;
    border: 10px solid var(--wp--preset--color--base-2);
    background-color: var(--wp--preset--color--base);
}
.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Store Notices */
.custom-dokan-store-notice {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--wp--preset--color--base-2);
}
.custom-dokan-store-notice .notice-text {
    font-size: 1rem;
    line-height: 1.6;
}


/* Info row */
.custom-dokan-info-row {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
    margin: var(--wp--preset--spacing--40) 0;
    align-items: center;
    text-align: center;
}

.custom-dokan-info-row > div {
    width: 100%;
    max-width: 320px;
}

/* Button inner layout (works for both modes) */
.custom-dokan-button > a.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* Icon baseline */
.custom-dokan-info-row .btn-icon {
    line-height: 1;
}

/* Accessible helper */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*Override for Dokan's stupid styling */
.dokan-store-support-btn.wp-block-button__link.wp-element-button.dokan-btn.dokan-btn-theme.dokan-btn-sm {
    width: min-content;
    background-color: var(--button-background-color);
    border-width: 0;
    border-radius: var(--button-border-radius);
    color: var(--wp--preset--color--base);
    font-family: var(--button-background-font);
    font-size: var(--wp--preset--font-size--medium);
    line-height: var(--button-line-height);
    padding: var(--button-padding);
    text-decoration: var(--button-text-decoration);
    border-color: var(--button-border-color);
    margin: 0;
}
.dokan-store-support-btn.wp-block-button__link.wp-element-button.dokan-btn.dokan-btn-theme.dokan-btn-sm br {
    display: none;
}
.dokan-store-support-btn.wp-block-button__link.wp-element-button.dokan-btn.dokan-btn-theme.dokan-btn-sm:hover{
    background-color: var(--button-background-hover-color)!important;
}

.dokan-store-category-filter {
	margin: 0 0 1rem;
    font-size: 1em!important;
}

.dokan-store-category-filter form label{
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--button-background-font-size) !important;
}

.dokan-store-category-filter select {
  font-size: var(--button-background-font-size);
  color: var(--wp--preset--color--contrast);
  border:1px solid #D8D8D8;
  border-radius: 0px;
  background-color: var(--wp--preset--color--base);
  padding: 5px;
}


/* =========================================================
   FIELDSET: VENDOR BIOGRAPHY
========================================================= */
.custom-dokan-biography {
  padding: 1rem 0.5rem 1rem;
  margin: 1rem 0 0;
  border-color: var(--wp--preset--color--base-2);
  border-width: 1px;
  border-style: solid;
  font-size: var(--wp--preset--font-size--small);
}

.custom-dokan-biography legend {
  padding: var(--legend-padding);
  font-size: var(--button-background-font-size);
}

.custom-dokan-biography .biography-content {
  padding: 0rem 1rem 1rem; /* Reduced top padding */
}

.custom-dokan-biography .biography-text {
  font-size: var(--wp--preset--font-size--normal);
}

.custom-dokan-biography .biography-text p {
  margin: 0 0 1em 0; /* Standard paragraph spacing */
}

.custom-dokan-biography .biography-text p:last-child {
  margin-bottom: 0; /* Remove margin from last paragraph */
}

.custom-dokan-biography .biography-preview {
  display: inline;
}

/* Smooth reveal animation for expanded text */
.custom-dokan-biography .biography-full {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
}

/* When the hidden attribute is removed, animate open */
.custom-dokan-biography .biography-full:not([hidden]) {
  max-height: 2000px;
  opacity: 1;
}

/* When hidden attribute is present, ensure it's collapsed */
.custom-dokan-biography .biography-full[hidden] {
  display: block !important; /* Override browser default display:none to allow animation */
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  visibility: hidden; /* Hide from screen readers when collapsed */
}

/* Biography Toggle Button - inline with legend */
.biography-toggle {
  position: relative;
  top: -20px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  line-height: 100%;
  padding: var(--button-padding);
  margin: 0 0 0 2rem;
  color: var(--wp--preset--color--contrast-3);
  background-color: var(--wp--preset--color--base-2);
  border: var(--button-border);
  border-radius: var(--button-border-radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 100ms ease;
  will-change: transform;
}

.biography-toggle:hover {
  color: var(--wp--preset--color--base-2);
  background: var(--wp--preset--color--contrast-2);
  border: none;
}

/* Expanded state */
.biography-toggle[aria-expanded="true"] {
  color: var(--wp--preset--color--base-2);
  background-color: var(--wp--preset--color--contrast-2);
}

.biography-toggle .toggle-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}


.custom-dokan-biography .toggle-text {
  text-align: left;
  flex: 1;
}

/* ------------------------------
   Basket
   ------------------------------ */
.woocommerce-account .wp-block-post-title,
.sig-basket .woocommerce-account main .woocommerce,
.woocommerce-cart .wp-block-post-title,
.woocommerce-cart main .woocommerce,
.woocommerce-checkout .wp-block-post-title,
.woocommerce-checkout main .woocommerce {
	max-width: 1400px!important;
}

/* ------------------------------
   Shared Review Card Styles
   ------------------------------ */

/* ------------------------------
   Common Review Grid
------------------------------ */
.custom-dokan-review-grid,
.custom-product-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two per row on desktop */
    gap: var(--wp--preset--spacing--30, 1.5rem);
    margin-top: var(--wp--preset--spacing--30, 2rem);
    box-sizing: border-box;
    max-width: 100%;
}


/* ===========================================
   REVIEW CARD BASE
=========================================== */
.custom-dokan-review-item,
.custom-product-review-item {
    background: var(--wp--preset--color--base-2);
    padding: 1rem;
    font-size: var(--wp--preset--font-size--small);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Meta info (top row) */
.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: var(--wp--preset--font-size--medium);
}
.review-author { margin-right: 10px; }
.review-date:before {
    content: "|";
    margin-right: 10px;
    color: var(--wp--preset--color--custom-opaque-2);
}

/* ===========================================
   INLINE LAYOUT (IMAGE + TEXT)
=========================================== */
.review-inline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Left side: thumbnail */
.review-product-thumb {
    flex: 0 0 auto;
    width: 80px;
    max-width: 25%;
    min-width: 60px;
    box-sizing: border-box;
}
.review-product-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.review-product-thumb img:hover { transform: scale(1.05); }

/* Right side: body content */
.review-body {
    flex: 1 1 auto;
    min-width: 0; /* prevents overflow from long text */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-sizing: border-box;
}

/* ===========================================
   CONTENT & STARS
=========================================== */
.review-rating {
    display: flex;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--wp--preset--font-size--x-large);
    color: var(--wp--preset--color--accent);
}
.review-rating .star {
    line-height: 1;
    color: var(--wp--preset--color--custom-opaque-2);
}
.review-rating .star.filled { color: var(--wp--preset--color--accent); }

.review-content {
    font-size: var(--wp--preset--font-size--small, 0.95rem);
    color: var(--wp--preset--color--contrast);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Product long description */
.product-full-description p { margin: 0 0 1rem; }
.product-full-description ul,
.product-full-description ol { margin: 0 0 1rem 1.25rem; }
.product-full-description ul { list-style: disc; }
.product-full-description ol { list-style: decimal; }

/* Restore emphasis */
.product-full-description b,
.product-full-description strong { font-weight: 700; }
.product-full-description em,
.product-full-description i { font-style: italic; }

/* In case something is overriding with !important */
.product-full-description b,
.product-full-description strong { font-weight: 700 !important; }
.product-full-description em,
.product-full-description i { font-style: italic !important; }

/* Reviews formatting too */
.review-content p { margin: 0 0 1rem; }
.review-content b,
.review-content strong { font-weight: 700 !important; }
.review-content em,
.review-content i { font-style: italic !important; }
.review-content ul,
.review-content ol { margin: 0 0 1rem 1.25rem; }
.review-content ul { list-style: disc; }
.review-content ol { list-style: decimal; }


/* =========================================================
SINGLE PRODUCT PAGE
========================================================= */

.product-full-description {
    margin: 0 0 2rem;
    padding: 0px;
}

/* About Seller Container */
.about-seller{
  background-color: var(--wp--preset--color--base-2);
  padding: 0 1rem 1rem;
  overflow: hidden;
  margin: 2rem 0;
}

.about-seller .custom-dokan-banner-container {
    height: 200px;
    border-color: var(--wp--preset--color--accent);
}

.about-seller .custom-dokan-banner-container img {
    height: 100%;
    width: auto;
}

.about-seller .profile_image_container{
    height: 150px;
    width: 150px;
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
}

.about-seller .profile-img {
    height:150px;
    width: 150px;
    border-color: var(--wp--preset--color--accent);
}

.seller-description {
    margin: 2rem 0 ;
}


/* =========================================================
MY ACCOUNT PAGE
========================================================= */

/* Wrap avatar and user info in two columns */
.my-account-user-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* Avatar column */
.user-avatar-column {
    flex: 0 0 auto; /* keeps it fixed width */
}

/* User info column */
.user-info-column {
    flex: 1; /* fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation menu as vertical list of buttons */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.my-account-sidebar {
  padding: 1rem;
  background-color: var(--wp--preset--color--base-2);
}

/* Override Woocommerce's CSS */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%!important;
    float: clear!important;
    padding: 0;
    margin: 0;
}

.my-account-sidebar .woocommerce-MyAccount-navigation li {
  padding: 0px;
    margin: 0;
    line-height: 100%;
}

.my-account-sidebar .woocommerce-MyAccount-navigation li a {
  background-color: transparent;
  text-align: left;
  font-weight: normal;
  color: var(--wp--preset--color--contrast);
  transition: var(--transition-in);
}

.my-account-sidebar .woocommerce-MyAccount-navigation li a:hover {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  transition: var(--transition-out);
}


/* =========================================================
CUSTOM PAGINATION TO MATCH DOKAN
========================================================= */
.dokan-store-reviews-page .navigation.pagination {
    margin: 1rem 0 0;
}
.nav-links br{
  display: none;
}
.nav-links {
  text-align: center;
  font-weight: bold;
}
.nav-links .current {
  color: var(--wp--preset--color--accent);
  background: #eee;
}
.nav-links .dots {
cursor: not-allowed;
    color: #ccc;
}
.nav-links span, .nav-links a {
  padding: 3px 10px;
  border: 1px solid #EDEDED;
  margin-right: 3px;
  text-decoration: none;
}

/* =========================================================
RESPONSIVE / MOBILE RULES (CONSOLIDATED)
Everything that was scattered throughout is now down here.
========================================================= */

/* =========================================================
ACCESSIBILITY (NOT MOBILE-SPECIFIC)
Originally: @media (prefers-reduced-motion: reduce)
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .custom-product-filter li > .child-category {
    transition: none;
  }
}

/* =========================================================
DESKTOP / TABLET ENHANCEMENTS
Originally: @media (min-width: 768px)
========================================================= */
@media (min-width: 768px) {
    
  /* Overall page padding */
  .dokan-store-wrap {
    padding: var(--mobile-padding);
  }
    
    .custom-dokan-info-row {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
    }
    .custom-dokan-info-row > div {
        width: auto;
        max-width: none;
    }

    /* Desktop: show text, optionally hide icons if you want */
    /* If you'd rather show both, delete this rule */
    .custom-dokan-info-row .btn-icon {
        display: none;
    }
}

/* =========================================================
MOBILE / SMALL TABLET
(Your most common breakpoint)
Originally: multiple @media (max-width: 782px)
========================================================= */
@media (max-width: 782px) {

  /* =========================================================
  TOP BAR MOBILE VIEW
  Originally: @media (max-width: 782px)
  ========================================================= */

  /* Layout: nav + cart columns side by side, with gap */
  .wp-container-core-columns-is-layout-28232c24 {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: 1rem !important;
      width: 100%;
  }

  /* Adjust column widths so the gap doesn't push them out */
  .navigation_column,
  .cart_column {
      flex: 0 0 calc(50% - 0.50rem) !important; /* subtract half the gap */
      max-width: calc(50% - 0.50rem);
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  /* Ensure nav block fills its half */
  .navigation_column .top_nav_bar {
    width: 100%;
  }

  /* Ensure the cart wrapper can't cap the width */
  .wp-block-woocommerce-mini-cart,
  .wp-block-woocommerce-mini-cart .wc-block-mini-cart {
    width: 100%;
  }

  /* Keep icon + amount tidy on one line */
  .wc-block-mini-cart__quantity-badge { margin-right: .5rem; }
  .wc-block-mini-cart__amount { margin-left: .25rem; }

  /* HAMBURGER BUTTON: full width inside its column */
  .wp-block-navigation__responsive-container-open,
  .wc-block-mini-cart__button {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px 14px;
    height: 50px;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--base);
    box-sizing: border-box;
  }

  /* Align SVG icons (hamburger + close) centrally */
  .wp-block-navigation__responsive-container-close svg,
  .wp-block-navigation__responsive-container-open svg {
    text-align: center;
    margin: 0 auto;
  }

  /* Close container */
  .wp-block-navigation__responsive-container-close {
    display: block;
    width: 100%;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--base);
    padding: 1rem;
    box-sizing: border-box;
  }

  .wp-block-navigation__responsive-container-close:after {
    content: "Close";
    display: inline-block;
    margin-left: 8px;
  }

  /* Remove any stray inline spacing inside the nav block row */
  .top_nav_container .wp-block-navigation { width: 100%; }

  /* Inside Open Hamburger Menu on Mobile */
  #modal-1-content .wp-block-navigation__responsive-container-content {
    margin: 0;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation {
    padding: 2rem;
    margin: 0;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    margin: 0;
    padding: 0;
  }

  /* =========================================================
     FIX: prevent mobile menu overlay from expanding horizontally
  ========================================================== */
  
  /* Clamp the overlay to viewport width */
  .wp-block-navigation__responsive-container,
  .wp-block-navigation__responsive-dialog,
  .wp-block-navigation__responsive-container-content {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Remove extra margin that caused overflow */
  .wp-block-navigation__responsive-close {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Main menu list container */
  .wp-block-navigation__container {
    list-style: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /* Submenu lists */
  .wp-block-navigation__submenu-container {
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  
  .top_nav_bar .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container {
    padding:0px!important;
  }

  .top_nav_bar .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item  {
    border-left: 2px solid var(--wp--preset--color--custom-opaque-2);
    margin: 10px 0 0px;
    padding: 0 0 0 10px;
  }

 .top_nav_bar .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
   padding:5px;
  }

  /* Final safeguard */
  html, body { overflow-x: hidden; }

  /* =========================================================
  CATEGORY DISPLAY GRID (Larger phones / small tablets)
  Originally: @media (min-width: 481px) and (max-width: 782px)
  ========================================================= */
  .category-list,
  .category-list.columns-3,
  .category-list.columns-4,
  .category-list.columns-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* =========================================================
  SHIPPING RIBBON (Mobile)
  Originally: @media (max-width: 782px)
  ========================================================= */
  .ships-badge {
    top: 10px;
  }

  .ships-badge .label {
    display: none;
  }
  
  .single-product-information .ships-badge {
    font-size: 14px;
  }    

  .single-product-information .ships-badge .label {
    display: block;
  }

  .product-title {
    min-height: calc(2 * 1em);
    max-height: calc(2 * 3em);
  }

  /* =========================================================
  REVIEW GRID (Mobile: 1 per row)
  Originally: @media (max-width: 782px)
  ========================================================= */
  .custom-dokan-review-grid,
  .custom-product-review-grid {
    grid-template-columns: 1fr; /* single card per row */
    gap: 1rem;
    padding: 0rem; /* small side padding to prevent edge touch */
  }

  /* =========================================================
  REVIEW CARD MOBILE FIXES
  Originally: @media (max-width: 782px)
  ========================================================= */
  .dokan-store-reviews-page {
    padding: 1rem;
    padding-right: 1rem;      /* restore right-side spacing */
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;       /* kill horizontal scroll */
  }

  .custom-dokan-review-item,
  .custom-product-review-item {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .review-inline {
    flex-direction: row;      /* stay side-by-side */
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .review-product-thumb {
    flex: 0 0 70px;
    width: 70px;
    max-width: 70px;
  }

  .review-body {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
}

/* =========================================================
SMALL PHONES ONLY
Originally: @media (max-width: 480px)
(Kept separate because it’s a different breakpoint)
========================================================= */
@media (max-width: 480px) {
  .category-list,
  .category-list.columns-3,
  .category-list.columns-4,
  .category-list.columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =========================================================
MOBILE (DOKAN)
Originally: @media (max-width: 768px)
(Kept separate because it’s a different breakpoint)
========================================================= */
@media (max-width: 768px) {

  /* Overall page padding */
  .dokan-store-wrap {
    padding: var(--mobile-padding);
  }
  
  .custom-dokan-columns {
    margin: 0px;
    gap: 0;
  }

  /* If you have custom columns, make them stack cleanly */
  .custom-dokan-column {
    flex: 0 0 100%;
    min-width: 100% !important;
  }
  
  .single-product-view-about-seller.about-seller .profile_image_container{
    height: 100%;
  }
  
  .single-product-view-about-seller.about-seller .seller-description {
    margin: 2rem 0px 0px;
  }
  

  /* Banner full-bleed */
  .custom-dokan-banner-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  /* Profile image: overlap banner + centered */
  .profile-img {
    width: 150px;
    height: 150px;
    margin: -25% auto 0; /* pulls upward into the banner */
  }
  /* Store name area: remove odd spacing/column behavior */
  .store_name_container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
  }

  /* --- Buttons: first row = other buttons, second row = support --- */

  .custom-dokan-info-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    text-align: center;
  }

  .custom-dokan-info-row > div.custom-dokan-button {
    flex: 1 1 0;
    min-width: 44px;
    width: auto;
    max-width: none;
  }

  .custom-dokan-info-row > div.custom-dokan-support {
    flex: 0 0 100%;
    width: 100%;
  }

  .custom-dokan-button > a.wp-block-button__link {
    width: 100%;
    height: 100%;
    padding: 0.75rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  
    /* Hide icons on mobile */
    .custom-dokan-info-row .btn-icon {
        display: none;
    }
    
    /* Hide the long text descriptions */
    .custom-dokan-rating .btn-text,
    .custom-dokan-email .btn-text,
    .custom-dokan-phone .btn-text {
        display: none;
    }
    
    /* Show simple one-word labels instead */
    .custom-dokan-rating .wp-block-button__link::after {
        content: 'Reviews';
    }
    
    .custom-dokan-email .wp-block-button__link::after {
        content: 'Email';
    }
    
    .custom-dokan-phone .wp-block-button__link::after {
        content: 'Phone';
    }
    
    .custom-dokan-support .wp-block-button__link .btn-text {
        display: inline;
    }
    
    .custom-dokan-support .wp-block-button__link .btn-text::after {
        content: '';
    }
    
    /* Make buttons more compact on mobile */
    .custom-dokan-info-row .wp-block-button__link {
        padding: 8px 12px;
        font-size: 14px;
    }


  /* Ensure the Dokan support anchor also fills row 2 */
  .dokan-store-support-btn.wp-block-button__link.wp-element-button.dokan-btn.dokan-btn-theme.dokan-btn-sm {
    width: 100%;
  }

  /* Icon-only on mobile */
  .custom-dokan-info-row .btn-text {
    display: none;
  }

  .custom-dokan-info-row .btn-icon {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
  }
}

/* =========================================================
MOBILE PRODUCT GRID TWEAK
Originally: @media (max-width: 640px)
(Kept separate because it’s a different breakpoint)
========================================================= */
@media (max-width: 640px) {
  .product-collection-container,
  .woocommerce ul.products,
  .dokan-store-wrap ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* optional: tighten spacing for small screens */
  }
}

/* =========================================================
MY ACCOUNT PAGE (Small screens)
Originally: @media (max-width: 600px)
(Kept separate because it’s a different breakpoint)
========================================================= */
@media (max-width: 600px) {
  .my-account-user-columns {
    flex-direction: column;
    align-items: center;
  }
  .user-info-column {
    align-items: center;
    text-align: center;
  }
  .my-account-sidebar{
    display: block;
    width: 100%;
  }
  .my-account-main {
    display: block;
    width: 100%;
  }
}


/* =========================================================
END OF CUSTOM CSS
========================================================= */

