/* ============================
   BlingBling - E-Commerce Styles
   Rose Gold / Bling Theme
   ============================ */

:root {
  --rose-gold: #B76E79;
  --rose-gold-light: #E8C5CB;
  --rose-gold-dark: #9A5560;
  --gold: #D4AF37;
  --gold-light: #F0E68C;
  --bg-primary: #FFFAFA;
  --bg-secondary: #FFF5F5;
  --bg-card: #FFFFFF;
  --text-primary: #2C2C2C;
  --text-secondary: #6C6C6C;
  --text-muted: #999999;
  --border: #F0E0E0;
  --success: #4CAF50;
  --success-light: #E8F5E9;
  --danger: #F44336;
  --shadow-sm: 0 2px 8px rgba(183, 110, 121, 0.08);
  --shadow-md: 0 4px 20px rgba(183, 110, 121, 0.12);
  --shadow-lg: 0 8px 40px rgba(183, 110, 121, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--rose-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--rose-gold-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose-gold), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose-gold);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon {
  position: relative;
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--rose-gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #C5A028);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--rose-gold);
  color: var(--rose-gold);
}

.btn-outline:hover {
  background: var(--rose-gold);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--rose-gold-light) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--rose-gold-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Deal Banner ===== */
.deal-banner {
  background: linear-gradient(135deg, var(--rose-gold), var(--gold));
  color: white;
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.deal-banner strong {
  font-weight: 700;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 80px 20px;
  background: var(--bg-card);
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  transition: transform var(--transition);
}

.step:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-gold), var(--gold));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Product Grid ===== */
.products-section {
  padding: 80px 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rose-gold-light);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #FFF8F0, #F8F0F0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image svg {
  width: 60%;
  height: 60%;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--rose-gold), var(--gold));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--rose-gold);
}

.price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-deal {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
}

/* ===== Trust Badges ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 48px 20px;
  background: var(--bg-secondary);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
}

.trust-badge span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: #CCC;
  padding: 48px 20px 24px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #999;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #999;
  font-size: 14px;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ===== Product Detail Page ===== */
.product-detail {
  padding: 40px 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  margin: 0 8px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-gallery {
  position: sticky;
  top: 80px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #FFF8F0, #F8F0F0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.product-main-image svg {
  width: 60%;
  height: 60%;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFF8F0, #F8F0F0);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb.active {
  border-color: var(--rose-gold);
}

.product-thumb svg {
  width: 50%;
  height: 50%;
}

.product-info-detail h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-price-current {
  font-size: 32px;
  font-weight: 700;
  color: var(--rose-gold);
}

.detail-price-original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-price-deal {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  margin-left: auto;
}

.product-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
}

/* ===== Share Deal Section ===== */
.share-deal {
  background: linear-gradient(135deg, #FFF5F5, #FFF8F0);
  border: 2px dashed var(--rose-gold);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}

.share-deal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rose-gold-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-deal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.share-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.share-progress-item {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: white;
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.share-progress-item.done {
  border-color: var(--success);
  background: var(--success-light);
}

.share-progress-item .friend-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}

.share-progress-item.done .friend-num {
  color: var(--success);
}

.share-progress-item .friend-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.share-progress-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.share-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-link-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: white;
  outline: none;
  transition: border-color var(--transition);
}

.share-link-input:focus {
  border-color: var(--rose-gold);
}

.share-social {
  display: flex;
  gap: 8px;
}

.share-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  color: white;
  font-size: 18px;
}

.share-social-btn.fb { background: #1877F2; }
.share-social-btn.tw { background: #1DA1F2; }
.share-social-btn.pt { background: #E60023; }
.share-social-btn.wa { background: #25D366; }

.share-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-unlocked {
  background: var(--success-light);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.share-unlocked-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 4px;
}

.share-unlocked-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Checkout Page ===== */
.checkout-page {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.checkout-section {
  margin-bottom: 32px;
}

.checkout-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}

.order-summary h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.order-item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFF8F0, #F8F0F0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-item-image svg {
  width: 60%;
  height: 60%;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-size: 14px;
  font-weight: 500;
}

.order-item-price {
  font-size: 14px;
  color: var(--rose-gold);
  font-weight: 600;
}

.order-totals {
  padding-top: 16px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.order-total-row.grand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.order-total-row.grand .amount {
  color: var(--rose-gold);
}

/* ===== Share Landing Page ===== */
.share-landing {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.share-landing-card {
  max-width: 500px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.share-landing-card h1 {
  font-size: 32px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--rose-gold), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.share-landing-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.pulse {
  animation: pulse 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-gallery {
    position: static;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-variant: 26px;
    font-size: 26px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
  }

  .price-current {
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .share-progress {
    flex-direction: column;
  }

  .share-progress-arrow {
    transform: rotate(90deg);
  }
}
