/* ================================
   General Reset & Typography
================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* ================================
   Header
================================ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #05204a;
    flex-wrap: wrap;
}

/* Logo on left */
.logo-container {
    flex: 0 0 auto;
}
.logo {
    height: 80px;
    max-width: 100%;
}

/* Brand centered */
.brand-center {
    flex: 1 1 auto;
    text-align: center;
}
.brand-title {
    font-size: 1.8rem;
    color: #d4af37;
    margin: 0;
}
.brand-tagline {
    font-size: 0.95rem;
    color: #d4af37;
    margin: 0;
    font-weight: 400;
}

/* Navigation right */
.header-nav {
    flex: 0 0 auto;
    display: flex;
    gap: 15px;
}
.header-nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.header-nav a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-nav {
        margin-top: 10px;
    }
    .logo {
        height: 70px;
        margin-bottom: 10px;
    }
}
@media (max-width: 480px) {
    .brand-title {
        font-size: 1.4rem;
    }
    .brand-tagline {
        font-size: 0.8rem;
    }
    .logo {
        height: 60px;
    }
}


/* ================================
   Hero Section
================================ */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    color: #fff;
    overflow: hidden;
    background-color: #05204a; /* fallback color */
    height: 60vh; /* default hero height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero1.jpg'); /* your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

/* ================================
   Footer
================================ */
footer {
    background-color: #05204a;
    color: #d4af37; /* gold */
    text-align: center;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
}
footer p {
    margin: 0.3rem 0;
    color: #d4af37; /* gold */
}

/* Social Icons */
footer .social-icons a {
    color: #d4af37; /* gold */
    margin: 0 10px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}
footer .social-icons a:hover {
    color: #fff; /* white hover */
}

/* ================================
   Shop Section
================================ */
main.shop {
    flex: 1;
    padding: 4rem 2rem;
    background-color: #f8f8f8;
    text-align: center;
}
main.shop h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #05204a;
}

/* Category Filters */
.category-filters {
    margin-bottom: 2rem;
}
.filter-btn {
    background-color: #05204a;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem 0.5rem 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
    background-color: #d4af37;
    color: #05204a;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
}
.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 250px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.product-card h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0 0.3rem 0;
    color: #05204a;
}
.product-card .price {
    font-size: 1rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 1rem;
}
.product-card .btn {
    display: inline-block;
    background-color: #05204a;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.product-card .btn:hover {
    background-color: #d4af37;
    color: #05204a;
}
#noProductsMessage {
    display: none;
    margin-top: 20px;
    font-size: 1.2rem;
    color: #05204a;
}

/* ================================
   Modal
================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease-in-out;
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.modal .close:hover { color: red; }
.options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}
.option {
  border: 2px solid #05204a;
  color: #05204a;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.option:hover {
  background: #05204a;
  color: #fff;
}
.option.selected {
  background: #d4af37;
  color: #05204a;
  border-color: #d4af37;
  font-weight: bold;
}
#finalOrderBtn {
  display: inline-block;
  padding: 12px 18px;
  background: #05204a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.25s ease;
}
#finalOrderBtn:hover {
  background: #d4af37;
  color: #05204a;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
