/* =====================================================
   LAYOUT — Header + Footer + Page Structure
   DABYHA Theme v2.1 — FIXED ICONS
   ===================================================== */

/* ===== Page Wrapper ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main {
  flex: 1;
}

/* ===== Header Sticky Wrapper ===== */
.header-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ece8e2;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ===== Header Row Top ===== */
.header-row-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem 0;
}

/* ===== Logo ===== */
.site-logo img {
  height: 58px !important;
  width: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* ===== Search Bar ===== */
.header-search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 auto;
}
.header-search-bar form {
  display: flex;
  align-items: center;
  background: #f7f4f0;
  border: 1.5px solid #e8e3db;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.header-search-bar form:focus-within {
  border-color: var(--red, #770404);
  box-shadow: 0 0 0 3px hsl(358 60% 30% / .1);
  background: #fff;
}
.search-icon {
  width: 16px !important;
  height: 16px !important;
  margin: 0 .6rem 0 .85rem !important;
  color: #9ca3af;
  flex-shrink: 0;
}
.header-search-bar input[type="search"] {
  flex: 1;
  height: 42px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font);
  color: #1a1a1a;
  outline: none;
  padding: 0;
}
.header-search-bar input::placeholder { color: #b0a99f; }
.search-submit-btn {
  height: 42px;
  padding: 0 1.1rem;
  background: var(--red, #770404);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-submit-btn:hover { background: hsl(0,62%,43%); }

/* ===== Header Actions ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.action-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: #2a2a2a;
  transition: color .2s;
  padding: .25rem;
}
.action-cart svg {
  width: 24px !important;
  height: 24px !important;
}
.action-cart:hover { color: var(--red, #770404); }

.cart-count {
  position: absolute;
  top: -5px;
  left: -5px;
  background: var(--red, #770404);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: transparent;
  color: #5a5a5a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: .35rem .65rem;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .2s, color .2s;
}
.lang-btn svg {
  width: 14px !important;
  height: 14px !important;
}
.lang-btn:hover {
  border-color: var(--red, #770404);
  color: var(--red, #770404);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1.5px solid #ece8e2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 130px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
  z-index: 50;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .6rem 1rem;
  font-size: 13px;
  font-weight: 600;
  color: #2a2a2a;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
  text-align: right;
  direction: rtl;
}
.lang-dropdown button:hover { background: #f7f4f0; }
.lang-dropdown button.active { color: var(--red, #770404); font-weight: 800; }

/* ===== Login Button ===== */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #1e1e1e;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: .55rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
  transition: background .2s, transform .15s;
  letter-spacing: .2px;
}
.btn-login svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
}
.btn-login:hover {
  background: var(--red, #770404);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ===== Main Navigation (Desktop) ===== */
.main-nav {
  border-top: 1px solid #f0ece6;
  display: flex;
  justify-content: center;
}
.main-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 46px;
  max-width: 500px;
  width: 100%;
}
.main-nav-list a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 1.25rem;
  font-size: 14px;
  font-weight: 800;
  color: #2a2a2a;
  text-decoration: none;
  font-family: var(--font);
  letter-spacing: .2px;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.main-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  background: var(--red, #770404);
  border-radius: 3px 3px 0 0;
  transition: width .25s ease;
}
.main-nav-list a:hover { color: var(--red, #770404); }
.main-nav-list a:hover::after { width: 60%; }
.main-nav-list a.active { color: var(--red, #770404); }
.main-nav-list a.active::after { width: 60%; }

/* ===== Mobile Bar ===== */
.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.mob-logo img {
  height: 42px !important;
  width: auto !important;
}
.mob-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.mob-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #2a2a2a;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mob-btn:hover {
  background: #f0ece6;
  color: var(--red, #770404);
}
.mob-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.mob-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #2a2a2a;
  transition: color .2s;
}
.mob-cart svg {
  width: 22px !important;
  height: 22px !important;
}
.mob-cart:hover { color: var(--red, #770404); }
.mob-cart .cart-count { top: 3px; left: 3px; }

/* ===== Mobile Search Bar ===== */
.mob-search-bar {
  display: none;
  padding: .6rem 0 .8rem;
  border-top: 1px solid #f0ece6;
}
.mob-search-bar.open { display: block; }
.mob-search-bar form {
  display: flex;
  align-items: center;
  background: #f7f4f0;
  border: 1.5px solid #e8e3db;
  border-radius: 10px;
  overflow: hidden;
}
.mob-search-bar svg:first-child {
  width: 15px;
  height: 15px;
  margin: 0 .5rem 0 .75rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.mob-search-bar input[type="search"] {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  padding: 0;
}
.mob-search-bar button[type="submit"] {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red, #770404);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.mob-search-bar button svg { width: 16px; height: 16px; color: #fff; }
.mob-search-bar input[type="hidden"] { display: none; }

/* ===== Mobile Drawer ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  height: 100%;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.32,.72,0,1);
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
}
.mobile-drawer.open { right: 0; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0ece6;
}
.drawer-head img { height: 36px; }
.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: #f7f4f0;
  color: #5a5a5a;
  cursor: pointer;
  transition: background .2s;
}
.drawer-close-btn:hover { background: #fee2e2; color: #ef4444; }
.drawer-close-btn svg { width: 16px; height: 16px; }

.drawer-nav-links {
  flex: 1;
  padding: .5rem 0;
}
.drawer-nav-links a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.25rem;
  font-size: 15px;
  font-weight: 700;
  color: #2a2a2a;
  text-decoration: none;
  border-bottom: 1px solid #f7f4f0;
  font-family: var(--font);
  transition: background .15s, color .15s;
}
.drawer-nav-links a:last-child { border-bottom: none; }
.drawer-nav-links a svg { width: 18px; height: 18px; color: #b0a99f; flex-shrink: 0; }
.drawer-nav-links a:hover {
  background: #fdf8f4;
  color: var(--red, #770404);
}
.drawer-nav-links a:hover svg { color: var(--red, #770404); }

.drawer-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0ece6;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.drawer-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #1e1e1e;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: .75rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font);
  transition: background .2s;
}
.drawer-login-btn svg { width: 17px; height: 17px; }
.drawer-login-btn:hover { background: var(--red, #770404); color: #fff !important; }

.drawer-lang-btns {
  display: flex;
  gap: .5rem;
}
.drawer-lang-btns button {
  flex: 1;
  padding: .55rem;
  border: 1.5px solid #e8e3db;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #5a5a5a;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.drawer-lang-btns button.active,
.drawer-lang-btns button:hover {
  background: var(--red, #770404);
  color: #fff;
  border-color: var(--red, #770404);
}

/* ===== Hide/show helpers ===== */
.hide-mobile { display: flex; }
.show-mobile { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: flex !important; }
}

/* ===== Footer ===== */
.site-footer {
  font-family: var(--font);
  background: var(--bg-dark, #1E0E06);
  color: rgba(255,255,255,.65);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-main {
  padding: 72px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-main .footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand-msg {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  line-height: 1.85;
  margin: 20px 0 28px;
  max-width: 240px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .22s, color .22s, transform .22s;
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { color: #fff; transform: translateY(-3px); }
.social-fb:hover { background: #1877f2; }
.social-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tt:hover { background: #111; }
.social-yt:hover { background: #ff0000; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red, #770404);
  display: inline-block;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .18s, padding-right .18s;
  display: inline-block;
}
.footer-links a:hover {
  color: #fff;
  padding-right: 6px;
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
}
.contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(119,4,4,.28);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: -1px;
}
.contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold, #C7A56A);
}
.footer-contact a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .18s;
}
.footer-contact a:hover { color: #fff; }

.footer-trust {
  padding: 20px 0;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-trust .footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.58);
  padding: 6px 24px;
  white-space: nowrap;
}
.footer-trust-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold, #C7A56A);
}
.footer-trust-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 18px 0;
  background: rgba(0,0,0,.3);
}
.footer-bottom .footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.32);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-bottom-inner strong {
  color: rgba(255,255,255,.58);
  font-weight: 700;
}
.footer-bottom-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: inline-block;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 90;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: background .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1ebe5c;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float span { display: none; }
@media (min-width: 640px) {
  .whatsapp-float span { display: inline; }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--text, #343433);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  z-index: 999;
  max-width: 320px;
  line-height: 1.5;
  animation: fadeUp .3s ease;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.toast.success { background: #6B8E5F; }
.toast.error { background: #C24A3E; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Footer ===== */
@media (max-width: 1024px) {
  .footer-main .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .footer-brand-msg { margin: 0; }
}
@media (max-width: 680px) {
  .footer-main { padding: 52px 0 44px; }
  .footer-container { padding: 0 20px; }
  .footer-main .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 28px;
  }
  .footer-brand-msg { text-align: center; max-width: 280px; }
  .footer-col { text-align: center; }
  .footer-col-title { display: block; border-bottom: none; padding-bottom: 0; }
  .footer-col-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--red, #770404);
    margin: 8px auto 0;
    border-radius: 2px;
  }
  .footer-links { align-items: center; }
  .footer-links a:hover { padding-right: 0; }
  .footer-contact li { justify-content: center; }
  .footer-trust-item { padding: 5px 12px; font-size: 11px; }
  .footer-trust-sep { height: 14px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; }
  .footer-bottom-dot { display: none; }
}
@media (max-width: 400px) {
  .footer-trust-sep { display: none; }
}