:root{
  --brand-red:#C81D25;
  --brand-yellow:#F5C542;

  --ink-900:#0E0E11;
  --ink-700:#374151;
  --ink-500:#6B7280;

  --ui-bg:#F5F6F8;
  --ui-card:#FFFFFF;
  --ui-border: rgba(0,0,0,.08);
}

/* Base */
.al-body{
  background: var(--ui-bg);
  color: #111827;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Navbar */
.al-navbar{
  background: #0B0D11;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.al-logo{ height: 28px; width: auto; }
.al-wordmark{ font-weight: 600; letter-spacing: .5px; }

.al-search .input-group-text{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
}
.al-search input.form-control{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: #fff;
}
.al-search input.form-control::placeholder{ color: rgba(255,255,255,.55); }

/* Primary button (existing) */
.btn-al-primary{
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}
.btn-al-primary:hover{
  background: #AB151B;
  border-color: #AB151B;
  color: #fff;
}

/* Hero */
.al-hero{
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 100%);
  border: 1px solid var(--ui-border);
  border-radius: 18px;
}
.al-h1{
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0B0D11;
  font-weight: 700;
}
.al-lead{
  color: var(--ink-700);
  font-size: 1.05rem;
  max-width: 60ch;
}
.al-hero-card{
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Trust */
.al-trust{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  color: var(--ink-700);
  font-weight: 500;
}
.al-trust-item{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size: .95rem;
}
.al-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(245,197,66,.25);
}

.al-sort{ min-width: 220px; }

/* Cards */
.al-card{
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ui-card);
  transition: transform .12s ease, box-shadow .12s ease;
}
.al-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}

.al-card-imgwrap{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #EEF0F3;
}
.al-card-imgwrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-favorite-btn{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--brand-red);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  z-index: 2;
}
.al-favorite-btn:hover,
.al-favorite-btn:focus{
  background: #fff;
  color: var(--brand-red);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.al-favorite-btn i{
  font-size: 1.1rem;
  line-height: 1;
}
.al-favorite-btn.is-loading{
  opacity: .75;
}

.al-auth-modal{
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  overflow: hidden;
}

.al-login-divider{
  position: relative;
  text-align: center;
}

.al-login-divider::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--ui-border);
}

.al-login-divider span{
  position: relative;
  padding: 0 .85rem;
  background: #fff;
  color: var(--ink-500);
  font-size: .95rem;
}

.al-login-provider{
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-weight: 600;
}

.al-login-provider:hover,
.al-login-provider:focus{
  background: #f9fafb;
  border-color: rgba(0,0,0,.12);
  color: #111827;
}

.al-login-provider-icon{
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: .85rem;
  font-weight: 700;
}

.al-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(200,29,37,.95);
  color: #fff;
  border-radius: 999px;
  padding: .35rem .6rem;
  font-weight: 700;
  font-size: .72rem;
}

.al-price{
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #0B0D11;
}

.al-price-current{
  display: block;
}

.al-price-old{
  display: block;
  margin-top: .15rem;
  color: var(--ink-500);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: line-through;
}

/* Footer */
.al-footer{
  background: #0B0D11;
  color: #fff;
}
.al-footer .text-secondary{ color: rgba(255,255,255,.65) !important; }
.al-footer-link{
  display:block;
  color: rgba(255,255,255,.70);
  text-decoration: none;
  font-size: .9rem;
  margin: .25rem 0;
}
.al-footer-link:hover{ color: #fff; }

/* Pagination */
.al-pagination{ gap: .25rem; }
.al-pagination .page-item{ margin: 0; }

.al-pagination .page-link{
  border-radius: 10px;
  border: 1px solid var(--ui-border);
  color: var(--ink-700);
  background: #fff;
  padding: .45rem .7rem;
  font-weight: 500;
  transition: all .15s ease;
}
.al-pagination .page-link:hover{
  background: #F3F4F6;
  color: var(--ink-900);
  border-color: rgba(0,0,0,.12);
}
.al-pagination .page-item.active .page-link{
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(200,29,37,.25);
}
.al-pagination .page-item.disabled .page-link{
  background: #F3F4F6;
  color: var(--ink-500);
  border-color: rgba(0,0,0,.05);
  cursor: not-allowed;
}
.al-pagination .page-link:focus{
  box-shadow: 0 0 0 3px rgba(200,29,37,.15);
}

/* Sticky filters/sidebar */
.al-sticky{
  position: sticky;
  top: 92px; /* below navbar */
}

/* Filter panel inputs */
.al-panel .form-control,
.al-panel .form-select{
  border-radius: 12px;
  border: 1px solid var(--ui-border);
}
.al-panel .form-control:focus,
.al-panel .form-select:focus{
  border-color: rgba(200,29,37,.25);
  box-shadow: 0 0 0 3px rgba(200,29,37,.12);
}

/* VDP */
.al-price-lg{
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: #0B0D11;
}

.al-price-old-lg{
  display: block;
  margin-top: .25rem;
  color: var(--ink-500);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: line-through;
}
.al-pill{
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  color: var(--ink-700);
}

/* Gallery */
.al-vdp-image{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #EEF0F3;
}
.al-vdp-image img{
  width: 100%;
  height: auto;
  display: block;
}

.al-thumbs{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
}
.al-thumb{
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.al-thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}
.al-thumb.is-active{
  border-color: rgba(200, 29, 37, .55);
  box-shadow: 0 0 0 2px rgba(200, 29, 37, .14);
}
.al-thumb img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

/* Specs */
.al-spec-grid{ display: grid; gap: .35rem; }
.al-spec-row{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .6rem;
  border-radius: 12px;
  background: #FAFAFB;
  border: 1px solid rgba(0,0,0,.05);
}
.al-spec-row span{
  color: var(--ink-500);
  font-size: .9rem;
}
.al-spec-row strong{
  color: #0B0D11;
  font-weight: 600;
  text-align: right;
}

/* VDP Form */
.al-form .form-control{
  border-radius: 12px;
  border: 1px solid var(--ui-border);
}
.al-form .form-control:focus{
  border-color: rgba(200,29,37,.25);
  box-shadow: 0 0 0 3px rgba(200,29,37,.12);
}

/* Features */
.al-features{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.2rem;
}
@media (max-width: 768px){
  .al-features{ grid-template-columns: 1fr; }
}
.al-feature-item{
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: var(--ink-700);
  font-size: .95rem;
}
.al-feature-item i{
  color: rgba(200,29,37,.9);
  margin-top: .05rem;
}

/* Auth pages (Signup/Login) */
.al-auth-card{
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}

/* Brand CTA button used on auth */
.btn.btn-brand{
  background: linear-gradient(135deg, var(--brand-red), var(--brand-yellow));
  color: var(--ink-900);
  border: 0;
  font-weight: 800;
  padding: .9rem 1.1rem;
  border-radius: .75rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.btn.btn-brand:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: var(--ink-900);
}
.btn.btn-brand:active{ transform: translateY(0); }
.btn.btn-brand:focus{
  box-shadow:
    0 0 0 .25rem rgba(200,29,37,.18),
    0 10px 24px rgba(0,0,0,.12);
}

/* Auth helper links */
.al-auth-link{
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.al-auth-link:hover{
  color: #AB151B; /* darker red */
  text-decoration: underline;
}
