/*
Theme Name: Noor's Crafeteria One Page
Theme URI: https://theelevenstore.com/brand/noors-crafeteria/
Author: Noor's Crafeteria
Author URI: https://theelevenstore.com/
Description: A one-page front page theme for Noor's Crafeteria at The Eleven Store. Shows the in-stock collection with every item linking to its product page on the shop.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noors-crafeteria
Tags: one-page, e-commerce, custom-colors, custom-logo, responsive
*/

:root {
  --nc-bg: #fbf7f2;
  --nc-surface: #ffffff;
  --nc-ink: #24201c;
  --nc-muted: #7a6f64;
  --nc-gold: #b4894a;
  --nc-gold-dark: #8f6a35;
  --nc-line: #e8ded1;
  --nc-radius: 14px;
  --nc-shadow: 0 10px 30px -18px rgba(60, 42, 20, 0.55);
}

* { box-sizing: border-box; }

body.noors-front {
  margin: 0;
  background: var(--nc-bg);
  color: var(--nc-ink);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.nc-wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* Header */
.nc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nc-line);
}
.nc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.nc-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; }
.nc-brand span small { display: block; font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--nc-muted); }
.nc-nav { display: flex; gap: 22px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.nc-nav a:hover { color: var(--nc-gold-dark); }

.nc-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--nc-gold);
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}
.nc-btn:hover { background: var(--nc-gold-dark); transform: translateY(-1px); }
.nc-btn-ghost { background: transparent; color: var(--nc-ink); border: 1px solid var(--nc-gold); }
.nc-btn-ghost:hover { background: var(--nc-gold); color: #fff; }

/* Hero */
.nc-hero { padding: 90px 0 70px; text-align: center; }
.nc-eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--nc-gold-dark); }
.nc-hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 14px 0 10px; font-weight: 600; letter-spacing: -.01em; }
.nc-hero p { max-width: 620px; margin: 0 auto 28px; color: var(--nc-muted); font-size: 18px; }
.nc-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.nc-section { padding: 60px 0; }
.nc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.nc-section-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; }
.nc-section-head p { margin: 6px 0 0; color: var(--nc-muted); }

/* Product grid */
.nc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .nc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .nc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .nc-grid { grid-template-columns: 1fr; } }

.nc-card {
  display: flex;
  flex-direction: column;
  background: var(--nc-surface);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nc-card:hover { transform: translateY(-4px); box-shadow: var(--nc-shadow); }
.nc-card-media { position: relative; aspect-ratio: 1 / 1; background: #f1e9e0; overflow: hidden; }
.nc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nc-card:hover .nc-card-media img { transform: scale(1.05); }
.nc-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--nc-gold); color: #fff;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.nc-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nc-card-body h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.nc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.nc-price ins { text-decoration: none; font-weight: 700; color: var(--nc-gold-dark); }
.nc-price del { color: var(--nc-muted); font-size: 14px; }
.nc-card-link { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--nc-gold-dark); }

/* Footer */
.nc-footer { border-top: 1px solid var(--nc-line); padding: 44px 0; margin-top: 40px; }
.nc-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--nc-muted); font-size: 14px; }
.nc-footer a:hover { color: var(--nc-gold-dark); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
