/* General Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --teal: #36C3C1;
  --teal-dark: #2daaa8;
  --gold: #D4C39B;
  --cream: #FAF8F5;
  --cream-dark: #F0ECE1;
  --text-main: #2D3748;
  --text-muted: #718096;
}

/* Home Page Body & Floating Animation Background */
.home-body {
  background-color: var(--cream);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 20px;
}

/* Animated Background Blobs */
.bg-blobs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: floatBlob 10s ease-in-out infinite alternate;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background-color: var(--teal);
  top: -50px;
  right: -50px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background-color: var(--gold);
  bottom: -80px;
  left: -80px;
  animation-delay: -5s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

/* Entrance Fade In Animation */
.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* Logo & Header Animations */
.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(54, 195, 193, 0.3);
  background-color: var(--cream);
  border: 3px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pulse-logo {
  animation: pulseLogo 3s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(54, 195, 193, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(54, 195, 193, 0); }
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.profile-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Linktree Nav Buttons with Interactive Motion */
.linktree-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.link-btn .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.link-btn .arrow-icon {
  font-size: 12px;
  color: #CBD5E0;
  transition: transform 0.3s ease;
}

.link-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(54, 195, 193, 0.2);
  border-color: var(--teal);
  background: #ffffff;
}

.link-btn:hover .arrow-icon {
  transform: translateX(-4px);
  color: var(--teal);
}

/* Button specific brand hovers */
.fb-btn:hover .icon-box { background-color: #1877f2; color: white; }
.ig-btn:hover .icon-box { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.wa-btn:hover .icon-box { background-color: #25d366; color: white; }

.products-page-btn {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border-color: transparent;
}
.products-page-btn .icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.products-page-btn .arrow-icon {
  color: rgba(255, 255, 255, 0.6);
}
.products-page-btn:hover {
  background: linear-gradient(135deg, var(--teal-dark), #248c8a);
  color: white;
}

/* ================= PRODUCTS PAGE STYLING ================= */
.products-body {
  background-color: var(--cream);
  color: var(--text-main);
  min-height: 100vh;
  padding: 20px 15px;
}

.store-container {
  max-width: 1000px;
  margin: 0 auto;
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--cream-dark);
}

.back-home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.back-home-btn:hover {
  background: var(--teal);
  color: white;
}

.store-title-area h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  text-align: right;
}

.store-title-area p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Animated Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cream-dark);
  opacity: 0;
  animation: cardFadeIn 0.6s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(54, 195, 193, 0.15);
  border-color: var(--teal);
}

.img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 12px;
}

.product-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.product-info .description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  border-top: 1px solid var(--cream-dark);
  padding-top: 12px;
}

.price {
  font-size: 17px;
  font-weight: 800;
  color: var(--teal);
}

.order-btn {
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.2);
}

.order-btn:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* Responsive Tablet & Desktop Grid */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer */
footer {
  text-align: center;
  margin-top: 35px;
  font-size: 13px;
  color: #718096;
  padding-bottom: 20px;
}

footer .dev-credit {
  margin-top: 5px;
}

footer .dev-credit a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

footer .dev-credit a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
