:root {
  --story-size: 76px;
  --avatar-size: 38px;
  --rounded-xxl: 1.25rem;
}

body {
  overflow-y: scroll;
  font-family: "Rubik", sans-serif;
  background-color: white !important;
}

/* Brand */
.brand-wordmark {
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Top Navbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
}

.topbar .form-control {
  border-radius: 999px;
}

/* Left Sidebar (desktop) */
.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100dvh - 88px);
}

.sidebar .nav-link {
  border-radius: var(--rounded-xxl);
}

.sidebar .nav-link.active {
  background: whitesmoke !important;
}

/* Bottom bar (mobile) */
.bottombar {
  position: fixed !important;
  bottom: 0 !important;
  width: 100%;
  top: none !important;
  height: 40px;
  z-index: 1020;
  backdrop-filter: blur(8px);
  padding-top: 5px;
}
/* Stories */
.stories {
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.75rem;
}

.story {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: var(--story-size);
}

.ring {
  padding: 2px;
  background: conic-gradient(#0451c3, #0451c3, #0451c3);
  border-radius: 999px;
}

.ring-inner {
  border: 2px solid var(--bs-body-bg);
}

/* Post Card */
.post {
  border-radius: var(--rounded-xxl);
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
}

.post .post-header {
  padding: 0.75rem 1rem;
}

.post .post-media {
  background: var(--bs-tertiary-bg);
}

.post .post-actions button {
  border: none;
  background: transparent;
}

.like-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 6rem;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.2s ease, opacity 0.3s ease;
  pointer-events: none;
  color: #0451c3;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.like-heart.show {
  opacity: 0.9;
  transform: scale(1);
}

.nav-pills .nav-link.active {
  background-color: #000000 !important;
}

/* Chat */
.chat-sidebar {
  height: calc(100dvh - 72px);
  overflow-y: auto;
}

.chat-window {
  height: calc(100dvh - 72px);
  overflow-y: auto;
}

/* Explore grid */
.explore {
  column-count: 3;
  column-gap: 0.5rem;
}

.explore .item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

@media (max-width: 992px) {
  .explore {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .explore {
    column-count: 1;
  }
}

/* Profile */
.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-stats .stat {
  text-align: center;
}

/* Utilities */
.rounded-2xl {
  border-radius: var(--rounded-xxl) !important;
}

.pointer {
  cursor: pointer;
}

/* Reels */
.reel {
  position: relative;
  border-radius: 0rem;
  overflow: hidden;
}

.reel video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  color: #fff;
}

/* Login splash */
.auth-card {
  max-width: 420px;
}

/* Small tweaks */
.search-pop .list-group-item {
  border: 0;
}
#chatInput {
  background-color: white !important;
}
.story::-webkit-scrollbar {
  display: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

/*  */
.list-group-flush > .list-group-item {
  background: white !important;
}

.ring.rounded-circle img {
  width: 100%;
}

.nav-link {
  color: #000000;
  font-weight: 500;
}

.nav-link:hover {
  color: #0451c3;
}

.custome-text-color-droupdown {
  color: #000000;
}

/*  Homepage card Design */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns */
  column-gap: 12px;
  padding: 12px;
}

.custom-card {
  border: 1px solid #000000;
  background: whitesmoke;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}

.card-body {
  padding: 8px 12px;
}

.card-title {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #000000;
}

/*  */
.card-grid {
  column-count: 2;
  column-gap: 12px;
  padding: 12px;
}

.custom-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
}

.card-img img {
  width: 100%;
  display: block;
  border-radius: 12px;
  cursor: pointer;
}

/* Modal background */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Open modal on :target */
.modal:target {
  display: flex;
}

/* Modal content */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* Left: Post image */
.modal-media {
  flex: 2;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media img {
  max-width: 100%;
  max-height: 100%;
}

/* Right: Info panel */
.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.modal-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 8px;
}

.modal-comments {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  font-size: 14px;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding: 12px;
}

.modal-footer .actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 20px;
}

.modal-footer input {
  width: 100%;
  border: none;
  outline: none;
  padding: 8px;
  font-size: 14px;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  color: #fff;
  text-decoration: none;
}

/* Shop */
.topnav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: white;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav div {
  text-align: center;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
}

/* Product Grid */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
}

.product-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #eee;
}

.product-info {
  padding: 10px;
}

.product-title {
  font-size: 14px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 6px;
}

.price {
  color: #0451c3;
  font-weight: bold;
  margin-bottom: 6px;
}

.sold {
  font-size: 12px;
  color: #000000;
}

/* Create Post */
.post-box {
  background: white;
  width: 600px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* Header */
.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

.username {
  font-weight: bold;
  color: #000000;
}

/* Textarea */
textarea {
  width: 100%;
  border: none;
  resize: none;
  font-size: 15px;
  min-height: 80px;
  outline: none;
  padding: 8px 0;
}

/* Input Fields */
.input-box {
  margin-top: 10px;
}

.input-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 14px;
}

/* Image Upload */
.upload-box {
  border: 2px dashed #bbb;
  text-align: center;
  padding: 20px;
  margin-top: 15px;
  border-radius: 6px;
  cursor: pointer;
  color: #000000;
  font-size: 14px;
}

/* Publish Button */
.publish-btn {
  background: #000000;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  float: right;
  margin-top: 15px;
}

.publish-btn:hover {
  background: #000000;
}

/*  */
.drop-zone {
  max-width: 100%;
  height: 150px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  color: #000000;
  border: 2px dashed #dee2e6;
  border-radius: 10px;
}

.drop-zone--over {
  border-style: solid;
}

.drop-zone__input {
  display: none;
}

.drop-zone__thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #cccccc;
  background-size: cover;
  position: relative;
}

.drop-zone__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  text-align: center;
}

/* Droupdown Tag */
.hashtag-wrapper {
  width: 100%;
  position: relative;
}

.hashtag-input-box {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  cursor: text;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 40px;
  background: white;
}

.hashtag-chip {
  background: whitesmoke;
  color: #000000;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hashtag-chip span {
  cursor: pointer;
  font-weight: bold;
}

.hashtag-hidden-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 100px;
  font-size: 14px;
}

.hashtag-dropdown {
  position: absolute;
  top: 55%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  display: none;
  z-index: 100;
  max-height: 150px;
  overflow-y: auto;
}

.hashtag-option {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

.hashtag-option:hover {
  background: #f0f0f0;
}

/*  */
.reels-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

/* Custom scrollbar for desktop */
.reels-container::-webkit-scrollbar {
  width: 6px;
}

.reels-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.reels-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.reels-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

.scroll-indicator {
  position: fixed;
  right: 10px;
  display: none;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0.7;
}

.scroll-indicator i {
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.reel {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 34%;
  width: 38%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.reel-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.camera-button {
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.reel-sidebar {
  position: absolute;
  right: 15px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  gap: 20px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.action-button i {
  font-size: 1.8rem;
  margin-bottom: 5px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

.action-button span {
  font-size: 0.8rem;
  font-weight: 600;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  z-index: 10;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: white !important;
}

.user-info .avatar {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  margin-bottom: 0;
}

.user-info span {
  font-weight: 600;
  font-size: 0.9rem;
}

.follow-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  margin-left: 10px;
  cursor: pointer;
}

.video-description {
  color: white !important;
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.audio-info {
  color: white !important;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.audio-info i {
  margin-right: 5px;
}

.reel-controls {
  position: absolute;
  left: 15px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.control-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.progress {
  height: 100%;
  background-color: #fff;
  width: 0%;
  transition: width 0.1s linear;
}

.comment-section {
  position: absolute;
  bottom: 20px;
  left: 0;
  display: none;
  width: 100%;
  background-color: #000000;
  z-index: 20;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 15px;
  max-height: 70vh;
}

.comment-section.visible {
  transform: translateY(0);
  display: block !important;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000000;
}

.comment-header h2 {
  font-size: 1.2rem;
}

.close-comments {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.comments-list {
  overflow-y: auto;
  max-height: 50vh;
  margin-bottom: 15px;
}

.comment {
  display: flex;
  margin-bottom: 15px;
}

.comment .avatar {
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

.comment-content {
  flex: 1;
}

.comment-user {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.comment-actions {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #a8a8a8;
}

.comment-actions span {
  margin-right: 15px;
}

.comment-input {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #000000;
}

.comment-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
}

.comment-input input:focus {
  outline: none;
}

.emoji-btn,
.post-comment {
  background: transparent;
  border: none;
  color: #0095f6;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
}

.post-comment:disabled {
  color: #000000;
  cursor: default;
}

.liked {
  color: #0451c3 !important;
}

.saved {
  color: #0451c3 !important;
}

/* Desktop-specific styles */
@media (min-width: 768px) {
  .scroll-indicator {
    display: flex;
  }

  .reels-container {
    scroll-behavior: smooth;
  }
}

.ig-recent-search-username,
.ig-suggested-username {
  color: #000000 !important;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  .scroll-indicator {
    display: none;
  }

  .reels-container {
    -webkit-overflow-scrolling: touch;
  }
}

/*  */
.container1 {
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  padding: 30px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header1 {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dbdbdb;
}

.back-button {
  background: none;
  border: none;
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
  color: #000000;
}

.title {
  font-size: 20px;
  font-weight: 500;
}

.profile-pic-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.profile-img-container {
  position: relative;
  margin-bottom: 15px;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbdbdb;
}

.change-photo-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #3897f0;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 2px solid #fff;
}

.change-photo-text {
  color: #3897f0;
  font-weight: 600;
  cursor: pointer;
}

.username {
  font-size: 20px;
  font-weight: 500;
  margin-top: 10px;
  text-align: center;
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fafafa;
}

textarea.form-input {
  height: 100px;
  resize: vertical;
}

.gender-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.gender-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background-color: #fafafa;
  cursor: pointer;
}

.gender-option input {
  margin-right: 8px;
}

.gender-option.selected {
  border-color: #3897f0;
  background-color: #f0f8ff;
}

.submit-btn {
  background-color: #3897f0;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
}

.submit-btn:hover {
  background-color: #000000;
}

.privacy-note {
  font-size: 12px;
  color: #000000;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .container {
    border: none;
    box-shadow: none;
    padding: 20px;
  }

  .gender-options {
    grid-template-columns: 1fr;
  }
}

/* Explore Categories */
.explore-categories {
  display: flex;
  gap: 10px;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.explore-categories::-webkit-scrollbar {
  display: none;
}

.category {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  min-width: 80px;
  cursor: pointer;
}

.category.active {
  border-color: #0095f6;
  background-color: #f0f8ff;
}

.category i {
  font-size: 24px;
  margin-bottom: 5px;
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 576px) {
  .addr-form-row {
    grid-template-columns: 1fr 1fr;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px;
  }
  .video-container {
    position: absolute;
    top: 0;
    left: 0 !important;
    width: 100% !important;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.post-item {
  /* aspect-ratio: 1; */
  position: relative;
  cursor: pointer;
}

.post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.post-item:hover .post-overlay {
  opacity: 1;
}

.post-overlay span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* Post Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.modal-image {
  flex: 1.5;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid #dbdbdb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.modal-username {
  font-weight: 600;
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-comments {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.comment img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.comment-content {
  flex: 1;
}

.comment-username {
  font-weight: 600;
  margin-right: 5px;
}

.comment-text {
  margin-top: 4px;
}

.comment-time {
  font-size: 12px;
  color: #000000;
  margin-top: 4px;
}

.modal-actions {
  padding: 16px;
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
}

.action-icons {
  display: flex;
  gap: 16px;
  font-size: 24px;
  margin-bottom: 10px;
}

.action-icons i {
  cursor: pointer;
}

.likes-count {
  font-weight: 600;
  margin-bottom: 5px;
}

.post-time {
  font-size: 12px;
  color: #000000;
  text-transform: uppercase;
}

.modal-add-comment {
  padding: 16px;
  display: flex;
  gap: 10px;
}

.modal-add-comment input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 0;
}

.modal-add-comment button {
  color: #0095f6;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    width: 95%;
    max-height: 95vh;
    max-height: 70vh;
  }

  .modal-image {
    flex: 2;
  }

  .modal-details {
    flex: 1;
  }

  .search-container {
    display: none;
  }
}

/*  */
.instagram-container {
  width: 100%;
  max-width: 100%;
  background-color: #fff;
  padding: 16px 0;
}

.stories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid #efefef;
  margin-bottom: 16px;
}

.stories-title {
  font-weight: 600;
  font-size: 14px;
  color: #000000;
}

.watch-all {
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
}

.stories-container {
  display: flex;
  overflow-x: auto;
  padding: 0 10px;
  scrollbar-width: none;
}

.stories-container::-webkit-scrollbar {
  display: none;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
  cursor: pointer;
  position: relative;
}

.story-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 0px;
  background: linear-gradient(
    45deg,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #0451c3 60%,
    #285aeb 90%
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-avatar img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.story-avatar.new::after {
  content: "+";
  position: absolute;
  bottom: 15px;
  right: 0;
  background: #0095f6;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.story-username {
  font-size: 12px;
  color: #000000;
  margin-top: 8px;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-viewed {
  background: linear-gradient(45deg, #e0e0e0 0%, #c0c0c0 100%);
}

/* Story viewer */
.story-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.story-content {
  width: 100%;
  max-width: 350px;
  height: 92%;
  position: absolute;
  border-radius: 16px;
  bottom: 10px;
  overflow: hidden;
}

.story-progress {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
}

.progress-bar {
  height: 4px;
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: white;
  transition: width linear;
}

.story-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  cursor: pointer;
  z-index: 5;
}

.prev-story {
  left: 0;
}

.next-story {
  right: 0;
}

.story-header {
  position: absolute;
  top: 30px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  z-index: 10;
  color: white;
}

.viewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid #0451c3;
}

.viewer-username {
  font-weight: 600;
  font-size: 14px;
  flex-grow: 1;
}

.story-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.story-actions {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.action-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  color: white;
  font-size: 14px;
}

.action-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.action-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  margin-left: 12px;
  cursor: pointer;
}

.close-story {
  position: absolute;
  top: 16px;
  right: 16px;
  color: white;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
}

.pause-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: none;
  border: none;
  font-size: 48px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 15;
}

.story-content:hover .pause-play {
  opacity: 0.7;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seen-by {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 70px;
  left: 16px;
  color: white;
  font-size: 12px;
}

.seen-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 4px;
  border: 1px solid white;
}

/*  */
/* Header Styles */
.header-main {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-primary__list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.nav-primary__list::-webkit-scrollbar {
  display: none;
}

.nav-primary__item {
  margin-right: 20px;
}

.nav-primary__link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 5px;
  display: block;
}

.nav-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-secondary__list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 15px;
}

.nav-secondary__list::-webkit-scrollbar {
  display: none;
}

.nav-secondary__item {
  margin-right: 15px;
}

.nav-secondary__link {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  padding: 5px;
  display: block;
}

/* Filter Section */
.filter-section {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: none;
}

.filter-section--visible {
  display: block;
}

.filter-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #6c5ce7;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 15px auto;
  cursor: pointer;
  font-weight: 500;
}

.filter-toggle i {
  margin-right: 8px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  color: #000000 !important;
  background-color: #f1f2f6;
  border: none;
  padding: 8px 11px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.filter-option--active {
  background-color: #0451c3;
  color: white !important;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: fit-content;
}

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

.product-card__image {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.product-card__content {
  padding: 12px;
}

.product-card__title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limits to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__price {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.product-card__current-price {
  font-size: 16px;
  font-weight: 700;
  color: #0451c3;
}

.product-card__original-price {
  font-size: 13px;
  color: #000000;
  text-decoration: line-through;
  margin-left: 8px;
}

.product-card__discount {
  background-color: #0451c3;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.product-card__sales {
  font-size: 12px;
  color: #000000;
}

/* Footer */
.footer-main {
  background-color: #000000;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  text-align: center;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .filter-section {
    display: block;
    position: sticky;
    top: 120px;
  }

  .filter-toggle {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: max-content;
  }
}

/* Header Styles */
.header-main {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-primary__list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.nav-primary__list::-webkit-scrollbar {
  display: none;
}

.nav-primary__item {
  margin-right: 20px;
}

.nav-primary__link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 5px;
  display: block;
}

.nav-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-secondary__list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 15px;
}

.nav-secondary__list::-webkit-scrollbar {
  display: none;
}

.nav-secondary__item {
  margin-right: 15px;
}

.nav-secondary__link {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  padding: 5px;
  display: block;
}

/* Filter Section */
.filter-section {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: none;
}

.filter-section--visible {
  display: block;
}

.filter-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    171deg,
    #0451c3 0%,
    #90bcfe 80%
  ); /* semi-transparent for glass effect */
  backdrop-filter: blur(10px); /* blur behind the element */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid #0451c3; /* subtle border */
  color: white;
  padding: 10px 15px;
  border-radius: 12px;
  margin: 15px auto;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-toggle:hover {
  background: linear-gradient(171deg, #0a5edd 0%, #79adfa 80%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.filter-toggle i {
  margin-right: 8px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  background-color: #f1f2f6;
  border: none;
  padding: 8px 11px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.filter-option--active {
  background-color: #0451c3;
  color: white;
}

/* Footer */
.footer-main {
  background-color: #000000;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  text-align: center;
}

/*  */
.reels-main-container {
  /* background-color: #fafafa; */
  color: #000000;
  /* padding: 20px; */
  /* max-width: 600px; */
  /* margin: 0 auto; */
}

.reels-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #efefef;
}

.reels-header-title {
  font-weight: 600;
  font-size: 16px;
}

.reels-camera-icon {
  font-size: 20px;
  color: #000000;
}

.reels-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.reels-item {
  position: relative;
  /* aspect-ratio: 9/16; */
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  /* height: 75%; */
}

.reels-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  display: flex;
  justify-content: space-between;
}

.reels-views-count {
  font-size: 12px;
  font-weight: 600;
}

.reels-play-icon {
  font-size: 12px;
}

/* Reel Viewer */
.reels-viewer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
}

.reels-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reels-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reels-controls-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 10;
}

.reels-control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.reels-details-panel {
  position: absolute;
  bottom: 80px;
  left: 15px;
  color: white;
  max-width: 70%;
}

.reels-author-name {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 16px;
}

.reels-description-text {
  font-size: 14px;
  margin-bottom: 10px;
}

.reels-audio-info {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.comment-user,
.comment-text,
.comment-header h2 {
  color: white;
}

.reels-music-icon {
  margin-right: 5px;
}

.reels-close-btn {
  position: absolute;
  top: 20px;
  right: 15px;
  color: white;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
}

.reels-sidebar-panel {
  position: absolute;
  right: 15px;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.reels-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.reels-sidebar-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.reels-sidebar-text {
  font-size: 12px;
}

.reels-profile-image {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid white;
  padding: 2px;
}

.reels-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 10;
}

.reels-progress-bar {
  height: 100%;
  width: 0%;
  background-color: white;
  transition: width linear;
}

.reels-volume-btn {
  position: absolute;
  top: 20px;
  left: 15px;
  color: white;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
}

/* Header Styles */
.ig-search-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid #dbdbdb;
  z-index: 100;
}

.ig-search-container {
  display: flex;
  align-items: center;
  background-color: #efefef;
  border-radius: 8px;
  padding: 10px 16px;
  position: relative;
}

.ig-search-icon {
  color: #000000;
  margin-right: 12px;
  font-size: 14px;
}

.ig-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #000000;
}

.ig-search-input::placeholder {
  color: #000000;
}

.ig-search-cancel {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  margin-left: 12px;
  cursor: pointer;
  display: none;
}

/* Search Content Area */
.ig-search-content {
  display: none;
  padding: 16px;
}

.ig-search-section {
  margin-bottom: 24px;
}

.ig-search-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000000;
}

/* Recent Searches */
.ig-recent-search-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
}

.ig-recent-search-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 12px;
  background: linear-gradient(
    45deg,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #0451c3 60%,
    #285aeb 90%
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.ig-recent-search-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.ig-recent-search-info {
  flex: 1;
}

.ig-recent-search-username {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ig-recent-search-name {
  font-size: 14px;
  color: #000000;
}

.ig-recent-search-close {
  color: #c7c7c7;
  cursor: pointer;
}

/* Suggested Accounts */
.ig-suggested-account {
  display: flex;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
}

.ig-suggested-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 12px;
  overflow: hidden;
}

.ig-suggested-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-suggested-info {
  flex: 1;
}

.ig-suggested-username {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ig-suggested-details {
  font-size: 12px;
  color: #000000;
  margin-bottom: 4px;
}

.ig-suggested-follow {
  color: #0095f6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Search Results */
.ig-search-results {
  display: none;
  padding: 16px;
}

.ig-search-categories {
  display: flex;
  overflow-x: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbdbdb;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.ig-search-categories::-webkit-scrollbar {
  display: none;
}

.ig-search-category {
  white-space: nowrap;
  padding: 8px 16px;
  background: #efefef;
  border-radius: 8px;
  font-size: 14px;
  margin-right: 8px;
  cursor: pointer;
}

.ig-search-category.active {
  background: #0095f6;
  color: white;
}

.ig-search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
}

.ig-search-result-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 12px;
  overflow: hidden;
}

.ig-search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-search-result-info {
  flex: 1;
}

.ig-search-result-username {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ig-search-result-name {
  font-size: 14px;
  color: #000000;
  margin-bottom: 4px;
}

.ig-search-result-followers {
  font-size: 12px;
  color: #000000;
}

/* No recent searches */
.ig-no-recent {
  text-align: center;
  padding: 40px 0;
  color: #000000;
}

/* Clear recent button */
.ig-clear-recent {
  color: #0095f6;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  cursor: pointer;
}

/*  */
:root {
  --ig-primary: #405de6;
  --ig-secondary: #5851db;
  --ig-purple: #833ab4;
  --ig-pink: #0451c3;
  --ig-red: #0451c3;
  --ig-orange: #fd1d1d;
  --ig-yellow: #fcaf45;
}

.auth-container {
  max-width: 400px;
  width: 100%;
}

.auth-card {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 1px;
  padding: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.auth-form .form-control {
  background-color: #fafafa;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #000000;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.auth-form .form-control:focus {
  border-color: #a8a8a8;
  box-shadow: none;
}

.btn-auth {
  background-color: var(--ig-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  margin: 15px 0;
}

.btn-auth:hover {
  background-color: var(--ig-secondary);
}

.separator {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #000000;
  font-size: 13px;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dbdbdb;
}

.separator:not(:empty)::before {
  margin-right: 10px;
}

.separator:not(:empty)::after {
  margin-left: 10px;
}

.facebook-login {
  color: #000000;
  font-weight: 600;
  margin: 15px 0;
}

.facebook-login i {
  margin-right: 5px;
}

.forgot-password {
  color: #000000;
  font-size: 12px;
}

.signup-card {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 1px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.signup-card p {
  margin: 0;
  font-size: 14px;
}

.signup-card a {
  color: var(--ig-primary);
  font-weight: 600;
  text-decoration: none;
}

.app-download {
  text-align: center;
}

.app-download p {
  margin-bottom: 15px;
}

.app-buttons img {
  height: 40px;
  margin: 0 5px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #f0f0f0;
  cursor: pointer;
  border-bottom: 1px solid #dbdbdb;
}

.auth-tab.active {
  background: white;
  border-bottom: 1px solid white;
  font-weight: 600;
}

.auth-content {
  display: none;
}

.auth-content.active {
  display: block;
}

.password-toggle {
  position: relative;
}

.password-toggle .toggle-icon {
  position: absolute;
  right: 12px;
  top: 10px;
  cursor: pointer;
  color: #000000;
}

@media (max-width: 768px) {
  body {
    background: white;
    padding: 0;
  }

  .auth-card,
  .signup-card {
    border: none;
  }
}

.custome-class-homepage-header {
  width: 150px !important;
  background-color: white;
}

.addr-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.addr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
}

.addr-title {
  font-size: 28px;
  font-weight: 600;
  color: #000000;
}

.addr-add-btn {
  background: #0451c3;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.addr-add-btn:hover {
  background: #0451c3;
}

.addr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .addr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .addr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.addr-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.addr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.addr-card-default {
  border: 2px solid #0451c3;
}

.addr-default-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: #0451c3;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.addr-card-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000;
}

.addr-card-details {
  color: #000000;
  line-height: 1.5;
}

.addr-card-phone {
  margin: 10px 0;
  color: #000000;
}

.addr-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.addr-action-btn {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.addr-edit-btn {
  background: #e6f7ff;
  color: #0073bb;
  border: 1px solid #b3e0ff;
}

.addr-edit-btn:hover {
  background: #ccefff;
}

.addr-delete-btn {
  background: #fff0f0;
  color: #d33;
  border: 1px solid #ffb3b3;
}

.addr-delete-btn:hover {
  background: #ffe0e0;
}

.addr-set-default-btn {
  background: #f0f8f0;
  color: #2a8c2a;
  border: 1px solid #b3e0b3;
}

.addr-set-default-btn:hover {
  background: #e0f0e0;
}

.addr-add-new-card {
  background: white;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.addr-add-new-card:hover {
  border-color: #0451c3;
}

.addr-add-icon {
  font-size: 42px;
  color: #0451c3;
  margin-bottom: 15px;
}

.addr-add-text {
  font-size: 18px;
  color: #000000;
}

/* Modal Styles */
.addr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.addr-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.addr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
}

.addr-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
}

.addr-close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #000000;
  cursor: pointer;
}

.addr-close-modal:hover {
  color: #000000;
}

.addr-form-group {
  margin-bottom: 20px;
}

.addr-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #000000;
}

.addr-form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.addr-form-input:focus {
  border-color: #66aaff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 170, 255, 0.2);
}

.addr-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 576px) {
  .addr-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.addr-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.addr-checkbox {
  width: 18px;
  height: 18px;
}

.addr-checkbox-label {
  color: #000000;
}

.addr-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}

.addr-cancel-btn {
  background: #f0f0f0;
  color: #000000;
  border: 1px solid #d0d0d0;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.addr-cancel-btn:hover {
  background: #e5e5e5;
}

.addr-save-btn {
  background: #0451c3;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.addr-save-btn:hover {
  background: #0451c3;
}

/* Empty state */
.addr-empty-state {
  text-align: center;
  padding: 40px 20px;
  grid-column: 1 / -1;
}

.addr-empty-icon {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 15px;
}

.addr-empty-text {
  font-size: 18px;
  color: #888;
  margin-bottom: 20px;
}

/* Reset and base styles */
.tabset-container {
  color: #000000;
}

/* Tab navigation */
.tabset-nav {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.tabset-item {
  margin-bottom: -1px;
}

.tabset-link {
  display: block;
  padding: 6px 24px;
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}

.tabset-link:hover {
  color: #2196f3;
  background-color: #f8f8f8;
}

.tabset-link.active {
  color: #2196f3;
  border-color: #e0e0e0;
  border-bottom-color: #fff;
  background-color: #fff;
}

.tabset-nav {
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.tabset-nav::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Tab content */
.tabset-content {
  padding-top: 10px;

  border-radius: 0 0 4px 4px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabset-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tabset-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 600px) {
  .tabset-nav {
    flex-direction: column;
    border-bottom: none;
    gap: 10px;
    margin-top: 10px;
  }

  .tabset-item {
    margin-bottom: 5px;
  }

  .tabset-link {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
  }

  .tabset-link.active {
    border-bottom-color: #e0e0e0;
  }

  .tabset-content {
    border-top: 1px solid #e0e0e0;
    border-radius: 4px;
  }
}

@media (max-width: 700px) {
  .product-card__discount {
    font-size: 8px !important;
  }

  #postModal .modal-content {
    overflow-y: scroll !important;
  }
}

/*  */
@media (max-width: 600px) {
  .tabset-nav {
    flex-direction: row;
    border-bottom: none;
  }
}

.tabset-item,
.tabset-item a {
  width: auto;
  white-space: nowrap;
  text-transform: capitalize;
}

.tabset-link.active {
  color: rgb(33, 150, 243);
  background-color: whitesmoke;
  border-radius: 10px;
}

.cards-grid-7654 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.card-1432 {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-image-8765 {
  height: 100%;
  overflow: hidden;
}

.card-image-8765 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content-3098 {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-6543 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #000000;
  text-align: left;
}

.card-meta-8876 {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-user-4321 {
  display: flex;
  align-items: center;
}

.user-avatar-1123 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid #e8e8e8;
}

.user-avatar-1123 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name-3345 {
  font-weight: 500;
  color: #34495e;
}

.card-likes-5567 {
  display: flex;
  align-items: center;
  color: #0451c3;
  font-weight: 500;
}

.card-likes-5567 i {
  margin-right: 5px;
}

@media (max-width: 768px) {
  .cards-grid-7654 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px;
  }
}

/* Navbar styles */

.menu-btn-88 {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.menu-btn-88:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Offcanvas styles */
.offcanvas-17 {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
}

.offcanvas-17.active {
  right: 0 !important;
}

.offcanvas-header-29 {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-title-55 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
}

.close-btn-91 {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s;
}

.close-btn-91:hover {
  color: #2c3e50;
}

.offcanvas-body-64 {
  padding: 10px;
}

.nav-list-36 {
  list-style: none;
  padding: 0;
}

.nav-item-79 {
  margin-bottom: 0.5rem;
}

.nav-link-23 {
  display: block;
  padding: 0.8rem 1rem;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.nav-link-23:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

/* Overlay styles */
.overlay-47 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.overlay-47.active {
  opacity: 1;
  visibility: visible;
}

/* Content styles */
.content-123 {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-grid-456 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-789 {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-img-101 {
  height: 180px;
  overflow: hidden;
}

.card-img-101 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body-112 {
  padding: 1.5rem;
}

.card-title-131 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.card-text-415 {
  color: #6c757d;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .card-grid-456 {
    grid-template-columns: 1fr;
  }

  .offcanvas-17 {
    width: 250px;
  }
}

/* Step 2: center things inside the grid and clear some space around it by setting a device based max-width and margin*/

.grid {
  text-align: center;
  max-width: 95vw;
  margin: 2.5vw auto;
}

/* Step 3: how big should the gap be between grid items? remember that the total gap between two items would be double what you set here since both would have that amount set as their individual padding. Also add box-sizing:border-box to make sure the padding doesn't affect the total widh of the item */

.grid-item {
  padding: 5px;
  box-sizing: border-box;
  display: inline;
}

/* Step 4: Add media queries (subjective) to make the whole grid resposive. */
.grid-item {
  width: 50%;
}

@media (min-width: 991px) {
  #menuBtn {
    display: none;
  }
}





