/* Shopify-like Feature Styles */

/* ─── Announcement Bar ─── */
#announcement-bar {
  background: linear-gradient(90deg, #1a1a2e, #2d2d5e);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1001;
  letter-spacing: 0.3px;
}
#announcement-bar button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
  line-height: 1;
}
#announcement-bar button:hover {
  opacity: 1;
}

/* ─── Back to Top ─── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2d2d2d;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #e65100;
  transform: translateY(-2px);
}

/* ─── Free Shipping Progress ─── */
#shipping-progress {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.sp-text {
  font-size: 13px;
  color: #166534;
  margin-bottom: 8px;
}
.sp-bar {
  height: 6px;
  background: #dcfce7;
  border-radius: 3px;
  overflow: hidden;
}
.sp-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ─── Product card improvements ─── */
.shop-product-card,
.product-card {
  border: 1px solid transparent !important;
}
.shop-product-card:hover,
.product-card:hover {
  border-color: #e0e0e0 !important;
}

/* ─── Sticky Add to Cart (product detail page) ─── */
@media (max-width: 768px) {
  .add-to-cart-btn {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 50 !important;
    border-radius: 0 !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    width: calc(100% + 2rem) !important;
  }
}

/* ─── Newsletter section enhancement ─── */
.newsletter-section {
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Trust badges enhancement ─── */
.compliance-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.compliance-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

/* ─── Smoother scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* ─── Selection colour ─── */
::selection {
  background: #e65100;
  color: #fff;
}
