/* =========================
   BASE / GLOBAL
========================= */

/* Solfeno Custom Plugin Styles */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
}

#content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Sticky Header (shared) */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(18,8,2,0.97);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(232,160,48,0.15);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Hide header when cart is empty */
.sticky-header.is-empty {
    display: none;
}

.sticky-header .header-link {
    font-size: 15px;
    font-weight: 600;
    color: #E8A030;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sticky-header .header-link:hover {
    color: #FFB84D;
}

/* Cart count badge */
.sticky-header .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #E8A030;
    color: #1C0A00;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

/* Shared small UI */
.progress-indicator {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.trust-indicators {
    text-align: center;
    margin: 20px 0;
    font-size: 12px;
    color: #666;
}


/* Sticky header inner groups (allows Product Page + Cart on left, Checkout on right) */
.sticky-header .sticky-left,
.sticky-header .sticky-right {
    display: flex;
    align-items: inherit;
    gap: 15px;
}

.sticky-header .sticky-right {
    justify-content: flex-end;
}

/* ===== Thank you page sticky header: center only product page link ===== */
.woocommerce-order-received .sticky-header.solfeno-thankyou-center{
  justify-content: center;
}

/* ===== Sticky header 3-column layout: keep Cart perfectly centered ===== */
.sticky-header.solfeno-3col{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end; /* keeps text closer to bottom like before */
  gap: 10px;
}

.sticky-header.solfeno-3col .sticky-left{
  justify-self: start;
}

.sticky-header.solfeno-3col .sticky-center{
  justify-self: center;
}

.sticky-header.solfeno-3col .sticky-right{
  justify-self: end;
}

.sticky-header.solfeno-3col .header-link{
  display: inline-flex;
  align-items: center;
}


/* ===== Confirm modal before Add to Cart ===== */
.solfeno-confirm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.solfeno-confirm-modal{
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  padding: 16px 16px 14px;
}

.solfeno-confirm-title{
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.solfeno-confirm-text{
  font-size: 14px;
  line-height: 1.35;
  color: #333;
  margin-bottom: 14px;
}

.solfeno-confirm-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.solfeno-confirm-actions button{
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.solfeno-confirm-no{
  background: #F0EDE8;
  color: #52586A;
  border: 1.5px solid rgba(0,0,0,0.12);
}

.solfeno-confirm-yes{
  background: #1C0A00;
  color: #E8A030;
  border: 1.5px solid rgba(232,160,48,0.4);
}

.solfeno-confirm-actions button:hover{
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .solfeno-confirm-actions button:hover{ opacity: 1; }
}
