/* =========================
   ATRIBUS MASTER STYLESHEET
   Natural • Luxury • Handmade
========================= */

/* ===== Root ===== */
:root {
  --bg: #fdfaf5;
  --bg-soft: #f6f1e8;
  --bg-card: #ffffff;
  --bg-accent: #e9e3d7;
  --text: #2f2f2f;
  --text-soft: #5f5a52;
  --heading: #4e6b3b;
  --heading-dark: #3d522e;
  --button: #5d7650;
  --button-hover: #49603f;
  --border: #ddd6ca;
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --site-width: 1200px;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #fdfaf5;
  color: var(--text);
  overflow-x: hidden;
}

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

main {
  width: 100%;
}

section {
  width: 100%;
}

a {
  color: inherit;
}

p {
  color: #4a4742;
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Georgia', serif;
  color: var(--heading);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

ul {
  padding-left: 20px;
}

/* ===== Buttons ===== */
button,
.btn,
.cta-button,
.checkout-btn {
  display: inline-block;
  background-color: var(--button);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover,
.cta-button:hover,
.checkout-btn:hover {
  background-color: var(--button-hover);
  transform: translateY(-1px);
}

button:focus,
.btn:focus,
.cta-button:focus,
.checkout-btn:focus,
a:focus {
  outline: 2px solid #8da17f;
  outline-offset: 2px;
}

/* ===== Header ===== */
.site-header {
  background-color: #e9e6dc;
  height: 189px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

nav {
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: var(--heading-dark);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a:hover {
  opacity: 0.75;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  margin-left: auto;
}

.burger div {
  width: 100%;
  height: 3px;
  background-color: var(--heading-dark);
  border-radius: 999px;
}

/* ===== Hero Sections ===== */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.hero-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.hero-img,
.img-1,
.img-2,
.img-3 {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-text-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1050px);
  text-align: center;
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(6px);
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.hero-text-overlay h1 {
  margin-bottom: 10px;
  color: var(--heading-dark);
}

.hero-text-overlay p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #3f3a34;
}

/* ===== Welcome / Intro ===== */
.welcome-message {
  text-align: center;
  background-color: var(--bg);
  color: var(--text);
}

.welcome-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 0;
}

.welcome-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.welcome-text h1 {
  margin-bottom: 14px;
}

.welcome-text p {
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
}

.intro-brand {
  background-color: var(--bg-soft);
  padding: 60px 20px;
}

.intro-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  max-width: var(--site-width);
  margin: 0 auto;
}

.intro-text {
  flex: 1 1 320px;
  text-align: center;
  max-width: 700px;
}

.intro-text h2 {
  margin-bottom: 15px;
}

.intro-text p {
  font-size: 1.05rem;
}

.intro-image {
  display: none;
}

/* ===== About ===== */
.about-section {
  background-color: var(--bg);
  padding: 60px 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: var(--site-width);
  margin: 0 auto;
}

.about-text {
  text-align: center;
  max-width: 750px;
}

.about-photo {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ===== Category Cards ===== */
.categories {
  text-align: center;
  padding: 50px 20px;
  background-color: #ffffff;
}

.category-card {
  display: inline-block;
  width: 280px;
  margin: 15px;
  padding: 15px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  vertical-align: top;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ===== Testimonials ===== */
.testimonials {
  background-color: var(--bg);
  padding: 60px 20px;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 40px;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  max-width: var(--site-width);
  margin: 0 auto;
}

.testimonial {
  background-color: var(--bg-card);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  max-width: 320px;
  flex: 1 1 280px;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 15px;
}

.testimonial span {
  display: block;
  color: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== Page Intro for Product Pages ===== */
.page-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 10px;
  text-align: center;
}

.page-intro h1 {
  margin-bottom: 12px;
}

.page-intro .lead {
  max-width: 760px;
  margin: 0 auto 14px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.page-intro .notice {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #6a655d;
}

/* ===== Benefits Strip ===== */
.soap-benefits li {
  background-color: #ffffff;
  border: 1px solid #e2ddd3;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.soap-benefits ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.soap-benefits li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--text);
  font-size: 0.94rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ===== Shop Navigation ===== */
.shop-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 34px 0 20px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.shop-nav a {
  padding: 10px 18px;
  background-color: var(--bg-accent);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.shop-nav a:hover {
  background-color: #d9d0bf;
  transform: translateY(-1px);
}

/* ===== Generic Shop Category ===== */
.shop-category {
  padding: 50px 20px;
  background-color: #fffdf8;
  border-top: 1px solid var(--border);
  max-width: 1000px;
  margin: 0 auto;
}

.shop-category h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}

/* ===== Old Product Blocks ===== */
.product {
  margin-bottom: 30px;
  padding: 22px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.product h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
}

.product select {
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #fff;
}

/* ===== Product Grid / Cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 24px 20px 30px;
}

.product-card {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.product-card h2,
.product-card h3 {
  color: var(--heading-dark);
  margin-bottom: 8px;
}

.product-card p {
  margin-bottom: 10px;
}

.product-price {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.details {
  display: none;
  text-align: left;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.details p {
  margin-bottom: 10px;
  font-size: 0.96rem;
}

/* ===== Cart ===== */
#cart {
  margin-top: 30px;
  padding: 20px;
  border-top: 2px solid var(--border);
  background: #f9f9f9;
}

.cart-section,
.cart-container {
  max-width: 900px;
  margin: 30px auto 50px;
  padding: 24px 20px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.cart-section h2,
.cart-container h2 {
  text-align: center;
  margin-bottom: 18px;
}

#cart-items,
#cartList {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

#cart-items li,
#cartList li {
  padding: 10px 0;
  border-bottom: 1px solid #eee6da;
  color: var(--text);
}

#cartList .total {
  font-weight: bold;
  margin-top: 20px;
}

/* ===== Checkout ===== */
.checkout {
  text-align: center;
  padding: 40px 20px;
  background-color: #f3efe8;
  margin: 40px auto;
  max-width: 600px;
  border-radius: var(--radius-md);
}

.checkout-section,
.checkout-form {
  max-width: 700px;
  margin: 40px auto;
  background-color: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.checkout-section h2,
.checkout-form h2 {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-section form,
.checkout-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-form label,
.contact-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--text);
}

.checkout-section input,
.checkout-section textarea,
.checkout-form input,
.checkout-form textarea,
.contact-section input,
.contact-section textarea,
.contact-section button {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc8bb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background-color: #fff;
}

.order-number {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
}

/* ===== Contact ===== */
.contact-section {
  background-color: var(--bg-card);
  padding: 40px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  max-width: 800px;
  margin: 0 auto 40px auto;
  border: 1px solid var(--border);
}

.contact-section h2 {
  margin-bottom: 15px;
  text-align: center;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-section button {
  margin-top: 10px;
}

/* ===== FAQ & Hours ===== */
.faq-section {
  background-color: var(--bg-soft);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.faq-section p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.business-hours {
  text-align: center;
  background-color: #f0ede7;
  padding: 20px;
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.business-hours p {
  margin: 5px 0;
  color: var(--text);
  font-weight: 500;
}

/* ===== Helpers ===== */
.coming-soon {
  text-align: center;
  padding: 100px 20px;
}

.coming-soon h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  font-size: 1.1rem;
}

.section-divider {
  border: 0;
  border-top: 2px solid var(--border);
  margin: 24px 0;
}

.section-banner {
  background-color: #7d9374;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 20px;
  border-radius: var(--radius-sm);
}

.pay-or {
  text-align: center;
  margin: 16px 0;
  font-weight: 600;
  color: #6b6b6b;
}

.section button,
.checkout-btn {
  width: 100%;
}

main h2 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 8px;
  color: #2f3e29;
}

main h2 + p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
  color: var(--text-soft);
  padding: 0 15px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.92rem;
  background-color: var(--bg-accent);
  color: var(--text);
  margin-top: 40px;
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 9999;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

.whatsapp-fab svg {
  width: 28px !important;
  height: 28px !important;
  fill: #fff !important;
  flex: 0 0 auto;
  display: block;
}

.whatsapp-fab svg,
.whatsapp-fab img {
  max-width: none !important;
}

/* ===== Responsive ===== */
/* ===== Card Action Buttons ===== */
.card-actions button:first-child {
  background-color: var(--button);
  color: #fff;
}

.card-actions button:last-child {
  background-color: #e9e3d7;
  color: var(--heading-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 6px 0;
  }

  .header-container {
    position: relative;
    padding: 10px 16px;
    min-height: 72px;
    align-items: center;
    gap: 12px;
  }

  .logo {
    max-width: 200px;
    width: auto;
    height: auto;
  }

  .burger {
    display: flex;
    margin-left: auto;
    z-index: 1002;
  }

  nav {
    margin-left: 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background-color: #fff;
    position: absolute;
    top: calc(100% + 6px);
    right: 16px;
    min-width: 190px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: 1001;
  }

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

  .hero-gallery {
    position: relative;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-img,
  .img-1,
  .img-2,
  .img-3 {
    height: 320px;
  }

  .img-2,
  .img-3 {
    display: none;
  }

  .hero-text-overlay {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100% - 24px);
    margin: -36px auto 0;
    padding: 20px 18px;
    border-radius: 18px;
    text-align: center;
    z-index: 3;
  }

  .hero-text-overlay h1 {
    font-size: 1.7rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero-text-overlay p {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .hero-trust {
    font-size: 0.86rem;
    line-height: 1.4;
    margin-top: 10px;
  }

  .cta-button {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 6px auto 12px;
    padding: 12px 22px;
    font-size: 1rem;
    position: relative;
    z-index: 4;
  }

  .about-photo,
  .intro-image {
    width: 100%;
    max-width: 90%;
  }

  .category-card {
    width: min(100%, 330px);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
  }

  .cart-section,
  .cart-container,
  .checkout-section,
  .checkout-form,
  .contact-section {
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 4px 0;
  }

  .header-container {
    min-height: 64px;
    padding: 10px 14px;
  }

  .logo {
    max-width: 160px;
  }

  .nav-links {
    right: 14px;
    min-width: 180px;
    padding: 14px;
  }

  .welcome-text {
    padding: 30px 16px;
  }

  .welcome-message h1,
  .welcome-text h1 {
    font-size: 1.6rem;
  }

  .hero-img,
  .img-1,
  .img-2,
  .img-3 {
    height: 280px;
  }

  .hero-text-overlay {
    width: calc(100% - 20px);
    margin-top: -28px;
    padding: 18px 14px;
  }

  .hero-text-overlay h1 {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .hero-text-overlay p {
    font-size: 0.95rem;
  }

  .hero-trust {
    font-size: 0.82rem;
  }

  .cta-button {
    width: auto;
    font-size: 0.98rem;
    padding: 12px 18px;
    margin: 4px auto 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px 28px;
  }

  .product-card {
    max-width: 100%;
  }

  .card-actions {
    gap: 12px;
    margin-top: 14px;
  }

  .card-actions button {
    padding: 14px 16px;
    border-radius: 10px;
  }

  button,
  .btn,
  .checkout-btn {
    width: 100%;
    font-size: 1rem;
  }

  .page-intro,
  .soap-benefits,
  .shop-category,
  .categories,
  .about-section,
  .intro-brand,
  .testimonials {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 380px) {
  .logo {
    max-width: 145px;
  }

  .hero-img,
  .img-1,
  .img-2,
  .img-3 {
    height: 250px;
  }

  .hero-text-overlay h1 {
    font-size: 1.2rem;
  }

  .hero-text-overlay p {
    font-size: 0.9rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 11px 16px;
  }

  .whatsapp-fab {
    width: 50px !important;
    height: 50px !important;
  }

  .whatsapp-fab svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ===== Divider ===== */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd6ca, transparent);
  margin: 25px auto;
  max-width: 600px;
}
/* Styling the select dropdowns */
select {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  padding: 10px 15px;
  margin: 5px 0;
  width: 100%;
  max-width: 250px;
  border: 2px solid #5d7650;
  border-radius: 10px;
  background-color: #fff;
  color: #4e6b3b;
  outline: none;
}

select:focus {
  border-color: #3e5632;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Ensuring the dropdown aligns within card content */
.card-actions select {
  margin-top: 15px;
}

/* Add some hover effect */
select:hover {
  background-color: #f3f3f3;
}

/* For small screens, ensure proper space between dropdown and buttons */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 20px;
  }

  select {
    width: 100%;
  }
}
/* Ensure that select dropdowns and buttons are aligned properly */
select, button {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  padding: 12px;
  margin-top: 10px;
  width: 100%; /* Make sure it stretches properly on mobile */
  max-width: 250px; /* For desktop, adjust to fit layout */
  border: 2px solid #5d7650;
  border-radius: 10px;
  background-color: #fff;
  color: #4e6b3b;
  outline: none;
}

select:focus, button:focus {
  border-color: #3e5632;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Button & select hover effects */
select:hover, button:hover {
  background-color: #f3f3f3;
}

/* For mobile devices, ensure buttons are spaced correctly */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 20px;
  }

  select, button {
    width: 100%;
  }
}
