/* ═══════════════════════════════════════════════════════
   EVERYDAY DATES PAGE - css/everyday-dates.css
   Matches the color theme and animations from other pages
   Fully responsive for mobile, tablet, and desktop
   ═══════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    color: #2c1a0e;
    background: #F2F1EB;
}

a {
    text-decoration: none;
    color: inherit;
}

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

:root {
    --gold: #c9a84c;
    --dark-gold: #a07828;
    --dark: #2c1a0e;
    --cream: #F2F1EB;
    --brown: #8B4513;
    --dark-brown: #3d2b1f;
    --border: #e0d5c5;
    --text-gray: #666;
    --white: #fff;
}

/* ══════════════════════════════════════
   NAV (copied from home.css)
   ══════════════════════════════════════ */
nav {
      position: sticky; top: 20px; z-index: 200;
      display: flex; align-items: center; justify-content: center;
      margin: 22px auto 34px;
      width: min(1180px, calc(100% - 40px));
      min-height: 66px; padding: 0 36px;
      background: rgba(242,241,235,0.96);
      border: 1px solid #c9a84c;
      border-radius: 999px;
      box-shadow: 0 8px 32px rgba(0,0,0,.08);
      backdrop-filter: blur(10px);
    }
    .nav-left, .nav-right { display: flex; align-items: center; flex: 1; }
    .nav-left { gap: 32px; justify-content: flex-start; padding-left: 48px; }
    .nav-right { gap: 24px; justify-content: flex-end; padding-right: 48px; }
    .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .nav-logo img { height: 44px; width: auto; object-fit: contain; }
    .nav-left a, .nav-right a {
      font-family: sans-serif; font-size: 14px; font-weight: 700;
      color: var(--dark); white-space: nowrap; transition: color .2s;
    }
    .nav-left a:hover, .nav-right a:hover { color: var(--gold); }
    .nav-left a.active, .nav-right a.active { color: var(--gold); }
    .nav-icons { display: flex; gap: 14px; align-items: center; }
    .nav-icons img { width: 20px; height: 20px; object-fit: contain; cursor: pointer; }

    /* ── Dropdown ── */
    .nav-dropdown {
      position: relative;
      display: flex;
      align-items: center;
    }
    .nav-dropdown > a {
      display: flex; align-items: center; gap: 4px;
      font-family: sans-serif; font-size: 14px; font-weight: 700;
      color: var(--dark); white-space: nowrap; transition: color .2s;
      cursor: pointer;
    }
    .nav-dropdown > a::after {
      content: '▾';
      font-size: 11px;
      margin-top: 1px;
    }
    .nav-dropdown:hover > a { color: var(--gold); }
    .dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      left: 50%;
      transform: translateX(-50%);
      background: #fdf8f0;
      border: 1px solid #c9a84c;
      border-radius: 14px;
      box-shadow: 0 8px 28px rgba(0,0,0,.12);
      min-width: 200px;
      padding: 8px 0;
      z-index: 300;
      overflow: hidden;
    }
    .nav-dropdown:hover .dropdown-menu,
    .dropdown-menu:hover { display: block; }
    /* Bridge pseudo-element fills the gap so mouse can travel to menu */
    .nav-dropdown > a::before {
      content: '';
      position: absolute;
      top: 100%;
      left: -20px;
      right: -20px;
      height: 20px;
      background: transparent;
    }
    .dropdown-menu::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 0;
      right: 0;
      height: 20px;
      background: transparent;
    }
    .dropdown-menu a {
      display: block;
      padding: 11px 20px;
      font-family: sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--dark);
      transition: background .15s, color .15s;
      white-space: nowrap;
    }
    .dropdown-menu a:hover {
      background: var(--gold);
      color: #fff;
    }
    .dropdown-menu a + a {
      border-top: 1px solid #e8d9c0;
    }

/* ══════════════════════════════════════
   SHARED WRAPPER
   ══════════════════════════════════════ */
.everyday-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 44px;
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.everyday-hero {
    background: var(--cream);
    padding: 20px 0 50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-title {
    font-family: 'Georgia', serif;
    font-size: 52px;
    font-style: italic;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-desc {
    font-family: sans-serif;
    font-size: 14px;
    color: #4a3828;
    line-height: 1.75;
    margin-bottom: 16px;
    text-align: justify;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* ══════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════ */
.everyday-products-section {
    background: var(--cream);
    padding: 10px 0 60px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--dark);
    border-radius: 8px;
    padding: 9px 18px;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.sort-select {
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: sans-serif;
    background: var(--white);
    color: var(--dark);
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    border-color: var(--gold);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.product-card,
.featured-card {
    background: var(--white);
    border-radius: 14px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

/* golden line */
.product-card::before,
.featured-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* show line on hover */
.product-card:hover::before,
.featured-card:hover::before {
    transform: scaleX(1);
}

.product-card:nth-child(n) {
    animation-delay: calc(var(--i) * 0.05s);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-img-wrap {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #f8f4ee;
}

.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-name {
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.product-price {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.aed {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 400;
}

.buy-btn {
    background: var(--brown);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 20px;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.buy-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   FEATURED COLLECTION
   ══════════════════════════════════════ */
.featured-section {
    background: var(--cream);
    padding: 20px 0 60px;
}

.featured-title {
    font-family: 'Georgia', serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 36px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.featured-card {
    background: var(--white);
    border-radius: 14px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.featured-card:nth-child(n) {
    animation-delay: calc(var(--i) * 0.1s);
}

.featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-name {
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 12px;
    text-align: center;
}

.featured-img-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.featured-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-img-wrap img {
    transform: scale(1.08);
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.featured-price {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* ══════════ INFO CARDS ══════════ */
    .info-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-top: 60px;
      margin-bottom: 80px;
      max-width: 1080px;
      margin-left: auto;
      margin-right: auto;
      padding: 0 20px;
    }
    .info-card {
      background: #dfc28e;
      border-radius: 4px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: left;
    }
    .info-card img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      margin-bottom: 24px;
      border-radius: 2px;
    }
    .info-card h3 {
      font-family: sans-serif;
      font-size: 22px;
      color: #333;
      margin-bottom: 16px;
      font-weight: 700;
      text-align: center;
      width: 100%;
    }
    .info-card p {
      font-family: sans-serif;
      font-size: 13px;
      color: #444;
      line-height: 1.5;
      margin-bottom: 24px;
      flex-grow: 1;
      text-align: justify;
    }
    .info-card a {
      font-family: sans-serif;
      font-size: 13px;
      font-weight: 800;
      color: #b24a1d;
      font-style: italic;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      border-bottom: 1px solid #b24a1d;
      padding-bottom: 1px;
      align-self: center;
    }
    .info-card a:hover {
      opacity: 0.8;
    }

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ══════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════ */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image {
        order: -1;
    }

    .products-grid,
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-banner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-banner-grid .center-card {
        grid-column: span 2;
    }
}

/* Small Tablets (768px and below) */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-left {
        padding-left: 20px;
        gap: 18px;
    }

    .nav-right {
        padding-right: 20px;
        gap: 14px;
    }

    .everyday-wrap {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .products-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .featured-title {
        font-size: 34px;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .filter-left,
    .filter-right {
        width: 100%;
        justify-content: space-between;
    }

    .info-banner-grid {
        grid-template-columns: 1fr;
    }

    .info-banner-grid .center-card {
        grid-column: auto;
    }
}

/* Mobile Phones (560px and below) */
@media (max-width: 560px) {
    .everyday-hero {
        padding: 10px 0 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .hero-image img {
        height: 280px;
    }

    .everyday-products-section {
        padding: 10px 0 40px;
    }

    .filter-btn,
    .sort-select {
        font-size: 12px;
        padding: 8px 14px;
    }

    .products-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-section {
        padding: 10px 0 40px;
    }

    .featured-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .info-banner-section {
        padding: 10px 0 50px;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .everyday-wrap {
        padding: 0 16px;
    }

    .nav-logo img {
        height: 38px;
    }

    .hero-title {
        font-size: 28px;
    }

    .featured-title {
        font-size: 24px;
    }

    .filter-btn {
        padding: 7px 12px;
    }

    .product-name,
    .featured-name {
        font-size: 12px;
    }

    .product-price,
    .featured-price {
        font-size: 13px;
    }

    .buy-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* -- NAV RESPONSIVE (added by audit) -- */
@media (max-width: 768px) {
    nav { padding: 0 20px; width: calc(100% - 24px); }
    .nav-left { padding-left: 20px; gap: 16px; }
    .nav-right { padding-right: 20px; gap: 12px; }
    .nav-logo img { height: 38px; }
}
@media (max-width: 560px) {
    nav { padding: 0 14px; min-height: 56px; }
    .nav-left a, .nav-right a { font-size: 12px; }
    .nav-icons a, .nav-icons img { font-size: 15px; width: 18px; height: 18px; }
}

/* ══════════ HAMBURGER MENU ══════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 400;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(242,241,235,0.98);
  z-index: 350;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
  padding: 80px 30px 40px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--gold); }
.nav-mobile-menu .mobile-section-label {
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 0 6px;
  width: 100%;
  text-align: center;
}
.nav-mobile-menu .mobile-icons {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  justify-content: center;
}
.nav-mobile-menu .mobile-icons img { width: 24px; height: 24px; object-fit: contain; }
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
  z-index: 360;
}
@media (max-width: 480px) {
  nav { padding: 0 16px; min-height: 56px; justify-content: space-between; }
  .nav-left, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo { position: static; transform: none; margin: 0 auto; }
  .everyday-wrap { padding: 0 14px; }
  .info-cards { grid-template-columns: 1fr; padding: 0 14px; }
}
