<?php
/* Faila mērķis:
Kontaktu lapa */
session_start(); 
?>
<!DOCTYPE html>
<html lang="lv">
<head>
  <meta charset="UTF-8">
  <title>Kontakti — Ziedu internetveikals</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet" />
  <link rel="stylesheet" href="main.css">
  <script src="script.js"></script>
</head>

<body class="page-layout">
 <!-- Lapas galvene -->
<header>
  <input type="checkbox" id="toggler" />
  <label for="toggler" class="fa fa-bars"></label>

  <a href="index.php" class="logo">Ziedu internetveikals<span>🌷</span></a>
 <!-- Izkrītošais saraksts ar kategorijām -->
  <nav class="navbar">
    <div class="dropdown-nav">
      <a href="katalogs.php" class="dropbtn-nav">Katalogs</a>
      <div class="dropdown-content-nav">
        <a href="ziedi.php">Ziedi</a>
        <a href="telpaugi.php">Telpaugi</a>
        <a href="eksotiskieaugi.php">Eksotiskie augi</a>
      </div>
    </div>
  </nav>
 <!-- Meklēšanas josla -->
  <div class="search-container">
    <form action="katalogs.php" method="GET">
      <input type="text" name="q" placeholder="Meklēt">
      <button type="submit">
        <i class="fa fa-search"></i>
      </button>
    </form>
  </div>
 <!-- Ikonas -->
  <div class="icons">
    <a href="cart.php" class="fas fa-shopping-cart"></a>
    <button type="button" class="fas fa-search mobile-search-toggle"></button>

    <div class="dropdown">
      <?php if (isset($_SESSION['email'])): ?>
        <!-- Pieslēgušies lietotāji dodas uz profile.php -->
        <a href="profile.php" class="fas fa-user dropbtn"></a>
      <?php else: ?>
        <!-- Vieši nevar neko nospiest -->
        <a href="#" class="fas fa-user dropbtn"></a>
      <?php endif; ?>
      <!-- Lietotaja statuss -->
      <div class="dropdown-content">
        <?php if (isset($_SESSION['email'])): ?>
          <a href="logout.php" class="logout">Izrakstīties</a>
        <?php else: ?>
          <a href="login.html">Pieslēgties</a>
          <a href="register.html">Reģistrēties</a>
        <?php endif; ?>
      </div>
    </div>
  </div>
</header>

<main class="page-content">

<div class="contact-layout">


  <div class="contact-left">

    <h2 style="margin-bottom:40px;">Kontakti</h2>

    <div class="contact-box">
      📞 <strong>Tālrunis:</strong> +371 20000000
    </div>

    <div class="contact-box">
      📍 <strong>Atrašanās vieta:</strong> Brīvības iela X, Rīga
    </div>

    <div class="contact-box">
      ✉️ <strong>E-pasts:</strong> info@zieduinternetveikals.lv
    </div>

  </div>

  <div class="contact-right">

    <div class="info-card">
      <h3>🕒 Darba laiks</h3>
      <p>P.-Pk: 09:00 – 18:00</p>
      <p>Sestdien: Slēgts</p>
      <p>Svētdien: Slēgts</p>
    </div>


    <div class="info-card">
      <h3>⭐ Kāpēc mēs?</h3>
      <p>Svaigi ziedi katru dienu</p>
      <p>Ātra piegāde</p>
      <p>Draudzīgs serviss</p>
    </div>

  </div>

</div>

<div class="map-container">
  <iframe
    src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d17401.924163677373!2d24.096021652221683!3d56.96181238082044!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x46eecfce08729235%3A0x1bbac44eb18f3df1!2zQnLEq3bEq2JhcyBpZWxhLCBSxKtnYQ!5e0!3m2!1sen!2slv!4v1777477062777!5m2!1sen!2slv"
    width="600"
    height="450"
    style="border:0;"
    allowfullscreen=""
    loading="lazy">
  </iframe>
</div>

</main>
 <!-- Lapas kājene -->
<footer>
  <div class="footer-container">
    <div class="footer-left">
      <a href="parmums.php">Par mums</a>
      <a href="kontakti.php">Kontakti</a>
    </div>
  </div>
</footer>

</body>
</html>