:root{
  --bg: #ffffff;
  --card: #ffffff;
  --card2: #fafafa;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;

  --brand: #D10B2D;     /* classic warm orange */
  --brand2: #ffc24a;    /* gold accent */
  --ok: #16a34a;
  --bad: #dc2626;

  --shadow: 0 12px 32px rgba(0,0,0,.08);
  --radius: 18px;
  --radius2: 14px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 25%, rgba(255,122,24,.08), transparent 60%),
    radial-gradient(700px 420px at 80% 20%, rgba(255,194,74,.10), transparent 60%),
    #ffffff;
}

/* ================= TOPBAR ================= */

.topbar{
  position: sticky;
  top:0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
}



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

.link{
  color: var(--text);
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
}

.link:hover{
  background: #f4f3f6;
}

/* ================= AUTH SHELL ================= */

.auth-shell{
  min-height: calc(100vh - 70px);
  display:grid;
  place-items:center;
  padding: 28px 16px 40px;
}

.auth-card{
  width: min(980px, 100%);
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* ================= LEFT ================= */

.auth-side{
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,122,24,.08), #fafafa);
  border-right: 1px solid var(--line);
}

.auth-side-inner{
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.auth-side h2{
  margin:0;
  font-size: 28px;
}

.auth-side p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-list{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}

.feature{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.auth-side-footer{
  color: var(--muted);
}

/* ================= RIGHT FORM ================= */

.auth-form{
  padding: 28px;
  background: #ffffff;
}

.auth-form-inner{
  max-width: 380px;
  margin: 0 auto;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form h1{
  margin:0;
  font-size: 26px;
}

.muted{
  color: var(--muted);
  line-height: 1.5;
}

/* ================= FORM ================= */

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

.field label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.input-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.input-wrap i{
  color: #9ca3af;
}

.input-wrap input,
.input-wrap select{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.input-wrap:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,122,24,.15);
}

/* ================= BUTTON ================= */

.btn{
  margin-top: 2px;
  width: 100%;
  border: 0;
  cursor:pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}

.btn:hover{
  filter: brightness(0.95);
}

/* ================= FLASH ================= */

.flash{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f9fafb;
}

.flash.success{
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: var(--ok);
}

.flash.error{
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--bad);
}

/* ================= LINKS ================= */

.auth-links{
  text-align:center;
  margin-top: 6px;
  display:flex;
  justify-content:center;
  gap: 8px;
}

.auth-links a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 860px){
  .auth-card{ grid-template-columns: 1fr; }
  .auth-side{ display:none; }
  .auth-form-inner{ max-width: 520px; }
}
/* ================= HEADER SEARCH ================= */

.header-search{
  flex:1;
  max-width: 420px;
}

.header-search input{
  width:100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 14px;
}

.header-search input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(6, 18, 253, 0.15);
}

/* ================= HAMBURGER ================= */

.hamburger{
  display:none;
  font-size: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
}

.hamburger:hover{
  background: #f3f4f6;
}

/* ================= MOBILE MENU ================= */

.mobile-menu{
  display:none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
}

.mobile-menu.open{
  display:grid;
  gap: 10px;
}

.mobile-search input{
  width:100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 860px){

  .header-search{
    display:none;
  }

  .desktop-nav{
    display:none;
  }

  .hamburger{
    display:block;
  }
}
/* ================= PRODUCT GRID ================= */

.product-grid{
  max-width: 1000px;          /* controls how wide the grid can be */
  margin: 0 auto;             /* centers the grid */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.product-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card img{
  width: 100%;
  border-radius: 12px;
}

.product-card h4{
  margin: 10px 0 4px;
  font-size: 15px;
}

.product-card .price{
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 8px;
}
/* ================= BRAND LOGO (SMALL SIZE) ================= */

.brand-logo{
  width: 55px;
  height: 55px;
  object-fit: contain;
}
/* ================= HEADER BRAND COLOR ================= */

.topbar{
  background: #D10B2D !important;
  border-bottom: none;
  backdrop-filter: none;
}
/* Header text color */
.topbar .brand-name,
.topbar .link{
  color: #ffffff;
}

/* Hover effect on red header */
.topbar .link:hover{
  background: rgba(255,255,255,0.15);
}
