/* =========================================================
   SHOP PAGE — Hero wie Events + Product Grid + Modal
   FULL FILE — 1:1 COPY/PASTE
   ========================================================= */

/* =========================================================
   BLOCK: HERO (1:1 wie Events) — FULLWIDTH BREAKOUT
   ========================================================= */
   .shop-hero{
    position: relative;
  
    /* FULLWIDTH – auch wenn versehentlich in max-w Wrapper */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  
    padding-top: 84px; /* space for fixed topbar */
    padding-bottom: 26px;
  
    overflow: hidden;
    isolation: isolate;
  }
  
  .shop-hero::before{
    content:"";
    position:absolute; inset:0;
    background:
      radial-gradient(circle at 18% 22%, rgba(64,185,235,.07), transparent 55%),
      radial-gradient(circle at 82% 18%, rgba(216,245,255,.05), transparent 60%),
      radial-gradient(circle at 50% 115%, rgba(255,255,255,.03), transparent 65%),
      linear-gradient(to bottom, rgba(7,6,7,.75), rgba(7,6,7,1));
    z-index: 0;
  }
  
  .shop-hero__inner{
    position: relative;
    z-index: 1;
    padding: 34px 0 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
  }
  
  .shop-title{
    margin-top: 10px;
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255,255,255,.92);
  }
  
  @media (max-width: 640px){
    .shop-hero__inner{
      padding: 26px 0 10px;
      flex-direction: column;
      align-items: flex-start;
    }
    .shop-title{ font-size: 38px; }
  }
  
  /* =========================================================
     Product grid
     ========================================================= */
  .product-grid{
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  @media (max-width: 1024px){
    .product-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px){
    .product-grid{ grid-template-columns: repeat(1, minmax(0, 1fr)); }
  }
  
  /* =========================================================
     Product card
     ========================================================= */
  .product-card{
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 18px;
    background: rgba(255,255,255,.010);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
      0 18px 60px rgba(0,0,0,.55),
      inset 0 1px 0 rgba(255,255,255,.035);
    transform: translateZ(0);
    transition: transform .28s ease, border-color .28s ease, box-shadow .32s ease, background .28s ease;
  }
  
  .product-card::before{
    content:"";
    position:absolute;
    inset:-2px;
    pointer-events:none;
    opacity:.28;
    background:
      radial-gradient(circle at 18% 22%, rgba(64,185,235,.09), transparent 58%),
      radial-gradient(circle at 82% 28%, rgba(216,245,255,.05), transparent 64%),
      radial-gradient(circle at 55% 115%, rgba(255,255,255,.02), transparent 70%);
    filter: blur(10px);
    transition: opacity .35s ease, filter .45s ease, transform .45s ease;
  }
  
  .product-card:hover{
    transform: translateY(-4px);
    background: rgba(255,255,255,.016);
    border-color: rgba(64,185,235,.15);
    box-shadow:
      0 24px 80px rgba(0,0,0,.66),
      0 10px 30px rgba(64,185,235,.03),
      inset 0 1px 0 rgba(255,255,255,.04);
  }
  .product-card:hover::before{
    opacity: .48;
    filter: blur(14px);
    transform: scale(1.02);
  }
  
  .product-thumb{
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
    position: relative;
  }
  
  .product-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
    opacity:.92;
    filter: saturate(.96) contrast(1.04);
  }
  
  .product-thumb::after{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.10), transparent 55%);
    pointer-events:none;
  }
  
  .product-meta{
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  
  .product-name{
    font-weight: 600;
    color: rgba(255,255,255,.92);
  }
  
  .product-sub{
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255,255,255,.60);
  }
  
  .product-price{
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(64,185,235,.18);
    background: rgba(255,255,255,.02);
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
  }
  
  .product-actions{
    margin-top: 14px;
  }
  
  .product-actions .btn-gold{
    width: 100%;
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 700;
  }
  
  /* =========================================================
     NAV ACTIVE underline rules (kein permanentes underline)
     ========================================================= */
  .nav-underline.is-active{
    color: rgba(255,255,255,.95);
  }
  .nav-underline.is-active::after,
  .nav-underline.is-active::before{
    transform: scaleX(0);
  }
  .nav-underline.is-active:hover::after,
  .nav-underline.is-active:hover::before,
  .nav-underline.is-active:focus-visible::after,
  .nav-underline.is-active:focus-visible::before{
    transform: scaleX(1);
  }
  
  /* =========================================================
     Cart button + dropdown
     ========================================================= */
  .cart-wrap{ position: relative; }
  
  .cart-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    padding: 10px 12px;
  
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(64,185,235,.22);
    color: rgba(255,255,255,.86);
  
    box-shadow:
      0 10px 30px rgba(0,0,0,.35),
      inset 0 1px 0 rgba(255,255,255,.05);
  
    transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
  }
  
  .cart-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.44);
    box-shadow:
      0 16px 44px rgba(0,0,0,.45),
      0 0 0 1px rgba(64,185,235,.09),
      inset 0 1px 0 rgba(255,255,255,.07);
  }
  
  .cart-icon{ color: rgba(216,245,255,.90); }
  .cart-label{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  
  .cart-badge{
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(10,10,12,.92);
  
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 26px rgba(64,185,235,.16);
  }
  
  .cart-menu{
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 28px);
    overflow: hidden;
    border-radius: 22px;
  
    background: rgba(7,6,7,.92);
    backdrop-filter: blur(14px);
  
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 26px 90px rgba(0,0,0,.70);
    z-index: 60;
  }
  
  .cart-menu__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  
  .cart-menu__title{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: rgba(255,255,255,.65);
    font-weight: 800;
  }
  
  .cart-close{
    width: 34px;
    height: 34px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
    color: rgba(255,255,255,.85);
    font-size: 20px;
    line-height: 1;
    transition: transform .18s ease, border-color .25s ease;
  }
  .cart-close:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.26);
  }
  
  .cart-empty{
    padding: 18px 16px;
    color: rgba(255,255,255,.60);
    font-size: 13px;
  }
  
  .cart-items{
    max-height: 44vh;
    overflow: auto;
    padding: 6px 10px 6px 10px;
  }
  
  .cart-item{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 10px;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  
  .cart-item__name{
    font-weight: 700;
    color: rgba(255,255,255,.88);
    font-size: 13px;
  }
  
  .cart-item__sub{
    margin-top: 2px;
    color: rgba(255,255,255,.55);
    font-size: 12px;
  }
  
  .cart-item__right{
    text-align: right;
    min-width: 120px;
  }
  
  .cart-item__price{
    font-weight: 800;
    color: rgba(255,255,255,.86);
    font-size: 12px;
  }
  
  .qty{
    margin-top: 8px;
    display:inline-flex;
    align-items:center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 6px 8px;
    background: rgba(255,255,255,.02);
  }
  
  .qty button{
    width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
    color: rgba(255,255,255,.82);
    font-weight: 800;
    transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .qty button:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.24);
    box-shadow: 0 0 0 1px rgba(64,185,235,.05);
  }
  .qty span{
    min-width: 18px;
    text-align:center;
    font-weight: 800;
    color: rgba(255,255,255,.82);
    font-size: 12px;
  }
  
  .cart-summary{
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  
  .cart-summary__row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 10px;
  }
  
  .cart-summary__label{
    color: rgba(255,255,255,.62);
    font-size: 12px;
    letter-spacing: .02em;
    font-weight: 700;
  }
  
  .cart-summary__value{
    color: rgba(255,255,255,.90);
    font-weight: 900;
    letter-spacing: .02em;
  }
  
  .cart-checkout{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 100%;
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 800;
  }
  
  /* CART MENU — Mobile Fix */
  @media (max-width: 640px){
    .cart-menu{
      position: fixed;
      left: 50%;
      right: auto;
      top: calc(84px + env(safe-area-inset-top));
      transform: translateX(-50%);
      width: min(420px, calc(100vw - 24px));
      max-height: calc(100vh - 110px);
      overflow: hidden;
      z-index: 80;
    }
  
    .cart-items{
      max-height: calc(100vh - 320px);
    }
  }
  
  /* =========================================================
     PRODUCT IMAGE MODAL (Shop) – Grossansicht
     ========================================================= */
  .pmodal{
    position: fixed;
    inset: 0;
    z-index: 80; /* über Cart/Toast */
    display: grid;
    place-items: center;
  }
  
  .pmodal[hidden]{ display: none; }
  
  .pmodal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
  }
  
  .pmodal__panel{
    position: relative;
    width: min(980px, 92vw);
    max-height: 88vh;
    border-radius: 26px;
    overflow: hidden;
  
    background: rgba(7,6,7,.92);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 28px 120px rgba(0,0,0,.75);
  }
  
  .pmodal__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.85);
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: transform .18s ease, border-color .25s ease, background .25s ease;
  }
  .pmodal__close:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.26);
    background: rgba(255,255,255,.05);
  }
  
  .pmodal__figure{
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    max-height: 88vh;
  }
  
  .pmodal__img{
    width: 100%;
    height: 100%;
    max-height: calc(88vh - 56px);
    object-fit: contain;
    background: rgba(0,0,0,.35);
  }
  
  .pmodal__cap{
    padding: 14px 16px 16px;
    font-size: 12px;
    letter-spacing: .02em;
    color: rgba(255,255,255,.70);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  
  /* Click affordance */
  .product-thumb,
  .product-thumb img,
  .product-actions .btn-gold{
    cursor: pointer;
  }
  
  /* Mobile: Wishlist in der Topbar hart ausblenden (falls jemals wieder drin) */
  @media (max-width: 767px){
    header.topbar a[href*="wishlist"]{
      display: none !important;
    }
  }