/* ============================================
   Frutopia - Cakes Page Styles
   Premium Fruit Dessert Shop
   ============================================ */

/* CSS Variables */
:root {
  --primary-orange: #E8891D;
  --primary-orange-dark: #D47A15;
  --bg-cream: #FFF9F2;
  --bg-white: #FFFFFF;
  --text-dark: #2C1810;
  --text-medium: #5C4A3A;
  --text-light: #8B7B6B;
  --accent-green: #5A7247;
  --whatsapp-green: #25D366;
  --border-divider: #F0E6D8;
  --card-shadow: rgba(44, 24, 16, 0.08);
  --overlay-dark: rgba(44, 24, 16, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-cream);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: var(--primary-orange);
  color: white;
}

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

/* Typography */
h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h2 {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin: 0;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  text-decoration: none;
  display: block;
  width: 160px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-orange) url('assets/logo.jpeg') 48% center / 175% no-repeat;
}

.header-logo img {
  display: none; /* using background-image for better cropping */
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-icon:hover {
  background: rgba(232, 137, 29, 0.1);
  color: var(--primary-orange);
}

.header-whatsapp {
  color: var(--whatsapp-green);
}

.header-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp-green);
}

.header-call {
  color: var(--primary-orange);
}

/* ============================================
   Page Banner
   ============================================ */
.page-banner {
  text-align: center;
  padding: 3.5rem 5% 2rem;
  background: var(--bg-white);
}

.page-banner h1 {
  margin-bottom: 0.75rem;
}

.page-banner h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-orange);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.banner-subtitle {
  color: var(--text-medium);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   Cake Section & Grid
   ============================================ */
.cake-section {
  padding: 2.5rem 5% 4rem;
}

.cake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cake-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cake-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(44, 24, 16, 0.14);
}

.cake-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.cake-image-wrapper img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Watermark overlay - repeating diagonal pattern
   To enable: change display:none to display:flex below */
.cake-image-wrapper::after {
  display: none; /* hidden for now */
  content: 'Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  transform: rotate(-30deg);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  word-spacing: 2rem;
  line-height: 4;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  -webkit-user-select: none;
  user-select: none;
}

.cake-card:hover .cake-image-wrapper img {
  transform: scale(1.06);
}

.cake-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 24, 16, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cake-card:hover .cake-overlay {
  opacity: 1;
}

.btn-view {
  background: white;
  color: var(--text-dark);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.btn-view:hover {
  background: var(--primary-orange);
  color: white;
}

.cake-info {
  padding: 1.25rem 1.25rem 1rem;
}

.cake-info h3 {
  margin-bottom: 0.6rem;
}

.cake-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cake-price {
  background: var(--primary-orange);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-share {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.4rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-share:hover {
  color: var(--primary-orange);
  background: rgba(232, 137, 29, 0.1);
}

/* ============================================
   Cake Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  max-width: 880px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(44, 24, 16, 0.08);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--primary-orange);
  color: white;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.modal-image {
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Modal watermark - repeating diagonal pattern
   To enable: change display:none to display:flex below */
.modal-image::after {
  display: none; /* hidden for now */
  content: 'Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot  ·  Frutopia Rajkot';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  transform: rotate(-30deg);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  word-spacing: 2rem;
  line-height: 4;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  -webkit-user-select: none;
  user-select: none;
}

.modal-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h2 {
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
}

.btn-whatsapp:hover {
  filter: brightness(1.1);
}

.btn-call {
  background: var(--primary-orange);
  color: white;
}

.btn-call:hover {
  filter: brightness(1.1);
}

.btn-share-modal {
  background: rgba(44, 24, 16, 0.06);
  color: var(--text-dark);
}

.btn-share-modal:hover {
  background: rgba(44, 24, 16, 0.12);
}

/* ============================================
   Floating Action Buttons
   ============================================ */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-whatsapp {
  background: var(--whatsapp-green);
}

.floating-call {
  background: var(--primary-orange);
}

.floating-btn svg {
  width: 26px;
  height: 26px;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 3000;
  background: var(--text-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3rem 5% 2rem;
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 44px;
  width: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.footer-tagline {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.25rem;
  color: var(--primary-orange);
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-location {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer-location svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.footer-contact {
  margin-bottom: 1.25rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-orange);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 1rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .cake-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    max-height: 300px;
    border-radius: 20px 20px 0 0;
  }

  .modal-info {
    padding: 1.75rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .page-banner {
    padding: 2.5rem 5% 1.5rem;
  }

  .cake-section {
    padding: 2rem 4% 3rem;
  }
}

@media (max-width: 480px) {
  .cake-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .modal-content {
    width: 95%;
    border-radius: 16px;
  }

  .modal-info h2 {
    font-size: 1.5rem;
  }

  .header-logo {
    width: 130px;
    height: 42px;
  }

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}
