/* Atmosfera Design System Stylesheet */
:root {
  --color-primary: #DC76AD;
  --color-bg-light: #F6F4F2;
  --color-bg-pink: #FFEFF7;
  --color-border: #CED0BB;
  --color-text: #000000;
  --color-white: #FFFFFF;
  --color-header: #F1EFEB;
  --color-shadow: rgba(0, 0, 0, 0.05);
  
  --font-title: 'Amatic SC', cursive;
  --font-text: 'Montserrat', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-text);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.4;
  overflow-x: hidden;
}

[dir="rtl"] {
  text-align: right;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: normal;
  text-transform: uppercase;
}

/* 1. Header (Centred Layout) */
header.site-header {
  background-color: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  padding: 15px 30px 10px 30px;
}

.header-top-row {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icon {
  color: var(--color-text);
  font-size: 20px;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  color: var(--color-primary);
}

.lang-selector {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.header-center {
  display: flex;
  justify-content: center;
}

.site-logo {
  height: 55px;
  display: block;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.action-icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.cart-icon-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.cart-icon-btn:hover {
  border-color: var(--color-primary);
}

.cart-amount-text {
  font-size: 12px;
  font-weight: 700;
}

.cart-badge-wrapper {
  position: relative;
}

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

/* Nav Menu Row */
nav.nav-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
  border-top: 1px solid rgba(206, 208, 187, 0.4);
  padding-top: 10px;
}

nav.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

nav.nav-menu a:hover, nav.nav-menu a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* 2. Hero Slider (Premium Fade Swiper Clone) */
.hero-slider {
  position: relative;
  height: 60vh;
  min-height: 450px;
  background-color: var(--color-white);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  padding: 30px;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-content {
  max-width: 800px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.5s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-size: 64px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-desc {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 12px 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--color-white);
  font-size: 24px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

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

[dir="rtl"] .slider-arrow.prev { left: 20px; right: auto; }
[dir="rtl"] .slider-arrow.next { right: 20px; left: auto; }

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

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

.slider-dot.active {
  background-color: var(--color-white);
  transform: scale(1.2);
}

/* 3. Category Plaid Banners (Tiles Grid) */
.categories-tiles-section {
  max-width: 1260px;
  margin: 50px auto;
  padding: 0 30px;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.tile-card {
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile-img-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.tile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.tile-card:hover .tile-img-wrapper {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(220, 118, 173, 0.15);
}

.tile-card:hover .tile-img-wrapper img {
  filter: brightness(105%);
}

.tile-card h3 {
  font-size: 26px;
  margin-top: 15px;
  transition: var(--transition);
}

.tile-card:hover h3 {
  color: var(--color-primary);
}

/* 4. Catalog Sections with Nested Tabs */
.catalog-block {
  max-width: 1260px;
  margin: 60px auto;
  padding: 0 30px;
}

.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.nested-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  padding: 5px 15px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Products Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.product-img-wrapper {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
  background-color: #f9f9f9;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.03);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.product-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 34px;
}

.product-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
}

.btn-add-cart {
  background: var(--color-white);
  border: 1px solid var(--color-text);
  padding: 8px 25px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-add-cart:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 5. Modals & Cart Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  width: 450px;
  max-width: 100%;
  background-color: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[dir="rtl"] .cart-drawer {
  transform: translateX(-100%);
}

.modal-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.cart-header h3 {
  font-size: 28px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 15px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 12px;
  margin-top: 5px;
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: red;
}

.cart-summary {
  border-top: 1px solid var(--color-border);
  padding-top: 15px;
  margin-bottom: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  font-family: var(--font-text);
  font-size: 13px;
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
}

/* Sections: About & Contacts */
.about-section {
  background-color: var(--color-bg-pink);
  padding: 60px 30px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-container, .contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2, .contact-section h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.about-section p {
  margin-bottom: 20px;
  font-size: 14px;
  color: #444;
}

.contact-section {
  padding: 60px 30px;
}

.contact-details {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: left;
}

[dir="rtl"] .contact-details {
  text-align: right;
}

.contact-card h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: #555;
}

footer.site-footer {
  background-color: var(--color-header);
  border-top: 1px solid var(--color-border);
  padding: 30px;
  text-align: center;
  font-size: 11px;
  color: #666;
}

/* Prevent phone numbers from reversing in RTL */
.phone-number {
  direction: ltr !important;
  display: inline-block !important;
}

/* Custom Language Dropdown with flags */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: none;
  border: 1px solid var(--color-border);
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lang-dropdown-btn:hover {
  border-color: var(--color-primary);
}

.lang-dropdown-btn img, .lang-opt-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  display: block;
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 100px;
}

.lang-dropdown.active .lang-dropdown-content {
  display: block;
}

.lang-opt-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

[dir="rtl"] .lang-opt-btn {
  text-align: right;
}

.lang-opt-btn:hover {
  background-color: var(--color-bg-light);
}

/* Wishlist Badge inside Header */
.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.action-icon-btn {
  position: relative;
}

/* Wishlist heart on product cards */
.btn-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  color: #ccc;
}

.btn-wishlist:hover, .btn-wishlist.active {
  color: #ff5050;
  border-color: #ff5050;
  box-shadow: 0 4px 8px rgba(255, 80, 80, 0.15);
}

/* Search Bar Overlay */
.search-overlay-bar {
  display: none;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 30px;
  position: relative;
  z-index: 99;
}

.search-overlay-bar.active {
  display: block;
}

.search-input-field {
  width: 100%;
  border: none;
  padding: 8px 15px;
  font-family: var(--font-text);
  font-size: 14px;
  outline: none;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 30px;
  right: 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 1001;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-result-item:hover {
  background-color: var(--color-bg-light);
}

.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.search-result-name {
  font-size: 13px;
  font-weight: 600;
  flex-grow: 1;
}

.search-result-price {
  font-weight: 700;
  color: var(--color-primary);
}

/* Off-Canvas contact widget */
.contact-widget-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: #25d366; /* WhatsApp Green */
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 99;
  transition: var(--transition);
}

[dir="rtl"] .contact-widget-button {
  right: auto;
  left: 30px;
}

.contact-widget-button:hover {
  transform: scale(1.08) rotate(10deg);
}

.contact-widget-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 20px;
  z-index: 1000;
  width: 250px;
  display: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

[dir="rtl"] .contact-widget-panel {
  right: auto;
  left: 30px;
}

.contact-widget-panel.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.contact-widget-panel h4 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.contact-widget-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: var(--transition);
}

.contact-widget-link.wa-link {
  background-color: #25d366;
  color: var(--color-white);
  border-color: #25d366;
}

.contact-widget-link.wa-link:hover {
  background-color: #1ebe57;
}

.contact-widget-link.phone-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .header-top-row {
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
  .header-left {
    display: none; /* Hide socials on mobile header */
  }
  .tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 50vh;
  }
  .slide-title {
    font-size: 42px;
  }
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-img-wrapper {
    width: 100px;
    height: 100px;
  }
  .tile-card h3 {
    font-size: 20px;
  }
  .cart-drawer {
    width: 100%;
  }
}
