/* Feia Kookies — Main Stylesheet */

:root {
  --pink:       #d85c7a;
  --pink-dark:  #b8445f;
  --pink-light: #f8dfe7;
  --green:      #2f6b35;
  --green-light:#e8f3e5;
  --dark:       #333333;
  --mid:        #666666;
  --light:      #ffffff;
  --gray:       #f5f5f5;
  --border:     #e0e0e0;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- HEADER ---- */
.site-header {
  background: var(--light);
  border-bottom: 2px solid var(--pink-light);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem; gap: 1rem;
}
.site-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem; color: var(--pink);
  white-space: nowrap;
}
.site-logo span { color: var(--green); }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { font-weight: 700; color: var(--dark); font-size: .95rem; }
.site-nav a:hover { color: var(--pink); }
.cart-icon { position: relative; color: var(--dark); display: flex; align-items: center; }
.cart-icon:hover { color: var(--pink); }
.cart-badge {
  position: absolute; top: -7px; right: -9px;
  background: var(--pink); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }
.mobile-nav { display: none; flex-direction: column; background: var(--light); border-bottom: 2px solid var(--pink-light); padding: .75rem 1.25rem; gap: .5rem; }
.mobile-nav a { font-weight: 700; color: var(--dark); padding: .4rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ---- FOOTER ---- */
.site-footer { background: var(--dark); color: #ccc; margin-top: 4rem; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; padding: 2.5rem 1.25rem;
}
.footer-brand .site-logo { color: var(--pink-light); font-size: 1.3rem; display: block; margin-bottom: .5rem; }
.footer-brand .site-logo span { color: var(--green-light); }
.footer-brand p { font-size: .9rem; line-height: 1.5; }
.footer-links h4 { color: #fff; margin-bottom: .75rem; font-size: .95rem; }
.footer-links a { display: block; color: #bbb; font-size: .9rem; margin-bottom: .35rem; }
.footer-links a:hover { color: var(--pink-light); }
.footer-bottom { border-top: 1px solid #555; text-align: center; padding: 1rem; font-size: .85rem; color: #888; }
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: .6rem 1.4rem;
  border-radius: var(--radius); font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s;
  font-family: inherit;
}
.btn-primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-secondary:hover { background: #235228; border-color: #235228; color: #fff; }
.btn-outline { background: transparent; color: var(--pink); border-color: var(--pink); }
.btn-outline:hover { background: var(--pink); color: #fff; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #a93226; border-color: #a93226; color: #fff; }

/* ---- ALERTS ---- */
.alert {
  padding: .85rem 1.2rem; border-radius: var(--radius);
  margin-bottom: 1.25rem; font-weight: 600;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .55rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--dark);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--pink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.required-star { color: var(--pink); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--green-light) 100%);
  padding: 4rem 0 3rem; text-align: center;
}
.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--pink); margin-bottom: .75rem; line-height: 1.2;
}
.hero p { font-size: 1.1rem; color: var(--mid); max-width: 560px; margin: 0 auto 1.75rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--pink);
}
.section-header p { color: var(--mid); margin-top: .5rem; font-size: 1rem; }

/* ---- PRODUCT GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.product-card {
  background: var(--light); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.product-card .card-img {
  width: 100%; height: 200px; object-fit: cover; background: var(--pink-light);
  display: flex; align-items: center; justify-content: center;
}
.product-card .card-img img { width: 100%; height: 200px; object-fit: cover; }
.product-card .card-img .no-img { font-size: 3rem; }
.card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; color: var(--dark); }
.card-body p { font-size: .88rem; color: var(--mid); flex: 1; margin-bottom: .85rem; }
.card-price { font-size: 1.15rem; font-weight: 800; color: var(--pink); margin-bottom: .75rem; }
.badge-coming-soon {
  display: inline-block; background: var(--green-light); color: var(--green);
  border-radius: 20px; padding: .2rem .75rem; font-size: .78rem; font-weight: 700;
}

/* ---- PRODUCT DETAIL ---- */
.product-detail { padding: 2.5rem 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-detail-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: var(--pink-light); display: flex; align-items: center; justify-content: center;
  font-size: 5rem; overflow: hidden;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem; }
.product-detail-info .price { font-size: 1.6rem; color: var(--pink); font-weight: 800; margin-bottom: 1rem; }
.product-detail-info .desc { color: var(--mid); margin-bottom: 1.5rem; }
.product-detail-info .desc p { margin-bottom: .75rem; }
.allergy-notice, .shipping-notice {
  font-size: .82rem; color: var(--mid);
  background: var(--gray); border-radius: var(--radius);
  padding: .6rem .9rem; margin-top: 1rem;
}

/* ---- CART ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th { background: var(--pink-light); padding: .7rem 1rem; text-align: left; font-size: .85rem; font-weight: 800; }
.cart-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.cart-table td .options-list { font-size: .82rem; color: var(--mid); margin-top: .25rem; }
.qty-input { width: 60px; padding: .35rem .5rem; border: 1.5px solid var(--border); border-radius: 6px; text-align: center; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-summary { background: var(--gray); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 80px; }
.cart-summary h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .95rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 800; border-top: 2px solid var(--border); padding-top: .75rem; margin-top: .5rem; }
.discount-row { display: flex; gap: .5rem; margin: 1rem 0; }
.discount-row input { flex: 1; }

/* ---- CHECKOUT ---- */
.checkout-section { padding: 2.5rem 0; max-width: 700px; margin: 0 auto; }
.checkout-section h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; }

/* ---- PAGES ---- */
.page-section { padding: 3rem 0; max-width: 800px; margin: 0 auto; }
.page-section h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.page-section .page-content { color: var(--mid); }
.page-content h2 { margin: 1.5rem 0 .75rem; color: var(--dark); font-size: 1.3rem; }
.page-content h3 { margin: 1.25rem 0 .5rem; font-size: 1.1rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul { margin: .5rem 0 1rem 1.5rem; }
.page-content ul li { margin-bottom: .35rem; }
.page-content a { color: var(--pink); }

/* ---- HOME SECTIONS ---- */
.home-section { padding: 3.5rem 0; }
.home-section.alt { background: var(--gray); }
.cta-section {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff; text-align: center; padding: 3rem 0;
}
.cta-section h2 { font-family: 'Pacifico', cursive; font-size: 2rem; margin-bottom: .75rem; color: #fff; }
.cta-section p { font-size: 1.05rem; margin-bottom: 1.5rem; opacity: .9; }
.cta-section .btn-outline { border-color: #fff; color: #fff; }
.cta-section .btn-outline:hover { background: #fff; color: var(--pink); }

/* ---- ADMIN ---- */
.admin-layout { background: var(--gray); }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: var(--dark); color: #ccc;
  flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand {
  padding: 1.25rem 1rem; font-family: 'Pacifico', cursive;
  font-size: 1.2rem; color: var(--pink-light); border-bottom: 1px solid #444;
}
.admin-brand span { color: var(--green-light); }
.admin-sidebar ul { list-style: none; padding: .5rem 0; }
.admin-sidebar ul li a {
  display: block; padding: .7rem 1.25rem; color: #bbb;
  font-weight: 700; font-size: .9rem; border-left: 3px solid transparent;
  transition: all .15s;
}
.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
  color: var(--pink-light); background: rgba(255,255,255,.05);
  border-left-color: var(--pink);
}
.sidebar-logout { margin-top: auto; }
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.admin-topbar h1 { font-size: 1.5rem; font-weight: 800; }

/* admin stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--light); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); border-top: 4px solid var(--pink); }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--pink); }
.stat-card .stat-label { font-size: .85rem; color: var(--mid); margin-top: .25rem; }

/* admin table */
.admin-table-wrap { background: var(--light); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { background: var(--pink-light); padding: .7rem 1rem; text-align: left; font-weight: 800; font-size: .82rem; color: var(--dark); }
.admin-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

/* admin forms */
.admin-card { background: var(--light); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1.25rem; border-bottom: 2px solid var(--pink-light); padding-bottom: .5rem; }

/* badges */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.badge-success  { background: #d4edda; color: #155724; }
.badge-warning  { background: #fff3cd; color: #856404; }
.badge-danger   { background: #f8d7da; color: #721c24; }
.badge-info     { background: #d1ecf1; color: #0c5460; }
.badge-secondary{ background: #e2e3e5; color: #383d41; }

/* ---- SUCCESS/CANCEL ---- */
.status-page { text-align: center; padding: 4rem 1.25rem; }
.status-icon { font-size: 4rem; margin-bottom: 1rem; }
.status-page h1 { font-family: 'Pacifico', cursive; font-size: 2.2rem; margin-bottom: .75rem; color: var(--pink); }
.status-page p { font-size: 1.05rem; color: var(--mid); margin-bottom: 1.5rem; }

/* ---- CUSTOM ORDER ---- */
.custom-order-hero {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--pink-light) 100%);
  padding: 2.5rem 0; text-align: center;
}
.custom-order-hero h1 { font-family: 'Pacifico', cursive; font-size: 2rem; color: var(--green); }
.custom-order-hero p { color: var(--mid); margin-top: .5rem; }
.custom-order-form { max-width: 720px; margin: 0 auto; padding: 2.5rem 0; }

/* ---- UTILITIES ---- */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--mid); font-size: .9rem; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

@media (max-width: 960px) {
  .admin-sidebar { width: 180px; }
}
@media (max-width: 700px) {
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-sidebar ul { display: flex; flex-wrap: wrap; padding: .25rem; }
  .admin-sidebar ul li a { padding: .45rem .75rem; border-left: none; border-bottom: 3px solid transparent; }
  .admin-sidebar ul li a.active, .admin-sidebar ul li a:hover { border-bottom-color: var(--pink); border-left: none; }
  .admin-main { padding: 1rem; }
  .cart-table { font-size: .82rem; }
  .cart-table th, .cart-table td { padding: .5rem .6rem; }
}
