/* -------------------------------------------------------------
   Reselling Academy – Demo Dropshipping Store
   Design inspired by the reference screenshot (modern + minimal).
   ------------------------------------------------------------- */

:root{
  --bg: #eeeeee;
  --card: #ffffff;
  --text: #101010;
  --muted: #6b6b6b;
  --accent: #b89b57;
  --border: rgba(16,16,16,0.08);
  --shadow: 0 16px 40px rgba(0,0,0,0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }
img{ display: block; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.site-header{
  padding: 26px 0 14px;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo{
  font-family: "Allura", "Great Vibes", cursive;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg{ width: 20px; height: 20px; }

.nav{
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a{
  font-weight: 500;
  color: var(--accent);
  transition: color 160ms ease;
}

.nav a:hover{ color: var(--text); }

.nav a[aria-current="page"]{
  color: var(--text);
  font-weight: 650;
}

.cart-link{
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-link svg{ width: 20px; height: 20px; }

.cart-count{
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--card);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

main{
  padding-bottom: 22px;
}

.hero{
  margin-top: 10px;
}

.hero img{
  width: 100%;
  height: min(360px, 52vw);
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: #dcdcdc;
}

.section{
  padding: 26px 0 10px;
}

.section-title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: var(--muted);
}

.product-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
}

.card{
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16,16,16,0.04);
}

.product-card{
  padding: 18px;
  text-align: center;
}

.product-media{
  height: 170px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.product-media img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-name{
  margin: 14px 0 4px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.1px;
}

.product-price{
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 22px;
  border-radius: 999px;
  border: none;

  background: var(--text);
  color: var(--accent);

  font-weight: 700;
  letter-spacing: 0.2px;

  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn:hover{ transform: translateY(-1px); opacity: 0.92; }
.btn:active{ transform: translateY(0); opacity: 0.86; }

.btn.secondary{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.small{
  font-size: 13px;
  color: var(--muted);
}

.site-footer{
  padding: 26px 0 34px;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.social{
  display: flex;
  align-items: center;
  gap: 12px;
}

.social a{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social svg{ width: 19px; height: 19px; }

.footer-nav{
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer-nav a{
  color: var(--accent);
  font-weight: 500;
}

.footer-nav a:hover{ color: var(--text); }

/* ---------------------------------------
   Shop toolbar
--------------------------------------- */

.toolbar{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.toolbar .left{
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.input, .select{
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  font: inherit;
  outline: none;
}

.select{ max-width: 220px; }

.input:focus, .select:focus{
  border-color: rgba(184,155,87,0.7);
  box-shadow: 0 0 0 4px rgba(184,155,87,0.16);
}

.toolbar .right{
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------------------------------
   Cart
--------------------------------------- */

.cart-layout{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.cart-items{
  padding: 18px;
}

.cart-item{
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16,16,16,0.06);
}

.cart-item:last-child{ border-bottom: none; }

.cart-thumb{
  width: 96px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16,16,16,0.06);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-meta h3{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 750;
}

.cart-meta .muted{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qty{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty button{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  font-weight: 900;
}

.qty input{
  width: 56px;
  height: 34px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  font: inherit;
}

.cart-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
}

.remove{
  border: none;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
}

.summary{
  padding: 18px;
}

.summary h2{
  margin: 0 0 12px;
  font-size: 18px;
}

.line{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16,16,16,0.06);
  color: var(--muted);
  font-weight: 600;
}

.line strong{ color: var(--text); }

.summary .btn{
  width: 100%;
  margin-top: 12px;
}

.form{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.label{
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

textarea.input{
  min-height: 120px;
  resize: vertical;
}

/* ---------------------------------------
   Toast
--------------------------------------- */

.toast{
  position: fixed;
  inset: auto 18px 18px auto;
  max-width: 420px;
  background: rgba(16,16,16,0.92);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.20);
  font-weight: 650;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 160ms ease, opacity 160ms ease;
  z-index: 9999;
}

.toast.show{
  transform: translateY(0);
  opacity: 1;
}

/* ---------------------------------------
   Responsive
--------------------------------------- */

@media (max-width: 960px){
  .product-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cart-layout{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  .logo{ font-size: 40px; }
  .nav-toggle{ display: inline-flex; }
  .nav{
    position: absolute;
    top: 88px;
    right: 22px;
    left: 22px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    backdrop-filter: blur(10px);
  }
  .nav.open{ display: flex; }
  .toolbar{ flex-direction: column; align-items: stretch; }
  .toolbar .left{ flex-direction: column; align-items: stretch; }
  .toolbar .right{ justify-content: space-between; }
  .form-row{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .product-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}