
:root {
  --cream: #fff8f3;
  --white: #fffdfb;
  --wine: #713542;
  --dark: #49232d;
  --rose: #bd8587;
  --gold: #b99569;
  --text: #432b30;
  --muted: #876e70;
  --shadow: 0 12px 35px rgba(92, 48, 57, .10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Vazirmatn", sans-serif;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(255,248,243,.87), rgba(255,248,243,.91)),
    url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?w=1800");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.8;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* نوار اطلاع‌رسانی */

.announcement {
  min-height: 36px;
  padding: 7px 12px;
  text-align: center;
  color: white;
  background: linear-gradient(90deg, #713542, #914d5b, #713542);
  font-size: 12px;
}

.announcement span {
  color: #e8c99e;
  margin: 0 8px;
}

/* هدر */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,250,246,.96);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(185,149,105,.25);
}

.header-inner {
  width: min(1250px, 100%);
  min-height: 88px;
  margin: auto;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

.nav a {
  font-size: 13px;
  color: var(--dark);
  transition: .25s;
}

.nav a:hover {
  color: var(--gold);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--wine);
  flex-shrink: 0;
}

.logo-main {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
}

.logo-sub {
  font-family: "Playfair Display", serif;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 2px;
}

/* آیکون‌های هدر */

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 48px;
  padding: 5px 3px;
  border: none;
  background: transparent;
  color: var(--wine);
  font-family: inherit;
  transition: .25s;
}

.header-action svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
}

.header-action span:not(.cart-count) {
  font-size: 10px;
  color: var(--dark);
  white-space: nowrap;
}

.header-action:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -3px;
  right: 12px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--wine);
  color: white;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--wine);
  font-size: 25px;
}

/* بنر اصلی */

.hero {
  width: min(1400px, 100%);
  min-height: 510px;
  margin: auto;
  padding: 60px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(255,242,235,.9), rgba(255,249,244,.55));
}

.hero-content {
  flex: 1;
  max-width: 540px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-eyebrow {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(35px, 5vw, 58px);
  line-height: 1.6;
  color: var(--dark);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: #a45e69;
}

.hero-content p {
  margin: 15px 0 28px;
  line-height: 2.2;
  color: #74555b;
  font-size: 14px;
}

.main-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #713542, #995563);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 14px 28px;
  font-size: 13px;
  transition: .3s;
}

.main-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-signature {
  margin-top: 35px;
  color: var(--wine);
  font-family: "Playfair Display", serif;
  font-size: 24px;
  letter-spacing: 2px;
}

.hero-image {
  flex: 1;
  max-width: 480px;
  height: 390px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 48% 48% 5px 5px;
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(185,149,105,.7);
  border-radius: 48% 48% 5px 5px;
}

.hero-decoration {
  position: absolute;
  bottom: -50px;
  right: 3%;
  font-size: 180px;
  color: rgba(189,133,135,.12);
}

/* مزایای فروشگاه */

.etalian-features {
  width: min(1050px, calc(100% - 30px));
  margin: 25px auto 0;
  padding: 20px 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(255,251,247,.94);
  border: 1px solid rgba(185,149,105,.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.etalian-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px;
  border-left: 1px solid rgba(113,53,66,.13);
}

.etalian-feature:last-child {
  border-left: none;
}

.etalian-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  margin-bottom: 3px;
  transition: .3s;
}

.etalian-feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.etalian-feature:hover .etalian-feature-icon {
  color: var(--gold);
  transform: translateY(-3px);
}

.etalian-feature strong {
  color: var(--dark);
  font-size: 12px;
}

.etalian-feature small {
  color: var(--muted);
  font-size: 10px;
}

/* بخش‌های عمومی */

.section {
  width: min(1250px, 100%);
  margin: auto;
  padding: 85px 25px;
}

.section-heading {
  text-align: center;
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: 28px;
  color: var(--wine);
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 13px;
  color: var(--muted);
}

/* دسته‌بندی‌ها */

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  height: 245px;
  overflow: hidden;
  border-radius: 9px;
  position: relative;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
  background: linear-gradient(transparent 30%, rgba(52,23,31,.78));
}

.category-overlay h3 {
  font-size: 19px;
  margin-bottom: 5px;
}

.category-overlay span {
  font-size: 11px;
}

/* محصولات */

.products-section {
  background: rgba(255,248,243,.76);
  border-radius: 16px;
}

.product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  border: 1px solid rgba(113,53,66,.25);
  background: rgba(255,253,251,.9);
  color: var(--wine);
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 12px;
  transition: .3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--wine);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: rgba(255,253,251,.97);
  border: 1px solid rgba(185,149,105,.2);
  border-radius: 9px;
  overflow: hidden;
  transition: .3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-image {
  height: 280px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--wine);
  color: white;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 10px;
}

.product-badge.bestseller {
  background: #b88a50;
}

.quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  border: none;
  background: rgba(113,53,66,.95);
  color: white;
  padding: 11px;
  font-size: 12px;
  border-radius: 5px;
  opacity: 0;
  transform: translateY(10px);
  transition: .3s;
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: 16px 10px;
  text-align: center;
}

.product-info h3 {
  font-size: 13px;
  margin-bottom: 9px;
}

.product-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--wine);
}

.outline-btn {
  display: block;
  width: fit-content;
  margin: 35px auto 0;
  border: 1px solid var(--wine);
  padding: 12px 28px;
  color: var(--wine);
  font-size: 13px;
  transition: .3s;
}

.outline-btn:hover {
  background: var(--wine);
  color: white;
}

/* درباره ما و ارسال */

.about-section {
  width: min(1150px, calc(100% - 30px));
  margin: 35px auto;
  padding: 60px 35px;
  display: flex;
  align-items: center;
  gap: 55px;
  background: rgba(255,249,245,.92);
  border: 1px solid rgba(185,149,105,.25);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.about-image {
  flex: 1;
  min-width: 0;
  height: 370px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.about-content {
  flex: 1;
  min-width: 0;
}

.about-content h2 {
  font-size: 30px;
  color: var(--wine);
  margin-bottom: 18px;
}

.about-content h2 span {
  font-family: "Playfair Display", serif;
}

.about-content p {
  line-height: 2.4;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.about-content h3 {
  color: var(--wine);
  margin-bottom: 12px;
  font-size: 17px;
}

.about-content ul {
  padding-right: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.5;
  margin-bottom: 18px;
}

/* خبرنامه */

.newsletter {
  width: min(1100px, calc(100% - 30px));
  margin: 75px auto;
  padding: 60px 20px;
  text-align: center;
  background: rgba(240,218,210,.88);
  border: 1px solid rgba(185,149,105,.2);
  border-radius: 12px;
}

.newsletter h2 {
  color: var(--wine);
  font-size: 25px;
  margin-bottom: 12px;
}

.newsletter p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}

.newsletter form {
  display: flex;
  width: min(420px, 100%);
  margin: auto;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(113,53,66,.2);
  border-radius: 0 5px 5px 0;
  outline: none;
  background: white;
}

.newsletter button {
  padding: 0 25px;
  background: var(--wine);
  color: white;
  border: none;
  border-radius: 5px 0 0 5px;
}

/* فوتر */

.footer {
  background: linear-gradient(120deg, #61303c, #7d4350);
  color: #fff8f1;
  padding: 65px 7% 20px;
}

.footer-content {
  width: min(1200px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-logo {
  color: #fff2e8;
  align-items: flex-start;
}

.footer-brand p,
.footer-column p {
  font-size: 12px;
  line-height: 2.3;
  color: #e6cdd0;
  margin-top: 18px;
}

.footer-column h3 {
  font-size: 15px;
  margin-bottom: 20px;
  color: #f3d9b8;
}

.footer-column a {
  display: block;
  font-size: 12px;
  color: #f2dfe0;
  margin: 12px 0;
  transition: .3s;
}

.footer-column a:hover {
  color: #e8c99e;
}

/* شبکه‌های اجتماعی */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.footer-column .social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #f2dfe0;
  font-size: 12px;
  margin: 0;
}

.social-links a svg {
  width: 21px;
  height: 21px;
  color: #e8c99e;
  flex-shrink: 0;
}

.social-links a:hover {
  color: #e8c99e;
  transform: translateX(-4px);
}

/* نشان برند */

.footer-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.etalian-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 155px;
  padding: 17px 12px;
  margin: 12px 0;
  border: 1px solid rgba(185,149,105,.5);
  border-radius: 8px;
  background: rgba(255,251,247,.08);
  text-align: center;
}

.trust-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 27px;
  color: #e8c99e;
  letter-spacing: 2px;
}

.trust-brand-caption {
  font-family: "Playfair Display", serif;
  font-size: 8px;
  letter-spacing: 2px;
  color: #e8d8c6;
  margin-top: 2px;
}

.trust-brand-line {
  width: 45px;
  height: 1px;
  margin: 10px 0;
  background: #e8c99e;
}

.etalian-brand-mark small {
  color: #e8d8c6;
  font-size: 10px;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  min-height: 65px;
  padding: 10px;
  border: 1px dashed rgba(185,149,105,.6);
  border-radius: 8px;
  color: #e8d8c6;
  font-size: 10px;
  text-align: center;
  line-height: 1.9;
}

.footer-bottom {
  width: min(1200px, 100%);
  margin: 45px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #e5cdd0;
}

/* جستجو */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(40,20,25,.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.search-overlay.show {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 450px;
  background: var(--white);
  border-radius: 10px;
  padding: 35px;
  position: relative;
  box-shadow: var(--shadow);
}

.search-box h3 {
  color: var(--wine);
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 13px;
  border: 1px solid #e6d4d0;
  border-radius: 5px;
  outline: none;
  margin-bottom: 15px;
}

.search-box button#doSearch {
  background: var(--wine);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 4px;
}

.close-btn {
  border: none;
  background: transparent;
  color: var(--wine);
  font-size: 26px;
  cursor: pointer;
}

.search-box .close-btn {
  position: absolute;
  top: 12px;
  left: 15px;
}

/* سبد خرید */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(40,20,25,.45);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  z-index: 201;
  top: 0;
  left: 0;
  width: min(390px, 90%);
  height: 100%;
  background: var(--white);
  padding: 25px;
  transform: translateX(-105%);
  transition: .35s;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eadbd7;
  padding-bottom: 15px;
}

.cart-header h3 {
  font-size: 17px;
  color: var(--wine);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 13px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee1dc;
  font-size: 12px;
}

.remove-item {
  border: none;
  background: transparent;
  color: #a34b5b;
  font-size: 12px;
}

.cart-footer {
  border-top: 1px solid #eadbd7;
  padding-top: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
}

.cart-footer .main-btn {
  width: 100%;
}

/* پیام‌های سایت */

.toast {
  position: fixed;
  z-index: 400;
  bottom: 25px;
  right: 50%;
  transform: translate(50%,30px);
  background: var(--wine);
  color: white;
  padding: 13px 22px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  max-width: calc(100% - 30px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(50%,0);
}

/* تبلت */

@media (max-width: 1050px) {
  .header-inner {
    gap: 12px;
  }

  .nav {
    gap: 13px;
  }

  .nav a {
    font-size: 11px;
  }

  .header-actions {
    gap: 9px;
  }

  .footer-content {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 45px 5%;
  }

  .hero-image {
    height: 320px;
  }

  .categories {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .about-section {
    gap: 30px;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* موبایل */

@media (max-width: 650px) {
  .header-inner {
    min-height: 70px;
    padding: 9px 12px;
    gap: 7px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .logo-main {
    font-size: 29px;
  }

  .logo-sub {
    font-size: 7px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fffaf6;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 9px;
    font-size: 13px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-action {
    min-width: 38px;
    gap: 3px;
    padding: 4px 1px;
  }

  .header-action svg {
    width: 19px;
    height: 19px;
  }

  .header-action span:not(.cart-count) {
    font-size: 8px;
  }

  .cart-count {
    right: 5px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 45px 20px;
    gap: 30px;
  }

  .hero-image {
    width: 85%;
    height: 300px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-signature {
    margin-top: 22px;
  }

  .etalian-features {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-top: 15px;
    padding: 12px 5px;
    gap: 5px;
  }

  .etalian-feature {
    padding: 10px 5px;
    border-left: none;
  }

  .etalian-feature:nth-child(odd) {
    border-left: 1px solid rgba(113,53,66,.13);
  }

  .etalian-feature-icon {
    width: 30px;
    height: 30px;
  }

  .etalian-feature strong {
    font-size: 11px;
  }

  .etalian-feature small {
    font-size: 9px;
  }

  .section {
    padding: 60px 15px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .categories {
    gap: 10px;
  }

  .category-card {
    height: 190px;
  }

  .category-overlay {
    padding: 12px;
  }

  .category-overlay h3 {
    font-size: 14px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-image {
    height: 210px;
  }

  .quick-add {
    opacity: 1;
    transform: none;
    font-size: 10px;
    padding: 8px;
  }

  .product-info {
    padding: 12px 5px;
  }

  .product-info h3 {
    font-size: 11px;
  }

  .product-price {
    font-size: 10px;
  }

  .about-section {
    flex-direction: column;
    margin: 15px auto;
    padding: 25px 18px;
    gap: 25px;
  }

  .about-image {
    width: 100%;
    height: 240px;
  }

  .about-content h2 {
    font-size: 24px;
  }

  .newsletter {
    margin: 45px auto;
    padding: 45px 15px;
  }

  .newsletter h2 {
    font-size: 20px;
  }

  .newsletter button {
    padding: 0 15px;
  }

  .footer {
    padding: 45px 20px 20px;
  }

  .footer-content {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 30px 18px;
  }

  .footer-trust {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    padding: 9px 8px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-action {
    min-width: 34px;
  }

  .header-action span:not(.cart-count) {
    font-size: 7px;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 220px;
  }

  .product-image {
    height: 175px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-trust {
    align-items: center;
  }
}
