/* TOP Phone public website – yellow storefront inspired by the IYKSLOT sample */
:root {
  --yellow: #ffd600;
  --yellow-2: #ffc400;
  --ink: #2b3445;
  --ink-2: #1f2937;
  --muted: #7d879c;
  --line: #e9ecf1;
  --soft: #f5f5f5;
  --green: #33d05a;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--yellow); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.topbar-inner { display: flex; align-items: center; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.logo-text { font-family: 'Rajdhani', 'Open Sans', sans-serif; font-weight: 700; font-size: 1.55rem; letter-spacing: .5px; color: var(--ink-2); }
.nav { display: flex; gap: 26px; margin-left: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--ink-2); }
.top-icons { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink-2); display: inline-flex; }
.menu-btn { display: none; }
.searchbar { background: #fff; border-top: 1px solid rgba(0,0,0,.06); padding: 12px 0; }
.searchbar input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 1rem; outline: none; }
.searchbar input:focus { border-color: var(--yellow-2); box-shadow: 0 0 0 3px rgba(255,214,0,.35); }

/* Hero */
.hero { background: var(--soft); padding: 40px 0 36px; overflow: hidden; }
.slides { position: relative; min-height: 440px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .6s ease, transform .6s ease, visibility .6s; padding-left: 110px; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.kicker { font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.3rem); margin: 0 0 6px; color: var(--ink); }
.big { font-weight: 300; font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: 1; margin: 0; letter-spacing: 1px; color: var(--ink); }
.sub { font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.4rem); margin: 18px 0 30px; color: var(--ink); }
.btn-yellow { display: inline-block; background: var(--yellow); color: var(--ink-2); text-decoration: none; font-size: 1.25rem; padding: 16px 48px; border-radius: 8px; transition: transform .15s, box-shadow .15s; border: 0; cursor: pointer; }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255,196,0,.4); }
.slide-art { display: flex; justify-content: center; }
.slide-art svg { width: min(460px, 100%); height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 28px rgba(0,0,0,.12)); }
.dots { display: flex; gap: 10px; padding-left: 110px; margin: 6px 0 36px; }
.dots button { width: 13px; height: 13px; border-radius: 999px; border: 0; background: #c9c9c9; cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.dots button.is-active { width: 50px; background: var(--yellow); }

.promo { display: grid; grid-template-columns: 1fr 1fr; background: #fff; max-width: 1060px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.promo-card { position: relative; display: flex; justify-content: space-between; min-height: 200px; padding: 50px 0 0 46px; text-decoration: none; overflow: hidden; }
.promo-title { font-size: 1.55rem; font-weight: 300; margin: 0 0 16px; letter-spacing: -.2px; }
.promo-title b { font-weight: 800; }
.shop-now { font-weight: 700; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 10px; }
.shop-now i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; line-height: 1; }
.promo-art { width: 170px; height: 170px; align-self: flex-end; margin-bottom: -30px; flex-shrink: 0; transition: transform .3s; }
.promo-card:hover .promo-art { transform: translateY(-6px) rotate(-3deg); }

/* Categories */
.cats { padding: 60px 0 20px; }
.cats-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.cat { text-decoration: none; text-align: center; cursor: pointer; }
.cat-circle { display: block; width: 100%; aspect-ratio: 1.45; border-radius: 999px 999px 0 0; background: #f7f7f7; position: relative; overflow: hidden; transition: background .2s; }
.cat-circle svg { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 58%; height: auto; aspect-ratio: 1; transition: transform .25s; }
.cat:hover .cat-circle { background: #fff4b3; }
.cat:hover .cat-circle svg { transform: translate(-50%, -55%) scale(1.06); }
.cat-label { display: block; margin-top: 12px; font-weight: 600; font-size: 1rem; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { padding-top: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.section-title { font-weight: 400; font-size: 2.2rem; margin: 0; padding-bottom: 14px; position: relative; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; max-width: 350px; height: 3px; background: var(--yellow); border-radius: 3px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; }
.tab { border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--muted); padding: 6px 12px; cursor: pointer; border-radius: 999px; }
.tab.is-active, .tab:hover { color: var(--ink-2); background: #fff4b3; }
.go-link { text-decoration: none; color: var(--muted); font-size: 1.15rem; padding-bottom: 14px; }
.go-link span { font-weight: 700; margin-left: 6px; }

/* Product cards */
.featured { display: grid; grid-template-columns: 5fr 7fr; gap: 26px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.p-card { background: #fff; border: 1px solid #f0f1f4; border-radius: var(--radius); padding: 20px; position: relative; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: 0 14px 30px rgba(43,52,69,.10); transform: translateY(-3px); }
.p-img { height: 170px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.p-img img { max-height: 100%; object-fit: contain; }
.p-img svg { width: 150px; height: 150px; }
.p-card [class^="badge-"] { align-self: flex-start; font-size: .9rem; padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; }
.badge-new { background: var(--green); color: #fff; }
.badge-used { background: var(--yellow); color: var(--ink-2); }
.badge-refurb { background: #e0e7ff; color: #3730a3; }
.p-title { font-weight: 400; font-size: 1.05rem; line-height: 1.45; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-price { font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.p-ask { font-size: 1rem; color: var(--muted); }
.cart-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(43,52,69,.3); transition: transform .15s, background .15s; }
.cart-btn:hover { transform: scale(1.07); background: #111827; }
.p-card-hero { padding: 32px; min-height: 100%; }
.p-title-lg { font-size: 1.7rem; font-weight: 700; line-height: 1.3; margin: 6px 0 16px; }
.p-img-lg { height: auto; flex: 1; min-height: 320px; }
.p-img-lg svg { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1; }
.p-price-lg { font-size: 1.8rem; }
.btn-dark { background: var(--ink); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.btn-dark:hover { background: #111827; }
.more-wrap { text-align: center; margin-top: 28px; }
.btn-outline { background: #fff; border: 2px solid var(--ink); color: var(--ink); font: inherit; font-weight: 700; padding: 12px 30px; border-radius: 999px; cursor: pointer; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.no-match { text-align: center; color: var(--muted); margin-top: 24px; }

.row-banner { display: grid; grid-template-columns: 4fr 11fr; gap: 26px; align-items: start; }
.banner { position: relative; background: #e6e8ea; min-height: 330px; overflow: hidden; padding: 28px 20px; border-radius: 4px; }
.ribbon { position: absolute; top: 22px; left: 20px; background: #e11d2e; color: #fff; font-family: 'Brush Script MT', cursive; font-size: 1.4rem; padding: 6px 22px 6px 16px; transform: rotate(-14deg); box-shadow: 0 4px 10px rgba(0,0,0,.15); clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%); }
.banner-words { position: relative; z-index: 1; display: flex; flex-direction: column; margin-top: 84px; font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-size: 2rem; line-height: 1.1; color: #333; }
#laptops .banner-words { margin-top: 10px; font-size: 2.6rem; }
.banner-words .small { font-size: 1.1rem; margin-top: 4px; }
.banner-words em { font-style: normal; font-family: 'Open Sans', sans-serif; font-variant: normal; font-weight: 800; font-size: 1.1rem; margin-top: 18px; white-space: pre-line; }
.banner-art { position: absolute; right: -58px; bottom: -34px; width: 200px; height: 200px; opacity: .95; }
.banner-words span, .banner-words em { position: relative; z-index: 2; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
.p-card-flat { border: 0; border-right: 1px solid var(--line); border-radius: 0; }

.empty { text-align: center; padding: 40px 20px; background: var(--soft); border-radius: var(--radius); }
.empty h3 { font-size: 1.6rem; margin: 10px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 22px; }
.empty-art { width: 160px; height: 160px; }
.empty.small { padding: 30px; grid-column: 1 / -1; }

/* Why us */
.why { background: var(--ink-2); color: #fff; padding: 40px 0; }
.why-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.why-item p { margin: 4px 0 0; color: #b8c0cf; font-size: .92rem; }

/* Subscribe */
.subscribe { position: relative; overflow: hidden; background: radial-gradient(ellipse at 60% 40%, #2b2b2b 0%, #0e0e0e 70%); color: #fff; padding: 110px 0 70px; text-align: center; }
.sub-art { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-40%, -50%) rotate(-18deg); opacity: .14; pointer-events: none; }
.sub-inner { position: relative; }
.sub-kicker { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: 1px; margin: 0; }
.sub-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: 2px; margin: 18px 0; }
.sub-note { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; margin: 0 0 44px; }
.sub-ok { color: var(--yellow); font-weight: 600; }
.sub-form { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px 6px 6px 26px; width: min(440px, 100%); }
.sub-form input[type=email] { flex: 1; border: 0; outline: none; font: inherit; font-size: 1.2rem; min-width: 0; color: var(--ink); }
.sub-form button { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #0a0a0a; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hp { position: absolute; left: -9999px; }
.foot-links { margin-top: 70px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; font-size: 1.35rem; letter-spacing: .5px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--yellow); }

/* Footer */
.footer { background: #0a0a0a; color: #fff; padding: 50px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { margin: 0 0 12px; font-size: 1rem; color: var(--yellow); }
.logo-light .logo-text { color: #fff; }
.muted { color: #a3aab8; line-height: 1.7; margin: 10px 0 0; }
.muted a { color: #fff; text-decoration: none; }
.copy { border-top: 1px solid #222; margin-top: 36px; padding-top: 18px; color: #6b7280; font-size: .9rem; }
.copy a { color: #9ca3af; }
.to-top { position: fixed; right: 24px; bottom: 24px; width: 64px; height: 64px; background: rgba(255,214,0,.85); border-radius: 6px; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 1080px) {
  .cats-row { grid-template-columns: repeat(4, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-banner { grid-template-columns: 1fr; }
  .banner { min-height: 220px; }
  .banner-words { margin-top: 70px; }
  .slide, .dots { padding-left: 0; }
  .why-row { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--yellow); flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .menu-btn { display: inline-flex; }
  .top-icons { gap: 10px; }
  .slides { min-height: 620px; }
  .slide { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .slide-art { order: -1; }
  .slide-art svg { width: 260px; }
  .dots { justify-content: center; }
  .promo { grid-template-columns: 1fr; }
  .promo-card { padding: 30px 0 0 24px; min-height: 160px; }
  .promo-title { font-size: 1.25rem; }
  .promo-art { width: 130px; height: 130px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .carousel { grid-auto-columns: 70%; }
  .p-card { padding: 14px; }
  .p-img { height: 130px; }
  .p-img svg { width: 120px; height: 120px; }
  .p-price { font-size: 1.05rem; }
  .cart-btn { width: 42px; height: 42px; }
  .section-title { font-size: 1.7rem; }
  .foot-links { font-size: 1rem; gap: 10px 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cats-row { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-text { font-size: 1.2rem; }
}
