/*
Theme Name: Marketo G
Template: marketo
Version: 1.1.4
Text Domain: marketo-g
*/

.mmg-catalog-page .shop-archive .row > #primary {
    flex: 0 0 100%;
    max-width: 100%;
}

.mmg-layout {
    --mmg-ink: #182338;
    --mmg-muted: #4c5b70;
    --mmg-blue: #075bab;
    --mmg-line: #dbe2eb;
    --mmg-bg: #f5f8fc;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.mmg-layout [hidden] { display: none !important; }
.mmg-heading, .mmg-sidebar, .mmg-catalog { min-width: 0; }
.mmg-heading, .mmg-sidebar { color: var(--mmg-ink); }
.mmg-layout a:focus-visible, .mmg-layout button:focus-visible {
    outline: 2px solid var(--mmg-blue);
    outline-offset: 2px;
}

.mmg-catalog .woocommerce-products-header__title { font-size: 14px; line-height: 1.35; }

.mmg-quick-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 5px; }
.mmg-quick-heading span { font-size: 14px; font-weight: 600; }
.mmg-more { min-height: 44px; padding: 5px 2px; background: transparent; border: 0; color: var(--mmg-blue); font-size: 16px; font-weight: 700; text-align: left; }
.mmg-more::after, .mmg-branch::after { content: ''; display: inline-block; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mmg-more::after { margin: 0 6px 3px 9px; }
.mmg-more[aria-expanded='true']::after, .mmg-branch[aria-expanded='true']::after { transform: rotate(225deg); }

.mmg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mmg-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-height: 84px; padding: 7px 4px; border: 1px solid var(--mmg-line); border-radius: 8px; background: #fff; color: var(--mmg-ink); text-align: center; text-decoration: none; font-size: 12px; line-height: 1.28; font-weight: 600; overflow-wrap: anywhere; }
.mmg-card:hover { border-color: var(--mmg-blue); color: var(--mmg-blue); }
.mmg-card[aria-current='page'] { border-color: var(--mmg-blue); color: var(--mmg-blue); background: var(--mmg-bg); font-weight: 700; }
.mmg-card img, .mmg-card-placeholder { display: block; width: 42px; height: 42px; object-fit: contain; border-radius: 5px; }
.mmg-card-placeholder { background: var(--mmg-bg); }

.mmg-mobile-actions { display: flex; gap: 8px; margin-top: 10px; }
.mmg-panel-toggle { flex: 1 1 0; min-height: 44px; padding: 7px 8px; color: var(--mmg-blue); background: #fff; border: 1px solid var(--mmg-blue); border-radius: 7px; font-size: 15px; font-weight: 700; }
.mmg-panel-toggle[data-mmg-panel='filters'], .mmg-panel-toggle[aria-expanded='true'] { color: #fff; background: var(--mmg-blue); }

.mmg-sidebar { display: grid; align-content: start; gap: 12px; }
.mmg-panel { min-width: 0; padding: 12px; border: 1px solid var(--mmg-line); border-radius: 8px; background: var(--mmg-bg); }
.mmg-panel-head { display: flex; align-items: center; justify-content: space-between; }
.mmg-panel-head h2 { font-size: 17px; margin: 0 0 4px; }
.mmg-panel-close { min-width: 44px; min-height: 44px; padding: 7px; background: #fff; border: 1px solid var(--mmg-line); border-radius: 6px; color: var(--mmg-ink); font-size: 20px; line-height: 1; }
.mmg-panel .widget { margin: 8px 0 0; padding: 0; }
.mmg-panel .widget:last-child { margin-bottom: 0; }
.mmg-tree, .mmg-tree ul { padding: 0; margin: 0; list-style: none; }
.mmg-tree ul { margin-left: 9px; padding-left: 8px; border-left: 1px solid var(--mmg-line); }
.mmg-tree-row { display: flex; align-items: stretch; min-width: 0; border-bottom: 1px solid var(--mmg-line); }
.mmg-tree-row a { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 7px 4px; color: var(--mmg-ink); font-size: 13px; font-weight: 500; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.mmg-tree-row a:hover { color: var(--mmg-blue); text-decoration: underline; }
.mmg-tree-row a[aria-current='page'] { color: var(--mmg-blue); font-weight: 700; box-shadow: inset 3px 0 var(--mmg-blue); padding-left: 9px; }
.mmg-tree > li > .mmg-tree-row > a { font-weight: 700; }
.mmg-branch { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 44px; min-height: 44px; background: transparent; border: 0; padding: 7px; color: var(--mmg-ink); }
.mmg-description { margin-block: 38px 22px; padding-top: 29px; border-top: 1px solid #e6e6e6; }
.mmg-description:empty { display: none; }

@media (min-width: 768px) {
    .mmg-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .mmg-card { min-height: 91px; font-size: 13px; }
    .mmg-card img, .mmg-card-placeholder { width: 48px; height: 48px; }
}

@media (min-width: 992px) {
    .mmg-layout { grid-template-columns: minmax(210px, 1fr) minmax(0, 2.08fr); gap: 12px 27px; align-items: start; }
    .mmg-sidebar { grid-column: 1; grid-row: 1 / span 2; }
    .mmg-heading { grid-column: 2; grid-row: 1; }
    .mmg-catalog { grid-column: 2; grid-row: 2; }
    .mmg-mobile-actions, .mmg-panel-close { display: none; }
    .mmg-layout--no-cards .mmg-heading { display: none; }
    .mmg-layout--no-cards .mmg-catalog { grid-row: 1; }
}

@media (max-width: 767px) {
    .mmg-catalog .woocommerce-filter-content { flex-direction: column; flex-wrap: wrap; align-items: stretch; gap: 8px; }
    .mmg-catalog .woocommerce-filter-content .woocommerce-ordering, .mmg-catalog .woocommerce-filter-content select { max-width: 100%; }
}
