/* ==========================================================================
   Netcona — Premium Templates & Handmade Floral Decorations
   Unified theme (sage green + beige + cream) for the main site.
   The handmade page/single-product/cart/checkout use a softer pink overlay.
   ========================================================================== */

:root {
    /* Main palette — Natural */
    --nc-primary:      #6F8A6A;  /* sage green */
    --nc-primary-dark: #4F6A4B;
    --nc-primary-light:#9FBC96;
    --nc-beige:        #D6C6A8;
    --nc-cream:        #F7F2E7;
    --nc-ink:          #2D342C;
    --nc-muted:        #6B6F66;
    --nc-line:         #E8E1CD;
    --nc-white:        #FFFFFF;
    --nc-accent:       #C9A96E;  /* gold */

    --nc-font-head: 'Playfair Display', 'Georgia', serif;
    --nc-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    --nc-radius: 14px;
    --nc-shadow: 0 10px 30px rgba(45,52,44,.08);
    --nc-shadow-soft: 0 4px 14px rgba(45,52,44,.06);
}

/* --------- Handmade palette (overrides applied only on handmade pages) --------- */
body.theme-handmade {
    --nc-primary:      #C99A8E;  /* dusty pink */
    --nc-primary-dark: #A77466;
    --nc-primary-light:#E8C5C0;
    --nc-beige:        #F0DCD3;
    --nc-cream:        #FBF3EE;
    --nc-ink:          #3E2E2C;
    --nc-muted:        #8C6F6B;
    --nc-line:         #F2DDD5;
    --nc-accent:       #C9A96E;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--nc-font-body);
    color: var(--nc-ink);
    background: var(--nc-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--nc-font-head); color: var(--nc-ink); font-weight: 700; }
a { color: var(--nc-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--nc-primary); }

.site-main { min-height: 60vh; }

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--nc-primary);
    border-color: var(--nc-primary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--nc-primary-dark);
    border-color: var(--nc-primary-dark);
    color: #fff;
}
.btn-outline-primary {
    color: var(--nc-primary);
    border-color: var(--nc-primary);
}
.btn-outline-primary:hover {
    background: var(--nc-primary);
    color: #fff;
}
.btn-accent {
    background: var(--nc-accent);
    color: var(--nc-ink);
    border: none;
}
.btn-accent:hover { filter: brightness(0.95); color: var(--nc-ink); }

.btn {
    border-radius: 999px;
    padding: .6rem 1.4rem;
    font-weight: 500;
    letter-spacing: .01em;
}
.btn-sm { padding: .35rem .8rem; }

/* ---------- Navbar ---------- */
.netcona-nav {
    background: rgba(247,242,231,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--nc-line);
    padding: .6rem 0;
}
body.theme-handmade .netcona-nav {
    background: rgba(251,243,238,.92);
}
.netcona-logo { height: 42px; }
.navbar-nav .nav-link {
    color: var(--nc-ink);
    font-weight: 500;
    position: relative;
    padding: .5rem .9rem;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--nc-primary-dark); }
.navbar-nav .nav-link.active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 4px; height: 2px; background: var(--nc-primary);
    border-radius: 2px;
}
.netcona-cart-badge {
    background: var(--nc-primary);
    font-size: .65rem;
}
.netcona-lang .btn { border-radius: 999px; }

/* ---------- Hero ---------- */
.netcona-hero {
    background:
        radial-gradient(1200px 400px at 20% 0%, rgba(159,188,150,.35), transparent 60%),
        radial-gradient(900px 400px at 90% 30%, rgba(214,198,168,.35), transparent 60%),
        linear-gradient(180deg, var(--nc-cream), #fff);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--nc-line);
}
body.theme-handmade .netcona-hero {
    background:
        radial-gradient(1200px 400px at 20% 0%, rgba(232,197,192,.45), transparent 60%),
        radial-gradient(900px 400px at 90% 30%, rgba(240,220,211,.45), transparent 60%),
        linear-gradient(180deg, var(--nc-cream), #fff);
}
.netcona-hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.netcona-hero .lead {
    font-size: 1.1rem;
    color: var(--nc-muted);
    max-width: 640px;
}
.netcona-hero .hero-graphic {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--nc-primary-light), var(--nc-beige));
    border-radius: 36% 64% 56% 44% / 46% 42% 58% 54%;
    position: relative;
    box-shadow: var(--nc-shadow);
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: .25rem;
}
.section-subtitle {
    color: var(--nc-muted);
    margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.nc-card {
    background: #fff;
    border: 1px solid var(--nc-line);
    border-radius: var(--nc-radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.nc-card:hover { transform: translateY(-4px); box-shadow: var(--nc-shadow); }
.nc-card .nc-card-body { padding: 1.2rem 1.3rem; flex: 1; }
.nc-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.nc-card p  { color: var(--nc-muted); margin-bottom: .8rem; }
.nc-card-media {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--nc-primary-light), var(--nc-beige));
    position: relative;
    overflow: hidden;
}
.nc-card-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.nc-card-media .nc-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.9);
    color: var(--nc-ink);
    padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
}

.nc-price {
    font-family: var(--nc-font-head);
    font-size: 1.4rem;
    color: var(--nc-primary-dark);
    font-weight: 700;
}
.nc-code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: .78rem;
    color: var(--nc-muted);
    background: var(--nc-cream);
    padding: .15rem .5rem;
    border-radius: 6px;
}

/* ---------- Feature grid ---------- */
.nc-feature {
    text-align: center;
    padding: 2rem 1rem;
}
.nc-feature .icon {
    width: 60px; height: 60px; margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--nc-primary-light);
    color: var(--nc-primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

/* ---------- Product detail ---------- */
.gallery-main {
    background: #fff;
    border-radius: var(--nc-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--nc-shadow-soft);
    border: 1px solid var(--nc-line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main img[src$="placeholder.svg"] { object-fit: cover; }
.gallery-thumbs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .5rem;
}
.gallery-thumbs button {
    background: #fff; border: 2px solid var(--nc-line); border-radius: 10px;
    overflow: hidden; padding: 0; aspect-ratio: 1/1; cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--nc-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cart ---------- */
.cart-table th, .cart-table td { vertical-align: middle; }

/* ---------- Blog ---------- */
.blog-cover {
    aspect-ratio: 21/9;
    border-radius: var(--nc-radius);
    background: linear-gradient(135deg, var(--nc-primary-light), var(--nc-beige));
    overflow: hidden;
    margin-bottom: 2rem;
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body p { font-size: 1.05rem; line-height: 1.75; }
.post-body h2 { margin-top: 2rem; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--nc-line);
    padding: .65rem .9rem;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 .2rem rgba(111,138,106,.2);
}
body.theme-handmade .form-control:focus,
body.theme-handmade .form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(201,154,142,.25);
}
.form-label { font-weight: 500; font-size: .93rem; }

/* ---------- Admin ---------- */
.admin-layout { min-height: 100vh; display: flex; background: var(--nc-cream); }
.admin-sidebar {
    width: 260px; background: var(--nc-ink); color: #fff; padding: 1.2rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar a {
    color: #dfe0da; display: block; padding: .55rem .8rem; border-radius: 8px;
    font-size: .93rem; margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,.08); color: #fff;
}
.admin-sidebar .brand { color: #fff; font-family: var(--nc-font-head); font-size: 1.3rem; margin-bottom: 1.5rem; }
.admin-main { flex: 1; padding: 2rem; }
.admin-card {
    background: #fff; border-radius: var(--nc-radius); padding: 1.5rem;
    border: 1px solid var(--nc-line); box-shadow: var(--nc-shadow-soft);
}
.admin-title { font-family: var(--nc-font-head); margin: 0 0 1.2rem 0; }

/* ---------- Footer ---------- */
.netcona-footer {
    background: #fff;
    border-top: 1px solid var(--nc-line);
}
.netcona-footer a { color: var(--nc-muted); display: block; padding: .2rem 0; }
.netcona-footer a:hover { color: var(--nc-primary-dark); }
.netcona-footer-title {
    font-family: var(--nc-font-head); font-size: 1.05rem; margin-bottom: .8rem;
}
.netcona-logo-footer { height: 38px; }

/* ---------- Utility ---------- */
.text-muted { color: var(--nc-muted) !important; }
.bg-cream { background: var(--nc-cream) !important; }
.nc-divider {
    height: 1px; background: var(--nc-line); margin: 3rem 0;
}
.text-accent { color: var(--nc-accent); }

/* ---------- Product detail title sizing ---------- */
.product-detail h1 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.15; }

/* ---------- Social icons ---------- */
.netcona-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--nc-primary-light);
    color: var(--nc-primary-dark);
    font-size: 1.05rem;
    transition: background .2s, color .2s, transform .2s;
}
.netcona-social a:hover {
    background: var(--nc-primary); color: #fff; transform: translateY(-2px);
}
.navbar-nav .bi-pinterest { color: #E60023; font-size: 1.15rem; }

/* ---------- Footer language buttons ---------- */
.netcona-lang-footer .btn {
    padding: .55rem 1.4rem;
    font-size: .92rem;
    border-radius: 999px;
    text-align: center;
    min-width: 130px;
    align-self: flex-start;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .netcona-hero h1 { font-size: 2rem; }
}
@media (max-width: 767.98px) {
    .netcona-hero { padding: 3rem 0 2.5rem; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
