/* OnlineSodai — A1 Shop page (match reference layout) */

:root {
  --os-green: #02414f;
  --os-green-dark: #04535c;
  --os-blue: #0d6efd;
  --os-price-old: #9aa0a6;
  --os-text: #212529;
  --os-muted: #6c757d;
  --os-border: #dee2e6;
  --os-sidebar-bg: #f3f4f6;
  --os-footer-bg: #f1f3f5;
  --os-card-hover: #04535c;
  --spacing: .25rem;
}

body {
  color: var(--os-text);
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pt-14 {
  padding-top: calc(var(--spacing) * 14);
}

/* ——— Header ——— */
.os-site-top {
  z-index: 1030;
  background: #fff;
}

.os-marquee {
  overflow: hidden;
  background: #04535c;
  color: #fff;
  border-bottom: 1px solid #04535c;
}

.os-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: os-marquee-scroll 38s linear infinite;
}

.os-marquee:hover .os-marquee-track {
  animation-play-state: paused;
}

.os-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
}

.os-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.os-marquee-plus {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.95;
}

@keyframes os-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-marquee-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .os-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .os-marquee-item {
    padding: 0.42rem 0.85rem;
  }
}

.os-header {
  border-bottom: 1px solid var(--os-border);
  background: #fff;
}

.os-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.os-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.os-logo-img {
  width: 190px;
  height: 44px;
  max-width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.os-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.os-logo-text .online {
  color: var(--os-green);
}

.os-logo-text .sodai {
  color: #1a1a1a;
}

.os-search-wrap {
  max-width: 520px;
  width: 100%;
  position: relative;
}

.os-search-wrap .form-control {
  border-color: var(--os-border);
  border-right: 0;
  box-shadow: none;
}

.os-search-wrap .form-control:focus {
  border-color: var(--os-blue);
  box-shadow: none;
}

.os-search-btn {
  background: var(--os-blue);
  border-color: var(--os-blue);
  color: #fff;
  padding-inline: 0.9rem;
}

.os-search-btn:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

.os-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 1050;
  max-height: 360px;
  overflow-y: auto;
}

.os-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f3f5;
}

.os-search-item:last-child {
  border-bottom: 0;
}

.os-search-item:hover {
  background: #f8f9fa;
}

.os-search-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid var(--os-border);
  flex-shrink: 0;
}

.os-search-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.os-search-name {
  font-size: 0.88rem;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.os-search-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
}

.os-search-empty {
  padding: 0.85rem 1rem;
  color: var(--os-muted);
  font-size: 0.9rem;
}

/* ——— Cart empty / success ——— */
.os-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px solid var(--os-border);
  border-radius: 0.5rem;
  background: #fff;
}

.os-empty-state i {
  font-size: 3rem;
  color: #adb5bd;
}

.os-empty-state p {
  margin: 1rem 0 1.25rem;
  color: #555;
}

.co-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--os-muted);
}

.product-form-error {
  padding: 0.65rem 0.8rem;
  border: 1px solid #f1b7bc;
  border-radius: 0.45rem;
  background: #fff5f5;
  color: #b42318;
  font-size: 0.82rem;
}

.os-success-wrap {
  max-width: 560px;
  margin: 1rem auto 2rem;
}

.os-success-card {
  border: 1px solid var(--os-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

.os-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f6ec;
  color: var(--os-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.os-success-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.os-order-number {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.os-order-number strong {
  color: var(--os-blue);
}

.os-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.os-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.os-header-actions a {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.os-header-actions a:hover {
  color: var(--os-blue);
}

.os-cart-wrap {
  position: relative;
}

.os-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 0.65rem;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--os-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.os-cart-badge.danger {
  background: #dc3545;
}

/* ——— Qty control ——— */
.os-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--os-border);
  border-radius: 0.35rem;
  overflow: hidden;
  width: fit-content;
}

.os-qty button {
  border: 0;
  background: #f8f9fa;
  width: 2.25rem;
  color: #333;
  font-size: 1.1rem;
  line-height: 1;
}

.os-qty button:hover {
  background: #e9ecef;
}

.os-qty input {
  width: 3rem;
  border: 0;
  border-left: 1px solid var(--os-border);
  border-right: 1px solid var(--os-border);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
}

.os-qty input:focus {
  outline: none;
}

/* ——— Sidebar ——— */
.os-sidebar-sticky {
  position: sticky;
  top: 7.25rem; /* below sticky top bar + header */
  align-self: flex-start;
  z-index: 10;
}

.os-sidebar {
  background: var(--os-sidebar-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  max-height: calc(100vh - 8.5rem);
  overflow-y: auto;
}

.os-sidebar-label {
  font-size: 0.8rem;
  color: var(--os-muted);
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}

.os-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #e9ecef;
  border-bottom: 1px solid #dde1e6;
}

.os-cat-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.os-cat-list a {
  display: block;
  padding: 0.55rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.os-cat-list a:hover {
  background: #e5e7eb;
  color: #111;
}

.os-cat-list a.active {
  background: #6c757d;
  color: #fff;
  font-weight: 500;
}

/* ——— Trust badges strip (home page, before Shop By Category) ——— */
.os-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.25rem;
  border: 1px solid var(--os-border);
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.os-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--os-border);
}

.os-trust-item:last-child {
  border-right: 0;
}

.os-trust-item i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.5rem;
  color: #ef5b3c;
}

.os-trust-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
}

.os-trust-item p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--os-muted);
}

@media (max-width: 767.98px) {
  .os-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .os-trust-item:nth-child(2n) {
    border-right: 0;
  }

  .os-trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--os-border);
  }
}

@media (max-width: 480px) {
  .os-trust-strip {
    grid-template-columns: 1fr;
  }

  .os-trust-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--os-border);
  }

  .os-trust-item:last-child {
    border-bottom: 0;
  }
}

/* ——— Hero section (home page: static side banners + dynamic slider) ——— */
.os-hero-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.os-hero-side {
  flex: 0 0 30%;
  max-width: 30%;
  height: 451px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.os-hero-side-item {
  flex: 1 1 0;
  min-height: 0;
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--os-border);
  background: #e9ecef;
}

.os-hero-side-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-hero-main {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 451px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--os-border);
  background: #e9ecef;
}

.os-hero-main-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.os-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.os-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.os-hero-slide a,
.os-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.os-hero-slide img {
  object-fit: cover;
}

.os-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.os-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.os-hero-dot.active {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 767.98px) {
  .os-hero-section {
    flex-direction: column;
    height: auto;
  }

  .os-hero-side {
    flex: 0 0 auto;
    flex-direction: row;
    max-width: 100%;
    height: 130px;
  }

  .os-hero-main {
    flex: 0 0 auto;
    height: 220px;
  }

  .os-hero-main--hide-mobile {
    display: none;
  }
}

/* ——— Home carousel (before All Products) ——— */
.os-home-carousel {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--os-border);
  background: #e9ecef;
}

.os-home-carousel .carousel-inner {
  border-radius: 0.5rem;
}

.os-home-carousel-link {
  display: block;
  line-height: 0;
}

.os-home-carousel-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 420;
  object-fit: cover;
  object-position: center;
  background: #dee2e6;
}

.os-home-carousel .carousel-indicators {
  margin-bottom: 0.55rem;
}

.os-home-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  border: 0;
}

.os-home-carousel .carousel-control-prev,
.os-home-carousel .carousel-control-next {
  width: 2.5rem;
  opacity: 0.85;
}

.os-home-carousel .carousel-control-prev-icon,
.os-home-carousel .carousel-control-next-icon {
  width: 1.35rem;
  height: 1.35rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

@media (max-width: 767.98px) {
  .os-home-carousel--hide-mobile {
    display: none !important;
  }

  .os-home-carousel-img {
    aspect-ratio: 16 / 9;
  }

  .os-home-carousel .carousel-control-prev,
  .os-home-carousel .carousel-control-next {
    width: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .os-home-carousel-img {
    aspect-ratio: 21 / 9;
  }
}

/* ——— Shop By Category (home page) ——— */
.os-shop-by-category {
  margin-bottom: 1.5rem;
}

.os-sbc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.os-sbc-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.os-sbc-subtitle {
  margin: 0.25rem 0 0;
  color: var(--os-muted);
  font-size: 0.85rem;
}

.os-sbc-viewall {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--os-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.os-sbc-viewall:hover {
  color: var(--os-blue);
}

.os-sbc-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.os-sbc-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem;
}

.os-sbc-track::-webkit-scrollbar {
  display: none;
}

.os-sbc-item {
  flex: 0 0 auto;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--os-text);
  text-align: center;
}

.os-sbc-circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--os-sidebar-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s ease;
}

.os-sbc-item:hover .os-sbc-circle {
  box-shadow: 0 0 0 3px var(--os-blue);
}

.os-sbc-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-sbc-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.os-sbc-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--os-border);
  border-radius: 50%;
  background: #fff;
  color: var(--os-text);
}

.os-sbc-arrow:hover {
  background: var(--os-sidebar-bg);
}

/* Grid layout reused by the standalone "All Categories" page */
.os-sbc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 1.75rem 1rem;
}

@media (max-width: 575.98px) {
  .os-sbc-item,
  .os-sbc-circle {
    width: 84px;
  }

  .os-sbc-circle {
    height: 84px;
  }

  .os-sbc-arrow {
    width: 28px;
    height: 28px;
  }
}

/* ——— New Arrivals (home page) ——— */
.os-arrivals-section {
  margin-bottom: 1.5rem;
}

.os-arrivals-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.os-arrivals-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.os-arrivals-subtitle {
  margin: 0.25rem 0 0;
  color: var(--os-muted);
  font-size: 0.85rem;
}

.os-arrivals-arrows {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.os-arrivals-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--os-border);
  border-radius: 50%;
  background: #fff;
  color: var(--os-text);
}

.os-arrivals-arrow[hidden] {
  display: none;
}

.os-arrivals-arrow:hover {
  background: var(--os-sidebar-bg);
}

.os-arrivals-track {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem 0.5rem;
}

.os-arrivals-track::-webkit-scrollbar {
  display: none;
}

/* Used when there are few enough cards to not need scrolling — wraps
   into a static grid instead of a horizontal-scroll row. */
.os-arrivals-track--static {
  flex-wrap: wrap;
  overflow-x: visible;
}

.os-arrivals-item {
  flex: 0 0 auto;
  min-width: 200px;
  width: calc((100% - 4rem) / 5); /* 5 cards per row (4 gaps of 1rem) */
}

@media (max-width: 991.98px) {
  .os-arrivals-item {
    width: calc((100% - 2rem) / 3); /* 3 per row */
  }
}

@media (max-width: 575.98px) {
  .os-arrivals-item {
    width: calc((100% - 1rem) / 2); /* 2 per row */
  }
}

/* ——— Home category rows (Beauty Care, Kitchen Appliance, Electronic & Lights) ——— */
.os-catsec-section {
  margin-bottom: 1.5rem;
}

.os-catsec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.os-catsec-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.os-catsec-seemore {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #aaf27f;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  background-color: var(--os-green-dark);
  padding: 9px 16px;
  border-radius: 0.4rem;
}

.os-catsec-seemore:hover {
  color: #fff;
}

/* ——— Full-width row banners (after a category section, or homepage bottom) ——— */
.os-fw-banner {
  display: block;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--os-border);
  border-radius: 0.5rem;
  background: #fff;
  line-height: 0;
}

.os-fw-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— Flash Sale (home page) ——— */
.os-flash-sale-section {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.1rem 1.4rem;
  border-radius: 0.6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.os-flash-sale-section--solid {
  background-color: #b71c1c;
}

.os-flash-sale-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.os-flash-sale-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.os-flash-sale-heading i {
  color: #ffca28;
  font-size: 1.4rem;
}

.os-flash-sale-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.os-flash-sale-countdown {
  background: rgba(255, 255, 255, 0.16);
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.os-flash-sale-countdown #flashSaleCountdownValue {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.os-flash-sale-seeall {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
  text-decoration: none;
  white-space: nowrap;
}

.os-flash-sale-seeall:hover {
  background: #f1f1f1;
  color: #111;
}

.os-flash-sale-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ——— Toolbar ——— */
.os-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.os-toolbar h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.os-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  flex-shrink: 0;
}

.os-sort label {
  white-space: nowrap;
}

.os-sort select {
  min-width: 140px;
  font-size: 0.9rem;
}

/* ——— Product card ——— */
.os-product-card {
  border: 1px solid var(--os-border);
  border-radius: 0.4rem;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.os-product-card:hover {
  border-color: var(--os-card-hover);
  box-shadow: 0 0 0 1px var(--os-card-hover);
}

.os-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  overflow: hidden;
}

.os-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.os-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e53935;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  line-height: 1.2;
  z-index: 1;
}

.os-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #6c757d;
  font-size: 0.95rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  z-index: 1;
  cursor: pointer;
}

.os-wishlist-btn:hover {
  color: #e53935;
}

.os-product-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.os-price-row {
  margin-bottom: 10px;
  line-height: 1.3;
}

.os-price-old {
  color: var(--os-price-old);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.os-price-sell {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
}

.os-product-name {
  font-size: 0.88rem;
  color: #222;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.4em;
}

.os-btn-cart {
  width: 100%;
  border: 0;
  color: #aaf27f;
  background: var(--os-green-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.os-btn-cart:hover {
  background: var(--os-green);
  color: #fff;
}

/* Card qty control (replaces Add to cart after adding) */
.os-card-action {
  margin-top: auto;
}

.os-card-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #fdf1e8;
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
  gap: 0.35rem;
}

.os-card-qty button {
  border: 0;
  background: transparent;
  color: var(--os-blue);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  cursor: pointer;
}

.os-card-qty button:hover {
  opacity: 0.75;
}

.os-card-qty .os-card-qty-val {
  min-width: 2rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  color: var(--os-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Floating cart (right side) — only when cart has items */
.os-float-cart {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  width: 72px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.28);
  text-decoration: none;
  display: none;
  flex-direction: column;
}

.os-float-cart.visible {
  display: flex;
}

.os-float-cart-top {
  background: var(--os-blue);
  color: #fff;
  text-align: center;
  padding: 0.75rem 0.4rem 0.65rem;
}

.os-float-cart-top i {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.os-float-cart-top span {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.os-float-cart-bottom {
  background: #e7f0ff;
  color: var(--os-blue);
  text-align: center;
  padding: 0.55rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .os-float-cart {
    right: 0.5rem;
    width: 64px;
  }
}

/* ——— Pagination ——— */
.os-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.os-pagination .page-btn {
  border: 1px solid var(--os-border);
  background: #f8f9fa;
  color: #495057;
  padding: 0.4rem 0.9rem;
  border-radius: 0.3rem;
  font-size: 0.9rem;
  text-decoration: none;
  min-width: 5.5rem;
  text-align: center;
}

.os-pagination .page-btn.current {
  background: #e9ecef;
  font-weight: 600;
  cursor: default;
}

.os-pagination .page-btn.disabled {
  opacity: 0.65;
  pointer-events: none;
}

/* ——— Footer ——— */
.os-footer {
  background: var(--os-footer-bg);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.os-footer h6 {
  font-weight: 700;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.os-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.os-footer-links a {
  color: #495057;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  padding: 0.2rem 0 8px;
}

.os-footer-links a:hover {
  color: var(--os-green-dark);
}

.os-page-min {
  min-height: 60vh;
}

.os-policy-page {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border: 1px solid var(--os-border);
  border-radius: 0.55rem;
  background: #fff;
}

.os-policy-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--os-text);
}

.os-policy-body h1,
.os-policy-body h2,
.os-policy-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.15rem 0 0.55rem;
}

.os-policy-body h1:first-child,
.os-policy-body h2:first-child,
.os-policy-body h3:first-child {
  margin-top: 0;
}

.os-policy-body p {
  margin-bottom: 0.85rem;
}

.os-policy-body ul,
.os-policy-body ol {
  padding-left: 1.2rem;
  margin-bottom: 0.85rem;
}

.os-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  text-decoration: none;
  margin: 0;
}

.os-social.facebook {
  background: #1877f2;
}

.os-social:hover {
  color: #fff;
  opacity: 0.9;
}

.os-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.os-footer-about {
  margin-top: 0.85rem;
  max-width: 22rem;
}

.os-footer-about-title {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2430;
}

.os-footer-about-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #555;
}

.os-contact {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: #495057;
  line-height: 1.9;
  margin-bottom: 10px;
}

.os-contact i {
  color: var(--os-muted);
  margin-top: 0.15rem;
}

.os-copyright {
  border-top: 1px solid #dde1e6;
  margin-top: 1.75rem;
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ——— Product details gallery (single main + thumbs + lightbox) ——— */
.pd-main-stage {
  position: relative;
  aspect-ratio: 1;
  background: #f8f9fa;
  border: 1px solid var(--os-border);
  border-radius: 0.4rem;
  overflow: hidden;
}

.pd-main-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fafafa;
}

.pd-main-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(120, 110, 160, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}

.pd-main-btn:hover {
  background: rgba(90, 80, 140, 0.75);
  color: #fff;
}

.pd-main-btn.zoom {
  top: 12px;
  right: 12px;
}

.pd-main-btn.download {
  bottom: 12px;
  right: 12px;
}

.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 0.3rem;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb.active {
  border-color: var(--os-blue);
}

/* Lightbox — full-screen black modal */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}

.pd-lightbox.open {
  display: flex !important;
}

.pd-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3.5rem 4rem;
  box-sizing: border-box;
}

.pd-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.pd-lightbox-toolbar {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  gap: 0.85rem;
  z-index: 3;
}

.pd-lightbox-toolbar button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0.9;
  padding: 0;
}

.pd-lightbox-toolbar button:hover {
  opacity: 1;
}

.pd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.25rem;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  line-height: 1;
}

.pd-lightbox-nav:hover {
  color: #fff;
}

.pd-lightbox-nav.prev {
  left: 0.75rem;
}

.pd-lightbox-nav.next {
  right: 0.75rem;
}

.pd-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.pd-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
}

.pd-price-sell {
  font-size: 1.5rem;
  font-weight: 700;
}

.pd-price-old {
  color: var(--os-muted);
  text-decoration: line-through;
  font-size: 1rem;
}

.pd-save-pill {
  background: #e7f1ff;
  color: var(--os-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 280px;
  margin-top: 1.1rem;
}

.pd-cart-feedback {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  max-width: 280px;
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c8e6c9;
  border-radius: 0.4rem;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pd-cart-feedback.show {
  display: flex;
}

.pd-cart-feedback .bi {
  color: #2e7d32;
  font-size: 1rem;
}

.pd-cart-feedback a {
  color: var(--os-blue);
  font-weight: 600;
  text-decoration: none;
}

.pd-cart-feedback a:hover {
  text-decoration: underline;
}

.pd-btn-outline {
  border: 1.5px solid var(--os-blue);
  color: var(--os-blue);
  background: #fff;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.pd-btn-outline:hover {
  background: var(--os-blue);
  color: #fff;
}

.pd-btn-solid {
  border: 0;
  background: var(--os-blue);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0.35rem;
}

.pd-btn-solid:hover {
  background: #0b5ed7;
  color: #fff;
}

.pd-desc {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.pd-desc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.pd-specs-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}

.pd-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pd-specs th,
.pd-specs td {
  border: 1px solid var(--os-border);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}

.pd-specs thead th {
  background: #f8f9fa;
  font-weight: 600;
}

.pd-related-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

/* ——— Checkout (A4) ——— */
.co-page-title {
  color: var(--os-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.co-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.co-label {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.co-label .req {
  color: #dc3545;
}

.co-phone-group {
  display: flex;
  border: 1px solid var(--os-border);
  border-radius: 0.375rem;
  overflow: hidden;
}

.co-phone-group .co-cc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-right: 1px solid var(--os-border);
  white-space: nowrap;
  font-size: 0.9rem;
  color: #333;
}

.co-phone-group .form-control {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.co-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.co-pay-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--os-blue);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  background: #fff;
  max-width: 280px;
}

.co-pay-option .bi-check-circle-fill {
  color: var(--os-blue);
  margin-left: auto;
  font-size: 1.15rem;
}

.co-pay-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e7f1ff;
  color: var(--os-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.co-note-box {
  border: 1px solid #e5e7eb;
  background: #fafafa;
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.co-summary-sticky {
  position: sticky;
  top: 5.25rem;
}

.co-card {
  border: 1px solid var(--os-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}

.co-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.co-item-img {
  width: 64px;
  height: 64px;
  border-radius: 0.35rem;
  object-fit: cover;
  border: 1px solid var(--os-border);
  flex-shrink: 0;
}

.co-item-info {
  flex: 1;
  min-width: 0;
}

.co-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.co-item-prices {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.co-item-prices .old {
  text-decoration: line-through;
  color: var(--os-muted);
  margin-right: 0.35rem;
}

.co-item-prices .sell {
  font-weight: 700;
}

.co-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.co-trash {
  border: 0;
  background: transparent;
  color: #dc3545;
  font-size: 1.1rem;
  padding: 0.25rem;
}

.co-add-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--os-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.85rem;
}

.co-add-more:hover {
  text-decoration: underline;
  color: #0b5ed7;
}

.co-promo {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.co-promo .form-control {
  flex: 1;
}

.co-promo .btn {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #495057;
  white-space: nowrap;
}

.co-totals {
  font-size: 0.92rem;
}

.co-totals .row-line {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: #444;
}

.co-totals .total-line {
  display: flex;
  justify-content: space-between;
  padding-top: 0.65rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--os-border);
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
}

.co-confirm {
  width: 100%;
  background: var(--os-blue);
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  margin-top: 1rem;
}

.co-confirm:hover {
  background: #0b5ed7;
  color: #fff;
}

@media (max-width: 767.98px) {
  .os-sidebar-sticky {
    position: static;
  }

  .os-sidebar {
    max-height: none;
    overflow-y: visible;
  }

  .os-search-wrap {
    max-width: 100%;
    order: 3;
    flex-basis: 100%;
    margin-top: 0.75rem;
  }

  .os-header .row {
    flex-wrap: wrap;
  }

  .co-summary-sticky {
    position: static;
  }

  .pd-actions {
    max-width: none;
  }
}
