/* =========================================================
   ShopNest - Main Stylesheet
   Simple, readable custom CSS on top of Bootstrap 5
   ========================================================= */

:root {
  --brand-primary: #ff5722;   /* main orange brand color */
  --brand-dark: #e64a19;      /* darker orange for hover */
  --brand-light: #fff3ee;     /* very light orange background */
  --text-dark: #222222;
  --text-muted: #6c757d;
  --border-light: #eeeeee;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

a {
  text-decoration: none;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background-color: var(--text-dark);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar a {
  color: #ffffff;
  opacity: 0.85;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--brand-primary);
}

.top-bar select.form-select-sm {
  background-color: transparent;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  background-color: #ffffff;
}

.site-logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand-primary);
}

.site-logo span {
  color: var(--text-dark);
}

.search-form input {
  border-radius: 4px 0 0 4px;
  border: 1px solid #ddd;
}

.search-form button {
  border-radius: 0 4px 4px 0;
  background-color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #fff;
}

.search-form button:hover {
  background-color: var(--brand-dark);
}

.header-icon-link {
  color: var(--text-dark);
  text-align: center;
  font-size: 0.8rem;
}

.header-icon-link i {
  font-size: 1.3rem;
  display: block;
}

.header-icon-link .badge {
  position: relative;
  top: -18px;
  left: 12px;
  font-size: 0.6rem;
}

/* Main nav bar under the header */
.main-nav {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
}

.main-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 12px 16px !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.main-nav .dropdown-menu {
  border-radius: 4px;
}

.categories-toggle {
  background-color: rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

/* =========================================================
   HERO / BANNER
   ========================================================= */
.hero-banner {
  background-color: var(--brand-light);
  border-radius: 8px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Small promo tiles under hero */
.category-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  transition: transform 0.15s ease-in-out;
}

.category-circle:hover {
  transform: scale(1.05);
  border-color: var(--brand-primary);
}

.category-item {
  text-align: center;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
  font-weight: 700;
  color: var(--brand-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background-color: var(--brand-primary);
}

.view-more-btn {
  background-color: var(--brand-primary);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  padding: 6px 16px;
}

.view-more-btn:hover {
  background-color: var(--brand-dark);
  color: #fff;
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-card {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.15s ease-in-out;
  position: relative;
  background-color: #fff;
}

.product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.product-card .product-img-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fafafa;
}

.product-card .product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-card .product-body {
  padding: 12px;
}

.product-card .product-title {
  font-size: 0.9rem;
  color: var(--text-dark);
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price-current {
  color: var(--brand-primary);
  font-weight: 700;
}

.product-card .price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.off-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e53935;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 2;
}

/* Deal of the day side card list */
.deal-list-item {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 8px;
  margin-bottom: 10px;
}

.deal-list-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 10px;
}

/* =========================================================
   BLOG CARDS
   ========================================================= */
.blog-card {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
}

.blog-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.blog-card .blog-body {
  padding: 15px;
}

.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card .blog-title {
  font-weight: 600;
  color: var(--text-dark);
  margin: 8px 0;
}

.blog-card .read-more {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* =========================================================
   BRAND LOGO BOXES
   ========================================================= */
.brand-box {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 15px;
  height: 100%;
}

.brand-box img {
  max-height: 50px;
  max-width: 90px;
  margin-right: 15px;
  object-fit: contain;
}

.brand-box .brand-name {
  font-weight: 500;
}

.brand-box .arrow-link {
  margin-left: auto;
  color: var(--brand-primary);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: #1b1b1b;
  color: #cccccc;
  padding-top: 40px;
}

.site-footer h6 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 2px solid var(--brand-primary);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.site-footer a {
  color: #cccccc;
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--brand-primary);
}

.site-footer .footer-bottom {
  background-color: #111111;
  padding: 15px 0;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #999999;
}

.social-icons a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background-color: #2a2a2a;
  border-radius: 50%;
  margin-right: 8px;
  margin-bottom: 0;
}

.social-icons a:hover {
  background-color: var(--brand-primary);
}

.payment-icons img,
.app-badges img {
  height: 32px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* =========================================================
   MISC / SHARED
   ========================================================= */
.page-banner {
  background-color: var(--brand-light);
  padding: 30px 0;
  margin-bottom: 30px;
}

.breadcrumb-item a {
  color: var(--brand-primary);
}

.form-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 30px;
  background-color: #fff;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.step-indicator li {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-top: 35px;
}

.step-indicator li::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background-color: #eeeeee;
  color: var(--text-dark);
  font-weight: 600;
}

.step-indicator li.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.step-indicator li.active::before {
  background-color: var(--brand-primary);
  color: #fff;
}

.id-upload-box {
  border: 2px dashed #ddd;
  border-radius: 6px;
  padding: 25px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  background-color: #fafafa;
}

.id-upload-box:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.id-upload-box i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-brand:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-outline-brand {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline-brand:hover {
  background-color: var(--brand-primary);
  color: #fff;
}

.text-brand {
  color: var(--brand-primary);
}

.bg-brand-light {
  background-color: var(--brand-light);
}

/* Star ratings */
.rating i {
  color: #ffb300;
  font-size: 0.8rem;
}

.rating i.far {
  color: #ddd;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .hero-banner {
    margin-bottom: 15px;
  }
  .category-circle {
    width: 70px;
    height: 70px;
  }
}