/* Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  display: none;
}

.cart-overlay.active {
  display: block;
}

/* Side Cart */
.side-cart {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100dvh;
  background: white;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.side-cart.active {
  right: 0;
}

/* Header */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #000;
}

.cart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fff;
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.cart-close:hover {
  color: #FFC0CB;
}

/* Progress Bar */
.shipping-progress {
  padding: 24px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.progress-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.progress-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  flex: 0 0 auto;
}

.milestone-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: bold;
  margin-bottom: 8px;
}

.progress-milestone.active .milestone-circle {
  background: #FFC0CB;
}

.milestone-label {
  text-align: center;
}

.milestone-amount {
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.milestone-status {
  font-size: 10px;
  color: #0a0a0a;
  font-weight: 500;
}

.progress-milestone:not(.active) .milestone-status {
  color: #999;
}

.progress-line {
  position: absolute;
  top: 16px;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
}

.progress-line.line-1 {
  left: 15%;
  width: 20%;
}

.progress-line.line-2 {
  left: 50%;
  width: 20%;
}

.progress-line.active {
  background: #FFC0CB;
}

/* Cart Body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  background: #fafafa;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
}

.cart-item-image-placeholder {
  width: 40px;
  height: 40px;
  background: #e0e0e0;
  border-radius: 4px;
}

.cart-details {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0 0 4px 0;
}

.cart-item-variant {
  font-size: 12px;
  color: #666;
  margin: 0 0 12px 0;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: white;
  border: none;
  padding: 2px 4px;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #FFC0CB;
  color: white;
}

.qty-value {
  padding: 6px 12px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  color: #000;
}

.item-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-price del {
  font-size: 12px;
  color: #999;
}

.item-price-current {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.remove-item {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color 0.2s;
}

.remove-item:hover {
  color: #000;
}

/* Offers Section */
.offers-section,
.best-offers {
  margin-bottom: 20px;
}

.section-title1 {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin: 0 0 12px 0;
}

.coupons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff0f5;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid #FFC0CB;
}

.coupon-count {
  margin-left: auto;
  color: #000;
  font-weight: 500;
}

/* Offers Carousel */
.offers-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.offers-carousel::-webkit-scrollbar {
  height: 4px;
}

.offers-carousel::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 4px;
}

.offer-card {
  flex: 0 0 160px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  position: relative;
  background: #fafafa;
}

.offer-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #000;
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 1;
}

.offer-image {
  width: 100%;
  height: 96px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
}

.offer-image.pink {
  background: #fff0f5;
}

.offer-image-placeholder {
  width: 64px;
  height: 64px;
  background: #e0e0e0;
  border-radius: 4px;
}

.offer-image-placeholder.pink {
  background: #FFC0CB;
}

.offer-title {
  font-size: 11px;
  color: #000;
  margin: 0 0 8px 0;
  line-height: 1.3;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.offer-price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.offer-price del {
  font-size: 10px;
  color: #999;
}

.offer-price-current {
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.add-btn {
  width: 100%;
  padding: 6px;
  border: 1px solid #000;
  background: white;
  color: #000;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover {
  background: #000;
  color: white;
}

.carousel-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: #FFC0CB;
  color: white;
  border-color: #FFC0CB;
}

/* Newsletter */
.newsletter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-opt input[type="checkbox"] {
  accent-color: #FFC0CB;
  width: 16px;
  height: 16px;
}

.newsletter-opt label {
  font-size: 12px;
  color: #666;
  margin: 0;
  cursor: pointer;
}

/* Cart Footer */
.cart-footer {
  border-top: 1px solid #f0f0f0;
  padding: 20px;
  background: white;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.total-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.total-amount {
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

.estimated-text {
  font-size: 12px;
  color: #999;
}

.checkout-btn {
  flex: 1;
  padding: 16px 24px;
  background: #000;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 12px;
}

.checkout-btn:hover {
  background: #FFC0CB;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.4);
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
  margin-top: 12px;
}

/* Open Cart Button */
.open-cart-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  background: black;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.2s;
}

.open-cart-btn:hover {
  background: #1f2937;
}

@media (max-width: 480px) {
  .side-cart {
    width: 100%;
    right: -100%;
  }
}

/* Alert Message */
.alert-custom {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  color: #856404;
}

/* Blog Posts Section */
.blog-post {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
}

.blog-category {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.blog-title {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin-bottom: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.3s;
}

.blog-title:hover {
  color: #666;
}

.blog-excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.share-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.3s;
}

.share-btn:hover {
  color: #666;
}

.share-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

/* Sticky Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 20px;
}

/* Top Posts Section */
.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #060606;
  color: #000;
}

.top-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.top-post-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.top-post-content {
  flex: 1;
}

.top-post-title {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 5px;
  line-height: 1.4;
  transition: color 0.3s;
}

.top-post-item:hover .top-post-title {
  color: #666;
}

.top-post-time {
  font-size: 12px;
  color: #999;
}



.faq-section {
  background: linear-gradient(135deg, #f7e9f7, #eef2ff);
  padding: 80px 15px;
}

.faq-container {
  max-width: 900px;
  margin: auto;
}

.faq-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
}

.faq-list {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.faq-number {
  font-weight: 700;
  color: #888;
  min-width: 30px;
}

.faq-text {
  flex: 1;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.faq-icon {
  width: 36px;
  height: 36px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg) !important;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-content {
  padding: 0 24px 24px 74px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.rounded-share-btn {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
}

/* wrapper so we can center circle behind plane */
.icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* pink hover circle */
.icon-wrap::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  background: #ffd6e7;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: 0.25s ease;
  z-index: -1;
}

.rounded-share-btn:hover .icon-wrap::before {
  opacity: 1;
  transform: scale(1);
}

/* plane icon */
.plane-icon {
  width: 22px;
  height: 22px;
  transition: 0.25s ease;
}

/* tiny movement */
.rounded-share-btn:hover .plane-icon {
  transform: translateX(3px);
}

/* Section Title */
.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #060606;
  color: #000;
}

/* Tag Container */
.popular-terms {
  max-width: 700px;
}

.terms-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Base Tag */
.term-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: #f5f5f5;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  /* pill shape */
  border: 1.5px solid transparent;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

/* Hover (unselected) */
.term-tag:hover {
  background-color: #ffe4ee;
  border-color: #FFC0CB;
  color: #000;
}

/* SELECTED STATE */
.term-tag.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* tiny × inside selected tag */
.term-tag.selected .tag-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #FFC0CB;
  color: #000;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.term-tag .tag-x {
  display: none;
}

/* Selected Count Badge */
.selected-info {
  margin-top: 18px;
  font-size: 13px;
  color: #888;
  min-height: 20px;
  transition: opacity 0.3s;
}

.selected-info span {
  font-weight: 600;
  color: #000;
}

/* Clear All Link */
.clear-all {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: #FFC0CB;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.clear-all:hover {
  color: #ff8fab;
}

/*  Hide share button  */
.blog-post button,
.blog-post .share-btn,
.blog-post [class*="share"],
.blog-post a[href*="share"] {
  display: none !important;
}

/*  hide category badge overlapping breadcrumb  */
.blog-post .badge,
.blog-post .category-badge,
.blog-post .cat-badge,
.blog-post [class*="badge"],
.blog-post [class*="category"],
.blog-post [class*="tag-label"],
nav.breadcrumb~span,
nav.breadcrumb~a>span,
.breadcrumb-item span[class],
nav[aria-label="breadcrumb"]+* span.badge,
nav[aria-label="breadcrumb"]+* a span {
  position: static !important;
  display: inline !important;
  z-index: auto !important;
}

.tooltip,
.blog-category-tooltip,
[data-bs-toggle="tooltip"],
[role="tooltip"] {
  display: none !important;
}

.blog-post img[src=""],
.blog-post img[src*="undefined"],
.blog-post img[src*="null"] {
  display: none !important;
}

.blog-post figure:empty,
.blog-post p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*  Rich List Styling  */
.blog-post ul,
.blog-post ol {
  margin: 1rem 0 1.25rem 0;
  padding-left: 0;
}

.blog-post ul {
  list-style: none;
}

.blog-post ul li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
  color: #333;
}

.blog-post ul li::before {
  content: '▸';
  position: absolute;
  left: 0.25rem;
  color: #e63946;
  font-size: 0.9rem;
  top: 0.5rem;
}

.blog-post ol {
  list-style: none;
  counter-reset: blog-counter;
}

.blog-post ol li {
  counter-increment: blog-counter;
  position: relative;
  padding: 0.45rem 0 0.45rem 2.2rem;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
  color: #333;
}

.blog-post ol li::before {
  content: counter(blog-counter);
  position: absolute;
  left: 0;
  top: 0.4rem;
  background: #e63946;
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post ul li:last-child,
.blog-post ol li:last-child {
  border-bottom: none;
}

.blog-post ul ul,
.blog-post ol ol,
.blog-post ul ol,
.blog-post ol ul {
  margin-top: 0.4rem;
  margin-bottom: 0;
  border-left: 2px solid #e63946;
  padding-left: 1rem;
}

/*  Loading Spinner  */
#blog-content-area {
  min-height: 200px;
  position: relative;
  transition: opacity 0.2s ease;
}

#blog-content-area.loading {
  opacity: 0.35;
  pointer-events: none;
}

.blog-spinner {
  display: none;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #e63946;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 10;
}

.blog-spinner.active {
  display: block;
}

@keyframes spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

/*  Active sidebar item  */
.top-post-item.active {
  background: #fff5f5;
  border-left: 3px solid #e63946;
  padding-left: calc(0.75rem - 3px);
  border-radius: 4px;
}

/*  Mobile images  */
.blog-post img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .blog-post img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

.blog-post figure,
.blog-post .wp-block-image,
.blog-post [class*="image"],
.blog-post [class*="img"] {
  max-width: 100% !important;
  overflow: visible !important;
}

/*  Browsing banner */
.browsing-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.browsing-bar {
  flex-shrink: 0;
  width: 5px;
  height: 32px;
  background: #e8a020;
  border-radius: 3px;
}

.browsing-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

.browsing-text span {
  color: #e8a020;
}

/*  Left column listing cards  */
.listing-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
}

.listing-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.listing-card .lc-img-wrap {
  flex: 0 0 200px;
  width: 200px;
}

.listing-card .lc-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.listing-card .lc-placeholder {
  width: 100%;
  height: 190px;
  background: #f4f4f4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.85rem;
}

.listing-card .lc-body {
  flex: 1;
  min-width: 0;
}

.listing-card .lc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.listing-card:hover .lc-title {
  text-decoration: underline;
}

.listing-card .lc-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 576px) {
  .listing-card {
    flex-direction: column;
  }

  .listing-card .lc-img-wrap {
    width: 100%;
    flex: none;
  }

  .listing-card .lc-img {
    height: 200px;
  }

  .listing-card .lc-placeholder {
    height: 200px;
  }
}

/*  Pagination */
.listing-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.listing-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #555;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.listing-pagination a:hover {
  border-color: #111;
  color: #111;
}

.listing-pagination a.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.listing-pagination a.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.listing-pagination a:first-child,
.listing-pagination a:last-child {
  font-size: 1.7rem;
}