/* ================================================================
   DOMINIUS — Custom Shop Styles
   Brand: Lato | #383F43 | #B6BABE | #A8DADC | #FFFFFF
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* CSS variables — single source of truth for brand */
.ps-wrap, .cpg-grid, .ps-modal, .cshop-trust {
    --c-text:        #383F43;
    --c-text-soft:   #6c7378;
    --c-muted:       #B6BABE;
    --c-line:        #e5e7e9;
    --c-bg-soft:     #f7f8f9;
    --c-accent:      #A8DADC;
    --c-accent-dark: #7fc3c6;
    --c-white:       #ffffff;
    --c-success:     #5fb285;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;

    --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Universal box-sizing inside our scope */
.ps-wrap *, .ps-wrap *::before, .ps-wrap *::after,
.cpg-grid *, .cpg-grid *::before, .cpg-grid *::after,
.ps-modal *, .ps-modal *::before, .ps-modal *::after,
.cshop-trust *, .cshop-trust *::before, .cshop-trust *::after {
    box-sizing: border-box;
}


/* ================================================================
   PRODUCT GRID  ([product_grid] shortcode)
   ================================================================ */
.cpg-grid {
    display: grid;
    gap: 28px;
    margin: 32px 0;
    font-family: var(--font-body);
    color: var(--c-text);
}
.cpg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cpg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cpg-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .cpg-cols-3,
    .cpg-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cpg-cols-2,
    .cpg-cols-3,
    .cpg-cols-4 { grid-template-columns: 1fr; }
}

.cpg-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(56, 63, 67, 0.04);
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1),
                box-shadow 0.4s ease;
    position: relative;
}
.cpg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(56, 63, 67, 0.12);
    color: var(--c-text);
    text-decoration: none;
}

.cpg-card__image {
    flex-shrink: 0;
    overflow: hidden;
    background: var(--c-bg-soft);
}
.cpg-card__image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.cpg-card:hover .cpg-card__image img {
    transform: scale(1.04);
}
.cpg-no-image { width: 100%; height: 380px; background: var(--c-bg-soft); }

.cpg-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 14px;
}
.cpg-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--c-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.cpg-card__price {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cpg-card__price-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.cpg-card__price-label {
    font-size: 0.78rem;
    color: var(--c-text-soft);
    font-weight: 400;
}
.cpg-card__price .woocommerce-Price-amount {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-text);
}
.cpg-card__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.3s ease;
}
.cpg-card:hover .cpg-card__arrow {
    background: var(--c-accent-dark);
    transform: translateX(3px);
}
.cpg-card__arrow svg { width: 18px; height: 18px; }
.cpg-vat {
    display: block;
    font-size: 0.72rem;
    color: var(--c-muted);
    margin-top: 2px;
}


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

/* Suppress default WooCommerce */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product form.cart,
.single-product div.product .product_meta,
.single-product div.product .woocommerce-tabs,
.related.products { display: none !important; }

.ps-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 96px;
    font-family: var(--font-body);
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
.ps-product { padding: 0 !important; margin: 0 !important; }
.ps-product::before, .ps-product::after { display: none !important; content: none !important; }


/* ---- Breadcrumb ---- */
.ps-wrap .ps-breadcrumb {
    grid-column: 1 / -1;
    padding: 32px 0 24px;
    font-size: 0.85rem;
    margin: 0;
}
.ps-wrap .ps-breadcrumb__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.ps-wrap .ps-breadcrumb__list li,
.ps-wrap .ps-breadcrumb__item,
.ps-wrap .ps-breadcrumb__sep {
    display: inline-flex !important;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
.ps-wrap .ps-breadcrumb__list li::before,
.ps-wrap .ps-breadcrumb__list li::marker {
    display: none !important;
    content: none !important;
}
.ps-wrap .ps-breadcrumb__item a {
    color: var(--c-text-soft);
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 400;
}
.ps-wrap .ps-breadcrumb__item a:hover { color: var(--c-text); }
.ps-wrap .ps-breadcrumb__sep { color: var(--c-muted); }
.ps-wrap .ps-breadcrumb__current { color: var(--c-text); font-weight: 600; }


/* ---- Two-column layout ---- */
.ps-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: start;
    margin-top: 8px;
    margin-bottom:50px;
}
.ps-layout > * { min-width: 0; max-width: 100%; }


/* ---- Gallery ---- */
.ps-gallery {
    display: flex;
    gap: 16px;
    min-width: 0;
}
.ps-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.ps-thumb {
    width: 84px;
    height: 84px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--c-bg-soft);
}
.ps-thumb:hover { transform: translateY(-2px); }
.ps-thumb.is-active { border-color: var(--c-text); }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ps-gallery__main {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
}
.ps-gallery__slide { display: none; }
.ps-gallery__slide.is-active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.ps-gallery__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}
.ps-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(56, 63, 67, 0.15);
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
    color: var(--c-text);
    font-size: 1.4rem;
    line-height: 1;
}
.ps-gallery__nav:hover { background: var(--c-accent); transform: translateY(-50%) scale(1.05); }
.ps-gallery__nav--prev { left: 16px; }
.ps-gallery__nav--next { right: 16px; }
.ps-gallery__counter {
    position: absolute;
    /*bottom: 16px;*/
    right: 18px;
    background: rgba(56, 63, 67, 0.85);
    color: var(--c-white);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    margin-top:20px;
}


/* ---- Info panel ---- */
.ps-info { min-width: 0; }
.ps-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    margin: 0 0 12px;
    color: var(--c-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    word-wrap: break-word;
}
.ps-desc {
    color: var(--c-text-soft);
    font-size: 1rem;
    margin: 0 0 32px;
    line-height: 1.65;
    text-align:justify;
}
.ps-desc p:first-child { margin-top: 0; }
.ps-desc p:last-child { margin-bottom: 0; }
.ps-desc img { max-width: 100%; height: auto; }


/* ---- Attribute blocks ---- */
.ps-attr { margin-bottom: 28px; }
.ps-attr__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c-text-soft);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ps-attr__options { display: flex; flex-wrap: wrap; gap: 10px; }

.ps-attr__btn {
    padding: 8px 10px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: var(--c-white);
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    color: var(--c-text);
    white-space: nowrap;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}
.ps-attr__btn:hover {
    border-color: var(--c-text);
    transform: translateY(-1px);
}
.ps-attr__btn.is-active {
    border-color: var(--c-text);
    background: var(--c-text);
    color: var(--c-white);
    font-weight: 700;
}

/* Color swatch variant */
.ps-attr__btn--swatch {
    padding: 8px 16px 8px 8px;
}
.ps-attr__swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 63, 67, 0.12);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.ps-attr__btn--swatch.is-active .ps-attr__swatch {
    border-color: var(--c-white);
    box-shadow: 0 0 0 2px var(--c-text);
}
.ps-attr__name { display: inline-block; }

/* Glass type — list style */
.ps-attr--list .ps-attr__options { flex-direction: column; gap: 0; }
.ps-attr--list .ps-attr__btn {
    text-align: left;
    border-radius: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--c-line);
    margin-top: -1px;
    width: 100%;
}
.ps-attr--list .ps-attr__btn:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-top: 0; }
.ps-attr--list .ps-attr__btn:last-child  { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.ps-attr--list .ps-attr__btn.is-active {
    border-color: var(--c-text);
    background: var(--c-text);
    color: var(--c-white);
    position: relative;
    z-index: 1;
}
.ps-attr__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-text);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    flex-shrink: 0;
}
.ps-attr--list .ps-attr__btn.is-active .ps-attr__check { display: flex; }


/* ---- Price ---- */
.ps-price {
    margin: 32px 0 24px;
    padding: 20px 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.ps-price__label {
    display: block;
    font-size: 0.78rem;
    color: var(--c-text-soft);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.ps-price__amount {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.ps-price__amount .woocommerce-Price-amount,
.ps-price__amount bdi { font-size: inherit !important; font-weight: inherit !important; }


/* ---- CTA buttons ---- */
.ps-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: #a8dadc;
    color: var(--c-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
    text-transform: none;
        transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}
.ps-btn-primary:hover {
    background: #18b0e9;
    color: var(--c-white);
    text-decoration: none;
    transform: translateY(-1px);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}
.ps-btn-primary::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.2s;
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}
.ps-btn-primary:hover::after { transform: translateX(4px); }


.ps-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.ps-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    background: var(--c-white);
    cursor: pointer;
    font-family: var(--font-body);
}
.ps-btn-secondary:hover {
    border-color: var(--c-text);
    background: var(--c-bg-soft);
    color: var(--c-text);
    text-decoration: none;
}


/* ---- Specs ---- */
.ps-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--c-line);
}
.ps-specs__label {
    display: block;
    font-size: 0.72rem;
    color: var(--c-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.ps-specs__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
}


/* ---- Long description ---- */
.ps-longdesc {
   margin-top: 72px;
    /*padding-top: 56px;*/
    border-top: 1px solid var(--c-line);
}
.ps-longdesc__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 24px;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.ps-longdesc__body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--c-text-soft);
    max-width: 100%;
    text-align: justify;
}
.ps-longdesc__body h2,
.ps-longdesc__body h3 {
    color: var(--c-text);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}
.ps-longdesc__body p { margin: 0 0 1.2em; }
.ps-longdesc__body p:last-child { margin-bottom: 0; }
.ps-longdesc__body ul,
.ps-longdesc__body ol { margin: 0 0 1.2em 1.5em; }
.ps-longdesc__body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }


/* ---- Features ---- */
.ps-features {
    margin-top: 56px;
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    padding: 40px 44px;
}
.ps-features__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 24px;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.ps-features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-features__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--c-text);
}
.ps-features__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--c-accent);
    color: var(--c-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
}


/* ---- Related ---- */
.ps-related { margin-top: 88px; }
.ps-related__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 32px;
    color: var(--c-text);
    letter-spacing: -0.02em;
}


/* ================================================================
   TRUST SIGNALS  ([trust_signals] shortcode)
   ================================================================ */
.cshop-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /*padding: 36px 32px;*/
    /*margin: 40px 0;*/
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    font-family: var(--font-body);
    color: var(--c-text);
    background:none;
    width:100%;
}
.cshop-trust__item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.cshop-trust__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(56, 63, 67, 0.06);
}
.cshop-trust__icon svg { width: 26px; height: 26px; }
.cshop-trust__text {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--c-text);
}

@media (max-width: 960px) {
    .cshop-trust { grid-template-columns: repeat(2, 1fr); padding: 28px 24px; gap: 18px; }
}
@media (max-width: 540px) {
    .cshop-trust { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
    .cshop-trust__item { gap: 14px; }
    .cshop-trust__icon { width: 44px; height: 44px; min-width: 44px; }
    .cshop-trust__icon svg { width: 22px; height: 22px; }
}


/* ================================================================
   INQUIRY MODAL
   ================================================================ */
.ps-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: var(--font-body);
    color: var(--c-text);
}
.ps-modal.is-open { display: flex; }
.ps-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(56, 63, 67, 0.6);
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.ps-modal__box {
    position: relative;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 44px 44px 40px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 25px 80px rgba(56, 63, 67, 0.25);
}
.ps-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--c-muted);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.15s;
}
.ps-modal__close:hover { color: var(--c-text); }
.ps-modal__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 6px;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.ps-modal__product {
    color: var(--c-text-soft);
    font-size: 0.92rem;
    margin: 0 0 32px;
}
.ps-modal__success {
    background: #ecfdf5;
    color: #065f46;
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #a7f3d0;
}
.ps-modal__error { color: #dc2626; font-size: 0.86rem; margin-top: 12px; }

.ps-field { margin-bottom: 18px; }
.ps-field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ps-field input,
.ps-field textarea,
.ps-field select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--c-text);
    transition: border-color 0.15s;
    box-sizing: border-box;
    background: var(--c-white);
}
.ps-field input:focus,
.ps-field textarea:focus,
.ps-field select:focus { outline: none; border-color: var(--c-text); }
.ps-field textarea { resize: vertical; min-height: 110px; }

.ps-field select {
    padding: 13px 40px 13px 16px;
    background: var(--c-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23383F43'/></svg>") no-repeat right 16px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.ps-modal .ps-field input,
.ps-modal .ps-field textarea,
.ps-modal .ps-field select,
.ps-modal .js-form-variation {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    box-sizing: border-box;
}

.ps-form-variations {
    margin-top: 28px;
    margin-bottom: 24px;
    padding: 22px 24px;
    /*background: var(--c-bg-soft);*/
    border-radius: var(--radius-sm);
}
.ps-form-variations__title {
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ps-form-variations .ps-field:last-child { margin-bottom: 0; }


/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 960px) {
    .ps-wrap { padding: 0 20px 56px; max-width: 100%; }
    .ps-layout { grid-template-columns: 1fr; gap: 36px; margin-top: 8px; }

    /* Anti-overflow */
    .ps-layout, .ps-layout > *,
    .ps-gallery, .ps-gallery__main, .ps-gallery__slide,
    .ps-info, .ps-attr, .ps-attr__options {
        min-width: 0;
        max-width: 100%;
    }

    .ps-wrap .ps-breadcrumb { padding: 20px 0 12px; font-size: 0.8rem; }

    .ps-layout .ps-gallery,
    .ps-wrap .ps-gallery {
        position: static !important;
        top: auto !important;
        flex-direction: column;
        gap: 12px;
        max-height: none !important;
        align-self: start;
    }
    .ps-gallery__main { 
    order: 1; 
    max-height: none; 
}
    .ps-gallery__slide { width: 100%; max-width: 100%; }
    .ps-gallery__slide img {
        max-height: 70vh;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: top center;
    }
    .ps-gallery__thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .ps-thumb { width: 70px; height: 70px; flex-shrink: 0; }
    .ps-gallery__nav { width: 40px; height: 40px; }

    .ps-info { width: 100%; }
    .ps-price__amount { font-size: 1.85rem; }

    .ps-features { margin-top: 40px; padding: 28px 24px; }
    .ps-features__grid { grid-template-columns: 1fr; }

    .ps-longdesc { margin-top: 48px; padding-top: 36px; }
    .ps-longdesc__title, .ps-related__title { font-size: 1.35rem; }

    .ps-related { margin-top: 56px; }

    .cpg-card__image img { height: 320px; }
    .cpg-no-image { height: 320px; }
    
    
}

@media (max-width: 540px) {
    .ps-wrap { padding: 0 16px 40px; }
    .ps-desc { font-size: 0.95rem; margin-bottom: 24px; }
    .ps-btn-group { grid-template-columns: 1fr; }
    .ps-specs { grid-template-columns: 1fr; gap: 18px; }
    .ps-price__amount { font-size: 1.65rem; }
    .ps-modal { padding: 14px; }
    .ps-modal__box { padding: 32px 22px 28px; }
    .ps-modal__title { font-size: 1.3rem; }
    .ps-features { padding: 24px 18px; }

    .cpg-card__image img { height: 280px; }
    .cpg-no-image { height: 280px; }
    .cpg-card__body { padding: 18px 20px 20px; }
}


/* ================================================================
   PRODUCT CARD (refined — minimal shadow)
   ================================================================ */
.cpg-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(56, 63, 67, 0.04);
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    position: relative;
}
.cpg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 63, 67, 0.08);
    border-color: rgba(56, 63, 67, 0.18);
    color: var(--c-text);
    text-decoration: none;
}

.cpg-card__image {
    flex-shrink: 0;
    overflow: hidden;
    background: var(--c-bg-soft);
}
.cpg-card__image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.cpg-card:hover .cpg-card__image img { transform: scale(1.04); }
.cpg-no-image { width: 100%; height: 380px; background: var(--c-bg-soft); }

.cpg-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 15px;
}
.cpg-card__title {
    font-family: var(--font-display);
    font-size: 18px !important;
    font-weight: 700;
    margin: 0;
    color: var(--c-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.cpg-card__price {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cpg-card__price-info { display: flex; flex-direction: column; line-height: 1.3; }
.cpg-card__price-label {
    font-size: 0.78rem;
    color: var(--c-text-soft);
    font-weight: 400;
}
.cpg-card__price .woocommerce-Price-amount {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-text);
}
.cpg-card__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.3s ease;
}
.cpg-card:hover .cpg-card__arrow {
    background: var(--c-accent-dark);
    transform: translateX(3px);
}
.cpg-card__arrow svg { width: 18px; height: 18px; }


/* ================================================================
   TRUST SIGNALS  (homepage style: centered, line icons, no badge)
   ================================================================ */
.cshop-trust {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 20px;
    background: none;
    border: 0;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px 0;
    font-family: var(--font-body);
    color: #5c6d71;
}
.cshop-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 14px;
}
.cshop-trust__icon {
    width: auto;
    height: auto;
    min-width: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #6f8a8d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.cshop-trust__item:hover .cshop-trust__icon {
    transform: translateY(-3px);
}
.cshop-trust__icon svg {
    width: 46px;
    height: 46px;
    stroke-width: 1.4;
}
.cshop-trust__text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #5c6d71;
    max-width: 16ch;
}

@media (max-width: 1024px) {
    .cshop-trust { grid-template-columns: repeat(3, 1fr); gap: 30px 16px; padding: 8px 0; }
}
@media (max-width: 560px) {
    .cshop-trust { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .cshop-trust__icon svg { width: 40px; height: 40px; }
}

/* ================================================================
   ATTRIBUTE ACTIVE STATE — accent (light teal) instead of dark
   ================================================================ */
.ps-attr__btn.is-active {
    border-color: #e5e7e9;
    background: #f7f8f9;
    color: var(--c-text);
    font-weight: 1000;
        border-color: var(--c-text);
}

/* Color swatch active — keep dark ring for contrast against any swatch */
.ps-attr__btn--swatch.is-active {
    border-color: var(--c-text);
    background: var(--c-bg-soft);
    color: var(--c-text);
}
.ps-attr__btn--swatch.is-active .ps-attr__swatch {
    border-color: var(--c-white);
    box-shadow: 0 0 0 2px var(--c-text);
}

/* List style (glass type) active — accent background */
.ps-attr--list .ps-attr__btn.is-active {
    border-color: #e5e7e9;
    background: #f7f8f9;
    color: var(--c-text);
    font-weight: 1000;
    position: relative;
    z-index: 1;
    border-color: var(--c-text);
}

/* Checkmark stays the same teal it's already using, but on the active
   accent background we want it to invert so it's visible */
.ps-attr--list .ps-attr__btn.is-active .ps-attr__check {
    background: var(--c-text);
    color: var(--c-accent);
}

/* ================================================================
   PRODUCT BADGE (used on cards + single product page)
   ================================================================ */
.cshop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(56, 63, 67, 0.12);
    white-space: nowrap;
}
.cshop-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.cshop-badge__text { display: inline-block; }

/* On product card — top-left overlay on image */
.cpg-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

/* On single product page — above title */
.ps-badge {
    margin-bottom: 14px;
}

@media (max-width: 540px) {
    .cshop-badge {
        font-size: 0.68rem;
        padding: 6px 12px 6px 10px;
        letter-spacing: 0.05em;
    }
    .cpg-card__badge { top: 10px; left: 10px; }
}


/* ---- Color buttons — full background fill ---- */
.ps-attr__btn--swatch {
    /*padding: 14px 22px;*/
    /*min-width: 100px;*/
    border: 2px solid var(--c-line);
    color: var(--c-text);
    font-weight: 700;
    transition: all 0.2s ease;
    position: relative;
    background: transparent; /* default; overridden by inline style */
}
.ps-attr__btn--swatch.is-light-bg { color: #1a1a1a; }
.ps-attr__btn--swatch.is-dark-bg  { color: #ffffff; }

.ps-attr__btn--swatch:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 63, 67, 0.25);
}
.ps-attr__btn--swatch.is-active {
    border-color: var(--c-text) !important;
    box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-text);
}
.ps-attr__btn--swatch .ps-attr__swatch { display: none; } /* hide the old bubble */
.ps-attr__btn--swatch .ps-attr__name { display: inline-block; }

/* Checkmark inside the color button when active */
.ps-attr__btn--swatch .ps-attr__color-check {
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 0.72rem;
    font-weight: 900;
}
.ps-attr__btn--swatch.is-active .ps-attr__color-check { display: inline-flex; }
.ps-attr__btn--swatch.is-light-bg.is-active .ps-attr__color-check {
    background: #1a1a1a;
    color: #ffffff;
}
.ps-attr__btn--swatch.is-dark-bg.is-active .ps-attr__color-check {
    background: #ffffff;
    color: #1a1a1a;
}

/* ---- Colour buttons with a real material photo (small swatch icon) ---- */
.ps-attr__btn--swatch-img {
    padding: 6px 14px 6px 6px;
}
.ps-attr__swatch-img {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(56, 63, 67, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.ps-attr__btn--swatch-img.is-active .ps-attr__swatch-img {
    box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3px var(--c-text);
}

/* ---- Gallery — locked-height design ---- */
:root {
    --thumb-size: 84px;
    --thumb-gap: 10px;
    /* 6 thumbs + 5 gaps = 6*84 + 5*10 = 554px */
    --gallery-height: calc(6 * var(--thumb-size) + 5 * var(--thumb-gap));
}

.ps-gallery {
    display: flex;
    gap: 16px;
    min-width: 0;
    min-height: 0;
}
.ps-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--thumb-gap);
    flex-shrink: 0;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* hide scrollbar visually */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.ps-gallery__thumbs::-webkit-scrollbar { display: none; }

.ps-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--c-bg-soft);
    flex-shrink: 0;
    position: relative;
}
.ps-thumb:hover { transform: translateY(-2px); }
.ps-thumb.is-active { border-color: var(--c-text); }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Subtle scroll indicator at bottom of thumbs when more images exist */
.ps-gallery__thumbs.has-more::after {
    content: '';
    position: sticky;
    bottom: 0;
    height: 24px;
    margin-top: -24px;
    background: linear-gradient(to bottom, transparent, var(--c-white));
    pointer-events: none;
    flex-shrink: 0;
}

.ps-gallery__main {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
}
.ps-gallery__slide { display: none; height: 100%; }
.ps-gallery__slide.is-active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}
.ps-gallery__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}



.ps-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--c-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-wrap: break-word;
}
.ps-desc {
    color: var(--c-text-soft);
    font-size: 0.92rem;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-line);
    line-height: 1.55;
}
.ps-desc p { margin: 0; }
.ps-desc h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--c-text);
}

/* Tighter attribute spacing */
.ps-attr { margin-bottom: 18px; }
.ps-attr__label { margin-bottom: 8px; }
.ps-attr--list .ps-attr__btn { padding: 8px 10px; }

/* Compact price block */
.ps-price {
    margin: 22px 0 16px;
    padding: 14px 0;
}
.ps-price__amount { font-size: 1.85rem; }

/* Tighter spec grid */
.ps-specs { margin-top: 22px; padding-top: 20px; gap: 18px; }


/* Lightbox stiliai */
.ps-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 10000;
    display: none; align-items: center; justify-content: center;
}
.ps-lightbox.is-open { display: flex; }
.ps-lightbox__overlay { position: absolute; width: 100%; height: 100%; cursor: pointer; }
.ps-lightbox__content { position: relative; z-index: 10; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; }
.ps-lightbox__content img { max-width: 100%; max-height: 90vh; object-fit: contain; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.ps-lightbox__close { 
    position: absolute; top: 20px; right: 20px; background: none; border: none; 
    color: #fff; font-size: 50px; cursor: pointer; z-index: 11; line-height: 1;
}
.ps-lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); color: #fff; border: none;
    font-size: 50px; padding: 20px; cursor: pointer; transition: 0.3s;
}
.ps-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.ps-lightbox__nav--prev { left: -80px; }
.ps-lightbox__nav--next { right: -80px; }

/* Mobiliems įrenginiams */
@media (max-width: 1024px) {
    .ps-lightbox__nav { padding: 10px; font-size: 30px; }
    .ps-lightbox__nav--prev { left: 10px; }
    .ps-lightbox__nav--next { right: 10px; }
}

@media (max-width: 960px) {
    .ps-gallery {
        height: auto !important;
    }

    .ps-gallery__main {
        height: auto !important;
        max-height: none !important;
        background: transparent !important;
    }

    .ps-gallery__slide {
        height: auto !important;
    }

    .ps-gallery__slide.is-active {
        display: block !important;
    }

    .ps-gallery__slide img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: top center !important;
        display: block !important;
    }
}

@media (max-width: 960px) {
    .ps-gallery {
        flex-direction: column !important;
        height: auto !important;
    }

    .ps-gallery__main {
        order: 1;
        height: auto !important;
        max-height: none !important;
    }

    .ps-gallery__slide,
    .ps-gallery__slide.is-active {
        height: auto !important;
    }

    .ps-gallery__slide img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: top center !important;
        display: block !important;
    }

    .ps-gallery__thumbs {
        order: 2;
        flex-direction: row !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px;
        padding: 8px 0 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .ps-gallery__thumbs::-webkit-scrollbar {
        height: 4px;
    }

    .ps-gallery__thumbs::-webkit-scrollbar-thumb {
        background: #B6BABE;
        border-radius: 999px;
    }

    .ps-thumb {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px;
        flex: 0 0 70px;
    }

    .ps-gallery__thumbs.has-more::after {
        display: none !important;
    }
}

/* ============================================================
   Breadcrumb visibility safeguard
   The markup is always present; some theme/page-builder rules
   can hide or collapse it. These high-specificity declarations
   force it to render at the top of the product layout.
   ============================================================ */
.ps-product .ps-wrap nav.ps-breadcrumb,
.ps-wrap nav.ps-breadcrumb {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 3 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 24px 0 18px !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    pointer-events: auto !important;
}
.ps-product .ps-wrap nav.ps-breadcrumb .ps-breadcrumb__list {
    display: flex !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    gap: 6px 8px !important;
}
.ps-product .ps-wrap nav.ps-breadcrumb .ps-breadcrumb__item,
.ps-product .ps-wrap nav.ps-breadcrumb .ps-breadcrumb__sep,
.ps-product .ps-wrap nav.ps-breadcrumb a,
.ps-product .ps-wrap nav.ps-breadcrumb .ps-breadcrumb__current {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.ps-product .ps-wrap nav.ps-breadcrumb a {
    color: #383F43 !important;
    text-decoration: none !important;
}
.ps-product .ps-wrap nav.ps-breadcrumb .ps-breadcrumb__current {
    color: #383F43 !important;
    font-weight: 600 !important;
}
.ps-product .ps-wrap nav.ps-breadcrumb .ps-breadcrumb__sep {
    color: #B6BABE !important;
}

/* ============================================================
   GLASS TYPE — image card grid (like the homepage "Type glass")
   ============================================================ */
.ps-attr--glass .ps-attr__options {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 16px;
}
.ps-attr__btn--glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: center;
}
.ps-glass__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1.5px solid var(--c-line);
    border-radius: 12px;
    background-color: #f1f3f4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ps-glass__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5f8a86;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(56, 63, 67, 0.25);
}
.ps-glass__name {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--c-text-soft);
    text-align: center;
}
.ps-attr__btn--glass:hover .ps-glass__thumb {
    border-color: var(--c-text-soft);
}
.ps-attr__btn--glass.is-active .ps-glass__thumb {
    border-color: #5f8a86;
    box-shadow: 0 0 0 1px #5f8a86;
}
.ps-attr__btn--glass.is-active .ps-glass__check {
    display: flex;
}
.ps-attr__btn--glass.is-active .ps-glass__name {
    color: var(--c-text);
    font-weight: 600;
}

@media (max-width: 480px) {
    .ps-attr--glass .ps-attr__options { gap: 14px 12px; }
}
