/* --- Custom overrides and additions --- */

@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;


.icon-box i {
  color: whitesmoke;
  cursor: pointer;
}

.home-main, .home-cat {
    background: transparent;
}
html, body {
    height: 100%;
    /* background-image: url("{% static 'bg.jpg' %}"); */
    background-size: cover;
    background-position: center;
}

/* Logo */
#logo-box img {
  height: 9vh;
}

/* Body base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* background-color: #f9fafb; */
  margin: 0;
  color: #2c3e50;
  overflow-x: hidden;
  max-height: 100%;
}

/* Filter form styling */
.filter {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  /* optional, for smaller screens */
}

.filter label {
  font-weight: 600;
  color: #34495e;
}

.filter select {
  min-width: 180px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
}

.filter button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.filter select:hover,
.filter button:hover {
  border-color: #2980b9;
  cursor: pointer;
}

.filter button {
  background-color: #2980b9;
  color: white;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.filter button:hover {
  background-color: #1c5980;
}

/* Cards container grid */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 10px;
  max-width: 1200px;
  margin: auto;
}

.card {
  height: 370px;
  /* 👈 fixed height */
  padding: 15px;
  width: 100%;
  max-width: 220px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  /* extra text/images won't overflow */
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



.card {
  height: 370px;
  /* 👈 fixed height */
  padding: 15px;
  width: 100%;
  max-width: 220px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  /* extra text/images won't overflow */
}

.card img {
  height: 120px;
  width: 120px;
  object-fit: cover;
  /* crop image to fit nicely */
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 10px 0 5px;
  line-height: 1.2;
  max-height: 2.5em;
  /* avoid title overflow */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card p strong {
  color: #27ae60;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  margin: 5px 0;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card p:last-of-type {
  font-style: italic;
  color: #777;
  font-size: 0.85rem;
}

/* Category buttons */
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 40px;
  height: 130px;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0 10px;
}

.category-btn {
  color: white;
  height: fit-content;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  text-align: center;
}



.category-img {
  width: 80px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile menu links in mobile nav */
#mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  color: #4a4a4a;
  text-decoration: none;
  display: block;
}

#mobile-menu a:last-child {
  border-bottom: none;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .filter {
    max-width: 95%;
    padding: 15px;
  }
}

#Shop-By-Category {
  text-align: center;
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 800;
  margin: 40px 0 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

#Shop-By-Category::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #ffaf00, #ff6f00);
  margin: 12px auto 0;
  border-radius: 2px;
}




@media (max-width: 600px) {

  .filter {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 20px auto 40px;
  }
  
  .filter label {
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 2;
  }

  .filter select {
    width: 30ch;
    /* ~15 characters wide */
    min-width: 30ch;
    max-width: 30ch;
    box-sizing: border-box;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 50vw;
  }

  .filter button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background-color: #2980b9;
    color: white;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 120px;
    transition: background-color 0.3s ease;
  }


  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    padding: 0 10px;
  }
  
  .card {
    max-width: 100%;
    padding: 10px;
  }

  #suggestions div {
    border-bottom: 1px solid #eee;
  }

  #suggestions div:last-child {
    border-bottom: none;
  }

  /* Mobile menu toggle */

  #mobile-menu {

    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #212121;
    border-radius: 8px;
    padding: 15px;
    width: 150px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  #mobile-menu.show {
    display: flex !important;
  }
}

.btn-add-cart {
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-add-cart:hover {
  background-color: #1c5980;
}


.cart-control button {
  background-color: #2980b9;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media screen and (max-width: 360px) {
  #cart-popup {
    right: 5px !important;
    width: 95vw !important;
  }
}


.cart-control button:hover {
  background-color: #1c5980;
}

.cart-control .qty-number {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 24px;
  display: inline-block;
  text-align: center;
}

.cart-title {
  text-align: center;
  font-size: 2rem;
  margin: 30px 0 20px;
  color: #2c3e50;
  font-weight: 700;
  letter-spacing: 1px;
}

.cart-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.07);
  padding: 32px 18px 24px;
  max-width: 900px;
  margin: 0 auto 40px;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.cart-table th,
.cart-table td {
  padding: 14px 12px;
  text-align: left;
}

.cart-table thead th {
  background: #f5f7fa;
  color: #34495e;
  font-weight: 700;
  border-bottom: 2px solid #eaeaea;
}

.cart-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.cart-table tbody tr:hover {
  background: #f9fafb;
}

.cart-table tfoot td {
  background: #f5f7fa;
  font-size: 1.1rem;
  font-weight: 600;
  border-top: 2px solid #eaeaea;
}

.cart-total-label {
  text-align: right;
}

.cart-total-value {
  color: #27ae60;
  font-weight: bold;
}

.cart-qty-form,
.cart-remove-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.cart-qty-input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
}

.cart-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.98rem;
  transition: background 0.2s;
}

.cart-btn-update {
  background: #2980b9;
  color: #fff;
}

.cart-btn-update:hover {
  background: #1c5980;
}

.cart-btn-remove {
  background: #e74c3c;
  color: #fff;
}

.cart-btn-remove:hover {
  background: #c0392b;
}

.cart-empty {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  margin: 40px 0;
}

.cart-empty-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}


.cart-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cart-btn-checkout {
  background: #F97A00;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  transition: background 0.2s;
}

.cart-btn-checkout:hover {
  background: #c75c00;
}

.cart-continue-link {
  background: #fff;
  color: #F97A00;
  border: 2px solid #F97A00;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-left: 0;
  margin-right: 0;
  position: static;
  left: unset;
  transform: unset;
  bottom: unset;
  display: inline-block;
}

.cart-continue-link:hover {

  color: #fff;
}

/* Responsive cart table */
@media (max-width: 700px) {
  .cart-container {
    padding: 12px 2px 18px;
  }

  .cart-table {
    min-width: 400px;
    font-size: 0.97rem;
  }

  .cart-title {
    font-size: 1.3rem;
  }
}

/* --- Improved Account Page Styles --- */

.account-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #f9fafb 60%, #e0e7ff 100%);
  padding: 60px 0;
}

.account-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
  max-width: 410px;
  width: 97%;
  padding: 48px 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.2s;
}

.account-card:hover {
  box-shadow: 0 12px 40px rgba(44, 62, 80, 0.18);
}

.account-avatar {
  background: linear-gradient(135deg, #6366f1 0%, #f59e42 100%);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.10);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 4px solid #fff;
}

.account-avatar:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18);
}

.account-avatar-svg {
  width: 62px;
  height: 62px;
  display: block;
  filter: drop-shadow(0 2px 6px #6366f1aa);
}

.account-title {
  font-size: 2rem;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #e0e7ff;
}

.account-subtitle {
  font-size: 1.08rem;
  color: #6b7280;
  margin-bottom: 22px;
  font-weight: 500;
}

.account-divider {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #f59e42 100%);
  border-radius: 2px;
  margin: 0 auto 28px;
  opacity: 0.7;
}

.account-info {
  width: 100%;
  text-align: left;
  padding: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.account-info .label {
  font-size: 1.01rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.account-info .value {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1f2937;
  word-break: break-all;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 7px 14px;
  margin-top: 2px;
  display: inline-block;
}

.logout-btn {
  background: linear-gradient(90deg, #f97a00 60%, #f59e42 100%);
  color: white;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 99px;
  width: 85%;
  border: none;
  font-size: 1.08rem;
  cursor: pointer;
  margin: 22px 0 10px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(249, 122, 0, 0.09);
  letter-spacing: 0.5px;
}

.logout-btn:hover {
  background: linear-gradient(90deg, #b91c1c 60%, #f59e42 100%);
  box-shadow: 0 4px 18px rgba(249, 122, 0, 0.13);
}

.account-footer {
  font-size: 0.96rem;
  color: #9ca3af;
  margin-top: 12px;
  letter-spacing: 0.2px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .account-card {
    padding: 18px 4vw 16px;
    max-width: 99vw;
  }

  .account-title {
    font-size: 1.25rem;
  }

  .account-avatar {
    width: 64px;
    height: 64px;
  }

  .account-avatar-svg {
    width: 38px;
    height: 38px;
  }

  .account-divider {
    width: 40px;
    height: 3px;

  }

  .logout-btn {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .account-info .value {
    font-size: 1rem;
    padding: 6px 10px;
  }
}

.cart-actions-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin-top: 1.5rem;
}

.cart-continue-link {
  margin: 0;
  border-radius: 8px 0 0 8px;
  border-right: 1px solid #F97A00;
}

.cart-btn-checkout {
  border-radius: 0 8px 8px 0;
  margin-left: 0;
  border-left: none;
}

@media (max-width: 600px) {
  .cart-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .cart-btn-checkout,
  .cart-continue-link {
    width: 100%;
    text-align: center;
    margin: 0;
    border-radius: 8px;
    border: 2px solid #F97A00;
    border-bottom: none;
  }

  .cart-btn-checkout {
    border-top: none;
    border-bottom: 2px solid #F97A00;
  }

  .cart-continue-link {
    border: none;
  }
}

/* Blog & Video Section Styles */
.blog-section-header {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.blog-section-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #222;
}

.blog-section-header p {
  font-size: 1.1rem;
  color: #666;
}

.blog-section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-left: 4px solid #007BFF;
  padding-left: 10px;
  color: #222;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.blog-card,
.video-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  position: relative;
}

.blog-card:hover,
.video-card:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.blog-card img,
.video-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #f3f3f3;
}

.blog-card-content,
.video-card-content {
  padding: 22px 20px 18px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.blog-card-content h3,
.video-card-content h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
  line-height: 1.3;
}

.blog-card-content p {
  font-size: 1rem;
  color: #555;
  margin: 0 0 12px;
  flex: 1 1 auto;
}

.blog-card-content a {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
  font-size: 1.01rem;
  transition: color 0.2s;
}

.blog-card-content a:hover {
  color: #0051a2;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }

  .blog-card img,
  .video-card img {
    height: 150px;
  }
}

@media (max-width: 600px) {
  .blog-section-header h1 {
    font-size: 1.3rem;
  }

  .blog-section-title {
    font-size: 1.1rem;
    padding-left: 7px;
  }

  .blog-card-content,
  .video-card-content {
    padding: 12px 10px 10px 10px;
  }
}

/* Blog Detail Page Styles */
.blog-detail-container {
  max-width: 800px;
  margin: 3rem auto 4rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
  overflow: hidden;
  padding-bottom: 2rem;
}

.blog-detail-header {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.blog-detail-header h1 {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: 2rem;
  color: #111;
}

.blog-detail-date {
  font-size: 0.98rem;
  color: #777;
  font-weight: 500;
}

.blog-detail-thumbnail {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.blog-detail-content {
  padding: 1.5rem 2rem;
  font-size: 1.08rem;
  color: #333;
}

.blog-detail-content p {
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .blog-detail-header h1 {
    font-size: 1.3rem;
  }

  .blog-detail-content {
    padding: 1rem;
  }

  .blog-detail-container {
    margin: 1.2rem 0 2rem 0;
    border-radius: 10px;
  }
}

footer {
  background-color: #212121;
  /* black */
  color: #ccc;
  /* light gray for text */
  padding: 1.5rem 1rem;
  /* top-bottom 24px, left-right 16px */
  text-align: center;
  width: 100%;
  position: relative;
  /* for normal flow, not fixed */
  bottom: 0;
  font-size: 0.9rem;
  /* slightly smaller text */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  /* subtle shadow on top */
}

footer a {
  color: #ccc;
  text-decoration: underline;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

/* Responsive tweak */
@media (max-width: 640px) {
  footer {
    font-size: 0.85rem;
    padding: 1rem 0.5rem;
  }
}


.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  text-decoration: none;
  overflow: hidden;
  color: white;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.category-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .category-btn {
    width: 48vw;
    min-width: 160px;
    height: 140px;
  }
  .category-img {
    width: 70px;
    height: 70px;
  }
  .category-buttons {
    max-width: 70%;
  }
}

@media (max-width: 600px) {
  .category-btn {
    width: 90vw;
    min-width: 0;
    /* height: 210px; */
    border-radius: 12px;
  }
  .category-img {
    width: 60px;
    height: 160px;
  }
  .category-buttons {
    max-width: 100%;
  }
}