/* ==========================================
   HAPPY COOKIE DAY - STYLESHEET
   Beyaz fon, bordo accent, minimal, yuvarlak köşeler
   ========================================== */

:root {
  --bordo: #7B2D3B;
  --bordo-light: #9B4D5B;
  --bordo-dark: #5C1F2B;
  --bordo-faint: rgba(123, 45, 59, 0.06);
  --cream: #FFF8F0;
  --warm-white: #FFFCF8;
  --white: #FFFFFF;
  --text: #3D2024;
  --text-light: #8C6E73;
  --text-muted: #B8A0A4;
  --gold: #C4956A;
  --border: rgba(123, 45, 59, 0.08);
  --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.04);
  --shadow-md: 0 4px 16px rgba(123, 45, 59, 0.06);
  --shadow-lg: 0 8px 30px rgba(123, 45, 59, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1200px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- HEADER TOP BAR ---- */
.header-top {
  background: var(--bordo);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-contact {
  display: flex;
  gap: 1.5rem;
}
.header-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
}
.header-contact-item:hover { color: white; }
.header-social {
  display: flex;
  gap: 0.8rem;
}
.social-icon {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.social-icon:hover { color: white; }

/* ---- HEADER MAIN ---- */
.header-main {
  background: var(--white);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 80px; width: auto; }

/* ---- NAVIGATION ---- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-link {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--bordo);
  background: var(--bordo-faint);
}
.nav-link--shopier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bordo);
  color: white;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.2rem;
}
.nav-link--shopier:hover {
  background: var(--bordo-dark);
  color: white;
}

/* Dropdown */
.nav-item--has-children { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 200;
}
.nav-item--has-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.nav-dropdown-link:hover {
  background: var(--bordo-faint);
  color: var(--bordo);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- MAIN ---- */
.main { min-height: 60vh; }

/* ---- HERO SECTION ---- */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--bordo);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--bordo);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(123, 45, 59, 0.2);
}
.hero-btn:hover {
  background: var(--bordo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 45, 59, 0.25);
  color: white;
}

/* ---- SECTION ---- */
.section {
  padding: 4rem 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--bordo);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ---- CATEGORY GRID ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover .category-card-img img {
  transform: scale(1.05);
}
.category-card-body {
  padding: 1.2rem 1.5rem;
}
.category-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.category-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.product-card-body {
  padding: 1rem 1.2rem;
}
.product-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.product-card-price {
  font-size: 0.9rem;
  color: var(--bordo);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.product-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--bordo);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}
.product-card-btn:hover {
  background: var(--bordo-dark);
  color: white;
}

/* ---- PAGE CONTENT ---- */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background: var(--cream);
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--bordo);
  font-weight: 600;
}
.page-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}
.page-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--bordo); }
.breadcrumb-sep { margin: 0 0.4rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bordo);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}
.footer-logo img { margin-bottom: 1rem; }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
}
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; color: white; }
.footer-address {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.footer-social a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---- FLOATING WHATSAPP ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .header-top { display: none; }
  .header-main-inner { padding: 0.3rem 0; }
  .logo img { height: 45px; }

  .mobile-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    z-index: 300;
    transition: right 0.35s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
  }
  .nav--open { right: 0; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    min-width: auto;
  }
  .nav-link--shopier {
    margin-top: 1rem;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .hero { padding: 2.5rem 0; }
  .hero-title { font-size: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.6rem; }
}
