/* ================================================================
   SaraswathiTex — Consolidated Stylesheet
   ================================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 40px;
  border-radius: 6px;
}

.website-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

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

.nav-links a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-badge {
  background: #ff5722;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

/* ---------- Carousel ---------- */
.carousel-container {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
}

.carousel-caption h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.carousel-caption p {
  font-size: 14px;
  opacity: 0.9;
}

.carousel-offer-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff5722;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.carousel-dots {
  text-align: center;
  padding: 15px 0;
}

.carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #667eea;
}

/* ---------- First-time Banner ---------- */
.first-time-banner {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
}

.first-time-banner strong {
  background: #fff;
  color: #ff6a88;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* ---------- Categories ---------- */
.categories-container {
  padding: 20px 30px;
  background: #fff;
  margin: 0 20px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.categories-container h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #444;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.category-checkbox:hover {
  background: #e0e0e0;
}

.category-checkbox input:checked + span,
.category-checkbox:has(input:checked) {
  background: #667eea;
  color: #fff;
}

/* ---------- Special Offers ---------- */
.special-offers-section {
  padding: 20px 30px;
  margin: 0 20px 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.offer-cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.offer-card {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid;
  text-align: center;
}

.offer-percent {
  font-size: 28px;
  font-weight: 800;
}

.offer-category {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.offer-description {
  font-size: 13px;
  color: #666;
}

/* ---------- Product Grid ---------- */
.collection-intro {
  text-align: center;
  padding: 30px 20px 10px;
}

.collection-intro h2 {
  font-size: 26px;
  color: #333;
}

.collection-intro p {
  color: #777;
  font-size: 15px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px 30px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.product-info .product-color {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.discounted-price {
  font-size: 18px;
  font-weight: 700;
  color: #e91e63;
}

.discount-percent {
  font-size: 11px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.bulk-discount-info {
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.add-to-cart-btn:hover {
  opacity: 0.85;
}

.fav-icon {
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s;
}

.fav-icon:hover,
.fav-icon.active {
  color: #e91e63;
}

.discount-ribbon {
  position: absolute;
  top: 10px;
  left: -5px;
  color: #fff;
  padding: 4px 12px 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
  z-index: 1;
}

.no-products {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}

/* ---------- Bulk Discount Section ---------- */
.bulk-discount-section {
  padding: 30px;
  margin: 20px 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.discount-tiers {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.tier {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  border-radius: 10px;
  border: 1px solid #667eea40;
}

.tier-amount {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.tier-discount {
  font-size: 24px;
  font-weight: 800;
  color: #667eea;
  margin: 8px 0;
}

.tier-savings {
  font-size: 13px;
  color: #888;
}

.discount-note {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 10px;
}

.discount-note a {
  color: #667eea;
  font-weight: 600;
}

/* ---------- Cart Page ---------- */
.cart-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.cart-container h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.cart-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.cart-items {
  flex: 2;
}

.cart-summary {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 80px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

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

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

.cart-item-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-info .cart-item-color {
  font-size: 13px;
  color: #888;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-controls button:hover {
  background: #e0e0e0;
}

.cart-qty-controls span {
  font-size: 16px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-remove-btn {
  color: #e53935;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

.cart-remove-btn:hover {
  color: #c62828;
}

.cart-summary h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.cart-summary .summary-total {
  border-top: 2px solid #eee;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 18px;
  font-weight: 700;
}

.cart-summary .summary-total span:last-child {
  color: #667eea;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: opacity 0.3s;
}

.checkout-btn:hover {
  opacity: 0.85;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-cart h3 {
  margin-bottom: 15px;
}

.empty-cart .browse-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #667eea;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

/* ---------- Contact Page ---------- */
.contact-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
}

.contact-container h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

.contact-container .subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 25px;
}

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #667eea;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.form-submit:hover {
  opacity: 0.85;
}

.contact-info {
  margin-top: 30px;
  text-align: center;
}

.contact-info p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

/* ---------- Footer ---------- */
footer {
  background: #2d2d2d;
  color: #aaa;
  padding: 25px 30px;
  text-align: center;
  margin-top: 40px;
}

footer p {
  font-size: 14px;
}

/* ---------- Search Bar ---------- */
.search-container {
  padding: 15px 30px;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #667eea;
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
}

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

.toast.success {
  background: #4CAF50;
}

.toast.warning {
  background: #ff9800;
}

.toast.error {
  background: #e53935;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
  }

  .nav-links {
    gap: 10px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 15px;
  }

  .cart-layout {
    flex-direction: column;
  }

  .carousel-slide img {
    height: 250px;
  }

  .offer-cards {
    flex-direction: column;
  }

  .discount-tiers {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }
}


/* TOAST */
.toast { position:fixed; bottom:30px; right:30px; background:#333; color:#fff; padding:12px 24px; border-radius:6px; opacity:0; transition:opacity 0.3s; z-index:9999; font-size:14px; }
.toast.show { opacity:1; }
.toast.success { background:#4CAF50; }
.toast.error { background:#f44336; }

/* CHECKOUT FORM */
.checkout-form-section { flex:2; min-width:300px; }
.checkout-form-section .form-group { margin-bottom:15px; }
.checkout-form-section label { display:block; margin-bottom:5px; font-weight:600; font-size:14px; }
.checkout-form-section input, .checkout-form-section textarea { width:100%; padding:10px 12px; border:1px solid #ccc; border-radius:4px; font-size:14px; box-sizing:border-box; }
.checkout-form-section input:focus, .checkout-form-section textarea:focus { border-color:#e91e63; outline:none; }
.demo-notice { background:#fff3cd; color:#856404; padding:10px 15px; border-radius:4px; margin-bottom:20px; font-size:14px; }

/* CHECKOUT ITEMS */
.checkout-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #eee; font-size:14px; }
.checkout-subtotal, .checkout-total { font-weight:700; font-size:16px; border-bottom:none; border-top:2px solid #333; padding-top:10px; margin-top:8px; }
.clear-cart-btn { width:100%; margin-top:10px; background:#6c757d; color:#fff; border:none; padding:10px; border-radius:4px; cursor:pointer; font-size:14px; }
.clear-cart-btn:hover { background:#5a6268; }

/* PAY */
.pay-section { margin-bottom:20px; }
.pay-section h3 { margin-bottom:8px; }
.pay-section p { line-height:1.6; }

/* ORDER SUCCESS */
.success-icon { width:80px; height:80px; background:#4CAF50; color:#fff; border-radius:50%; font-size:40px; line-height:80px; margin:0 auto 20px; }
.order-id { font-size:18px; margin-bottom:5px; }
.order-date { color:#888; margin-bottom:20px; }
.order-items { max-width:600px; margin:0 auto; text-align:left; }
.order-item { display:flex; align-items:center; gap:15px; padding:10px 0; border-bottom:1px solid #eee; }
.order-item img { width:50px; height:50px; border-radius:4px; object-fit:cover; }
.order-totals { max-width:400px; margin:20px auto; text-align:left; padding:15px; background:#f9f9f9; border-radius:8px; }
.order-totals p { margin:5px 0; }
.shipping-info { max-width:400px; margin:20px auto; text-align:left; padding:15px; background:#f0f8ff; border-radius:8px; }
.shipping-info h4 { margin-bottom:8px; }

/* ORDERS */
.order-card { border:1px solid #e0e0e0; border-radius:8px; margin-bottom:20px; overflow:hidden; }
.order-card-header { display:flex; justify-content:space-between; align-items:center; background:#f5f5f5; padding:12px 15px; flex-wrap:wrap; gap:8px; }
.order-card-id { font-weight:700; }
.order-card-date { color:#888; font-size:13px; }
.order-status { background:#4CAF50; color:#fff; padding:3px 12px; border-radius:12px; font-size:12px; font-weight:600; }
.order-card-items { padding:10px 15px; }
.order-card-item { display:flex; align-items:center; gap:12px; padding:6px 0; font-size:14px; }
.order-card-item img { width:40px; height:40px; border-radius:4px; object-fit:cover; }
.order-card-footer { display:flex; justify-content:space-between; padding:10px 15px; background:#fafafa; border-top:1px solid #eee; font-weight:600; font-size:14px; }
