/*
 * MODERN SHOP DESIGN — Bold, clean, high-contrast
 * Gradient accents, visible borders, strong hover states
 */

/* ========== GLOBAL ========== */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(var(--cl-accent), 0.35);
  color: rgba(var(--cl-t-primary), 1);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(var(--cl-background), 1);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--cl-accent), 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--cl-accent), 0.5);
}

/* ========== ACCENT GRADIENT LINE (reusable) ========== */
.accent-line-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--cl-accent), 0), rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0));
  border-radius: 0 0 2px 2px;
}

.accent-line-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--cl-accent), 0), rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0));
  border-radius: 2px 2px 0 0;
}

/* ========== HEADER ========== */
.shop-header {
  background: rgba(var(--cl-card), 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.shop-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--cl-accent), 1) 50%, transparent 100%);
  z-index: 10;
}

.shop-header .stat-item {
  position: relative;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.shop-header .stat-item:hover {
  background: rgba(var(--cl-accent), 0.08);
  transform: translateY(-2px);
}

.shop-header .stat-item:hover .stat-number {
  color: rgba(var(--cl-accent), 1) !important;
  text-shadow: 0 0 20px rgba(var(--cl-accent), 0.5);
}

/* ========== NAV LINKS ========== */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(var(--cl-card), 0.5);
  color: rgba(var(--cl-t-primary), 0.7);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(var(--cl-accent), 0.12);
  border-color: rgba(var(--cl-accent), 0.3);
  color: rgba(var(--cl-accent), 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--cl-accent), 0.15);
}

.nav-link-active {
  background: rgba(var(--cl-accent), 0.15) !important;
  border-color: rgba(var(--cl-accent), 0.4) !important;
  color: rgba(var(--cl-accent), 1) !important;
  box-shadow: 0 0 16px rgba(var(--cl-accent), 0.1);
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  position: relative;
  background: rgba(var(--cl-card), 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(var(--cl-accent), 0.08), transparent);
  transition: height 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--cl-accent), 0.35);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(var(--cl-accent), 0.15),
    0 0 30px rgba(var(--cl-accent), 0.08);
}

.product-card:hover::after {
  height: 100%;
}

.product-card:hover .product-card-img {
  transform: scale(1.08);
}

.product-card .product-card-img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-name {
  color: rgba(var(--cl-accent), 1);
}

.product-card:hover .product-card-price {
  text-shadow: 0 0 16px rgba(var(--cl-accent), 0.5);
}

/* ========== SECTION HEADER with accent bar ========== */
.section-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.section-header::before {
  content: '';
  width: 4px;
  height: 100%;
  min-height: 28px;
  background: linear-gradient(180deg, rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0.3));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ========== SEARCH BAR ========== */
.search-bar {
  background: rgba(var(--cl-card), 0.7);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.search-bar:focus-within {
  border-color: rgba(var(--cl-accent), 0.5);
  box-shadow: 
    0 0 0 4px rgba(var(--cl-accent), 0.1),
    0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(var(--cl-card), 0.9);
}

.search-bar:focus-within svg {
  color: rgba(var(--cl-accent), 1) !important;
}

/* ========== FEEDBACK CARDS ========== */
.feedback-card {
  background: rgba(var(--cl-card), 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--cl-accent), 0.8), rgba(var(--cl-accent), 0.2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feedback-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--cl-accent), 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.feedback-card:hover::before {
  transform: scaleX(1);
}

/* Star rating */
.stars-filled {
  filter: drop-shadow(0 0 4px rgba(var(--cl-accent), 0.5));
}

/* ========== FAQ ITEMS ========== */
.faq-item {
  background: rgba(var(--cl-card), 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.faq-item:hover {
  border-left-color: rgba(var(--cl-accent), 1);
  background: rgba(var(--cl-card), 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ========== BUTTONS ========== */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: rgba(var(--cl-accent), 1);
  border: none;
  border-radius: 12px;
  color: rgba(var(--cl-t-accent), 1);
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(var(--cl-accent), 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(var(--cl-accent), 0.45),
              0 0 0 3px rgba(var(--cl-accent), 0.15);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--cl-accent), 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transition: all 0.5s ease;
  transform: translateX(-100%);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(var(--cl-t-primary), 0.9);
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(var(--cl-accent), 0.1);
  border-color: rgba(var(--cl-accent), 0.4);
  color: rgba(var(--cl-accent), 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== ANNOUNCEMENT ========== */
.announcement-bar {
  background: linear-gradient(135deg, rgba(var(--cl-accent), 0.95), rgba(var(--cl-accent), 0.75));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--cl-accent), 0.25);
}

.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: announcement-shine 4s linear infinite;
}

@keyframes announcement-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========== FOOTER ========== */
.shop-footer {
  background: rgba(var(--cl-card), 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.shop-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 0.6), transparent);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== MODAL ========== */
.modal-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  background: rgba(var(--cl-background), 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 1), transparent);
}

/* ========== PRODUCT PAGE ========== */
.product-detail-card {
  background: rgba(var(--cl-card), 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.product-detail-header {
  background: rgba(var(--cl-background), 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  position: relative;
}

.product-detail-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  width: 48px;
  height: 3px;
  background: rgba(var(--cl-accent), 1);
  border-radius: 2px;
}

.product-price-card {
  background: rgba(var(--cl-card), 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.product-price-header {
  background: linear-gradient(135deg, rgba(var(--cl-accent), 0.1), rgba(var(--cl-accent), 0.03));
  border-bottom: 1px solid rgba(var(--cl-accent), 0.15);
  padding: 20px 24px;
}

.product-price-header .price-display {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tab styling */
.product-tab {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.product-tab:hover {
  background: rgba(var(--cl-accent), 0.08);
  color: rgba(var(--cl-accent), 1);
}

.product-tab-active {
  background: rgba(var(--cl-accent), 0.12) !important;
  border-color: rgba(var(--cl-accent), 0.3) !important;
  color: rgba(var(--cl-accent), 1) !important;
  box-shadow: 0 2px 8px rgba(var(--cl-accent), 0.1);
}

/* ========== VARIANT SELECTOR ========== */
.variant-option {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.02);
}

.variant-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.variant-option-active {
  background: rgba(var(--cl-accent), 0.08) !important;
  border-color: rgba(var(--cl-accent), 0.4) !important;
  box-shadow: 0 0 0 3px rgba(var(--cl-accent), 0.08);
}

/* ========== QUANTITY CONTROL ========== */
.qty-control {
  display: flex;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.qty-control:focus-within {
  border-color: rgba(var(--cl-accent), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--cl-accent), 0.1);
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  color: rgba(var(--cl-t-primary), 0.6);
}

.qty-btn:hover {
  background: rgba(var(--cl-accent), 0.15);
  color: rgba(var(--cl-accent), 1);
}

/* ========== INPUTS ========== */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--cl-accent), 0.12);
}

/* ========== CART ========== */
.cart-item {
  background: rgba(var(--cl-card), 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: rgba(var(--cl-accent), 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ========== STATUS DOT ========== */
.status-dot {
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.6); }
}

/* ========== BADGES ========== */
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========== PAGE CARDS (terms, privacy, etc.) ========== */
.page-card {
  background: rgba(var(--cl-card), 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--cl-accent), 1), transparent);
}

/* ========== SPLIDE GALLERY ========== */
.splide .splide__arrow {
  background: rgba(var(--cl-card), 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.splide .splide__arrow:hover {
  background: rgba(var(--cl-accent), 0.2) !important;
  border-color: rgba(var(--cl-accent), 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* ========== BLOG CARD ========== */
.blog-card {
  background: rgba(var(--cl-card), 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--cl-accent), 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ========== CUSTOMER SIDEBAR ========== */
.customer-sidebar {
  background: rgba(var(--cl-card), 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.customer-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0.2));
}

/* ========== LOADING ANIMATION ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in-up 0.4s ease-out forwards;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  background: rgba(var(--cl-card), 0.5);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}
