/* styles.css
 *
 * Minimalist stylesheet for the PHP e‑commerce site.  It defines a
 * flexible layout, typography and basic styling for navigation,
 * product grids, forms and tables.  Colours and sizing are kept
 * simple to emphasise functionality over form.  Feel free to extend
 * this file to match your brand identity.
 */

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    /* Sephora-inspired neutral background */
    background-color: #ffffff;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.site-header {
    /* Bold black header similar to Sephora */
    background-color: #000;
    color: #fff;
    padding: 15px 0;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background-color: transparent;
    color: #e91e63;
}

main.content {
    padding: 20px 0;
    min-height: 70vh;
}

.site-footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* Product grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .details {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.product-card p.description {
    flex: 1;
    font-size: 14px;
    margin: 0 0 10px;
    color: #666;
}

.product-card .price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card button {
    padding: 8px 10px;
    background-color: #e91e63;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.product-card button:hover {
    background-color: #c2185b;
}

/* Forms */
form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="number"],
form input[type="tel"],
form select,
form textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

form button {
    padding: 10px;
    background-color: #e91e63;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #c2185b;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

table th {
    background-color: #f2f2f2;
}

/* Alerts */
.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

/* Sephora-inspired button colours */
.btn-primary { background-color: #e91e63; color: #fff; }
.btn-primary:hover { background-color: #c2185b; }

.btn-danger { background-color: #dc3545; color: #fff; }
.btn-danger:hover { background-color: #c82333; }

/* Secondary buttons use outline style with accent colour */
.btn-secondary { background-color: #fff; color: #e91e63; border: 1px solid #e91e63; }
.btn-secondary:hover { background-color: #fce4ec; color: #c2185b; }

.text-center { text-align: center; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Layout helpers */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        width: calc(50% - 20px);
    }
    .main-nav ul { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}

/* Search form styling in header */
.search-form {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}
.search-form input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}
.search-form input:focus {
    outline: none;
    border-color: #e91e63;
}

/* Sticky Bottom Menu */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  z-index: 999;
  height: 60px;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.08);
}

.bottom-nav .nav-item {
  text-align: center;
  color: #444;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.bottom-nav .nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 3px;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: #e60023; /* Sephora-like red accent */
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 22%;
  background: #e60023;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
}

/* Hide on large screens */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}


