/* ==========================================
   VIBECRAFTS – PALETTE & FONTS
   ========================================== */
:root {
  --primary: #921a40; /* darkest wine */
  --primary-dark: #7a152f; /* 10% darker   */
  --secondary: #c75b7a; /* mid pink     */
  --accent: #d9abab; /* soft pink    */
  --surface: #f4d9d0; /* light blush  */
  --text: #222222;
  --white: #ffffff;
  --black: #000000;

  --font-header: "Lato", sans-serif;
  --font-body: "Lato", sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-header);
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid rgb(154, 154, 154) !important;
}
.input-group .input-group-text {
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 14px;
}

.input-group .form-control {
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  font-size: 14px;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
  border: 1px solid gray;
}
a {
  text-decoration: none !important;
  color: inherit;
}
.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}
/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--primary);
}
.navbar-brand {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--white) !important;
}
.nav-link {
  font-weight: 500;
  color: var(--white) !important;
  transition: 0.2s;
}
.nav-link:hover {
  color: var(--white) !important;
}
.navbar-toggler {
  border: none;
  padding: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar .dropdown-item:hover {
  background-color: #921a40; /* theme color */
  color: #fff;
}
.dropdown-menu {
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  margin-top: 0;
  background-color: var(--accent);
}
.dropdown-toggle::after {
  display: none !important;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
}
/* Large screen hover effect */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* no gap */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
  }

  .navbar .dropdown-menu {
    display: block; /* prevent Bootstrap default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
  }

  .navbar .dropdown-item {
    transition: all 0.2s ease;
  }

  .navbar .dropdown-item:hover {
    background-color: #921a40; /* theme color */
    color: #fff;
  }
}

/* ---------- Cart Badge ---------- */
.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 0.6rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  background: url("../img/banner.webp") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

/* Mobile (portrait devices) */
@media (max-width: 767px) {
  .hero {
    background: url("../img/mobilebanner.webp") center/cover no-repeat;
  }
  .hero h1 {
    font-weight: 700;
    font-size: 2rem !important;
    color: var(--accent);
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.hero h1 {
  font-weight: 700;
  font-size: 3rem;
}
.btn-primary {
  background: var(--primary);
  border: none;
  padding: 0.65rem 2.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.25s;
}
.btn-light {
  border: none;
  padding: 0.65rem 2.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.25s;
}
.btn-primary:hover {
  background: var(--primary-dark);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 3; /* Responsive height */
  object-fit: cover;
}

.product-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price {
  font-weight: 700;
  color: var(--primary);
}
.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9rem;
}
.rating-wrap small {
  display: block;
}

@media (max-width: 767px) {
  .card-body p {
    font-size: 0.8rem;
  }
  .rating-wrap small {
    display: none;
  }
  .product-card .card-body {
    padding: 8px;
  }
}
/* feature */
.features {
  background: var(--accent); /* dark olive background */
}
.features-bar i {
  color: #fff;
  flex-shrink: 0;
}
.features-bar h6 {
  font-size: 1rem;
}
.features-bar small {
  font-size: 0.85rem;
  color: #e2e2e2;
}

/* ---------- Footer ---------- */
.footer {
  background-color: #8b1e3f;
}
.footer-links a {
  color: #ddd;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-links li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.footer-links li i {
  color: #ffc107;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.footer-links li:hover i {
  opacity: 1;
  transform: translateX(0);
}
.footer-links li:hover a {
  color: #fff;
  transform: translateX(3px);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b53232;
  background-color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  transition: transform 0.3s, background-color 0.3s;
}
.social-icons a:hover {
  transform: translateY(-4px);
  background-color: #d64545;
  color: #fff;
}

.support-box {
  background: #222;
  color: #fff;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.support-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  background-color: #b34a66;
}
.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
}

.payment-icons img {
  height: 28px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.payment-icons img:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.bg-surface {
  background: var(--surface);
}
.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}
.accordion-collapse {
  border: none !important;
  opacity: 0;
}
.accordion-collapse.show {
  opacity: 1;
}
.accordion-button {
  background: transparent !important;
  color: #333;
  font-weight: bold;
  border: none !important;
  padding: 15px;
}
.accordion-button:not(.collapsed) {
  color: #921a40;
  background: transparent !important;
}
.accordion-item {
  border: none !important;
  border-bottom: 1px solid #ddd !important;
}
.accordion-button::after {
  color: black;
}
.accordion-button:not(.collapsed)::after {
  color: black;
}
.accordion-collapse {
  border: none !important;
  transition: height 0.3s ease; /* ✅ smooth slide effect */
}

/* scrollbar css */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.modal-dialog-bottom {
  position: fixed;
  bottom: 0;
  margin: 0;
  width: 100%;
  max-height: 90vh;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog-bottom {
  transform: translateY(0);
}

.rounded-top-4 {
  border-radius: 20px 20px 0 0;
}

.payment-option {
  transition: all 0.3s ease; /* smoothness */
}
.payment-option:hover {
  background-color: #921a40;
  color: white;
  transform: scale(1.02);
  cursor: pointer;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
}
.payment-option:hover i,
.payment-option:hover span {
  color: #fff !important;
}
.address-option {
  transition: all 0.3s ease;
  cursor: pointer;
}
.address-option:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.address-option.selected {
  border: 2px solid #921a40;
  background: #fff0f5;
}
#addressModal .form-control,
#addressModal .form-select {
  border-radius: 8px;
  font-size: 14px;
}

#addressModal .btn-outline-secondary {
  border-radius: 20px;
  font-size: 13px;
}
.upi-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.upi-option:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upi-option input {
  pointer-events: none;
}

.upi-option:has(input:checked) {
  border: 2px solid #198754;
  background-color: #f8fff9;
}
.Qr-code {
  width: 160px;
  height: 160px;
}
.gender-inline {
  display: flex;
  gap: 20px;
}

.gender-inline label {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.gender-inline input {
  display: none; /* radio hidden */
}

.gender-inline span {
  padding-left: 25px;
  position: relative;
}

.gender-inline span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid #878787;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 2px;
  background: #fff;
}

.gender-inline input:checked + span::before {
  border-color: #2874f0;
}

.gender-inline input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #2874f0;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  top: 6px;
}
.form-control:disabled {
  background-color: var(--bs-secondary-bg);
  opacity: 1;
  color: gray;
}
.gender-inline span:disabled {
  color: gray;
}
.gender-inline label {
  font-size: 14px;
  margin-right: 20px;
  color: #212121;
  cursor: pointer;
}
.gender-inline input[disabled] + span {
  color: gray !important;
  cursor: not-allowed;
}
.address-card {
  position: relative;
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.address-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#addAddressBtn {
  border: 1px solid #ddd;
  font-weight: 500;
}
#addressForm {
  background: #f5faff;
  border: 1px solid #e0e0e0;
}
#addressForm {
  max-width: 900px;
  margin: 0 auto;
}
label {
  display: inline-block;
  margin-right: 15px;
}
.account-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
}

.sidebar .profile-box {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2874f0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

.profile-info h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #878787;
}

.profile-info strong {
  font-size: 14px;
  font-weight: 600;
  color: #212121;
}

.sidebar h6 {
  font-size: 12px;
  font-weight: 600;
  color: #878787;
  text-transform: uppercase;
  padding: 15px 20px 5px;
  margin: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #212121;
}

.sidebar ul li i {
  font-size: 15px;
  margin-right: 10px;
  color: #878787;
}

.sidebar ul li.active,
.sidebar ul li:hover {
  background: #f5faff;
  font-weight: 600;
  color: #2874f0;
}

.sidebar ul li.active i,
.sidebar ul li:hover i {
  color: #2874f0;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 20px;
}

.content-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  font-size: 14px;
}

.content-box h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.content-box .edit-link {
  color: #2874f0;
  font-size: 13px;
  cursor: pointer;
  margin-left: 10px;
}

.content-box label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.content-box input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
  border-radius: 2px;
  background: #f5f5f5;
  margin-bottom: 15px;
}

.faq-section {
  font-size: 13px;
  margin-top: 20px;
}

.faq-section h6 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
}

.faq-section p {
  color: #555;
  margin-bottom: 12px;
}

.footer-banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(to top right, #f7d100, #fff176);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 20px;
  margin-top: 20px;
}

/* Mobile: hide sidebar, show tab-bar */
/* Mobile view */
@media (max-width: 991px) {
  .sidebar {
    display: none !important;
  }

  .tab-bar {
    display: flex !important;
    position: sticky;
    top: 56px;
    /* navbar ke niche */
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    white-space: nowrap;
    height: 49px;
  }

  .tab-bar .tab-link {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 15px;
    cursor: pointer;
    color: #555;
  }

  .tab-bar .active {
    border-bottom: 2px solid #2874f0;
    color: #2874f0;
    font-weight: 600;
  }

  .main-content {
    margin: 0;
    padding: 15px;
    position: absolute;
    top: 23%;
  }

  .profileUser {
    display: none;
  }
}
/* Footer accordion white arrow only on mobile */
@media (max-width: 767px) {
  .cartBtn {
    width: 100%;
  }
  .modal-dialog {
    margin: 0px;
  }
}
