/* ============================================
   Ensar Oud - Static Site Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #333333;
  --primary-hover: #4F4F4F;
  --accent: #007565;
  --text: #000000;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f8f8;
  --border: #e5e5e5;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --font-title: 'Federo', serif;
  --font-body: 'Lato', sans-serif;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   Top Banner
   ============================================ */
.top-banner {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
  position: relative;
}

.top-banner .container {
  position: relative;
}

.top-banner p {
  margin: 0;
  color: var(--text-light);
}

.top-banner strong {
  color: var(--text);
}

.banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.banner-close:hover {
  color: var(--text);
}

.top-banner.hidden {
  display: none;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 28px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-menu > li > a:hover {
  color: var(--accent);
}

.nav-menu .arrow {
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.6;
}

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--accent);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  position: relative;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 2;
}

.slide-content h2 {
  font-family: var(--font-title);
  font-size: 48px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.slide-content .btn {
  background: #fff;
  color: var(--text);
}

.slide-content .btn:hover {
  background: var(--primary);
  color: #fff;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: #fff;
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dots .dot.active {
  background: #fff;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
  font-family: var(--font-title);
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

/* ============================================
   Featured Fragrances
   ============================================ */
.featured-section {
  padding: 80px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  text-align: center;
}

.product-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-light);
}

.product-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.wishlist-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
}

.product-card:hover .wishlist-btn {
  opacity: 1;
}

.wishlist-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.wishlist-btn.added {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  opacity: 1;
}

.product-card h3 {
  font-family: var(--font-title);
  font-size: 20px;
  margin-bottom: 10px;
}

.product-card h3 a:hover {
  color: var(--accent);
}

.product-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Why Ensar Oud
   ============================================ */
.why-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-item {
  margin-bottom: 40px;
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-item h3 {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 16px;
}

.why-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.why-image img {
  width: 100%;
  border-radius: 4px;
}

/* ============================================
   About Ensar Oud
   ============================================ */
.about-section {
  padding: 80px 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-light);
  text-align: center;
}

.trustpilot-widget {
  display: inline-block;
  padding: 30px 50px;
  background: var(--bg);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.trustpilot-widget a {
  display: block;
}

.tp-stars {
  color: #00b67a;
  font-size: 24px;
  letter-spacing: 2px;
}

.tp-text {
  font-size: 20px;
  font-weight: 700;
  margin-left: 10px;
  color: var(--text);
}

.tp-rating {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.tp-rating strong {
  color: var(--text);
}

/* ============================================
   Articles
   ============================================ */
.articles-section {
  padding: 80px 0;
  background: var(--bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--bg);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 16px;
}

.article-meta {
  padding: 0 4px;
}

.cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-card h3 {
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.4;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

/* ============================================
   Categories & On Sale
   ============================================ */
.categories-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.category-block {
  text-align: center;
}

.category-block .section-title {
  margin-bottom: 30px;
}

.cat-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cat-link {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.cat-link:hover {
  background: var(--primary);
  color: #fff;
}

.on-sale p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 15px;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter-section {
  padding: 80px 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.newsletter-section h2 {
  font-family: var(--font-title);
  font-size: 32px;
  margin-bottom: 12px;
}

.newsletter-section p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 14px;
  font-family: var(--font-body);
}

.newsletter-form input:focus {
  outline: 2px solid var(--accent);
}

.newsletter-form .btn {
  background: #fff;
  color: var(--text);
}

.newsletter-form .btn:hover {
  background: var(--bg-light);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-family: var(--font-title);
  font-size: 20px;
  margin-bottom: 24px;
}

.trustpilot-small a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-light);
  border-radius: 4px;
}

.trustpilot-small .tp-stars {
  font-size: 18px;
}

.footer-articles,
.footer-links {
  list-style: none;
}

.footer-articles li,
.footer-links li {
  margin-bottom: 12px;
}

.footer-articles a,
.footer-links a {
  font-size: 14px;
  color: var(--text-light);
}

.footer-articles a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.footer-articles .date {
  display: inline-block;
  min-width: 56px;
  font-size: 12px;
  color: var(--text-light);
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.payment-icon {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.copyright {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.recaptcha {
  font-size: 12px;
  color: var(--text-light);
}

.recaptcha a {
  text-decoration: underline;
}

.recaptcha a:hover {
  color: var(--accent);
}

/* ============================================
   Modals
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--font-body);
  margin-bottom: 16px;
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal .btn {
  width: 100%;
}

.modal-text {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.modal-text a {
  text-decoration: underline;
  color: var(--text);
}

.modal-text a:hover {
  color: var(--accent);
}

.cart-empty {
  text-align: center;
  padding: 30px 0;
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 14px 32px;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide-content h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-inner {
    height: 70px;
  }
  .logo img {
    height: 40px;
  }
  .slide-content {
    bottom: 30px;
    left: 30px;
  }
  .slide-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .why-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .why-image {
    order: -1;
  }
  .about-image {
    order: 1;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured-section,
  .why-section,
  .about-section,
  .testimonials-section,
  .articles-section,
  .categories-section,
  .newsletter-section {
    padding: 50px 0;
  }
  .modal {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .slide-content {
    left: 20px;
    bottom: 20px;
  }
  .slide-content h2 {
    font-size: 20px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .section-title {
    font-size: 24px;
  }
}
