* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fdfaf7;
  color: #2d1e12;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================
   Header
======================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(253, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid #f0e6e0;
  padding: 18px 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: #5d3a1f;
  text-decoration: none;
  font-weight: 700;
}

.logo span {
  color: #c89f8c;
}

.nav a {
  margin-left: 2.2rem;
  text-decoration: none;
  color: #4a3326;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: #c89f8c;
}

.cart-icon {
  font-size: 1.4rem;
  position: relative;
  text-decoration: none;
  color: #5d3a1f;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #c89f8c;
  color: white;
  font-size: 0.68rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo container helps with alignment */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;   /* centers if needed */
}

/* The image itself */
.logo img {
  height: 52px;           /* ← adjust this to your preferred size */
  width: 52px;            /* same value as height → forces square */
  object-fit: cover;      /* crops if not perfectly square */
  border-radius: 50%;     /* makes it fully round */
  display: block;
}

.logo img:hover {
  transform: scale(1.06);
}

/* Optional: make it a bit smaller on mobile */
@media (max-width: 768px) {
  .logo img {
   height: 52px;              /* ← tune this value */
  width: 52px;
  }
}

/* ========================
   Hero
======================== */
.hero {
  padding: 10px 0 160px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.4rem;
  line-height: 1.08;
  color: #3f2a1e;
  margin-bottom: 1.4rem;
}

h1 span {
  color: #c89f8c;
  display: block;
}

.hero-subtitle {
  font-size: 1.38rem;
  color: #6b5547;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #c89f8c;
  color: white;
}

.btn-primary:hover {
  background: #b58872;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #c89f8c;
  color: #c89f8c;
  margin-left: 16px;
}

.btn-outline:hover {
  background: #c89f8c;
  color: white;
}

.trust-badges {
  display: flex;
  gap: 28px;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: #7a6155;
}

.trust-badges div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-products {
  position: relative;
  height: 520px;                /* adjust based on your hero height */
  width: 100%;
  perspective: 1200px;          /* gives nice 3D depth to rotations */
}

.mockup {
  position: absolute;
  width: 260px;                 /* base size – adjust as needed */
  max-width: 90%;               /* responsive safety */
  border-radius: 16px;
  box-shadow: 0 20px 50px -15px rgba(200, 159, 140, 0.35);
  border: 12px solid white;
  object-fit: cover;
  transition: all 0.6s ease;
  animation: float-rotate 18s infinite ease-in-out;  /* main animation */
  backface-visibility: hidden;  /* smoother rotation */
}

/* Different starting positions + slight delays & variations for natural feel */
.mockup-1 {
  top: 10%;
  left: 5%;
  transform: rotate(-8deg);
  animation-delay: 0s;
  animation-duration: 22s;      /* different speeds = organic movement */
}

.mockup-2 {
  top: 35%;
  left: 40%;
  transform: rotate(6deg);
  animation-delay: -5s;
  animation-duration: 26s;
  z-index: 2;
}

.mockup-3 {
  top: 60%;
  left: 15%;
  transform: rotate(-4deg);
  animation-delay: -10s;
  animation-duration: 20s;
}

/* The rotating + floating animation */
@keyframes float-rotate {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(60px, -50px) rotate(8deg);
  }
  50% {
    transform: translate(-40px, 80px) rotate(-6deg);
  }
  75% {
    transform: translate(80px, -70px) rotate(10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Optional: Pause animation on hover (better UX) */
.mockup:hover {
  animation-play-state: paused;
  transform: scale(1.08) !important;  /* slight zoom on hover */
  box-shadow: 0 30px 70px -20px rgba(200, 159, 140, 0.45);
  z-index: 10;
}

/* Mobile adjustments – reduce movement & size */
@media (max-width: 1024px) {
  .floating-products {
    height: 400px;
  }
  .mockup {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .hero-right {
    display: none;              /* hide on small screens if too crowded */
    /* OR: make them stack vertically with less animation */
  }
}

/* ========================
   Categories
======================== */
.categories {
  padding: 0px 0;
  background: #fff8f4;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 3.5rem;
  color: #3f2a1e;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.category-card {
  height: 260px;                    /* or whatever height you want */
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;                    /* ← important */
  align-items: center;              /* vertical center */
  justify-content: center;          /* horizontal center */
  color: white;
  font-weight: 700;
  font-size: 1.9rem;                /* ← big text size – adjust freely */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;                    /* breathing room around text */
}

.category-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* Overlay – full card coverage, strong but not pitch black */
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;             /* clicks go through to the <a> */
  transition: background 0.4s ease;
}

/* Optional: darken on hover for better contrast */
.category-card:hover .category-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

/* Make sure text is above overlay and centered */
.category-card span {
  position: relative;               /* above overlay */
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7); /* better readability */
  line-height: 1.2;
}

/* You should replace with real category background images */
.category-card:nth-child(1) { background-image: url('images/daily-products.jpg'); }
.category-card:nth-child(2) { background-image: url('images/digital-products.jpg'); }
.category-card:nth-child(3) { background-image: url('images/e-books.jpg'); }
.category-card:nth-child(4) { background-image: url('images/gifts.jpg'); }


/* ========================
   Products
======================== */
.bestsellers {
  padding: 50px 0;
}

.section-lead {
  text-align: center;
  color: #6b5547;
  font-size: 1.24rem;
  margin-bottom: 3.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.product-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c89f8c;
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge.new {
  background: #8aa07c;
}

.product-info {
  padding: 20px 24px;
  position: relative;           /* helps with positioning if needed later */
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.38rem;
  margin-bottom: 8px;
  color: #3f2a1e;
  font-weight: 600;             /* slightly bolder for link feel */
  line-height: 1.3;
}

.product-info h3 a {
  color: inherit;               /* keeps original color */
  text-decoration: none;        /* clean look – no underline by default */
  display: block;               /* makes entire title area clickable */
  transition: color 0.2s ease;
}

.product-info h3 a:hover,
.product-info h3 a:focus {
  color: #c89f8c;               /* matches your accent color on hover */
  text-decoration: underline;   /* subtle feedback – optional, remove if unwanted */
}

.price {
  font-weight: 600;
  color: #c89f8c;
  font-size: 1.32rem;
  margin: 8px 0 16px;
}

.btn-add {
  width: 100%;
  padding: 14px;
  background: #f8f0eb;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  color: #5d3a1f;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-add:hover {
  background: #c89f8c;
  color: white;
}
/* ========================
   CTA & Footer
======================== */
.cta-section {
  background: #3f2a1e;
  color: white;
  text-align: center;
  padding: 140px 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1.2rem;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

footer {
  background: #2a1c14;
  color: #c9ada0;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
}

footer h4 {
  color: white;
  margin-bottom: 1.4rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
}

footer ul {
  list-style: none;
}

footer a {
  color: #c9ada0;
  text-decoration: none;
  line-height: 2.2;
  transition: color 0.2s;
}

footer a:hover {
  color: #e8d5c5;
}

.footer-form {
  display: flex;
  margin-top: 16px;
}

.footer-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.footer-form button {
  padding: 0 24px;
  border: none;
  background: #c89f8c;
  color: white;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
}

.copyright {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #3f2a1e;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Background blobs */
.background-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.blob-1 { width: 600px; height: 600px; background: #f5d0c5; top: -20%; left: -15%; animation: float 22s infinite; }
.blob-2 { width: 480px; height: 480px; background: #d8c3bc; bottom: -10%; right: -10%; animation: float 28s infinite reverse; }
.blob-3 { width: 700px; height: 700px; background: #ffe8e0; top: 40%; left: 60%; animation: float 34s infinite; }

@keyframes float {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(120px, -80px) rotate(10deg); }
  50% { transform: translate(-60px, 140px) rotate(-5deg); }
  75% { transform: translate(80px, -120px) rotate(8deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-right { display: none; }
  .hero { padding: 100px 0 120px; }
  h1 { font-size: 3.6rem; }
}

@media (max-width: 768px) {
  .header-flex { flex-wrap: wrap; gap: 16px; }
  .nav { margin: 16px 0; width: 100%; text-align: center; }
  .nav a { margin: 0 16px; }
  h2 { font-size: 2.6rem; }
  .btn-outline { margin: 16px 0 0; display: block; }
}