/* =========================================================
   GLOBAL THEME VARIABLES
========================================================= */
:root {
  --accent: #1f6feb;
  --accent2: #0ea5a2;
  --muted: #666;
  --bg: #f9fafb;
  --text: #222;
  --radius: 14px;
  --shadow: 0 15px 35px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 45px rgba(0,0,0,0.15);
  --max-width: 1300px;
  --gradient: linear-gradient(135deg,#1f6feb,#0ea5a2);
}

/* =========================================================
   BASE ELEMENTS
========================================================= */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* =========================================================
   HEADER / NAVIGATION (Modern Blue Grey + Monochrome)
========================================================= */
.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #ddd;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s, height .3s;
  height: 70px;
  display: flex;
  align-items: center;
}

/* subtle shadow when scrolled */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* container layout â€” remove built-in padding */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding-left: 0 !important;   /* ðŸ”¥ removes left space */
  margin-left: 0 !important;
}

/* LOGO */
.logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  position: relative;
  left: 0;
  margin-top:15px;
}

.logo img {
  height: 200px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
  margin: 0;
}

/* reduce logo on mobile */
@media (max-width: 600px) {
  .logo img {
    height: 140px;
  }
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #687E91;
  transition: width .3s;
}

.main-nav a:hover {
  color: #687E91;
}

.main-nav a:hover::after {
  width: 100%;
}

/* =========================================================
   HERO SECTION — Elegant Single Image (Responsive + Overlay)
========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;     /* text left on desktop */
  min-height: 100vh;
  padding: 5rem 8%;
  overflow: hidden;
  background: url('/assets/img/heroimg.jpg') right center no-repeat;
  background-size: cover;
  background-attachment: fixed;    /* subtle parallax feel */
  color: #fff;
}

/* === Soft Overlay for Contrast === */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.2) 80%
  );
  z-index: 0;
  opacity: 0.9;
  transition: opacity 0.8s ease;
}

.hero:hover::before {
  opacity: 0.7;
}

/* === Content Wrapper === */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: left;
  animation: fadeInUp 1.2s ease forwards;
  color: #fff;
}

/* === Headline with Ink Gradient Effect === */
.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #d0d0d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: inkFlow 6s ease infinite;
}

/* === Subtext === */
.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #eaeaea;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* === Buttons === */
.hero .btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  background: #ffffff;
  color: #111;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.hero .btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Secondary button */
.hero .btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.hero .btn.secondary:hover {
  background: #fff;
  color: #000;
}

/* === Ink Flow Animation === */
@keyframes inkFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Fade-In Animation === */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOBILE OPTIMIZATION (Centered Layout)
========================================================= */
@media (max-width: 900px) {
  .hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
    background-position: center;
    background-attachment: scroll;
  }

  .hero::before {
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-content {
    text-align: center;
    max-width: 90%;
  }

  .hero .btn {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem 0;
  }
}


/* =========================================================
   NAV TOGGLE (Hamburger) â€” Minimal Black / Grey-Blue Theme
========================================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 28px;
  gap: 6px;
  z-index: 150;
  transition: transform 0.3s ease;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Active (X) animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
  background: var(--accent);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
  background: var(--accent);
}

/* Hover effect */
.nav-toggle:hover span {
  background: var(--accent);
  transform: scaleX(1.1);
}

/* =========================================================
   NAVIGATION PANEL (Mobile)
========================================================= */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    backdrop-filter: blur(10px);
    width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 0 0 15px 15px;
    padding: 1rem 1.2rem;
    text-align: right;
    animation: slideDown 0.35s ease forwards;
    border-top: 1px solid rgba(104,126,145,0.15);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    margin: 0.8rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
  }

  .main-nav a:hover {
    color: var(--accent);
  }

  .main-nav a:hover::after {
    width: 100%;
    left: 0;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================
   CATEGORIES SECTION - MODERN CLASSIC STYLE (RESPONSIVE GRID)
========================= */
.categories {
  margin: 0;
  padding: 3rem 1.5rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
}

.categories h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid Layout */
.categories .grid {
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Category Card */
.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  background: #e6ebf1; /* subtle blue-grey */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Icon */
.cat-card .icon {
  font-size: 3.2rem;
  color: #222;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.cat-card:hover .icon {
  color: #0d1b2a; /* deep blue-grey */
}

/* Title */
.cat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
  letter-spacing: 0.5px;
}

/* =========================
   RESPONSIVENESS
========================= */

/* Tablet (2 rows Ã— 3 icons) */
@media (max-width: 992px) {
  .categories h2 {
    font-size: 1.8rem;
  }
  .categories .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .cat-card {
    padding: 1.4rem 0.9rem;
  }
  .cat-card .icon {
    font-size: 2.8rem;
  }
  .cat-card h3 {
    font-size: 0.95rem;
  }
}

/* Mobile (3 rows Ã— 2 icons) */
@media (max-width: 600px) {
  .categories {
    padding: 2rem 1rem;
  }
  .categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .categories .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .cat-card {
    padding: 1.2rem 0.8rem;
    border-radius: 14px;
  }
  .cat-card .icon {
    font-size: 2.5rem;
  }
  .cat-card h3 {
    font-size: 0.9rem;
  }
}

/* =========================
   FEATURED PRODUCTS - MODERN MONOCHROME STYLE
========================= */
.featured-products-showcase {
  padding: 4rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  background: #687E91; /* blue-grey background */
}

.featured-products-showcase h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #fff; /* white title */
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Product Thumb */
.product-thumb {
  position: relative;
  margin-bottom: 0.5rem;
}
.product-thumb img.main-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
}
.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #687E91;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* Gallery */
.thumb-gallery {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 6px;
  min-height: 40px;
}
.thumb-gallery img.thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.2s;
}
.thumb-gallery img.thumb:hover {
  transform: scale(1.1);
}
.thumb-placeholder {
  height: 36px;
}

/* Title & Price */
.product-info h3 {
  font-size: 1rem;
  margin: 0.4rem 0;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price {
  font-weight: 600;
  font-size: 0.95rem;
  color: #687E91; /* blue-grey accent for price */
  margin-top: 0.2rem;
}

/* Button */
.btn-add {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #111; /* modern black button */
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-add:hover {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.view-all {
  text-align: center;
  margin-top: 2.5rem;
}

/* Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}
.img-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
.img-modal .close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    height: auto;
  }
}

/* =========================
   WHY CHOOSE US - MODERN STYLE
========================= */
.why-us-modern {
  position: relative;
  padding: 6rem 2rem;
  background: #fff; /* white general background */
  font-family: 'Poppins', sans-serif;
}

.why-us-modern .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-us-modern h2 {
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: #111;
  font-weight: 700;
  text-align: center;
}

/* Cards wrapper */
.cards-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

/* Card Style */
.feature-card {
  background: #687E91; /* blue-grey background */
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 3rem 2rem;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.18);
}

/* Icon background circles */
.icon-bg {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.feature-card:hover .icon-bg {
  transform: scale(1.1);
}

/* Pastel icon backgrounds */
.pastel-pink { background: black; }
.pastel-yellow { background: black; }
.pastel-blue { background: black; }

/* Text */
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff; /* white for contrast */
}

.feature-card p {
  font-size: 1rem;
  color: #f1f1f1; /* lighter white/grey for readability */
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .cards-wrapper { justify-content: center; }
}
@media (max-width: 600px) {
  .feature-card { width: 90%; }
  .why-us-modern h2 { font-size: 2.2rem; margin-bottom: 3rem; }
}

/* =========================
   TESTIMONIALS - ASHY BLUE BACKGROUND
========================= */
.testimonials-paper {
  position: relative;
  padding: 6rem 2rem;
  background: #687E91; /* ashy blue background */
  font-family: 'Poppins', sans-serif;
  color: #fff;
  overflow: hidden;
  border-radius: 0;
}

.testimonials-paper .container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials-paper h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
  color: #fff;
  position: relative;
}

.testimonials-paper h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #fff;
  margin: 1rem auto 0;
  border-radius: 3px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.testimonial-card {
  position: relative;
  background: #fff; /* white cards on dark background */
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: rotate(var(--rotate, 0deg));
}

.testimonial-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.testimonial-card .quote-mark {
  font-size: 3rem;
  color: #687E91; /* ashy blue accent */
  position: absolute;
  top: -15px;
  left: 15px;
  opacity: 0.8;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: #222;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: #444;
}

/* Responsive grid */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Random playful tilt */
.testimonial-card:nth-child(1) { --rotate: -2deg; }
.testimonial-card:nth-child(2) { --rotate: 1.5deg; }
.testimonial-card:nth-child(3) { --rotate: -1deg; }

/* =========================
   NEWSLETTER - MODERN MONOCHROME (Blue Grey)
========================= */
.newsletter-modern {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: #fff;
  color: #111;
  border-radius: 0;
}

.newsletter-modern .container {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
  letter-spacing: -0.5px;
  position: relative;
}

.newsletter-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #111;
  margin: 1rem auto 0;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.newsletter-content h2:hover::after {
  width: 100px;
}

.newsletter-content p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #111;
}

.newsletter-form input::placeholder {
  color: #888;
}

.newsletter-form button {
  border: none;
  padding: 1rem 2rem;
  background: black; /* Blue Grey */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #506271; /* Slightly darker blue-grey on hover */
  color: #fff;
}

/* Floating bubbles */
.floating-elements .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  background: #687E91; /* Blue Grey */
  animation: floatUpDown 10s ease-in-out infinite;
}

.floating-elements .circle:nth-child(1) {
  width: 160px; height: 160px;
  top: 5%; left: 10%;
}
.floating-elements .circle:nth-child(2) {
  width: 120px; height: 120px;
  bottom: 10%; right: 15%;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

@media (max-width: 600px) {
  .newsletter-content h2 {
    font-size: 2rem;
  }
  .newsletter-form {
    flex-direction: column;
    border-radius: 15px;
  }
  .newsletter-form input, .newsletter-form button {
    width: 100%;
  }
  .newsletter-form button {
    margin-top: 0.5rem;
    border-radius: 0 0 15px 15px;
  }
}
/* =========================================================
   CART ICON
========================================================= */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.3s ease;
}
.cart-link:hover {
  color: #ff512f;
  transform: scale(1.1);
}
.cart-icon {
  width: 26px;
  height: 26px;
}
#mini-cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
