* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("./assets/img/Cup-Of-Creamy-Coffee.png") center center/cover no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: -2;
}

.container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header {
    padding: 2.1rem 2rem;
}

ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.logo {
    transition: all 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

li a {
    color: #360707;
    text-decoration: none;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #360707;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-btn {
    background-color: #360707;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: 0.4s ease;
}

.header-btn:hover {
    background-color: #5a1a1a;
}

/* ========== HERO SECTION - FIXED ========== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding-left: 3rem;
}

.hero-content .hero-title {
    font-size: 3.2rem;
    max-width: 470px;
    line-height: 1.2;
    color: #360707;
}

.hero-btn {
    background-color: #360707;
    width: fit-content;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 1rem;
}

.hero-btn:hover {
    background-color: #5a1a1a;
    transform: scale(1.05);
}

.icon {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.Coffee-icon {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.Coffee-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.Coffee-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
  animation: zoom 3s infinite alternate;
}

@keyframes zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-image img {
    max-width: 500px;
    width: 100%;
    object-fit: contain;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #360707;
    background: none;
    border: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 20px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 100;
    gap: 1rem;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
}

.close-menu:hover {
    color: #ffd700;
}

/* Menu List Section */
.section-title {
    font-size: 3rem;
    color: #360707;
    text-align: center;
    margin: 3rem 0 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.menu-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.menu-card .card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: #f5f0eb;
}

.menu-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .card-image img {
    transform: scale(1.05);
}

.menu-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
}

.menu-card h3 {
    color: #360707;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.menu-card p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.price {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #b45f2b;
    margin-bottom: 1rem;
}

.add-btn {
    background: #360707;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: #5a1a1a;
    transform: scale(1.05);
}

/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 2rem;
    margin: 2rem 0;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 150px;
    animation: zoom 3s infinite alternate;
}

@keyframes zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #360707;
}

.submit-btn {
    background: #360707;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #5a1a1a;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1rem;
}

.textarea {
    resize: none;
}


/* footer */


/* =====================
   FOOTER - FULLY RESPONSIVE
   Logo بزرگ‌تر + ترتیب ثابت در همه دستگاه‌ها
===================== */

.footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem 1.5rem;
  border-top: 1px solid rgba(54, 7, 7, 0.15);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 30px 30px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* هر ستون فوتر */
.footer-section {
  flex: 1;
  min-width: 180px;
  text-align: left;
}

/* ستون برند (لوگو + کپی‌رایت) - همیشه اول میاد */
.footer-brand {
  order: 1;
}

.footer-section h3 {
  color: #360707;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #b45f2b;
  border-radius: 2px;
}

/* لیست لینک‌ها */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list li a {
  color: #4a1a1a;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
}

.footer-links-list li a:hover {
  color: #b45f2b;
  transform: translateX(5px);
}

/* آدرس */
.footer-section address {
  font-style: normal;
  color: #4a1a1a;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-section address p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== لوگو ========== */
.footer-logo {
  text-align: left;
  margin-bottom: 1rem;
}

.footer-logo img {
  max-width: 120px;  /* بزرگ‌تر از قبل (قبلاً 80px بود) */
  width: 100%;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.08);
}

/* کپی‌رایت */
.footer-copyright {
  font-size: 0.8rem;
  color: #6b3a3a;
  text-align: left;
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* =========================
   CART PAGE
========================= */

.cart-page {
    padding: 120px 8% 80px;
    min-height: 100vh;
}

.cart-page .section-title {
    text-align: center;
    margin-bottom: 50px;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: #fff;
    border-radius: 20px;
    padding: 20px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.cart-item-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: #777;
}

.cart-price {
    font-size: 22px;
    font-weight: 700;
    color: #603809;
}

.remove-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

.remove-btn:hover {
    transform: translateY(-2px);
}

.cart-summary {
    margin-top: 40px;

    background: white;
    padding: 30px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary h2 {
    color: #603809;
}

#clear-cart-btn {
    background: #603809;
    color: white;

    border: none;

    padding: 14px 28px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;

    transition: .3s;
}

#clear-cart-btn:hover {
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart h2 {
    color: #603809;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #777;
}

/* ========== RESPONSIVE ========== */

/* تبلت (768px - 1024px) */
@media (max-width: 1024px) {
  .footer-container {
    gap: 2rem;
    justify-content: space-between;
  }

  .footer-section {
    text-align: center;
    min-width: 160px;
  }

  .footer-brand {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links-list {
    align-items: center;
  }

  .footer-links-list li a:hover {
    transform: translateX(0) scale(1.05);
  }

  .footer-section address p {
    justify-content: center;
  }

  /* لوگو در تبلت */
  .footer-logo img {
    max-width: 130px;
  }
}

/* موبایل (تا 768px) */
@media (max-width: 768px) {
  .footer {
    margin-top: 2.5rem;
    padding: 1.8rem 0.8rem 1.2rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  .footer-brand {
    order: 1;
    width: 100%;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }

  .footer-links-list {
    align-items: center;
  }

  .footer-links-list li a {
    font-size: 1rem;
    padding: 4px 0;
  }

  .footer-section address p {
    justify-content: center;
    font-size: 0.9rem;
  }

  /* لوگو در موبایل - بزرگ‌تر */
  .footer-logo img {
    max-width: 110px;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }
}

/* موبایل خیلی کوچک (تا 480px) */
@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0.5rem 1rem;
  }

  .footer-section h3 {
    font-size: 1.15rem;
  }

  .footer-section address p {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .footer-links-list li a {
    font-size: 0.9rem;
  }

  /* لوگو در موبایل کوچک - باز هم بزرگ‌تر نسبت به محتوا */
  .footer-logo img {
    max-width: 100px;
  }

  .footer-copyright {
    font-size: 0.65rem;
  }
}

/* دسکتاپ بزرگ (بیشتر از 1200px) */
@media (min-width: 1200px) {
  .footer-logo img {
    max-width: 140px;  /* لوگو در دسکتاپ بزرگ‌ترین */
  }
}

/* ========== RESPONSIVE ========== */

/* تبلت (768px - 1024px) */
@media (max-width: 1024px) {
  .footer-container {
    gap: 2rem;
    justify-content: space-between;
  }

  .footer-section {
    text-align: center;
    min-width: 160px;
  }

  .footer-brand {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links-list {
    align-items: center;
  }

  .footer-links-list li a:hover {
    transform: translateX(0) scale(1.05);
  }

  .footer-section address p {
    justify-content: center;
  }

  /* لوگو در تبلت */
  .footer-logo img {
    max-width: 130px;
  }
}

/* موبایل (تا 768px) */
@media (max-width: 768px) {
  .footer {
    margin-top: 2.5rem;
    padding: 1.8rem 0.8rem 1.2rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  .footer-brand {
    order: 1;
    width: 100%;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }

  .footer-links-list {
    align-items: center;
  }

  .footer-links-list li a {
    font-size: 1rem;
    padding: 4px 0;
  }

  .footer-section address p {
    justify-content: center;
    font-size: 0.9rem;
  }

  /* لوگو در موبایل - بزرگ‌تر */
  .footer-logo img {
    max-width: 110px;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }
}

/* موبایل خیلی کوچک (تا 480px) */
@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0.5rem 1rem;
  }

  .footer-section h3 {
    font-size: 1.15rem;
  }

  .footer-section address p {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .footer-links-list li a {
    font-size: 0.9rem;
  }

  /* لوگو در موبایل کوچک - باز هم بزرگ‌تر نسبت به محتوا */
  .footer-logo img {
    max-width: 100px;
  }

  .footer-copyright {
    font-size: 0.65rem;
  }
}

/* دسکتاپ بزرگ (بیشتر از 1200px) */
@media (min-width: 1200px) {
  .footer-logo img {
    max-width: 140px;  /* لوگو در دسکتاپ بزرگ‌ترین */
  }
 
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        margin: 25px auto;
    }

    .hero-content {
        padding-left: 2rem;
    }

    .hero-content .hero-title {
        font-size: 2.5rem;
    }

    .hero-image img {
        max-width: 400px;
    }

    .Coffee-icon {
        width: 55px;
        height: 55px;
    }

    .Coffee-icon img {
        width: 28px;
        height: 28px;
    }
}

/* =====================
   MOBILE (max-width: 768px)
===================== */

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;
    }

    .header-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        position: absolute;
        top: 70px;
        right: 15px;
        width: 260px;
        padding: 1.8rem 1.5rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .nav-links.active li a {
        color: #360707;
        font-size: 1.1rem;
        font-weight: 500;
        display: block;
        padding: 8px 0;
        transition: 0.3s ease;
    }

    .nav-links.active li a:hover {
        color: #8b3a3a;
        transform: translateX(-5px);
    }

    .nav-links.active .nav-link::after {
        background-color: #360707;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .hero-content {
        margin: 2rem 0;
        align-items: center;
        gap: 1.5rem;
        padding-left: 0;
    }

    .hero-content .hero-title {
        font-size: 2rem;
        max-width: 300px;
        text-align: center;
    }

    .icon {
        justify-content: center;
        gap: 12px;
    }

    .Coffee-icon {
        width: 55px;
        height: 55px;
    }

    .Coffee-icon img {
        width: 28px;
        height: 28px;
    }

    .hero-image img {
        max-width: 280px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        text-align: center;
    }
}

/* =====================
   SMALL MOBILE (max-width: 480px)
===================== */

@media (max-width: 480px) {
    .container {
        width: 96%;
        margin: 10px auto;
        padding: 15px;
    }

    .nav-links.active {
        width: 230px;
        top: 65px;
        right: 10px;
        padding: 1.5rem 1.2rem;
        gap: 1.2rem;
    }

    .nav-links.active li a {
        font-size: 1rem;
    }

    .hero-content .hero-title {
        font-size: 1.6rem;
        max-width: 250px;
    }

    .hero-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .Coffee-icon {
        width: 48px;
        height: 48px;
    }

    .Coffee-icon img {
        width: 24px;
        height: 24px;
    }

    .hero-image img {
        max-width: 220px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .price {
        font-size: 1.1rem;
    }
}


html {
    scroll-behavior: smooth;
}