/* ============================================================
   ShopEase - Main Stylesheet
   Pakistani Clothing E-Commerce Website
   University Project
   ============================================================ */

/* --- CSS Variables: Change colors from one place --- */
:root {
  --primary: #2c2c2c;      /* Dark charcoal for text and header */
  --accent: #c8a96e;       /* Gold accent color for buttons */
  --accent-dark: #a8894e;  /* Darker gold for hover effects */
  --bg: #faf9f7;           /* Off-white background */
  --white: #ffffff;
  --light-gray: #f2f0ec;
  --mid-gray: #888;
  --text: #2c2c2c;
  --border: #e8e4de;
  --red: #d64045;          /* For sale badges and errors */
  --success: #2e7d32;      /* Green for success messages */
}

/* --- Reset: Remove default browser margin/padding --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base Styles --- */
body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Utility: Centers content with max width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Smooth page fade-in animation */
body {
  animation: fadeIn 0.4s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  background-color: var(--primary);
  position: sticky;    /* Stays on top as user scrolls */
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Top bar: small info strip above main nav */
.top-bar {
  background: var(--accent);
  text-align: center;
  padding: 6px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Main navigation row */
.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo styling */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent); /* Gold "Ease" part */
}

/* Navigation links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}

/* Underline animation on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Cart button in nav */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.2s;
}

.cart-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.04);
}

/* Cart count badge */
.cart-badge {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.header.nav-open .nav-toggle {
  background: rgba(200,169,110,0.18);
  border-color: var(--accent);
}

/* ============================================================
   HERO SECTION (Home Page)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1c1c1c 0%, #2c2c2c 60%, #3a3020 100%);
  color: white;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 34px 0 46px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles in the background */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.07);
  right: -100px;
  top: -100px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.05);
  left: 50%;
  bottom: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 60px 0;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  color: #bbb;
  margin-bottom: 35px;
  max-width: 460px;
}

/* Hero buttons */
.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 13px 32px;
  border: none;
  border-radius: 30px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 13px 32px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero stats (bottom row) */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item h3 {
  font-size: 1.6rem;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

.stat-item p {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* ============================================================
   FEATURES STRIP (after hero)
   ============================================================ */
.features-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.features-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.feature-item i {
  color: var(--accent);
  font-size: 1.3rem;
}

.feature-item strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.feature-item span {
  color: var(--mid-gray);
  font-size: 0.78rem;
}

/* ============================================================
   SECTION TITLES (reusable)
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--primary);
}

.section-title p {
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ============================================================
   CATEGORIES SECTION (Home Page)
   ============================================================ */
.categories-section {
  padding: 70px 0;
  background: var(--bg);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Each category card */
.cat-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(200,169,110,0.2);
}

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.cat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.cat-card p {
  font-size: 0.78rem;
  color: var(--mid-gray);
  margin-top: 4px;
}

/* ============================================================
   SHOP PAGE — FILTER BAR
   ============================================================ */
.shop-header {
  background: var(--primary);
  padding: 50px 0 30px;
  text-align: center;
  color: white;
}

.shop-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
}

.shop-header p {
  color: #aaa;
  margin-top: 8px;
}

/* Filter bar below shop header */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 80px;
  z-index: 50;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 5px;
}

/* Filter buttons */
.filter-btn {
  padding: 7px 18px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 25px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Search in shop page */
.shop-search {
  margin-left: auto;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
}

.shop-search input {
  border: none;
  padding: 7px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  outline: none;
  width: 200px;
}

.shop-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-section {
  padding: 50px 0 80px;
}

/* Responsive grid — adjusts columns automatically */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 28px;
}

/* No products found message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--mid-gray);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-link {
  display: block;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-6px); /* Lift effect on hover */
  box-shadow: 0 12px 30px rgba(0,0,0,0.13);
}

/* Sale badge on product image */
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* New badge */
.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Product image */
.product-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.product-card:hover .product-img {
  transform: scale(1.04); /* Zoom image slightly on hover */
}

/* Product info area */
.product-info {
  padding: 16px;
}

.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

.product-name-link:hover {
  color: var(--accent);
}

/* Star rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.stars {
  color: #f59e0b; /* Gold stars */
  font-size: 0.8rem;
}

.rating-count {
  color: var(--mid-gray);
  font-size: 0.75rem;
}

/* Price row */
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.price-now {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
}

.price-was {
  font-size: 0.82rem;
  color: #aaa;
  text-decoration: line-through;
}

.btn-view-product {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 10px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-view-product:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Add to cart button */
.btn-cart {
  width: 100%;
  padding: 10px 0;
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cart:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

/* ============================================================
   PRODUCT DETAILS PAGE
   ============================================================ */
.product-detail-page {
  padding: 55px 0 80px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.product-detail-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  background: var(--white);
}

.product-detail-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.product-detail-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-detail-rating {
  margin-bottom: 14px;
}

.product-detail-price {
  margin-bottom: 18px;
}

.product-discount {
  background: #fff1f1;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 18px;
}

.product-detail-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.product-detail-highlights {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.product-detail-highlights div {
  color: #4a4a4a;
  font-size: 0.9rem;
}

.product-detail-highlights i {
  color: var(--success);
  margin-right: 7px;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-outline-dark {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
}

.product-not-found {
  background: var(--white);
  border-radius: 14px;
  text-align: center;
  padding: 55px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.product-not-found i {
  font-size: 3.2rem;
  color: var(--border);
  margin-bottom: 14px;
}

.product-not-found h2 {
  color: var(--primary);
  margin-bottom: 8px;
}

.product-not-found p {
  color: var(--mid-gray);
  margin-bottom: 18px;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.page-banner {
  background: var(--primary);
  padding: 45px 0;
  text-align: center;
  color: white;
}

.page-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
}

.page-banner p {
  color: #aaa;
  margin-top: 6px;
  font-size: 0.9rem;
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.83rem;
  color: #888;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.cart-page {
  padding: 50px 0 80px;
}

/* Two-column layout: cart items + summary */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 35px;
  align-items: start;
}

/* Left column: list of cart items */
.cart-items-col h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Individual cart item card */
.cart-item {
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-items: center;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--primary);
}

.cart-item-details .item-cat {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cart-item-details .item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}

/* Quantity controls: minus, number, plus */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.qty-num {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

/* Remove item button */
.remove-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
  margin-left: auto;
}

.remove-btn:hover {
  color: var(--red);
}

/* Right column: order summary box */
.cart-summary {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 110px;
}

.cart-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--mid-gray);
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--border);
}

/* COD payment method box */
.cod-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0f9f0;
  border: 2px solid #c8e6c9;
  border-radius: 10px;
  padding: 14px;
  margin: 18px 0;
}

.cod-box i {
  color: var(--success);
  font-size: 1.3rem;
  margin-top: 2px;
}

.cod-box strong {
  display: block;
  font-size: 0.9rem;
  color: var(--success);
  margin-bottom: 2px;
}

.cod-box p {
  font-size: 0.78rem;
  color: #555;
  margin: 0;
}

/* Checkout button */
.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-checkout:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.continue-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--mid-gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.continue-link:hover {
  color: var(--accent);
}

/* Empty cart message */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart i {
  font-size: 4rem;
  color: var(--border);
  display: block;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.empty-cart p {
  color: var(--mid-gray);
  margin-bottom: 25px;
}

/* ============================================================
   ORDER / CHECKOUT FORM PAGE
   ============================================================ */
.order-page {
  padding: 50px 0 80px;
}

/* Step progress bar */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 45px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #bbb;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
}

.step.done .step-num {
  background: var(--success);
}

.step.active .step-num {
  background: var(--accent);
  color: var(--primary);
}

.step.active {
  color: var(--primary);
}

/* Lines connecting steps */
.step-line {
  width: 80px;
  height: 2px;
  background: #ddd;
  margin: 0 5px;
}

/* Two-column layout: form left, summary right */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 35px;
  align-items: start;
}

/* Checkout form box */
.form-box {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.form-box h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--primary);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

/* Form group: label + input pair */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form inputs, textareas, selects */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.3s;
  outline: none;
}

/* Highlight input when user clicks it */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: white;
}

/* Two inputs side by side */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Place order button */
.btn-place-order {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-place-order:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Order summary sidebar on checkout page */
.order-summary-box {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 110px;
}

.order-summary-box h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}

/* Mini item in order summary */
.mini-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mini-item img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

.mini-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.mini-item-price {
  font-size: 0.83rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 2px;
}

.mini-item-qty {
  font-size: 0.75rem;
  color: var(--mid-gray);
}

/* ============================================================
   ORDER SUCCESS PAGE
   ============================================================ */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.success-card {
  background: var(--white);
  border-radius: 20px;
  padding: 60px 50px;
  text-align: center;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Big green checkmark icon */
.success-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 25px rgba(76,175,80,0.4);
}

.success-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-card > p {
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Order ID display */
.order-id-box {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 16px 24px;
  margin: 20px 0;
  font-size: 1rem;
}

.order-id-box span {
  color: var(--mid-gray);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 4px;
}

.order-id-box strong {
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 2px;
  font-family: 'Playfair Display', serif;
}

/* COD reminder box */
.cod-reminder {
  background: #f0f9f0;
  border: 2px solid #c8e6c9;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.cod-reminder i {
  font-size: 1.5rem;
  color: var(--success);
  flex-shrink: 0;
}

.cod-reminder p {
  font-size: 0.88rem;
  color: #333;
  margin: 0;
}

/* Countdown timer for redirect */
.countdown-box {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--mid-gray);
}

.countdown-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 36px;
  text-align: center;
  margin: 0 4px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.about-hero p {
  color: #bbb;
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

.about-section {
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: #555;
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-img-box {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  font-size: 5rem;
}

/* Values grid on about page */
.values-section {
  background: var(--primary);
  padding: 70px 0;
  color: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.value-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: white;
}

.value-card p {
  font-size: 0.83rem;
  color: #888;
  line-height: 1.7;
}

/* Team section */
.team-section {
  padding: 70px 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--accent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 15px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

.team-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 70px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

/* Left column: contact info */
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.contact-info p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 0.92rem;
}

/* Info items: icon + text */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 3px;
}

.info-text span {
  font-size: 0.85rem;
  color: var(--mid-gray);
}

/* Right column: contact form */
.contact-form-box {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.contact-form-box h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--primary);
}

/* Contact form send button */
.btn-send {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-send:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Success message after form submit */
.form-success {
  display: none;
  background: #f0f9f0;
  border: 2px solid #c8e6c9;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: var(--success);
  font-weight: 700;
  margin-top: 16px;
}

/* ============================================================
   TOAST NOTIFICATION (bottom right popup)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(100px);  /* Hidden below screen */
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0); /* Slides up when shown */
  opacity: 1;
}

.toast i {
  color: #4caf50;
  font-size: 1.1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111;
  color: #aaa;
  padding: 55px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #888;
  max-width: 250px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid #222;
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
}

/* ============================================================
   RESPONSIVE (Mobile & Tablet friendly)
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    padding: 44px 0 58px;
  }
  .hero-content {
    padding-top: 86px;
  }
  .top-bar {
    font-size: 0.76rem;
    padding: 8px 14px;
    line-height: 1.25;
    letter-spacing: 0.2px;
  }
  .nav-main {
    position: relative;
    padding: 12px 16px;
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .logo {
    font-size: 1.9rem;
    line-height: 1;
  }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    order: 2;
  }
  .nav-links {
    display: none;
    width: calc(100% - 32px);
    position: absolute;
    left: 16px;
    top: calc(100% + 10px);
    z-index: 1200;
    flex-direction: column;
    gap: 8px;
    background: #171717;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 16px 35px rgba(0,0,0,0.35);
  }
  .header.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    display: block;
    font-size: 0.86rem;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,0.02);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(200,169,110,0.12);
  }
  .cart-btn {
    justify-self: end;
    order: 3;
    padding: 10px 14px;
    font-size: 0.85rem;
    gap: 6px;
    border-radius: 999px;
  }
  .shop-header {
    padding: 38px 0 24px;
  }
  .shop-header h1 { font-size: 2rem; }
  .filter-bar {
    top: 66px;
    padding: 12px 0;
  }
  .filter-inner {
    gap: 8px;
  }
  .shop-search {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
  .shop-search input {
    width: 100%;
    min-width: 0;
  }
  .products-section {
    padding: 36px 0 64px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .product-img {
    height: 210px;
  }
  .product-info {
    padding: 12px;
  }
  .price-now {
    font-size: 1rem;
  }
  .product-detail-layout { grid-template-columns: 1fr; }
  .cart-layout,
  .order-layout,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }
  .cart-summary,
  .order-summary-box {
    position: static;
    top: auto;
  }
  .cart-item {
    align-items: flex-start;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-stats {
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    flex-wrap: wrap;
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid,
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero {
    padding: 50px 0 64px;
  }
  .hero-content {
    padding-top: 96px;
  }
  .container { padding: 0 14px; }
  .top-bar {
    font-size: 0.72rem;
    padding: 7px 12px;
  }
  .nav-main {
    grid-template-columns: 1fr auto auto;
    padding: 10px 12px;
    gap: 8px;
  }
  .logo {
    font-size: 1.6rem;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .cart-btn {
    padding: 8px 11px;
    font-size: 0.8rem;
    min-width: 0;
  }
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 0.67rem;
  }
  .nav-links {
    width: calc(100% - 24px);
    left: 12px;
    top: calc(100% + 8px);
    padding: 10px;
  }
  .nav-links a {
    font-size: 0.82rem;
    padding: 9px 10px;
  }
  .hero h1 { font-size: 1.7rem; }
  .hero {
    min-height: 500px;
  }
  .hero-btns {
    width: 100%;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .page-banner h1,
  .shop-header h1 {
    font-size: 1.7rem;
  }
  .breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-img { height: 250px; }
  .filter-btn {
    font-size: 0.78rem;
    padding: 6px 13px;
  }
  .steps-bar {
    margin-bottom: 28px;
  }
  .step span {
    display: none;
  }
  .step-line {
    width: 38px;
  }
  .form-box,
  .contact-form-box,
  .order-summary-box,
  .cart-summary {
    padding: 20px;
  }
  .cart-item {
    flex-direction: column;
    gap: 10px;
  }
  .cart-item img {
    width: 100%;
    height: 210px;
  }
  .remove-btn {
    margin-left: 0;
  }
  .about-hero h1 {
    font-size: 2.1rem;
  }
  .about-section,
  .team-section,
  .contact-section,
  .order-page,
  .cart-page {
    padding: 44px 0 56px;
  }
  .form-row { grid-template-columns: 1fr; }
  .success-card { padding: 40px 24px; }
  .product-detail-image { height: 360px; }
  .product-detail-info h2 { font-size: 1.6rem; }
  .product-detail-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
