:root {
    --vd-teal: #0d4f63;
    --vd-teal-mid: #1a6b83;
    --vd-teal-light: #e8f4f8;
    --vd-gold: #f5b800;
    --vd-gold-dark: #d9a200;
    --vd-white: #ffffff;
    --vd-off-white: #f7f9fa;
    --vd-text: #1a2b30;
    --vd-text-muted: #6b8089;
    --vd-border: #dde8ec;
    --vd-radius-sm: 6px;
    --vd-radius-md: 12px;
    --vd-radius-lg: 20px;
    --vd-shadow-sm: 0 2px 8px rgba(13,79,99,0.10);
    --vd-shadow-md: 0 6px 24px rgba(13,79,99,0.14);
    --vd-shadow-lg: 0 16px 48px rgba(13,79,99,0.18);
    --vd-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SHOP PAGE CATEGORY GRID ── */
.vd-shop-categories { padding: 0 0 60px; }
.vd-shop-categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vd-cat-card { display: flex; flex-direction: column; text-decoration: none !important; color: var(--vd-text) !important; border-radius: var(--vd-radius-md); overflow: hidden; background: var(--vd-white); border: 1px solid var(--vd-border); box-shadow: var(--vd-shadow-sm); transition: transform var(--vd-transition), box-shadow var(--vd-transition), border-color var(--vd-transition); position: relative; }
.vd-cat-card:hover { transform: translateY(-4px); box-shadow: var(--vd-shadow-md); border-color: var(--vd-teal-mid); }
.vd-cat-card__image-wrap { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--vd-teal-light); }
.vd-cat-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); display: block; }
.vd-cat-card:hover .vd-cat-card__image-wrap img { transform: scale(1.06); }
.vd-cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(13,79,99,0.18) 100%); pointer-events: none; }
.vd-cat-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vd-cat-card__name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--vd-teal) !important; margin: 0 0 2px !important; }
.vd-cat-card__count { font-size: 12px; color: var(--vd-text-muted); }
.vd-cat-card__cta { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--vd-gold-dark); letter-spacing: 0.02em; text-transform: uppercase; transition: letter-spacing var(--vd-transition), color var(--vd-transition); }
.vd-cat-card:hover .vd-cat-card__cta { letter-spacing: 0.06em; color: var(--vd-teal); }

/* ── BRANDS / CATEGORY ARCHIVE ── */
body.tax-product_cat .woocommerce ul.products,
body.post-type-archive-product .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; border: none !important; margin: 0 !important; }
body.tax-product_cat .woocommerce ul.products li.product-category,
body.post-type-archive-product .woocommerce ul.products li.product-category { width: 100% !important; padding: 0 !important; margin: 0 !important; border: none !important; }
body.tax-product_cat .woocommerce ul.products li.product-category .product-wrapper,
body.post-type-archive-product .woocommerce ul.products li.product-category .product-wrapper { border: 1px solid var(--vd-border) !important; border-radius: var(--vd-radius-md) !important; overflow: hidden !important; background: var(--vd-white) !important; box-shadow: var(--vd-shadow-sm) !important; transition: transform var(--vd-transition), box-shadow var(--vd-transition), border-color var(--vd-transition) !important; height: 100% !important; display: flex !important; flex-direction: column !important; padding: 0 !important; }
body.tax-product_cat .woocommerce ul.products li.product-category .product-wrapper:hover,
body.post-type-archive-product .woocommerce ul.products li.product-category .product-wrapper:hover { transform: translateY(-4px) !important; box-shadow: var(--vd-shadow-md) !important; border-color: var(--vd-teal-mid) !important; }
body.tax-product_cat li.product-category .product-wrapper > a:first-child,
body.post-type-archive-product li.product-category .product-wrapper > a:first-child { display: block !important; overflow: hidden; aspect-ratio: 3/2; background: var(--vd-teal-light); }
body.tax-product_cat li.product-category .product-wrapper > a:first-child img,
body.post-type-archive-product li.product-category .product-wrapper > a:first-child img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.4s ease !important; }
body.tax-product_cat li.product-category .product-wrapper:hover > a:first-child img,
body.post-type-archive-product li.product-category .product-wrapper:hover > a:first-child img { transform: scale(1.06) !important; }
body.tax-product_cat li.product-category .product-wrapper > .meta-wrapper,
body.post-type-archive-product li.product-category .product-wrapper > .meta-wrapper { padding: 16px 18px 18px !important; flex: 1; display: flex !important; flex-direction: column; gap: 4px; }
body.tax-product_cat li.product-category .category-name h2,
body.tax-product_cat li.product-category .category-name h3,
body.post-type-archive-product li.product-category .category-name h2,
body.post-type-archive-product li.product-category .category-name h3 { font-size: 14px !important; font-weight: 700 !important; color: var(--vd-teal) !important; margin: 0 0 4px !important; }
body.tax-product_cat li.product-category .category-name mark,
body.post-type-archive-product li.product-category .category-name mark { background: none !important; font-size: 11px !important; color: var(--vd-text-muted) !important; font-weight: 400 !important; display: block !important; }

/* ── PLP FILTER BUTTON ── */
.vd-filter-btn { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 20px !important; background: var(--vd-teal) !important; color: var(--vd-white) !important; border: 2px solid var(--vd-teal) !important; border-radius: 40px !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; transition: background var(--vd-transition), border-color var(--vd-transition), color var(--vd-transition) !important; min-width: 0 !important; line-height: 1 !important; text-transform: none !important; box-shadow: var(--vd-shadow-sm) !important; margin-left: auto !important; }
.vd-filter-btn:hover, .vd-filter-btn[aria-expanded="true"] { background: var(--vd-gold) !important; border-color: var(--vd-gold) !important; color: var(--vd-text) !important; }
.vd-filter-btn__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--vd-gold); color: var(--vd-text); border-radius: 10px; font-size: 11px; font-weight: 700; }
@media (min-width: 1280px) { .filter-widget-area-button { display: none !important; } }
@media (max-width: 1279px) { .vd-filter-btn { display: none !important; } }

/* ── SLIDE-OUT FILTER PANEL ── */
.vd-filter-panel { position: fixed; inset: 0; z-index: 99995; pointer-events: none; }
.vd-filter-panel.is-open { pointer-events: all; }
.vd-filter-panel__backdrop { position: absolute; inset: 0; background: rgba(10,30,40,0.55); opacity: 0; transition: opacity 0.3s ease; cursor: pointer; }
.vd-filter-panel.is-open .vd-filter-panel__backdrop { opacity: 1; }
.vd-filter-panel__inner { position: absolute; top: 0; left: 0; bottom: 0; width: 360px; max-width: 90vw; background: var(--vd-white); box-shadow: var(--vd-shadow-lg); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); z-index: 1; }
.vd-filter-panel.is-open .vd-filter-panel__inner { transform: translateX(0); }
.vd-filter-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--vd-border); background: var(--vd-teal); color: var(--vd-white); flex-shrink: 0; }
.vd-filter-panel__title { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.vd-filter-panel__close { background: transparent; border: 1px solid rgba(255,255,255,0.35) !important; color: var(--vd-white) !important; border-radius: 50% !important; width: 32px !important; height: 32px !important; min-width: 0 !important; padding: 0 !important; font-size: 14px !important; cursor: pointer; display: flex !important; align-items: center; justify-content: center; box-shadow: none !important; }
.vd-filter-panel__close:hover { background: rgba(255,255,255,0.15) !important; }
.vd-filter-panel__body { flex: 1; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.vd-filter-panel__body .widget-container { margin: 0 0 28px !important; padding: 0 0 28px !important; border-top: none !important; border-bottom: 1px solid var(--vd-border) !important; }
.vd-filter-panel__body .widget-container:last-child { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.vd-filter-panel__body .widgettitle, .vd-filter-panel__body .widget-title { font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; color: var(--vd-text-muted) !important; margin-bottom: 14px !important; }
.vd-filter-panel__note { font-size: 14px; color: var(--vd-text-muted); line-height: 1.7; }
body.vd-filter-panel-open { overflow: hidden; }

/* ── PLP TOOLBAR ── */
.woocommerce .before-loop-wrapper { display: flex !important; align-items: center !important; flex-wrap: wrap; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--vd-border); margin-bottom: 32px !important; }
.woocommerce .woocommerce-result-count { font-size: 13px; color: var(--vd-text-muted); margin: 0; }

/* ── SIDEBAR FILTER WIDGETS ── */
#left-sidebar .widgettitle, #left-sidebar .widget-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vd-text-muted); padding-bottom: 10px; border-bottom: 2px solid var(--vd-teal); margin-bottom: 16px !important; }
#left-sidebar .woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range::before { background: var(--vd-teal) !important; }
#left-sidebar .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--vd-teal) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .vd-shop-categories__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } body.tax-product_cat .woocommerce ul.products, body.post-type-archive-product .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px) { .vd-shop-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } body.tax-product_cat .woocommerce ul.products, body.post-type-archive-product .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .vd-shop-categories__grid { grid-template-columns: 1fr 1fr; gap: 10px; } body.tax-product_cat .woocommerce ul.products, body.post-type-archive-product .woocommerce ul.products { grid-template-columns: 1fr !important; } .vd-filter-panel__inner { width: 100%; max-width: 100%; } }

/* ── Vivid Direct Quote Form ── */

.vd-quote-wrap {
    margin-top: 20px !important;
    clear: both !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

/* ── Toggle button ── */
.vd-quote-toggle {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    background: transparent !important;
    border: 2px solid #0d4f63 !important;
    border-radius: 40px !important;
    color: #0d4f63 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: left !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-width: 0 !important;
}
.vd-quote-toggle:hover,
.vd-quote-toggle[aria-expanded="true"] {
    background: #0d4f63 !important;
    color: #ffffff !important;
    border-color: #0d4f63 !important;
}
.vd-quote-toggle__label { flex: 1 !important; padding: 0 4px !important; }
.vd-quote-toggle__chevron { flex-shrink: 0 !important; transition: transform .25s ease !important; }
.vd-quote-toggle[aria-expanded="true"] .vd-quote-toggle__chevron { transform: rotate(180deg) !important; }

/* ── Collapsible panel ── */
.vd-quote-panel {
    overflow: hidden !important;
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, margin-top .3s ease !important;
}
.vd-quote-panel.is-open {
    max-height: 3000px !important;
    opacity: 1 !important;
    margin-top: 12px !important;
}
.vd-quote-panel__inner {
    border: 1px solid #dde8ec !important;
    border-radius: 12px !important;
    padding: 22px 24px 26px !important;
    background: #f7f9fa !important;
}
.vd-quote-panel__intro {
    font-size: 13px !important;
    color: #6b8089 !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #dde8ec !important;
}

/* ── GF wrapper ── */
#gform_wrapper_5 { margin: 0 !important; padding: 0 !important; }
#gform_wrapper_5 .gform-body { padding: 0 !important; }
#gform_wrapper_5 .gfield { margin-bottom: 16px !important; }
#gform_wrapper_5 .gfield_label,
#gform_wrapper_5 .gform-field-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a2b30 !important;
    margin-bottom: 6px !important;
}

/* ── Inputs ── */
#gform_wrapper_5 input[type="text"],
#gform_wrapper_5 input[type="email"],
#gform_wrapper_5 input[type="tel"],
#gform_wrapper_5 input[type="number"],
#gform_wrapper_5 textarea,
#gform_wrapper_5 select {
    border: 1px solid #dde8ec !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.4 !important;
}
#gform_wrapper_5 input:focus,
#gform_wrapper_5 textarea:focus {
    border-color: #0d4f63 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(13,79,99,.1) !important;
}
#gform_wrapper_5 textarea {
    height: 100px !important;
    resize: vertical !important;
}

/* ── Name field ── */
#gform_wrapper_5 .ginput_container--name {
    display: flex !important;
    gap: 12px !important;
}
#gform_wrapper_5 .ginput_container--name .gform-grid-col {
    flex: 1 !important;
    min-width: 0 !important;
}
#gform_wrapper_5 .gform-field-label--type-sub {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #6b8089 !important;
    margin-top: 4px !important;
}

/* ── List/spec table ── */
#gform_wrapper_5 .ginput_container_list { overflow-x: auto !important; }
#gform_wrapper_5 .gfield_list_container { width: 100% !important; min-width: 500px !important; }
#gform_wrapper_5 .gfield_list_header.gform-grid-row,
#gform_wrapper_5 .gfield_list_group.gform-grid-row {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) 60px !important;
    gap: 6px !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}
#gform_wrapper_5 .gfield_header_item {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b8089 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
#gform_wrapper_5 .gfield_list_group_item input {
    padding: 7px 8px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}
#gform_wrapper_5 .gfield_list_icons {
    display: flex !important;
    gap: 4px !important;
    justify-content: center !important;
}
#gform_wrapper_5 .add_list_item,
#gform_wrapper_5 .delete_list_item {
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #dde8ec !important;
    background: #fff !important;
    color: #0d4f63 !important;
    cursor: pointer !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    text-transform: none !important;
}
#gform_wrapper_5 .add_list_item:hover {
    background: #0d4f63 !important;
    color: #fff !important;
    border-color: #0d4f63 !important;
}

/* ── Submit ── */
#gform_wrapper_5 .gform-footer,
#gform_wrapper_5 .gform_footer { margin-top: 8px !important; padding: 0 !important; }
#gform_wrapper_5 input[type="submit"],
#gform_wrapper_5 button[type="submit"] {
    background: #f5b800 !important;
    border: 2px solid #f5b800 !important;
    color: #1a2b30 !important;
    font-weight: 700 !important;
    padding: 13px 28px !important;
    border-radius: 40px !important;
    font-size: 14px !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
#gform_wrapper_5 input[type="submit"]:hover {
    background: #d9a200 !important;
    border-color: #d9a200 !important;
}

/* ── Confirmation ── */
#gform_wrapper_5 .gform_confirmation_message {
    background: #e8f4f8 !important;
    border: 1px solid #0d4f63 !important;
    border-radius: 8px !important;
    padding: 16px 18px !important;
    color: #0d4f63 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
