/* ==========================================================================
   1. VARIABLES & BASE SETUP
   ========================================================================== */
:root {
  --primary: #C9A227;
  --primary-light: #E6C96B;
  --primary-dark: #8F6B10;
  --black: #111;
  --dark: #1C1C1C;
  --white: #fff;
  --light: #fafafa;
  --text: #333;
  --text-light: #777;
  --border: #ececec;
  --border-dark: rgba(255, 255, 255, 0.08);
  --wa-green: #25D366;
  --wa-dark: #128C7E;
  --radius: 18px;
  --shadow-sm: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-md: 0 15px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.15);
  --gold-shadow: 0 10px 30px rgba(201,162,39,0.35);
  --wa-shadow: 0 15px 35px rgba(37,211,102,0.45);
  --transition: 0.35s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }
body { background: var(--light); color: var(--text); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }

.container { width: 90%; max-width: 1250px; margin: auto; }
.section { padding: 90px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

/* ==========================================================================
   2. SHARED ANIMATIONS & TRANSITIONS
   ========================================================================== */
.btn, .card, .product-card, .cta-features div, .payment-icons div, .footer-col {
  transition: all var(--transition);
}

.card, .product-card {
  animation: fadeUp 0.7s ease both;
}

.footer-col, .hero {
  animation: fadeUp 0.8s ease;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dark);
  transition: 0.3s;
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.logo, .site-logo { display: flex; align-items: center; }
.site-logo, .logo img { width: 220px; height: 70px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--white); font-size: 15px; font-weight: 500; position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.cart-count {
  background: var(--primary);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  margin-left: 6px;
}

.menu-toggle {
  display: none;
  background: transparent !important;
  border: 0 !important;
  color: var(--primary) !important;
  font-size: 30px;
  cursor: pointer;
  padding: 8px 10px;
  line-height: 1;
  z-index: 10001;
  -webkit-appearance: none;
  appearance: none;
}
.menu-toggle i {
  color: var(--primary) !important;
  font-size: 30px;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: #000; }
.hero a { display: block; }
.hero-image {
  width: 100%;
  height: 58vw;
  max-height: 620px;
  min-height: 220px;
  object-fit: cover;
  transition: 1.2s ease;
}
.hero:hover .hero-image { transform: scale(1.05); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.35));
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   5. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--gold-shadow);
  width: 100%;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--gold-shadow); }

#loader { color: var(--primary); font-size: 18px; font-weight: 600; }
#loadMoreBtn { margin-top: 25px; min-width: 220px; }

.pagination { display: flex; justify-content: center; gap: 12px; margin: 50px 0; }
.pagination a, .pagination span {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #ddd;
  color: var(--text);
  transition: 0.3s;
}
.pagination a:hover { background: var(--primary); color: var(--black); border-color: var(--primary); }
.pagination .active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: var(--black);
  border: none;
}

/* ==========================================================================
   6. CARDS & PRODUCT CARDS
   ========================================================================== */
.section-title { text-align: center; font-size: 44px; color: var(--black); margin-bottom: 15px; font-weight: 700; }
.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  border-radius: 20px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
}

.card, .product-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #eee;
  position: relative;
}

.card { text-align: center; box-shadow: var(--shadow-sm); }
.card::before, .cta-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
}
.card::before { height: 4px; }
.card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.12); border-color: rgba(201,162,39,0.35); }
.card h3 { padding: 22px 15px; font-size: 20px; color: #222; font-weight: 600; }

.category-img, .category-placeholder { height: 230px; }
.category-img { width: 100%; object-fit: cover; object-position: center; border-bottom: 1px solid #eee; transition: transform 0.6s ease; }
.card:hover .category-img { transform: scale(1.08); }
.category-placeholder { display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.category-placeholder i { font-size: 70px; color: var(--primary); }

.product-card { box-shadow: 0 10px 35px rgba(0,0,0,0.06); }
.product-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,0.35); }
.product-card::before {
  content: "Premium";
  position: absolute;
  top: 15px;
  left: -40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: var(--black);
  width: 150px;
  text-align: center;
  padding: 6px;
  transform: rotate(-45deg);
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
}
.product-card img { width: 100%; height: 320px; object-fit: contain; transition: transform 0.6s ease; border-bottom: 1px solid #eee; }
.product-card:hover img { transform: scale(1.08); }

.product-info { padding: 24px; }
.product-info h3 { font-size: 22px; margin-bottom: 12px; color: var(--black); font-weight: 600; }
.variant-badge { display: inline-block; background: #FFF7D8; color: var(--primary-dark); padding: 8px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.variant-info { color: var(--text-light); font-size: 14px; margin-bottom: 8px; }
.price { font-size: 30px; color: var(--primary-dark); font-weight: 700; margin: 15px 0; }
.product-info .btn { margin-top: 15px; }

/* ==========================================================================
   7. CALL TO ACTION (CTA)
   ========================================================================== */
.cta { padding: 100px 20px; background: linear-gradient(135deg, #111, #1d1d1d, #111); }
.cta-content {
  max-width: 1000px;
  margin: auto;
  padding: 60px;
  border-radius: 25px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-content::before { height: 6px; }

.cta-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 40px; background: #FFF7D8; color: var(--primary-dark); font-weight: 600; margin-bottom: 25px; }
.cta-content h2 { font-size: 48px; color: var(--black); margin-bottom: 20px; font-weight: 700; }
.cta-content p { font-size: 18px; color: #666; max-width: 750px; margin: 0 auto 40px; line-height: 1.9; }

.cta-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.cta-features div { background: var(--light); border: 1px solid #eee; border-radius: 16px; padding: 18px; font-weight: 600; }
.cta-features div:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.cta-features i { color: var(--primary); margin-right: 8px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 42px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--wa-shadow);
}
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(37,211,102,0.45); }

/* ==========================================================================
   8. FOOTER & REGISTER
   ========================================================================== */
footer, .footer { background: #111; color: #ddd; padding: 90px 0 30px; }
footer { background: #111827; text-align: center; padding: 25px; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 45px; }
.footer-logo { width: 180px; margin-bottom: 20px; }
.footer h3 { color: var(--primary); font-size: 22px; margin-bottom: 22px; }
.footer p { color: #bbb; line-height: 1.9; font-size: 15px; }
.footer li { margin-bottom: 14px; }
.footer a { color: #ccc; }
.footer a:hover { color: var(--primary); padding-left: 8px; }
.footer i { color: var(--primary); width: 22px; }

.payment-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.payment-icons div {
  background: #1f1f1f;
  border: 1px solid var(--border-dark);
  border-radius: 15px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.payment-icons div:hover { background: var(--primary); transform: translateY(-5px); }
.payment-icons div:hover i, .payment-icons div:hover span { color: var(--black); }
.payment-icons i { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.payment-icons span { color: #ddd; font-size: 13px; }

.why-pixora li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: #ccc; line-height: 1.7; }
.why-pixora li i { color: var(--primary); margin-top: 4px; }

.footer-bottom { margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--border-dark); text-align: center; }
.footer-bottom p { color: #888; font-size: 14px; margin: 10px 0; }
.secure-text { margin-top: 18px; color: #ddd; font-weight: 600; }
.secure-text i { color: var(--wa-green); }
.footer-col:hover { transform: translateY(-5px); }

/* Registration Form */
.register-section {
  min-height: calc(100vh - 160px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('images/main_header.png') center/cover;
}
.register-box { width: 100%; max-width: 500px; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-md); }
.register-box h2 { text-align: center; font-size: 34px; margin-bottom: 10px; }
.register-box p { text-align: center; color: #666; margin-bottom: 30px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 15px; transition: 0.3s; }
.form-group input:focus { outline: none; border-color: #d40000; box-shadow: 0 0 8px rgba(212,0,0,0.15); }

.message { background: #FFF8E3; color: var(--primary-dark); border-left: 5px solid var(--primary); padding: 12px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.login-link { margin-top: 20px; text-align: center; }
.login-link a { color: #d40000; font-weight: 600; }

/* Floating Elements */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white);
  font-size: 34px;
  z-index: 99999;
  box-shadow: var(--wa-shadow);
}
.whatsapp-float:hover { transform: scale(1.12); color: var(--white); }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(37,211,102,0.4);
  border-radius: 50%;
  animation: ripple 2s infinite;
}

/* Scrollbar & Global Styles */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f2f2f2; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--primary-dark)); border-radius: 30px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
::selection { background: var(--primary); color: var(--black); }

/* ==========================================================================
   9. KEYFRAMES
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ripple {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.7); opacity: 0; }
}
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   10. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .container { width: 94%; }
  .section { padding: 70px 0; }
  .section-title { font-size: 36px; }
  .cta-content { padding: 40px; }
}

@media (max-width: 768px) {
  .navbar { height: 72px; }
  .site-logo { width: 170px; height: 55px; }
  .menu-toggle { display: block; }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    background: transparent !important;
  }

  .menu-toggle i {
    color: var(--primary) !important;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #111 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    border-top: 1px solid var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.55);
    z-index: 10000;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a i {
    color: var(--primary) !important;
  }

  .nav-links a:hover {
    background: rgba(201,162,39,0.12) !important;
    color: var(--primary) !important;
  }

  .hero-image { height: 55vw; min-height: 220px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .category-img, .category-placeholder { height: 150px; }
  .card h3 { font-size: 16px; padding: 15px; }

  .product-card img { height: 220px; }
  .product-info { padding: 18px; }
  .product-info h3 { font-size: 18px; }
  .price { font-size: 24px; }

  .cta-content { padding: 30px 20px; }
  .cta-content h2 { font-size: 32px; }
  .cta-content p { font-size: 16px; }
  .cta-features { grid-template-columns: 1fr; }
  .cta-btn { width: 100%; justify-content: center; }

  .footer { text-align: center; }
  .payment-icons { margin: auto; }
  .why-pixora li { justify-content: center; }
  .whatsapp-float { width: 58px; height: 58px; font-size: 28px; right: 18px; bottom: 18px; }

  .category-menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 25px;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 12px;
  }
  .category-menu::-webkit-scrollbar { display: none; }
  .category-menu a { flex: 0 0 auto; font-size: 15px; }

  .register-box { padding: 30px 25px; }
  .register-box h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 28px; }
  .hero-image { height: 60vw; min-height: 180px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 15px; }
  .category-img, .category-placeholder { height: 120px; }
  .card h3 { font-size: 14px; }

  .product-card img { height: 180px; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 16px; }
  .price { font-size: 20px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}