/* ==========================================================================
   Gloe – Elementor Product Widgets
   ========================================================================== */

/* ---------- Shared: Stars ---------- */
.gloe-stars{position:relative;display:inline-flex;align-items:center}
.gloe-stars-empty{display:flex;gap:2px;color:#d4d4d4}
.gloe-stars-filled{position:absolute;left:0;top:0;display:flex;gap:2px;overflow:hidden;color:#E4AD00}
.gloe-star{width:18px;height:18px;flex-shrink:0;border-radius:1.5px}
.gloe-stars svg{border-radius:1.5px}

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

/* ==========================================================================
   1. Product Hero
   ========================================================================== */
.gloe-hero-grid{display:flex;flex-direction:column;gap:2rem;max-width:1400px;margin:0 auto;padding:0 1rem}
@media(min-width:1024px){
	.gloe-hero-grid{flex-direction:row;gap:2.5rem}
	.gloe-hero-gallery{flex:0 0 60%;max-width:60%}
	.gloe-hero-info{flex:1;position:sticky;top:2rem;align-self:flex-start;max-height:calc(100vh - 4rem);overflow-y:auto}
}

/* Gallery – 2-column masonry-like grid */
.gloe-gallery-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:640px){.gloe-gallery-grid{grid-template-columns:1fr 1fr}}
.gloe-gallery-cell{overflow:hidden;border-radius:14px;background:#f5f5f5}

.gloe-gallery-img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease}
.gloe-gallery-cell:hover .gloe-gallery-img{transform:scale(1.02)}

/* Info – right column */
.gloe-hero-info{display:flex;flex-direction:column;gap:1rem}
/* Hide scrollbar on sticky info */
.gloe-hero-info::-webkit-scrollbar{width:0;background:transparent}
.gloe-hero-info{scrollbar-width:none}
.gloe-hero-badges{display:flex;flex-wrap:wrap;gap:8px}
.gloe-hero-badge{display:inline-block;padding:4px 14px;border-radius:4px;font-size:.8125rem;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:.02em}
.gloe-hero-rating{display:flex;align-items:center;gap:8px}
.gloe-rating-num{font-size:.875rem;font-weight:600;color:#525252}
.gloe-rating-count{font-size:.875rem;color:#737373;text-decoration:none}
.gloe-rating-count:hover{color:#008b98}
.gloe-hero-title-row{display:flex;align-items:center;gap:12px}
.gloe-hero-title{margin:0;font-size:1.75rem;font-weight:700;color:#171717;line-height:1.3}
@media(min-width:768px){.gloe-hero-title{font-size:2rem}}
.gloe-hero-fav{flex-shrink:0;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e5e5;border-radius:50%;background:#fff;color:#a3a3a3;cursor:pointer;transition:all .2s}
.gloe-hero-fav:hover{border-color:#008b98;color:#008b98;background:rgba(0,139,152,.05)}
.gloe-fav-icon{width:20px;height:20px}
.gloe-hero-excerpt{font-size:.9375rem;line-height:1.6;color:#525252}
.gloe-hero-price{font-size:1.25rem;font-weight:700;color:#008b98}

/* Multi-pack */
.gloe-multipack{display:flex;flex-direction:column;gap:8px}
.gloe-multipack-option{display:block;padding:12px 16px;border:2px solid #e5e5e5;border-radius:10px;cursor:pointer;transition:all .2s;background:#fff}
.gloe-multipack-option:hover,.gloe-multipack-option.is-selected{border-color:#008b98;background:rgba(0,139,152,.03)}
.gloe-multipack-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gloe-multipack-label{font-size:.9375rem;font-weight:500;color:#171717}
.gloe-multipack-price{display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:700;color:#008b98}
.gloe-multipack-old{font-size:.8125rem;font-weight:400;color:#a3a3a3}
.gloe-multipack-save{font-size:.75rem;font-weight:600;color:#fff;background:#dc2626;padding:2px 8px;border-radius:4px}

/* Add to cart */
.gloe-hero-add-to-cart{margin-top:.5rem}
.gloe-hero-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:14px 24px;border:none;border-radius:10px;font-size:1rem;font-weight:600;color:#fff;background:#008b98;cursor:pointer;transition:background .2s,transform .1s}
.gloe-hero-btn:hover{background:#006d77}
.gloe-hero-btn:active{transform:scale(.98)}
.gloe-btn-icon{width:20px;height:20px}
.gloe-out-of-stock{color:#dc2626;font-weight:500}

/* Payment bar */
.gloe-hero-payment-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:.75rem;padding:12px;border:1px solid #e5e5e5;border-radius:10px;background:#fafafa}
.gloe-payment-item{display:flex;align-items:center;gap:6px;font-size:.8125rem;color:#525252}
.gloe-payment-icon{width:20px;height:20px;flex-shrink:0}
.gloe-hero-payment-icons{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px;opacity:.7}
.gloe-hero-payment-icons img{height:24px;width:auto;max-width:52px;object-fit:contain}

/* Accordions */
.gloe-hero-accordions{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;margin-top:1rem}
.gloe-accordion{border-bottom:1px solid #f0f0f0}
.gloe-accordion:last-child{border-bottom:none}
.gloe-accordion-header{display:flex;align-items:center;gap:8px;width:100%;padding:14px 0;cursor:pointer;list-style:none;font-size:.9375rem;font-weight:500;color:#171717;background:none;border:none;text-align:left}
.gloe-accordion-header::-webkit-details-marker{display:none}
.gloe-accordion-icon{width:18px;height:18px;color:#737373;flex-shrink:0}
.gloe-accordion-arrow{width:20px;height:20px;margin-left:auto;color:#a3a3a3;transition:transform .2s;flex-shrink:0}
.gloe-accordion[open] .gloe-accordion-arrow{transform:rotate(180deg)}
.gloe-accordion-body{padding:0 0 16px 26px;font-size:.875rem;line-height:1.6;color:#525252}

/* Perfect Match */
.gloe-perfect-match{margin-top:1.5rem;padding:20px;border:1px solid #e5e5e5;border-radius:12px;background:#fafafa}
.gloe-pm-title{margin:0 0 16px;font-size:1.125rem;font-weight:600;color:#171717}
.gloe-pm-products{display:flex;gap:16px;flex-wrap:wrap}
.gloe-pm-card{display:flex;gap:12px;flex:1;min-width:200px;padding:12px;background:#fff;border:1px solid #e5e5e5;border-radius:10px}
.gloe-pm-img-link{flex-shrink:0;width:72px;height:72px;border-radius:8px;overflow:hidden;background:#f5f5f5}
.gloe-pm-img-link img{width:100%;height:100%;object-fit:cover}
.gloe-pm-info{display:flex;flex-direction:column;gap:4px;justify-content:center}
.gloe-pm-name{font-size:.875rem;font-weight:500;color:#171717;text-decoration:none}
.gloe-pm-name:hover{color:#008b98}
.gloe-pm-price{font-size:.875rem;font-weight:600;color:#008b98}
.gloe-pm-add{padding:6px 14px;border:1px solid #008b98;border-radius:6px;background:transparent;color:#008b98;font-size:.8125rem;font-weight:600;cursor:pointer;transition:all .2s;width:fit-content}
.gloe-pm-add:hover{background:#008b98;color:#fff}

/* Hero accordions – delikatna animacja rozwijania */
.gloe-accordion-content{display:block;overflow:hidden;max-height:2000px;opacity:1;transition:max-height .4s ease-out,opacity .28s ease-out}
details:not([open]) .gloe-accordion-content{max-height:0;opacity:0;padding-top:0;padding-bottom:0;margin:0}
details[open] .gloe-accordion-content{transition:max-height .4s ease-out,opacity .3s ease-out}
details[open] .gloe-accordion-chevron{transform:rotate(180deg)}
.gloe-accordion-chevron{transition:transform .3s ease-out}

/* ==========================================================================
   2. Reviews  (only non-Tailwind bits: modal show/hide + star overlay)
   ========================================================================== */
.gloe-review-modal{opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.gloe-review-modal.is-open{opacity:1;visibility:visible}
.gloe-review-modal-dialog{transform:translateY(24px) scale(.97);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.gloe-review-modal.is-open .gloe-review-modal-dialog{transform:translateY(0) scale(1)}

/* ==========================================================================
   3. Expert Section  (fully Tailwind – no custom CSS needed)
   ========================================================================== */

/* ==========================================================================
   4. Alternating Content  (fully Tailwind – no custom CSS needed)
   ========================================================================== */

/* ==========================================================================
   5. FAQ + Contact
   ========================================================================== */
.gloe-faq-section{padding:4rem 0}
.gloe-faq-container{max-width:1280px;margin:0 auto;padding:0 1rem}
.gloe-faq-main-heading{text-align:center;font-size:1.75rem;font-weight:700;color:#171717;margin:0 0 3rem}
.gloe-faq-main-heading em{font-style:italic;font-weight:400}
.gloe-faq-grid{display:grid;grid-template-columns:1fr;gap:3rem}
@media(min-width:768px){.gloe-faq-grid{grid-template-columns:1.2fr 1fr;gap:4rem}}
.gloe-faq-title{font-size:1.25rem;font-weight:600;color:#171717;margin:0 0 1.5rem}
.gloe-faq-list{border-top:1px solid #e5e5e5}
.gloe-faq-item{border-bottom:1px solid #e5e5e5}
.gloe-faq-question{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;cursor:pointer;list-style:none;font-size:.9375rem;font-weight:500;color:#171717}
.gloe-faq-question::-webkit-details-marker{display:none}
.gloe-faq-chevron{width:20px;height:20px;flex-shrink:0;color:#a3a3a3;transition:transform .2s}
.gloe-faq-item[open] .gloe-faq-chevron{transform:rotate(180deg)}
.gloe-faq-answer{padding:0 0 16px;font-size:.875rem;line-height:1.6;color:#525252}
.gloe-contact-intro{font-size:1rem;line-height:1.6;color:#525252;margin:0 0 1.5rem}
.gloe-contact-block{margin-bottom:1.5rem}
.gloe-contact-label{display:block;font-size:.75rem;font-weight:700;letter-spacing:.06em;color:#171717;margin-bottom:.5rem}
.gloe-contact-phone{display:block;font-size:1.5rem;font-weight:700;color:#171717;text-decoration:none;transition:color .2s}
.gloe-contact-phone:hover{color:#008b98}
.gloe-contact-note{font-size:.75rem;color:#a3a3a3;display:block;margin-top:.25rem}
.gloe-contact-links{display:flex;gap:2rem;flex-wrap:wrap}
.gloe-contact-link-block{display:flex;flex-direction:column}
.gloe-contact-email,.gloe-contact-messenger{font-size:1rem;color:#171717;text-decoration:underline;text-underline-offset:3px;transition:color .2s}
.gloe-contact-email:hover,.gloe-contact-messenger:hover{color:#008b98}

/* ==========================================================================
   6. Recently Viewed
   ========================================================================== */
.gloe-rv-section{padding:4rem 0}
.gloe-rv-container{max-width:1280px;margin:0 auto;padding:0 1rem}
.gloe-rv-title{text-align:center;font-size:1.75rem;font-weight:700;color:#171717;margin:0 0 2rem}
.gloe-rv-grid{display:grid;gap:24px;grid-template-columns:repeat(var(--gloe-rv-cols,4),1fr)}
@media(max-width:1024px){.gloe-rv-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.gloe-rv-grid{grid-template-columns:1fr}}
.gloe-rv-card{border:1px solid #e5e5e5;border-radius:12px;overflow:hidden;background:#fff;transition:box-shadow .2s}
.gloe-rv-card:hover{box-shadow:0 4px 24px rgba(0,0,0,.08)}
.gloe-rv-img-link{display:block;position:relative;background:#f5f5f5}
.gloe-rv-img-link img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.gloe-rv-rating{position:absolute;top:12px;right:12px;background:#fff;padding:4px 10px;border-radius:6px;font-size:.8125rem;font-weight:600;color:#171717;box-shadow:0 1px 4px rgba(0,0,0,.1)}
.gloe-rv-info{padding:16px}
.gloe-rv-name{font-size:.9375rem;font-weight:600;color:#171717;text-decoration:none;display:block;margin-bottom:4px}
.gloe-rv-name:hover{color:#008b98}
.gloe-rv-desc{font-size:.8125rem;color:#737373;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gloe-rv-add{display:inline-flex;align-items:center;gap:6px;width:100%;justify-content:center;padding:10px;border:1px solid #008b98;border-radius:8px;background:#fff;color:#008b98;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}
.gloe-rv-add:hover{background:#008b98;color:#fff}
.gloe-rv-cart-icon{width:16px;height:16px}

/* Hero: sticky cart bar (fixed na dole po zescrollowaniu) */
.gloe-hero-sticky-cart-fixed.safe-area-pb{padding-bottom:max(0.75rem,env(safe-area-inset-bottom))}
