:root{
  --lavender: #cdb4ff;       
  --lavender-600: #b892ff;
  --muted: #6b7280;
  --bg: #f7f7fb;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(16,24,40,0.06);
}

* { box-sizing: border-box; }
html,body { 
  height:100%;
 }

body {
   margin:0; 
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
   background:var(--bg); color:#222;
   }

/* Links and buttons */
a { 
  color:var(--lavender-600); text-decoration:none;
 }

.btn, button { 
  cursor:pointer; border:none; border-radius:10px; padding:10px 16px; background:var(--lavender); color:#fff; font-weight:700; box-shadow:var(--shadow); transition:transform .12s, background .12s;
 }

.btn:hover, button:hover {
   transform:translateY(-3px); background:var(--lavender-600);
   }

/* Header with light purple gradient */
header { 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  background: linear-gradient(90deg, #e6ccff, #d1b3ff); 
  color: #fff;
  padding: 12px 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  height: 70px; 
}

.header-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%;
}

/* Logo/title left */
.logo a { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  text-decoration: none; 
  color: #fff; 
  font-weight: 800; 
  font-size: 22px; 
}

/* Navigation / buttons right */
nav ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

nav a.nav-link, .btn { 
  color: #fff; 
  padding: 8px 14px; 
  border-radius: 8px; 
  transition: background .12s; 
  font-weight: 600;
}

nav a.nav-link:hover, .btn:hover { 
  background: rgba(255,255,255,0.2); 
  color: #fff; 
}

/* Hero slideshow full-bleed */
.hero {
   width:100%;
    overflow:hidden;
   }

.slideshow-container {
   height:480px; 
   max-width:1600px;
    margin:18px auto;
     position:relative;
      border-radius:14px;
       overflow:hidden;
        box-shadow:var(--shadow);
       }

.slides {
   position:absolute;
    inset:0; background-size:cover; 
    background-position:center; 
    display:none;
   }
   
.slides.active { display:block; }

/* overlay centered card */
.hero .overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; background:linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.12)); }
.hero .hero-card { background:rgba(255,255,255,0.92); padding:28px; border-radius:12px; text-align:center; max-width:900px; box-shadow:var(--shadow); }
.hero .hero-card h1 { margin:0 0 8px; color:var(--lavender-600); font-size:30px; }
.hero .hero-card p { margin:0 0 16px; color:var(--muted); }

/* dots */
.dot-container { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.7); cursor:pointer; border:2px solid rgba(0,0,0,0.05); }
.dot.active { background:var(--lavender-600); transform:scale(1.12); }

/* welcome small card used on shop page */
.welcome { max-width:1100px; margin:18px auto; padding:0 18px; text-align:center; }
.welcome .card { background:var(--card); padding:16px; border-radius:10px; box-shadow:var(--shadow); }
.welcome h1 { color:var(--lavender-600); margin:6px 0; font-size:26px; }
.welcome p { color:var(--muted); margin:0 0 8px; }

/* shop hero background */
.shop-hero { background-size:cover; background-position:center; padding:30px 0; border-radius:12px; max-width:1200px; margin:0 auto 12px; }

/* search form */
.search-form { text-align:center; margin:12px 0; }
.search-form input[type="text"], .search-form select { padding:10px 12px; border-radius:10px; border:1px solid #eceaf6; margin-right:8px; }

/* products grid */
.product-list-wrap { max-width:1200px; margin:0 auto 40px; padding:0 18px; }
.product-list { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); margin-top:12px; }
.product-card { background:var(--card); border-radius:12px; padding:12px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:8px; transition:transform .12s; }
.product-card:hover { transform:translateY(-6px); }
.product-card .img-wrap { height:170px; overflow:hidden; border-radius:10px; background:#f6f6fb; display:flex; align-items:center; justify-content:center; }
.product-card img { width:100%; height:100%; object-fit:cover; display:block; }
.product-card h3 { margin:6px 0 2px; color:#1f1f2e; font-size:16px; }
.product-card p.desc { color:var(--muted); font-size:13px; margin:0; flex:1; }
.price-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
.price { font-weight:800; color:#0f1724; }

/* login prompt */
.login-prompt { font-size:13px; color:var(--muted); }

/* cart table */
.cart-table { width:92%; margin:20px auto; border-collapse:collapse; background:var(--card); border-radius:10px; overflow:hidden; box-shadow:var(--shadow); }
.cart-table th, .cart-table td { padding:12px 14px; text-align:center; border-bottom:1px solid #f3f3f6; }
.cart-table th { background:linear-gradient(90deg,var(--lavender),var(--lavender-600)); color:#fff; }

/* quantity buttons */
.quantity-btn { background:transparent; border:1px solid rgba(123,92,255,0.14); color:var(--lavender-600); padding:6px 10px; border-radius:8px; font-weight:700; }

/* checkout & auth */
.checkout, .auth-form { max-width:700px; margin:20px auto 60px; background:var(--card); padding:18px; border-radius:12px; box-shadow:var(--shadow); }
.checkout h3, .auth-form h2 { color:var(--lavender-600); margin:0 0 10px; }
.checkout input, .auth-form input, .checkout select { width:100%; padding:10px; border-radius:8px; border:1px solid #eceaf6; margin-top:8px; }

/* Footer with gray gradient and smaller height */
footer { 
  padding: 16px 8px; 
  text-align: center; 
  color: #f1f1f1; 
  background: linear-gradient(180deg, #4d4d4d, #1a1a1a); /* gray gradient */
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center; 
  height: 50px; 
}

.footer-container { 
  max-width: 1200px; 
  margin: 0 auto; 
}

/* Login/Register two-column layout with lavender gradient */
.auth-page {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-left, .auth-right {
    flex: 1;
    padding: 24px;
}

.auth-left { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, #cdb4ff, #b892ff); /* lavender gradient */
    color: #fff;
}

.auth-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #e0e0e0, #f6f6f6); /* light grey gradient */
    color: #333;
    padding: 20px;
    border-radius: 0;
}

.auth-right img {
    max-width: 200px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.auth-right h3 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.auth-right p {
    font-size: 14px;
    line-height: 1.4;
}

/* Centered text under form */
.auth-form .text-center { text-align: center; margin-top: 12px; }

/* responsive adjustments */
@media (max-width:768px){
  .slideshow-container{height:320px;}
  .product-card .img-wrap{height:140px;}
  .header-container{flex-direction: column; gap: 10px; height:auto;}
  nav ul{flex-direction: column; gap: 6px;}
  footer{height:100px;}
  .auth-page { flex-direction: column; margin: 20px; }
  .auth-right img { max-width: 150px; }
}
