:root {
  --primary-color: #6a329f;
  --primary-hover: #582885;
  --secondary-color: #7436a2;
  --secondary-hover: #561786;
  --accent-color: #F4A261;
  --favorite-color: #ff4444;
  --basket-color: #28a745;
  --basket-hover: #218838;
  --text-color: #2D2D2D;
  --light-gray: #f5f5f5;
  --medium-gray: #757575;
  --background: #F8F9FA;
  --white: #FFFFFF;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: 0.2s ease;
  --font-family: 'Arial', sans-serif;
  --violet-transparent: rgba(106, 50, 159, 0.1);
  --warning-color: #f5c518;
  --background-gray: #f5f5f5;
}

/* Universal Selector */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none; /* for Internet Explorer and Edge */
}

/* Remove default scrollbars globally */
*::-webkit-scrollbar {
  display: none;
}

/* General Elements */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: #000000;
  line-height: 1.6;
  background: #ffffff;
  font-size: 16px;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #e6e8f1;
  margin-top: 0;
  width: 100%;
  z-index: 1200;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px 10px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active {
  border-color: rgba(31, 41, 55, 0.15);
  background: rgba(31, 41, 55, 0.05);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2B004A;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.primary-nav a {
  color: #1f2937;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.primary-nav a:hover {
  color: var(--primary-color);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.header-search {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.header-search .search-field {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f7f9fc;
  border: 1px solid #d0d7e5;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.header-search .search-field:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 50, 159, 0.12);
  background: #fff;
}

.header-search .search-bar {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 16px;
  padding-right: 70px;
  font-size: 14px;
  outline: none;
}

.header-search .search-bar::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.header-search .search-submit {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.header-search .search-submit:hover,
.header-search .search-submit:focus-visible {
  background: #542882;
  transform: translateY(-1px);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease;
}

.search-toggle {
  display: none;
  visibility: hidden;
}

header.search-visible .search-toggle svg {
  fill: var(--primary-color);
}

.icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), opacity var(--transition);
}

.icon-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.icon-btn svg {
  fill: var(--text-color);
  width: 24px;
  height: 24px;
  transition: fill 0.3s ease;
}

.icon-btn:hover svg {
  fill: var(--primary-hover);
}

.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .header-container {
    gap: 16px;
  }
  .primary-nav {
    gap: 18px;
  }
  .header-search {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 6px 16px 10px;
  }

  .menu-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 18px 24px 12px;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-bottom: 1px solid #e6e8f1;
  }
  .primary-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .primary-nav a {
    padding: 10px 0;
    border-bottom: 1px solid #eef0f6;
  }
  .primary-nav a:last-child {
    border-bottom: none;
  }
  .header-icons {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .search-toggle {
    display: none;
    visibility: hidden;
  }
  .header-search {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    display: none;
  }
  header.search-visible .header-search {
    display: flex;
    margin-top: 8px;
  }
  header.search-visible .search-toggle svg {
    fill: var(--primary-color);
  }
  .header-search .search-field {
    width: 100%;
    position: relative;
  }
  .header-search .search-bar {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    padding-right: 14px;
  }
  .header-search .search-submit {
    position: static;
    transform: none;
    width: auto;
    height: 100%;
    min-height: 40px;
    min-width: 44px;
    padding: 0 16px;
    border-radius: 999px;
  }
}

/* Main Content */
.products-main {
  display: flex;
  padding: 40px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: #000;
  gap: 20px;
}

/* Utility: apply to body or container to disable click-and-drag text selection. */
.disable-selection,
.disable-selection * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.mobile-filter-menu { 
   padding: 12px 20px;
}

.filter-sidebar.docked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 15px;
  border-radius: 0;
  z-index: 1099;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.filter-button,
.relevance-button {
  padding: 8px 16px;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s ease, color 0.3s ease;
  flex: 1;
}

.filter-button:hover,
.relevance-button:hover {
  background: var(--primary-color);
  color: #fff;
}

.filter-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.relevance-button select {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  text-align: center;
}

.filter-options-container {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.product-list-wrapper {
  flex: 1;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.product-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #000;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 180px;
  max-width: 180px;
  height: fit-content;
  position: relative;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.most-sold-item:hover { 
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

.product-item .product-title {
  font-size: 0.85em;
  color: #777;
  text-align: center;
  font-style: italic;
  line-height: 1.2;
  margin: 6px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-width: 100%;
  word-break: break-word;
}

.product-item .product-price {
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  border-top: 1px solid #e1e1e1;
  padding-top: 5px;
  margin: 0;
}

.add-to-cart {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: auto;
  transition: background 0.3s ease;
  margin: 7px;
}

.add-to-cart:hover {
  background: var(--primary-color);
  color: #fff;
}

.add-to-cart.added {
  background: #577a35;
  border: 1px solid #27973f;
  font-weight: 600;
}

.add-to-cart.added:hover {
  background: var(--basket-hover);
}

.favorite-btn {
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  fill: #cbd5f5;
  transition: fill 0.25s ease;
}

.favorite-btn:hover svg {
  fill: var(--primary-color);
}

.favorite-btn.favorited svg,
.favorite-btn.is-active svg {
  fill: var(--favorite-color);
}

.product-item > .favorite-btn,
.wishlist-item > .favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 15px 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
}

.popup svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.skeleton {
  background: #e0e0e0;
  animation: pulse 1.5s infinite;
}

.skeleton-img {
  width: 100%;
  height: 200px;
  border-radius: 4px;
}

.skeleton-text {
  width: 70%;
  height: 20px;
  margin: 10px auto;
  border-radius: 3px;
}

.pagination-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
}

.page-btn {
  padding: 10px 15px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-btn:hover {
  background: var(--primary-hover);
}

.page-btn.active {
  background: var(--primary-hover);
  font-weight: bold;
}

.filter-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  font-family: 'Arial', sans-serif;
  color: #000;
}

.filter-menu.active {
  display: block;
}

.filter-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.filter-menu-header h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0;
}

.close-menu {
  font-size: 2em;
  cursor: pointer;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.close-menu:hover {
  color: var(--primary-hover);
}

.filter-menu-section {
  margin-bottom: 20px;
}

.filter-menu-section h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-menu-section h3 .toggle-arrow {
  transition: transform 0.3s ease;
}

.filter-menu-section.collapsed .toggle-arrow {
  transform: rotate(-90deg);
}

.filter-menu-section.collapsed .filter-options {
  display: none;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-options label {
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
  accent-color: var(--primary-color);
}

.filter-options .show-more {
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 10px;
  transition: text-decoration 0.3s ease;
}

.filter-options .show-more:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 14px 17px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition);
  text-decoration: none;

  width: fit-content;
  margin-bottom: 15px;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

.btn:active {
  transform: scale(0.98);
}

.no-animate-btn {
  transition: background 0.3s ease;
  transform: none !important;
}

.no-animate-btn:hover {
  transform: none !important;
  background: #421762;
}

.grocery-card .btn {
  background: #2a9d8f;
  padding: 10px 20px;
  font-size: 13px;
  display: block;
  margin: 0 auto;
  margin-top: auto;
}

.grocery-card .no-animate-btn:hover {
  background: #264653;
}

/* Oliey Sections */
.oliey-shorter-bar {
  padding: 15px 30px;
  background-color: #e8d8ff;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  min-height: 60px;
  border-top: 1px solid #d1c4e9;
  border-bottom: 1px solid #d1c4e9;
}

.shorter-bar-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Helvetica', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #2c1a4d;
  transition: color 0.3s ease, transform 0.3s ease;
}

.shorter-bar-item:hover {
  color: #9A3AE1;
  transform: translateY(-2px);
}

.shorter-bar-item img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.shorter-bar-item:hover img {
  transform: scale(1.1);
}

.oliey-display {
  height: 400px;
  background: linear-gradient(135deg, #1a0d2e 0%, #5A2184 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.oliey-text {
  font-size: 120px;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(90deg, #fff, #e0d8f0, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 10px;
  position: relative;
  z-index: 1;
  animation: glow 4s ease-in-out infinite alternate;
}

.oliey-text::before {
  content: 'Oliey';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  filter: blur(5px);
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}

.oliey-text::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(90, 33, 132, 0.3), transparent);
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: flash 2s infinite;
}

.oliey-ornament {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #8f00ff, #421762);
  border-radius: 50%;
  opacity: 0.5;
  animation: orbit 8s ease-in-out infinite;
}

.oliey-ornament:nth-child(2) {
  animation-delay: -2s;
  transform-origin: center;
}

.oliey-ornament:nth-child(3) {
  animation-delay: -4s;
  transform-origin: center;
  width: 70px;
  height: 70px;
}

.oliey-services {
  padding: 20px 20px;
  background-color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.oliey-services h2 {
  font-size: 48px;
  font-weight: 700;
  color: #5A2184;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.video-container-outer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.video-container {
  display: flex;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  position: relative;
  max-width: 100%;
}

.video-container::-webkit-scrollbar {
  display: none;
}

.video-container:active {
  cursor: grabbing;
}

.video-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 410px;
  height: 428px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  pointer-events: none;
  user-select: none;
}

.play-pause-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.play-pause-btn svg {
  width: 18px;
  height: 18px;
  fill: #000000;
}

/* Hero Section */
.hero {
  height: 600px;
  display: flex;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.hero-image {
  flex: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('img/image-asset.jpeg') no-repeat center center/cover;
  min-height: 100%;
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  background-color: #f2f2f2;

}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
}

/* Most Sold Products */
.most-sold-products {  
  padding: 20px 0px;
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.most-sold-products h2 {
  font-size: 48px;
  font-weight: 700;
  color: #5A2184;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.most-sold-container-outer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.most-sold-container {
  display: flex;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  position: relative;
  max-width: 100%;
}

.most-sold-container::-webkit-scrollbar {
  display: none;
}

.most-sold-container:active {
  cursor: grabbing;
}

.most-sold-item {
  flex-shrink: 0;
  width: 210px;
  height: 230px;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid var(--light-gray);
}

.most-sold-item .image-container {
  width: 100%;
  height: 251px;
  position: relative;
  /*! padding-top: 75%; */
}

.most-sold-item .image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.most-sold-item h4.product-title {
  /*! font-family: 'Georgia', serif; */
  /*! font-size: 24px; */
  /*! font-weight: 600; */
  /*! color: #5A2184; */
  /*! margin: 10px 0; */
  /*! height: 60px; */
  /*! line-height: 1.2; */
  /*! overflow: hidden; */
  /*! text-overflow: ellipsis; */
  /*! display: -webkit-box; */
  /*! -webkit-line-clamp: 2; */
  /*! -webkit-box-orient: vertical; */
}

.most-sold-item p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

@media (min-width: 1024px) {
  .most-sold-item {
    /* Increased padding for large screens */
    padding: 20px;  /* adjust as needed */
  }
}

/* Styling for the new grey divider below the title */
.most-sold-item .item-divider {
  height: 4px;
  background-color: #ccc;  /* grey color */
  margin: 5px 0;
}

/* Art Showcase */
.art-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4b0082 0%, #000 100%);
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.art-showcase h2 {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: 700;
}

.art-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Delivery Section */
.delivery-section {
  position: relative;
  background: #000000;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}

.delivery-window {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: linear-gradient(145deg, #000, #180028);
  padding: 40px;
  border-radius: 12px;
}

.delivery-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.delivery-image img:hover {
  transform: scale(1.05);
}

.delivery-content {
  flex: 1;
  color: #fff;
  text-align: left;
}

.delivery-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #9263B5, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.delivery-content p {
  font-size: 18px;
  color: #e1e1e1;
  margin-bottom: 25px;
  line-height: 1.6;
}

.decorative-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(90, 33, 132, 0.3), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.decorative-element.top-left {
  top: -50px;
  left: -50px;
}

.decorative-element.bottom-right {
  bottom: -50px;
  right: -50px;
}

/* Clothing Section */
.clothing-section {
  background: linear-gradient(135deg, #1a0d2e 0%, #421762 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clothing-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.clothing-container h2 {
  font-size: 34px;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.clothing-container p {
  font-size: 18px;
  color: #e0d8f0;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.clothing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.clothing-item {
  display: block;
  border: none;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.clothing-item:hover {
  transform: translateY(-10px) rotate(2deg);
}

.clothing-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  border-radius: 3px;
}

.clothing-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.clothing-item:hover .clothing-image-container img {
  transform: scale(1.1);
}

.clothing-item h4.product-title {
  font-size: 20px;
  color: #fff;
  margin-top: 15px;
  text-transform: capitalize;
}

/* Simple Sections */
.simple-delivery-section {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.simple-delivery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.side-image {
  width: 300px;
  max-width: 100%;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.side-image:hover {
  transform: scale(1.05);
}

.center-delivery-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.center-delivery-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.center-delivery-text p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.simple-delivery-section-alt {
  background-color: #fafafa;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Grocery Section */
.grocery-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.grocery-section h2 {
  font-size: 38px;
  color: #fff;
  margin-bottom: 50px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 1px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.grocery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grocery-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  text-align: center;
}

.grocery-card:hover {
  transform: scale(1.05) rotate(1deg);
}

.grocery-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 10px;
  /* Removed animation transition */
  /* transition: transform 0.3s ease; */
}

/* Removed hover animation on grocery-card images */
.grocery-card:hover img {
  /* transform: scale(1.1); */
  transform: none;
}

.grocery-card h3 {
  font-size: 20px;
  color: #5A2184;
  margin-bottom: 10px;
  font-weight: 600;
}

.grocery-card p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

.grocery-card:has(.no-animate-btn) {
  transition: none !important;
}

.grocery-card:has(.no-animate-btn):hover {
  transform: none !important;
}

.grocery-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #f4f0ff, #a1f);
  border-radius: 10px 10px 0 0;
}

/* Product View */
.product-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 3px;
  max-width: 1000px; /* updated to match similar products window */
  margin: 0px auto;  /* updated margin to center the product-view */
}
/* Product View */
.product-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 3px;
  max-width: 1000px; /* updated to match similar products window */
  margin: 0px auto;  /* updated margin to center the product-view */
}
.product-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;      /* new sticky behavior */
  top: 0;                /* stick to the top of the viewport */
  height: 600px;         /* fixed height for the scrollable area */
}
.browse-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;      /* new sticky behavior */
  top: 20px;                /* stick to the top of the viewport */
  width: 250px;
  background: #f9f9f9;
  padding: 15px;
  max-height: min(650px, calc(100vh - 40px));
  overflow-y: auto;
  color: #000;
  font-family: 'Arial', sans-serif;
  z-index: 1000;
  transition: all 0.3s ease-out;
  border: 1px solid #d4d4d4;
}
.product-browse {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  background: #fff;
  padding: 30px;
  border-radius: 3px;
  margin: 0px auto; 
  max-width: 1110px;
}
/* Prevent sticky behavior on mobile */
@media (max-width: 768px) {
    .product-images {
        position: static;
        height: auto;
    }
    /* Hide the filter sidebar on small screens */
    aside.browse-images {
      display: none !important;
    }
}

.main-image {
  width: 100%;
  height: 450px;
  object-fit: contain;
  border-radius: 3px;
  background: #ffffff;
  position: relative;
}
.main-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}
.main-image.visible::before {
    opacity: 0;
}

.thumbnail-gallery {
    display: none;
}

@media (min-width: 1024px) {
    .thumbnail-gallery {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    .thumbnail {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 2px solid var(--light-gray);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .thumbnail.active,
    .thumbnail:hover {
      border-color: var(--primary-color);
      transform: scale(1.1);
      
    }
    /* Add this to hide scrollbar track on large screens */
    .scrollbar-track {
        display: none;
    }
}

/* Force-hide scrollbar on large screens */
@media (min-width: 1024px) {
  .scrollbar-track,
  .scrollbar-indicator {
    display: none !important;
  }
}

/* Ensure thumbnail gallery displays properly alongside product images */
@media (min-width: 1024px) {
  .thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
}

.thumbnail-gallery {
    display: flex;
    gap: 10px; /* tighter spacing */
    flex-wrap: wrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.thumbnail-gallery::-webkit-scrollbar { 
    display: none;
}

.thumbnail {
    width: 60px; /* fixed width */
    height: 60px; /* fixed height */
    object-fit: cover;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease; /* smooth hover transitions */
    opacity: 0.4; /* reduced transparency for non-active thumbnails */
}

.thumbnail.active,
.thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
  opacity: 1; /* fully opaque for active or hovered thumbnails */
}

/* Add new rule to hide thumbnail-gallery on mobile */
@media (max-width: 1023px) {
    .thumbnail-gallery {
        display: none;
    }
}

/* Override custom scrollbar track styles */
.scrollbar-track {
    width: 100px;
    height: 5px !important;
    background-color: rgba(0,0,0,0.5);
    border: none;
    margin: 20px auto; /* center it horizontally */
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  color: var(--text-color);
  margin-bottom: 10px;  /* adjust as needed */
  font-size: clamp(16px, 2vw, 6px); /* Responsive font size */
  white-space: normal;             /* Allow wrapping */
  word-break: break-word;          /* Break long words */
  overflow-wrap: break-word;       /* Ensure wrapping if needed */
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: var(--warning-color);
}

.product-price {
  font-size: 1.8rem;
  font-weight: 500;
  color: #515151;
}
.product-description {
  color: #666;
  font-size: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  overflow: hidden;
}
.quantity-selector .quantity-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
  color: var(--white);
  font-size: 1.2rem;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.quantity-selector .quantity-btn:hover {
  background: var(--primary-hover);
}
.quantity-selector .quantity-input {
  width: 20px; /* smaller width */
  height: 30px;
  font-size: 14px;
  -moz-appearance: textfield; /* Firefox */
  text-align: center;
  border: none;
  outline: none;
  background: none;
}
.quantity-selector .quantity-input::-webkit-inner-spin-button,
.quantity-selector .quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

.tabs {
  margin-top: 20px;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: color 0.2s, border-bottom 0.2s;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  padding: 20px;
  display: none;
}

.tab-content.active {
  display: block;
}

.product-meta {
  margin-bottom: 15px;
}

.meta-item {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.meta-item strong {
  display: inline-block;
  width: 120px;
  font-weight: 600;
}

.payment-methods {
  margin-top: 20px;
}

.payment-methods h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.payment-icons {
  display: flex;
  gap: 12px;
  align-items: center; /* added to align images perfectly */
  flex-wrap: wrap;  /* allow wrapping on small screens */
}

.payment-icon {
  width: 50px;
  height: 30px;
  object-fit: contain;
}

.payment-icons img {
  max-width: 50px;  /* ensure icons scale on smaller screens */
  width: 100%;
  height: auto;
  object-fit: contain;
}

.reviews-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.review {
  border-bottom: 1px solid var(--light-gray);
  padding: 15px 0;
}

.review:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--warning-color);
}

.review-body {
  color: #666;
}

.more-products {
  padding: 20px;
  background: #fff;
  border-radius: 3px;
  min-width: 320px;
}

.more-products h2 {
  font-size: 1.5rem;
  margin-bottom: 0px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 185px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.product-card h4.product-title {
  font-size: 1rem;
  margin: 10px 0 5px;
  color: var(--text-color);
}

.product-card p {
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
}

.more-products.fade-in.visible {
  background: #fff;
  padding: 30px;
  border-radius: 3px;
  margin: 17px 20px;
  max-width: 1100px;  /* max-width updated to 1100px */
  margin: 17px auto;
}


/* Cart Section */
.cartbody {
  padding: 20px;
}

.content-wrapper {
  max-width: 1100px;
  margin: 30px auto 60px;
  display: flex;
  overflow: hidden;
}

.cart-section {
  flex: 2;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--light-gray);
  /*! margin: 6px; */
  padding: 20px;
  border-radius: 3px;
}

.cart-header {
  padding: 15px 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--light-gray);
}

.remove-all-btn {
  padding: 8px 16px;
  background: var(--white);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all var(--transition);
}

.remove-all-btn:hover {
  background: var(--violet-transparent);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.cart-items {
  padding: 15px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--white);
  transition: background-color var(--transition), box-shadow var(--transition);
  margin: 15px 0;
  position: relative;
}

.cart-item:hover {
  background: var(--violet-transparent);
}

.cart-item:first-child {
  margin-top: 0;
}

.cart-item:last-child {
  margin-bottom: 0;
}

.item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-info {
  position: relative;
  padding-right: 40px;
}

.item-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-info p {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.item-divider {
  border-top: 1px solid var(--light-gray);
  margin: 8px 0;
}

.item-controls {
  display: flex;          /* lay the children out in one row           */
  align-items: center;    /* vertical centring keeps them â€œsame levelâ€ */
  gap: 12px;              /* tidy breathingâ€‘room between the elements  */
}

/* prevent either control from squishing at narrow widths */
.item-controls .wishlist-btn,
.item-controls .quantity-select {
  flex-shrink: 0;
}
.quantity-select {
  padding: 8px 24px 8px 12px;
  font-size: 0.9rem;
  border: none;
  background: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition);
 
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  width: 50px;
  height: 36px;
}

.quantity-select:hover {
  background: var(--primary-hover);
}

.quantity-select:focus {
  outline: none;
}

.quantity-select option {
  background: var(--white);
  color: var(--text-color);
}

.wishlist-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

.favorite-btn.wishlist-btn {
  position: static;
  top: auto;
  right: auto;
}

.wishlist-btn:hover {
  background: none;
}

.wishlist-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill var(--transition);
}

.wishlist-btn:hover svg {
  fill: var(--primary-color);
}

.remove-item-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--white);
  color: var(--medium-gray);
  border: 2px solid var(--light-gray);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  text-align: right;
}

.price-bar {
  display: none;
}

.checkout-summary {
  flex: 1;
  min-width: 320px;
  padding: 25px;
  background: #ffffff;
  max-height: 450px;
  border-radius: 3px;
  border: 1px solid var(--light-gray);
}

.checkout-summary h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1rem;
}

.summary-item span:first-child {
  color: var(--medium-gray);
}

.summary-item.total {
  border-top: 2px solid var(--light-gray);
  margin-top: 15px;
  padding-top: 15px;
  font-weight: 700;
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
  transition: background var(--transition);

}

.checkout-btn:hover {
  background: var(--primary-hover);
}

.payment-methods {
  margin-top: 25px;
}

.payment-methods h3 {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-bottom: 10px;
}

.payment-icons {
  display: flex;
  gap: 12px;
  align-items: center; /* added to align images perfectly */
  flex-wrap: wrap;  /* allow wrapping on small screens */
}

.payment-icon {
  width: 44px;
  height: auto;
  opacity: 0.9;
}

.payment-icons img {
  max-width: 50px;  /* ensure icons scale on smaller screens */
  width: 100%;
  height: auto;
  object-fit: contain;
}

.empty-cart {
  text-align: center;
  padding: 30px;
  background: var(--white);
}

.empty-cart p {
  color: var(--medium-gray);
  margin-bottom: 20px;
  font-size: 1rem;
}

.continue-shopping {
  background: var(--white);
  color: var(--primary-color);
  padding: 10px 25px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all var(--transition);
}

.continue-shopping:hover {
  background: var(--violet-transparent);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Login Container */
.login-container {
  max-width: 400px;
  margin: 56px 0 60px 50px;
  padding: 30px;
  background: var(--white);
  z-index: 1;
  position: relative;
  border-radius: 3px;
  border: 1px solid var(--light-gray);
}

.login-container h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #5b5b5b;
  margin-bottom: 20px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 600;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  background: var(--white);
  padding: 0 5px;
  transition: all var(--transition);
  pointer-events: none;
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid var(--primary-color);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: transparent;
}

.form-group input:focus,
.form-group input:not(:placeholder-shown),
.form-group select:focus {
  border-color: var(--primary-color);
  
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  left: 10px;
  font-size: 0.8rem;
  transform: translateY(-50%);
  color: var(--primary-color);
}

.login-btn{
  padding: 14px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition);

}

.register-btn {
  padding: 14px;
  background: #ffffff;
  color: #3d3d3d; /* Changed from var(--white) to black */
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition);
  border: 2px solid #68329f;
}
.login-btn:hover{
  background: var(--primary-hover);
}
.register-btn:hover {
  background: var(--violet-transparent);
}

.divider {
  position: relative;
  text-align: center;
}

.divider-line {
  border-top: 1px solid var(--light-gray);
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 1;
}

.divider-text {
  background: var(--white);
  padding: 0 10px;
  position: relative;
  z-index: 2;
  color: var(--medium-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  font-size: 0.9rem;
}

.form-options a {
  color: var(--primary-color);
  transition: color var(--transition);
}

.form-options a:hover {
  color: var(--primary-hover);
}

.forgot-password {
  font-size: 0.85rem;
}

/* Profile Section */
.container {
  display: flex;
  max-width: 1320px;
  margin: 20px;
  padding: 10px;
  gap: 30px;
  margin-bottom: 20px;
}

.sidebar {
  width: 250px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 20px;
  border-radius: 3px;
  height: fit-content;
}

.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav ul li {
  margin-bottom: 15px;
}

.sidebar-nav ul li a {
  color: var(--text-color);
  font-size: 1rem;
  padding: 10px;
  display: block;
  transition: background var(--transition), color var(--transition);
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  background: var(--violet-transparent);
  color: var(--primary-color);
}

.main-content {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 30px;
  position: relative;
  min-height: 600px;
  border-radius: 3px;
}

.section {
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 20px;
  margin-bottom: 30px;
  display: none;
}

.section.active {
  display: block;
}

.section p {
  margin-bottom: 20px;
  color: var(--medium-gray);
}

.section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.profile-pic {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-pic img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
}

.profile-pic .upload-wrapper {
  position: relative;
}

.profile-pic .upload-btn {
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background var(--transition);

}

.profile-pic .upload-btn:hover {
  background: var(--primary-hover);
}

.profile-pic input[type="file"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.payment-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--light-gray);
  background: var(--background);
}

.payment-card span {
  font-size: 0.95rem;
}

.payment-card .remove-btn {
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.payment-card .remove-btn:hover {
  color: var(--primary-hover);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  padding: 20px 30px;
  border-radius: 6px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.steps-indicator {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  justify-content: center;
}

.steps-indicator div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
}

.steps-indicator .active-step {
  background: var(--primary-color);
}

.loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active {
  display: flex;
}

.dots-loader {
  display: flex;
  gap: 10px;
}

.dots-loader span {
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.dots-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

.mobile-nav {
  display: none;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 15px 20px;
  margin-top: 10px;
  overflow-x: auto;
  z-index: 999;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding-bottom: 5px;
  margin: 0;
  margin-right: -20px;
}

.mobile-nav ul li a {
  color: var(--text-color);
  font-size: 0.95rem;
  padding: 8px 12px;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: var(--violet-transparent);
  color: var(--primary-color);
}

.mobile-scroll-line {
  display: none;
  height: 2px;
  background-color: var(--light-gray);
}

.mobile-scroll-line .scroll-thumb {
  height: 2px;
  background-color: var(--primary-color);
  width: 0;
  transform: translateX(0);
  transition: width 0.1s linear, transform 0.1s linear;
}

/* Animation Effects */
.fade-in {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  animation-fill-mode: forwards;
}
.fade-in.initial {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: none;
}
.fade-in.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.fade-in2 {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  animation: fadeInOnLoad 0.6s ease-in-out forwards;
}
@keyframes fadeInOnLoad {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.floating-shape {
  position: absolute;
  opacity: 0.4;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.floating-shape.square {
  border-radius: 0;
}

/* Scroll to Top */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  background-color: #5A2184;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  padding: 0;
}

#scrollToTopBtn:hover {
  background-color: #421762;
}

#scrollToTopBtn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}


/* Footer */
.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 50px 30px;
  margin-top: 60px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  align-items: start;
}

.footer-logo img {
  width: 130px;
  height: auto;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 14px;
  color: #aaa;
  margin: 0;
}

.footer-nav h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #e1e1e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer-social a {
  display: inline-block;
}

.footer-social svg {
  fill: #fff;
  width: 24px;
  height: 24px;
  transition: fill 0.3s;
}

.footer-social a:hover svg {
  fill: #bbb;
}

.footer-subscribe form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-subscribe h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-subscribe input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  background-color: #333;
  color: #fff;
  outline: none;
}

.footer-subscribe input[type="email"]::placeholder {
  color: #aaa;
}


.footer-subscribe button {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #7436a2;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer-subscribe button:hover {
  background-color: #561786;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
  color: #aaa;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* Animations */
@keyframes glow {
  0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(90, 33, 132, 0.5); }
  100% { text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(90, 33, 132, 0.8); }
}

@keyframes orbit {
  0% { transform: translate(150px, 0) rotate(0deg); }
  100% { transform: translate(150px, 0) rotate(360deg); }
}

@keyframes flash {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  62.5% { opacity: 0.3; }
  100% { opacity: 0.3; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Media Queries */
@media (min-width: 769px) {
  .filter-sidebar {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .filter-button {
    display: none;
  }
  .filter-options-container {
    display: flex;
  }

  .content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 16px 15px;
  }

  .products-main {
    padding: 0;
    flex: 1;
  }
  #scrollToTopBtn {
    width: 60px;
    height: 60px;
  }
  #scrollToTopBtn svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .filter-sidebar {
    width: 100%;
    padding: 10px;
  }
  .filter-header {
    flex-wrap: nowrap;
  }
  .filter-button,
  .relevance-button {
    width: 48%;
    margin: 0;
  }
  .products-main {
    flex-direction: column;
    padding: 10px;
  }
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-item img {
    height: auto;
    max-height: 150px;
    object-fit: contain;
  }
  .product-item {
    height: auto;
  }
  .header-container {
    justify-content: space-between;
  }
  .search-bar {
    width: 120px;
  }
  .search-bar:focus {
    width: 170px;
  }
  .oliey-display {
    height: 300px;
  }
  .oliey-text {
    font-size: 80px;
    letter-spacing: 5px;
  }
  .hero {
    flex-direction: column;
  }
  .hero-image {
    min-height: 200px;
  }
  .hero-content {
    padding: 30px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  .oliey-shorter-bar {
    padding: 10px 20px;
    gap: 15px;
    flex-direction: column;
    min-height: 50px;
  }
  .shorter-bar-item {
    font-size: 12px;
  }
  .shorter-bar-item img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }
  .video-wrapper {
    width: 80vw;
    height: auto;
    max-height: 60vh;
  }
  .play-pause-btn {
    width: 32px;
    height: 32px;
  }
  .play-pause-btn svg {
    width: 16px;
    height: 16px;
  }
  .most-sold-item {
  /*! width: 212px; */
  /*! height: 259px; */
    /*! padding: 32px; */
  }
  .most-sold-item .image-container {
    /*! height: 110px; */
  }
  .most-sold-item h4.product-title {
    /*! font-size: 20px; */
    /*! height: 50px; */
  }
  .most-sold-item p {
    /*! font-size: 16px; */
  }
  .grocery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .grocery-card {
    padding: 15px;
    min-height: 250px;
  }
  .grocery-card img {
    height: auto;
    max-height: 150px;
  }
  .grocery-card h3 {
    font-size: 18px;
  }
  .grocery-card p {
    display: none;
  }
  .grocery-card .btn {
    padding: 8px 15px;
    font-size: 12px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-subscribe form {
    align-items: center;
  }
  .login-container {
    margin: 40px 20px 40px;
    padding: 20px;
  }
  .product-view {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .main-image {
    height: 300px;
  }
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  .action-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .product-title {

  }
  .product-price {

  }
  .tab-buttons {
    flex-wrap: wrap;
  }
  .tab-btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .content-wrapper {
    flex-direction: column;
    /*! padding: 20px; */
  }
  .cart-section {
    flex: 2;
    min-width: 0;
    padding: 20px;
  }
  body {
    font-size: 18px;
  }
  .more-products {
    min-width: 0px;
  
    }
  .cart-item {
    display: grid;
    grid-template-areas:
      "title title"
      "image controls"
      "image price";
    grid-template-columns: 119px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-gap: 10px;
    padding: 15px;
    min-height: 180px;
  }
  .item-details {
    display: contents;
  }
  .item-info {
    grid-area: title;
    padding-right: 40px;
  }
  .item-info h3 {
    font-size: 1rem;
    margin-bottom: 0;
  }
  .item-image {
    grid-area: image;
    width: 119px;
    height: 119px;
  }
  .item-controls {
    grid-area: controls;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 8px;
    padding-left: 0;
    padding-bottom: 5px;
  }
  .item-price {
    display: none;
  }
  .price-bar {
    display: block;
    grid-area: price;
    text-align: right;
    padding: 5px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    border-top: 1px solid var(--light-gray);
  }
  .checkout-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px solid #cacaca;
    background: var(--white);
    z-index: 1000;
    font-size: 0.9rem;
  }
  .payment-methods {
    display: none;
  }
  .summary-subtotal,
  .summary-shipping {
    display: none;
  }
  .container {
    flex-direction: column;
    margin-top: 20px;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-scroll-line {
    display: block;
  }
  .main-content {
    width: 100%;
    margin-top: 0;
    padding: 25px;
    min-height: 500px;
  }
  /* New scroll bar that replaces thumbnail container */
  .thumbnail-scroll-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: #000;
    margin-top: 10px;
    position: relative;
  }
  /* Scroll thumb positioned (e.g., image 4 of 10 => 40%) */
  .thumbnail-scroll-bar .scroll-thumb {
    position: absolute;
    left: 40%; /* Update dynamically with JS as needed */
    width: 10%;  /* Example width; adjust as required */
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
  }
}

@media (max-width: 480px) {
  .login-container h1 {

  }
  .form-group input {
    padding: 10px 12px;
  }
  .login-btn,
  .register-btn {
    padding: 12px;
  }
  .form-options {
    gap: 10px;
  }
  .cart-item {
    padding: 10px;
    grid-gap: 8px;
  }
  .quantity-select {
    width: 80px;
  }
  .main-content {
    padding: 20px;
    min-height: 500px;
  }
  .payment-methods {
    display: none;
  }
  .btn {
    padding: 12px 15px;
  }
  .profile-pic img {
    width: 100px;
    height: 100px;
  }
  .mobile-nav ul li a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

/* Complete Your Purchase recommendations */
.complete-purchase {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  background-color: #fff;
}
.complete-purchase h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.complete-sub {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}
.complete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.complete-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(106,50,159,0.1);
  box-shadow: 0 18px 32px rgba(17,24,39,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.complete-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(17,24,39,0.14);
}
.complete-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.complete-thumb {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(106,50,159,0.08), rgba(15,118,110,0.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32);
}
.complete-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.complete-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}
.complete-link:hover .complete-name {
  color: #6d28d9;
}
.complete-price {
  font-weight: 700;
  color: #6d28d9;
  font-size: 1rem;
}
.complete-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.complete-actions .btn.outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 999px;
  padding: 10px 18px;
}
.complete-actions .btn.outline:hover {
  background: var(--primary-color);
  color: #fff;
}
.complete-actions .btn.add-both-btn {
  background: var(--primary-color);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
}
.complete-actions .btn.add-both-btn:hover {
  background: var(--primary-hover);
}

/* New Styles for Flexible and Interest-Free Credit Section */
.credit-options {
  padding: 10px;
  margin-top: 20px;
}
.credit-options p {
  font-weight: bold;
  margin-bottom: 10px;
}

/* New container for options grouping */
.product-options-group {
    display: grid;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

/* Consistent typography for labels within options */
.product-options-group label strong {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

/* Enhanced Color Selector */
.color-selector .color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.color-selector .color-option {
    position: relative;
}
.color-selector .color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.color-selector .color-option label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: #f1f1f1;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: capitalize;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.color-selector .color-option label.has-color-swatch {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.color-selector .color-option label.has-color-swatch.light-swatch {
    color: #111;
    text-shadow: none;
}
.color-selector .color-option input[type="radio"]:focus-visible + label {
    outline: 2px solid #6a329f;
    outline-offset: 2px;
}
.color-selector .color-option input[type="radio"]:checked + label {
    border-color: #6a329f;
    box-shadow: 0 4px 12px rgba(106,50,159,0.25);
    transform: translateY(-2px);
}
.color-selector .color-option.static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #333;
    font-size: 0.9rem;
}

/* Refined Size Selector */
.size-selector select {
    padding: 8px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236a329f' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
/* Upgraded Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}
.quantity-selector .quantity-btn {
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border: none;
    transition: background 0.2s ease;
}
.quantity-selector .quantity-btn:hover {
    background: #e0e0e0;
}
.quantity-selector .quantity-btn:active {
    background: #d0d0d0;
}
.quantity-selector .quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-options-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* Typography Optimization */
p, label, span, li, a, .product-description {
          /* optimize vertical spacing */
    line-height: 1.5;     /* improve readability */
    font-weight: 400;     /* reduce excessive boldness */
}

h1, h2, h3, h4, h5, h6 {
    margin: 0.7em 0;     /* consistent heading spacing */
    line-height: 1;
    font-weight: 500;     /* slightly lighter than default */
}

/* Reusable Text Container */
.text-block {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid var(--primary-color);
    background-color: #fafafa;
    font-size: 1rem;
    line-height: 1.6;
}

/* Scrollable Main Image Container for 3 Images */
.main-image-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
}
.main-image-container img {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
}

/* Redesigned Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
}
.quantity-selector .quantity-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
    color: var(--white);
    font-size: 1.2rem;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.quantity-selector .quantity-btn:hover {
    background: var(--primary-hover);
}
.quantity-selector .quantity-input {
    width: 20px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1rem;
    background: none;
}

/* Horizontal Divider and Adjusted Product-Info Layout */
.product-info {
    display: flex;
    flex-direction: column;
}
.info-divider {
    width: 100%;
    height: 1px;
    background-color: var(--light-gray);
    border: none;
    margin: 10px 0;
}

/* New Quantity Selector Styling (updated) */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    max-width: 245px;
}
.quantity-label {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-right: auto;  /* pushes the rest to the right */
}
.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #8a2be2;
    border-radius: 3px;
    background: #fff;
    color: #8a2be2;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}
.quantity-btn:hover {
    background: #f5f0ff;
}
/* Reduce extra space between the number and plus button */
.quantity-input {
    width: 50px;
    height: 30px;
    border: 2px solid #8a2be2;
    border-radius: 3px;
    background: #fff;
    text-align: center;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    margin-right: 2px; /* tighter spacing before the + button */
}
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom Scrollbar Track and Indicator for Product Images */
.scrollbar-track {
    height: 8px;
    background-color: #fff; /* long bar is white */
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    position: relative;
    margin-top: 20px; /* optional spacing */
}
.scrollbar-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* width will be set dynamically via JS based on the number of images */
    background-color: #3c3c3c; /* black indicator */
    border-radius: 4px;
    transition: left 0.3s ease, width 0.3s ease;
}

/* New styles for scrollable-products container */
.scrollable-products {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollable-products::-webkit-scrollbar {
    display: none;
}
.more-products-header {
  text-align: center;
  margin-bottom: 40px; /* Adjust value as needed */
}
/* Ensure images in scrollable-products always show the full image within a square */
.scrollable-products img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

/* Adjust more-products fade-in visible for better responsiveness */
.more-products.fade-in.visible {
    /* ...existing code... */
    background: #fff;
    padding: 20px;
    margin: 10px auto;
    max-width: 100%;
    max-width: 1200px;
    padding: 25px 16px 15px;
}

/* Media query for small screens */
@media (max-width: 768px) {
    .scrollable-products {
        overflow-x: auto;
        overflow-y: hidden;
    }
    .more-products.fade-in.visible {
        padding: 15px;
        margin: 10px 5px;
    }
}


 /* New: Disable click events on product images */
 .main-image-container img {
   pointer-events: none;
 }

@media (min-width: 1024px) {
  .most-sold-item h4.product-title {
    /*! position: relative; */
    /*! z-index: 1; */
    /*! color: #5A2184; */  /* Ensure the title color stands out */
  }
}

/* New Divider Line */
.divider-top {
    border: none;
    border-top: 2px solid #ccc;
    margin: 20px 0 80px 0; 
}

@media (max-width: 600px) {

}

/* Mobile: only show .mobile-filter-menu on small screens and style sticky behavior */
@media (min-width: 769px) {
  .mobile-filter-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-filter-menu {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1100;
    background-color: #fff;
    /*! box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    transition: all 0.3s ease;
    border: 1px solid #d4d4d4;
    padding: 15px 20px 0px 20px;
  }
  /* When JS adds the sticky class, enforce fixed docking at the top */
  .mobile-filter-menu.sticky {
    position: fixed;
    top: 0;
    width: 100%;
  }
  .product-browse,
  .products-main {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Apply Button Styles */
.apply-button {
  padding: 8px 16px;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s ease, color 0.3s ease;
  flex: 1;
}

.apply-button:hover {
  background: var(--primary-color);
  color: #fff;
}

.apply-button:active {
  transform: scale(0.98);
}

body.modal-open {
  overflow: hidden;
}
/* Flash / toast messages used on account.php */
.flash{
  padding:12px 18px;
  margin-bottom:1.2rem;
  border-radius:4px;
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
}

.flash.success{
  background:#e7f9ed;
  color:#207a43;
  border-color:#b7eccb;
}

.flash.error{
  background:#fdecea;
  color:#b22028;
  border-color:#f5c2c2;
}










@media (min-width: 769px) {
  .search-toggle {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 768px) {
  .search-toggle {
    display: flex !important;
    visibility: visible !important;
  }
}

