
/*
Theme Name: Schnapply Deals
Description: Schnapply Deal-Portal – modernes Amazon-Deal-Layout mit 10%-Filter.
Version: 3.2.3
Author: Schnapply
Text Domain: schnapply
*/
:root{
 --navy:#052d76;--blue:#075bd5;--yellow:#ffd21a;--pink:#f3295b;
 --green:#16a34a;--text:#17233c;--muted:#707b8d;--bg:#f5f7fb;
 --line:#e1e6ef;--white:#fff;--radius:15px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.wrap{width:min(1390px,94%);margin:auto}

/* top */
.topbar{background:var(--navy);color:#fff;font-size:13px;font-weight:700}
.topbar .wrap{height:31px;display:flex;align-items:center;justify-content:space-between}
.topbar .right{opacity:.95}

/* header */
.site-header{background:#fff;border-bottom:1px solid #dfe4ec}
.header-row{display:flex;align-items:center;gap:25px;padding:10px 0}
.logo-link{display:block;flex:0 0 390px}
.logo-link img{display:block;width:370px;max-width:100%;height:auto}
.search{display:flex;align-items:center;background:#fff;border:1px solid #cdd5e1;border-radius:30px;height:45px;flex:1;min-width:250px;overflow:hidden;box-shadow:0 2px 7px #10234a12}
.search input{border:0;outline:0;flex:1;padding:0 18px;font-size:15px}
.search button{border:0;background:var(--yellow);font-weight:900;height:37px;border-radius:25px;padding:0 28px;margin-right:4px;cursor:pointer}
.actions{display:flex;gap:9px}
.action{padding:12px 16px;border-radius:25px;font-weight:900;white-space:nowrap;font-size:14px}
.action.telegram{background:#1598ef;color:#fff}.action.alarm{background:var(--yellow);color:#111}

/* nav */
.nav{background:var(--navy);color:#fff}
.nav .wrap{display:flex;align-items:center;gap:5px;overflow:auto}
.nav a{padding:12px 17px;font-size:14px;font-weight:800;white-space:nowrap}
.nav a.active,.nav a:hover{background:var(--yellow);color:#111;border-radius:0 0 9px 9px}
.nav .amazon{color:#ffd21a}

/* hero */
.hero{background:#fff}
.hero img{width:100%;display:block;max-height:300px;object-fit:cover;object-position:center}
.hero-fallback{padding:45px;background:linear-gradient(120deg,#0758da,#003ba7);color:#fff}
.hero-fallback h1{font-size:62px;margin:0;font-weight:1000}
.hero-fallback span{color:var(--yellow)}

/* categories */
.catbar{background:#fff;padding:18px 0 10px}
.cats{display:flex;gap:10px;overflow:auto;padding-bottom:5px}
.cat{background:linear-gradient(#fff,#f4f6f9);border:1px solid #d9e0e9;border-radius:10px;padding:11px 18px;font-weight:800;white-space:nowrap;box-shadow:0 2px 5px #0b2d6b0b}
.cat:hover,.cat.selected{background:var(--yellow);border-color:#eab900;color:#111}
.cat.priceerror{background:var(--pink);color:#fff;border-color:var(--pink)}

/* content */
.main{padding:15px 0 80px}
.columns{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:5px 0 10px}
.section-title{font-size:22px;margin:0;font-weight:950}
.section-title .fire{font-size:25px}.showall{color:#5a9ce8;font-size:13px;font-weight:800}

/* cards */
.deals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.deal{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative;box-shadow:0 2px 8px #1b335d0b;display:flex;flex-direction:column;min-width:0}
.deal-image{height:175px;display:flex;align-items:center;justify-content:center;background:#fff;padding:12px;position:relative}
.deal-image img{width:100%;height:100%;object-fit:contain}
.no-image{font-size:58px;color:#aeb7c5}
.discount{position:absolute;top:12px;left:10px;background:#ffd21a;color:#111;border-radius:9px;padding:6px 9px;font-size:14px;font-weight:950;z-index:2}
.heart{position:absolute;right:10px;top:12px;font-size:22px;color:#6c7890}
.deal-body{padding:12px;display:flex;flex-direction:column;flex:1}
.deal h3{font-size:15px;line-height:1.25;margin:7px 0 5px;min-height:38px}
.desc{font-size:13px;color:#7c8492;min-height:31px}
.stars{font-size:14px;color:#ffbd00;margin:6px 0}.stars span{color:#777;font-size:12px;margin-left:5px}
.price-line{display:flex;justify-content:space-between;align-items:end;gap:6px;margin-top:5px}
.old{display:block;text-decoration:line-through;color:#7e8796;font-size:13px}
.current{display:block;color:#ef284d;font-size:21px;font-weight:950}
.saved{background:var(--green);color:#fff;border-radius:7px;padding:7px 8px;font-size:12px;font-weight:950;white-space:nowrap}
.prime{color:#1788e5;font-size:13px;font-weight:950;margin-top:3px}
.deal-button{background:var(--yellow);color:#111;border-radius:8px;padding:10px;text-align:center;font-weight:950;margin-top:9px}
.deal-button:hover{filter:brightness(.96)}
.meta{font-size:11px;color:#7f8999;display:flex;justify-content:space-between;margin-top:9px}

/* sidebar */
.sidebar{display:flex;flex-direction:column;gap:12px}
.box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 2px 7px #1b335d08}
.box.alert{background:linear-gradient(145deg,#fff8cf,#fff1b1);border-color:#f3d56c}
.box h3{font-size:16px;margin:0 0 8px}
.box p{font-size:13px;line-height:1.45;margin:7px 0}
.tg{display:block;background:#1598ef;color:#fff;text-align:center;padding:10px;border-radius:8px;font-weight:900;margin-top:10px}
.check{color:var(--green);font-weight:900}
.side-list{list-style:none;padding:0;margin:0}.side-list li{border-top:1px solid #edf0f5;padding:10px 0;font-size:13px;font-weight:700;display:flex;justify-content:space-between}

/* bottom strip */
.bottom-strip{position:fixed;bottom:0;left:0;right:0;background:var(--navy);color:#fff;z-index:20}
.bottom-strip .wrap{display:flex;justify-content:space-around;gap:15px;padding:9px 0;font-size:13px;font-weight:800}
.bottom-strip span{display:flex;align-items:center;gap:8px}

/* empty */
.empty{background:#fff;border:1px dashed #c9d2df;border-radius:14px;padding:30px;color:var(--muted)}

/* responsive */
@media(max-width:1180px){
 .logo-link{flex-basis:300px}.deals{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 .header-row{flex-wrap:wrap}.logo-link{flex-basis:300px}.search{order:3;flex-basis:100%}.actions{margin-left:auto}
 .columns{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
 .topbar .right{display:none}.header-row{gap:10px}.logo-link{flex-basis:100%;text-align:center}.logo-link img{width:290px;margin:auto}
 .actions{width:100%}.action{flex:1;text-align:center;font-size:12px;padding:10px 8px}
 .deals{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.deal-image{height:155px}.deal h3{font-size:14px}.current{font-size:19px}
 .sidebar{grid-template-columns:1fr}.hero img{min-height:145px;object-fit:cover}
 .bottom-strip span:nth-child(n+3){display:none}
}


/* Schnapply 2.1 - mobile-first usability improvements */
.site-footer{background:var(--navy);color:#fff;padding:35px 0 95px;margin-top:30px}
.site-footer strong{font-size:20px}
.site-footer p{margin:8px 0 12px}
.mobile-bottom-nav{display:none}

@media(max-width:900px){
  body{padding-bottom:64px}
  .wrap{width:calc(100% - 24px)}
  .topbar{font-size:11px}
  .topbar .wrap{height:27px;justify-content:center}
  .topbar .right{display:none}

  .site-header{border-bottom:1px solid #e3e7ee}
  .header-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 0}
  .logo-link{grid-column:1/-1;flex:none;text-align:left}
  .logo-link img{width:190px;margin:0;max-height:46px;object-fit:contain;object-position:left center}
  .actions{grid-column:2;grid-row:2;width:auto;margin:0}
  .action{display:block;font-size:11px;padding:9px 11px;border-radius:18px;white-space:nowrap}
  .search{grid-column:1;grid-row:2;order:initial;min-width:0;width:100%;height:40px}
  .search input{font-size:13px;padding:0 12px;min-width:0}
  .search input::placeholder{color:#7c8492}
  .search button{height:32px;padding:0 13px;font-size:12px}

  .nav{display:none}

  .hero{padding:0;background:#fff}
  .hero img{width:100%;height:112px;min-height:0;max-height:none;object-fit:cover;object-position:center;border-radius:0 0 12px 12px}

  .catbar{padding:10px 0 5px}
  .cats{gap:7px;padding:0 0 4px;scrollbar-width:none}
  .cats::-webkit-scrollbar{display:none}
  .cat{font-size:12px;padding:9px 12px;border-radius:18px;box-shadow:none}

  .main{padding:10px 0 30px}
  .columns{display:block}
  .sidebar{display:none}
  .section-head{margin:4px 0 9px;gap:10px}
  .section-title{font-size:18px;line-height:1.2}
  .showall{font-size:12px;white-space:nowrap}

  .deals{grid-template-columns:1fr;gap:10px}
  .deal{border-radius:14px;display:grid;grid-template-columns:118px 1fr;min-height:0}
  .deal-image{height:100%;min-height:150px;padding:10px}
  .deal-image img{width:100%;height:100%;object-fit:contain}
  .discount{top:8px;left:7px;padding:5px 7px;font-size:12px}
  .heart{top:7px;right:8px;font-size:20px}
  .deal-body{padding:10px 10px 10px 4px}
  .deal h3{font-size:14px;line-height:1.25;min-height:0;margin:4px 0}
  .desc{font-size:11px;min-height:0}
  .stars{font-size:12px;margin:4px 0}
  .stars span{font-size:11px}
  .price-line{align-items:center;margin-top:3px}
  .old{font-size:11px}
  .current{font-size:20px;line-height:1.1}
  .saved{font-size:11px;padding:6px 7px}
  .prime{font-size:11px}
  .deal-button{padding:10px 8px;margin-top:7px;font-size:13px;border-radius:9px}
  .meta{font-size:10px;margin-top:6px}
  .empty{padding:20px;font-size:13px}

  .secondary-section{margin-top:18px}
  .site-footer{padding:24px 0 82px;margin-top:18px}
  .site-footer p{font-size:13px}
  .site-footer small{font-size:10px}

  .mobile-bottom-nav{
    position:fixed;display:grid;grid-template-columns:repeat(4,1fr);
    left:0;right:0;bottom:0;height:62px;background:#fff;
    border-top:1px solid #dbe1ea;box-shadow:0 -3px 15px rgba(20,45,90,.12);
    z-index:1000;padding-bottom:env(safe-area-inset-bottom);
  }
  .mobile-bottom-nav a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;color:#26334b;font-weight:800;font-size:18px;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-bottom-nav small{font-size:10px;font-weight:800}
  .mobile-bottom-nav a:active{background:#f5f7fb}
}

/* Small phones: keep the deal card readable without horizontal scrolling. */
@media(max-width:390px){
  .deal{grid-template-columns:105px 1fr}
  .deal-image{min-height:140px}
  .deal-body{padding-left:3px}
  .deal h3{font-size:13px}
  .current{font-size:18px}
  .saved{font-size:10px}
  .logo-link img{width:175px}
  .action{padding:8px 9px}
}


/* Schnapply 2.2 - broader mobile/tablet breakpoint */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .wrap{width:calc(100% - 20px);max-width:none}
  .header-row{grid-template-columns:minmax(0,1fr) auto}
  .logo-link img{max-width:100%;height:auto}
  .search{min-width:0}
  .search input{min-width:0;width:100%}
  .hero img{width:100%;display:block}
  .catbar{overflow:hidden}
  .cats{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .main{width:100%}
  .columns{display:block}
  .content{width:100%;min-width:0}
  .sidebar{display:none}
  .deals{display:grid;grid-template-columns:1fr!important;width:100%}
  .deal{width:100%;box-sizing:border-box;grid-template-columns:38% 62%;overflow:hidden}
  .deal-image{min-width:0}
  .deal-body{min-width:0}
  .deal h3{overflow-wrap:anywhere}
  .secondary-section{width:100%}
  .mobile-bottom-nav{display:grid}
}

@media (min-width:901px){
  .mobile-bottom-nav{display:none}
}

/* Schnapply 2.3 - definitive mobile viewport handling */
@media screen and (max-width: 900px){
  .nav{display:none!important}
  .sidebar{display:none!important}
  .columns{display:block!important}
  .content{width:100%!important;max-width:none!important}
  .deals{grid-template-columns:1fr!important}
  .mobile-bottom-nav{display:grid!important}
  .hero img{height:112px!important}
}
@media screen and (min-width:901px){
  .mobile-bottom-nav{display:none!important}
}


/* Schnapply 2.5 - final mobile layout */
@media screen and (max-width: 900px){
  html{font-size:16px}
  body{width:100%;min-width:0;overflow-x:hidden}
  .wrap{width:calc(100% - 20px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  .site-header .wrap{width:calc(100% - 20px)!important}
  .header-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}
  .logo-link{grid-column:1 / -1!important;grid-row:1!important}
  .search{grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important}
  .actions{grid-column:2!important;grid-row:2!important}
  .nav{display:none!important}
  .hero img{width:100%!important;height:112px!important;object-fit:cover!important}
  .cats{overflow-x:auto!important;white-space:nowrap!important;flex-wrap:nowrap!important}
  .columns{display:block!important}
  .content{display:block!important;width:100%!important;max-width:none!important}
  .sidebar{display:none!important}
  .deals{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  .deal{display:grid!important;grid-template-columns:minmax(120px,38%) minmax(0,62%)!important;width:100%!important}
  .deal-image{min-width:0!important}
  .deal-body{min-width:0!important}
  .secondary-section{width:100%!important}
  .mobile-bottom-nav{display:grid!important}
}

@media screen and (min-width:901px){
  .mobile-bottom-nav{display:none!important}
}


/* =========================================================
   Schnapply 2.7 — target mobile design
   ========================================================= */
@media screen and (max-width:900px){
  html,body{
    width:100%!important;min-width:0!important;overflow-x:hidden!important;
    -webkit-text-size-adjust:100%!important;
  }
  body{background:#f5f7fb!important;padding-bottom:76px!important}
  .wrap{width:calc(100% - 32px)!important;max-width:none!important}

  .topbar{height:30px!important;font-size:11px!important}
  .topbar .right{display:none!important}

  .site-header{background:#fff!important}
  .header-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    gap:8px!important;
    padding:10px 0 12px!important;
  }
  .logo-link{grid-column:1/-1!important;grid-row:1!important;text-align:left!important}
  .logo-link img{width:190px!important;max-width:72vw!important;height:auto!important}
  .search{grid-column:1!important;grid-row:2!important;width:100%!important;height:46px!important}
  .search input{height:46px!important;font-size:14px!important;padding-left:15px!important;border-radius:24px!important}
  .search button{height:38px!important;border-radius:20px!important;margin-right:4px!important}
  .actions{grid-column:2!important;grid-row:2!important}
  .action{height:44px!important;padding:0 13px!important;border-radius:23px!important;font-size:12px!important}
  .nav{display:none!important}

  /* Mobile banner: use dedicated composition so pig, logo and alarm are visible. */
  .hero{
    padding:10px 0 4px!important;
    background:#f5f7fb!important;
  }
  .hero img{
    content:url("assets/schnapply-mobile-hero.jpg")!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:1200/360!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:14px!important;
    box-shadow:0 3px 12px rgba(20,45,90,.10)!important;
  }

  .catbar{padding:10px 0!important;background:#f5f7fb!important;overflow:hidden!important}
  .cats{
    display:flex!important;flex-wrap:nowrap!important;gap:8px!important;
    overflow-x:auto!important;white-space:nowrap!important;
    scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
  }
  .cats::-webkit-scrollbar{display:none!important}
  .cat{flex:0 0 auto!important;padding:10px 15px!important;border-radius:22px!important;font-size:13px!important}

  .main{padding:8px 0 26px!important}
  .columns{display:block!important}
  .content{width:100%!important;max-width:none!important}
  .sidebar{display:none!important}

  .section-head{margin:8px 0 10px!important}
  .section-title{font-size:21px!important;line-height:1.2!important}
  .showall{font-size:13px!important}

  .deals{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important}
  .deal{
    display:grid!important;
    grid-template-columns:38% 62%!important;
    width:100%!important;min-width:0!important;min-height:205px!important;
    border-radius:16px!important;overflow:hidden!important;
    box-shadow:0 2px 12px rgba(20,45,90,.08)!important;
  }
  .deal-image{min-height:205px!important;height:100%!important;padding:10px!important}
  .deal-body{min-width:0!important;padding:13px 12px 12px 4px!important}
  .deal h3{font-size:16px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  .current{font-size:23px!important}
  .deal-button{min-height:43px!important;width:100%!important;border-radius:10px!important;font-size:14px!important;font-weight:900!important}
  .saved{font-size:11px!important;padding:7px 8px!important;border-radius:8px!important}

  .secondary-section{width:100%!important;margin-top:18px!important}
  .site-footer{padding:26px 0 90px!important}

  .mobile-bottom-nav{
    position:fixed!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;
    left:0!important;right:0!important;bottom:0!important;height:68px!important;
    background:rgba(255,255,255,.98)!important;border-top:1px solid #dfe4ed!important;
    box-shadow:0 -4px 18px rgba(20,45,90,.12)!important;z-index:99999!important;
  }
  .mobile-bottom-nav a{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;color:#162542!important;font-weight:900!important;font-size:20px!important;text-decoration:none!important;
  }
  .mobile-bottom-nav small{font-size:10px!important;line-height:1!important}
}
@media screen and (max-width:390px){
  .wrap{width:calc(100% - 24px)!important}
  .logo-link img{width:175px!important}
  .action{padding:0 10px!important;font-size:11px!important}
  .deal{grid-template-columns:38% 62%!important}
  .deal-image{min-height:190px!important}
  .deal-body{padding-left:3px!important}
  .deal h3{font-size:14px!important}
  .current{font-size:21px!important}
}


/* Schnapply 2.8 — exact mobile banner from approved design */
@media screen and (max-width:900px){
  .hero img{
    content:url("assets/schnapply-mobile-hero.jpg")!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    display:block!important;
    border-radius:14px!important;
  }
}

/* Schnapply 2.9 — exact banner from approved mobile reference */
@media screen and (max-width:900px){
  .hero img{
    content:url("assets/schnapply-mobile-hero.jpg")!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:982 / 225!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:14px!important;
    display:block!important;
  }
}

/* Schnapply 3.0 — exact banner from approved reference screenshot */
@media screen and (max-width:900px){
  .hero img{
    content:url("assets/schnapply-mobile-hero.jpg") !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    object-position:center !important;
    display:block !important;
    border-radius:14px !important;
  }
}

/* Schnapply 3.1 — banner is selected by HTML <picture>, not CSS content:url */
.schnapply-hero-picture{display:block;width:100%;line-height:0}
.schnapply-hero-picture img{display:block;width:100%;height:auto}
@media screen and (max-width:900px){
  .hero{padding:10px 0 4px!important;background:#f5f7fb!important}
  .schnapply-hero-picture{display:block!important;width:100%!important}
  .schnapply-hero-picture img{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:14px!important;
  }
}


/* Schnapply 3.2 — approved banner asset, direct mobile rendering */
@media screen and (max-width:900px){
  .hero{
    padding:10px 0 4px!important;
    background:#f5f7fb!important;
  }
  .hero .schnapply-hero-picture{
    display:block!important;
    width:100%!important;
  }
  .hero .schnapply-hero-picture img{
    content:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:initial!important;
    object-position:initial!important;
    display:block!important;
    border-radius:14px!important;
  }
}

/* Schnapply 3.2.1 — approved banner image from user reference */
@media screen and (max-width:900px){
  .hero .schnapply-hero-picture img{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    content:normal!important;
  }
}


/* Schnapply 3.2.2 - show the complete mobile hero banner */
.schnapply-hero-picture{display:block;width:100%;line-height:0;}
@media screen and (max-width:900px){
  .hero{padding:0!important;}
  .hero .wrap{width:100%!important;margin:0!important;}
  .schnapply-hero-picture{display:block;width:100%!important;}
  .hero img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:12px!important;
  }
}


/* Schnapply 3.2.3 — mobile hero must show the complete banner without cropping */
.schnapply-hero-picture{display:block!important;width:100%!important;max-width:100%!important;line-height:0!important;overflow:visible!important;}
.schnapply-hero-picture .schnapply-hero-img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:fill!important;object-position:center!important;margin:0!important;padding:0!important;}
@media screen and (max-width:900px){
  .hero{height:auto!important;overflow:visible!important;padding:0!important;}
  .hero .wrap{width:calc(100% - 32px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;}
  .hero .schnapply-hero-picture{width:100%!important;height:auto!important;}
  .hero .schnapply-hero-picture .schnapply-hero-img{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:fill!important;}
}
