/* ==========================================================================
   OTUO OWAN OIL PALM LTD — Stylesheet
   Palette drawn from the company mark: forest green, palm-oil gold, warm
   cream, and a red accent used sparingly. The oil droplet from the logo
   recurs as the site's signature shape (image masks, price tags, dividers).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
    --green-deep: #0F4A28;
    --green-mid: #1B6B3A;
    --green-pale: #E4EEE3;
    --gold: #D9A31A;
    --gold-light: #F7C948;
    --red: #C8262A;
    --cream: #FBF7EE;
    --cream-dark: #F0E7D2;
    --ink: #22281F;
    --ink-soft: #4A5245;
    --white: #FFFFFF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, Segoe UI, sans-serif;

    --radius: 10px;
    --radius-lg: 22px;
    --shadow-soft: 0 4px 24px rgba(15, 74, 40, 0.08);
    --shadow-card: 0 8px 30px rgba(15, 74, 40, 0.12);
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--green-deep);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: '';
    width: 18px; height: 2px;
    background: var(--gold);
    display: inline-block;
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn-primary { background: var(--green-deep); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* -------------------- Header / Nav -------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 247, 238, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 74, 40, 0.08);
}
.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
    max-width: var(--max-width); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-deep); }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    font-weight: 500; font-size: 0.95rem; color: var(--ink);
    position: relative; padding: 6px 0;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--gold); transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-deep); margin: 5px 0; transition: 0.2s; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream); flex-direction: column; align-items: flex-start;
        gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
        border-bottom: 1px solid rgba(15,74,40,0.08);
    }
    .nav-links.open { max-height: 400px; padding: 10px 24px 20px; }
    .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(15,74,40,0.06); }
    .nav-cta .btn-outline { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 40px;
    background: radial-gradient(circle at 85% 20%, var(--green-pale) 0%, var(--cream) 55%);
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: 1.1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--green-deep); }
.hero-stats div span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

.droplet-frame {
    position: relative;
    width: 100%; aspect-ratio: 4/5;
    clip-path: path('M 210 10 C 260 110, 400 200, 400 320 C 400 420, 320 480, 210 480 C 100 480, 20 420, 20 320 C 20 200, 160 110, 210 10 Z');
    background: linear-gradient(160deg, var(--gold-light), var(--gold) 60%, var(--green-mid));
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-card);
}
.droplet-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.92; }
.droplet-frame.simple { background: var(--green-pale); }

/* -------------------- Section shells -------------------- */
.section { padding: 78px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--green-deep); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* -------------------- Cards / Grids -------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px;
    box-shadow: var(--shadow-soft); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 50%; background: var(--green-pale);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    color: var(--green-deep);
}

/* -------------------- Product grid -------------------- */
.product-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    margin-bottom: 34px; flex-wrap: wrap;
}
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.category-pills a {
    padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--green-deep);
    font-size: 0.85rem; font-weight: 600; color: var(--green-deep);
    transition: 0.2s;
}
.category-pills a.active, .category-pills a:hover { background: var(--green-deep); color: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 950px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-soft); position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.product-thumb { position: relative; aspect-ratio: 1/1; background: var(--green-pale); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.price-tag {
    position: absolute; top: 14px; right: 14px;
    background: var(--gold); color: var(--ink);
    font-weight: 700; font-size: 0.85rem;
    padding: 7px 14px 7px 12px;
    clip-path: path('M0 0 H80 C88 0 92 6 92 14 L92 22 C92 30 88 36 80 36 H16 L0 20 Z');
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.stock-badge {
    position: absolute; top: 14px; left: 14px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 5px 12px; border-radius: 100px;
    background: var(--green-deep); color: var(--white);
}
.stock-badge.out { background: var(--red); }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body .cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; }
.product-body h3 { margin: 0; }
.product-body p { font-size: 0.9rem; margin-bottom: 12px; flex: 1; }
.product-card .btn { margin-top: auto; }

/* -------------------- Product detail -------------------- */
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .droplet-frame { aspect-ratio: 1/1; }
.detail-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--green-deep); margin: 14px 0; }
.detail-price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }
.detail-meta { display: flex; gap: 14px; margin: 20px 0; flex-wrap: wrap; }
.detail-meta div {
    background: var(--white); border-radius: var(--radius); padding: 12px 18px;
    box-shadow: var(--shadow-soft); font-size: 0.85rem;
}
.detail-meta strong { display: block; color: var(--green-deep); font-family: var(--font-display); font-size: 1rem; }

/* -------------------- Forms -------------------- */
.form-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-card); max-width: 640px; margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--green-deep); }
.form-row .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 5px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], select, textarea {
    width: 100%; padding: 13px 16px; border-radius: var(--radius);
    border: 1.5px solid #DCD4C0; font-family: var(--font-body); font-size: 0.95rem;
    background: var(--cream); color: var(--ink); transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
}
textarea { resize: vertical; min-height: 100px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.order-summary-box {
    background: var(--cream-dark); border-radius: var(--radius); padding: 20px;
    margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center;
}
.order-summary-box .qty-control { display: flex; align-items: center; gap: 10px; }
.order-summary-box .qty-control button {
    width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--green-deep);
    background: var(--white); font-size: 1.1rem; cursor: pointer; color: var(--green-deep);
}
.order-summary-box input[type=number] { width: 60px; text-align: center; padding: 8px; }

/* -------------------- Alerts -------------------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #E4F3E7; color: var(--green-deep); border: 1px solid #BFE3C6; }
.alert-error { background: #FBE7E7; color: var(--red); border: 1px solid #F3C3C3; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.85); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--gold-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-family: var(--font-body); }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    background: #25D366; width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* -------------------- Misc pages -------------------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--green-deep); font-weight: 600; }
.policy-content h2 { margin-top: 1.6em; }
.policy-content ul { color: var(--ink-soft); }
.timeline-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(15,74,40,0.08); }
.timeline-item strong { color: var(--green-deep); min-width: 90px; display: block; }

/* -------------------- Admin -------------------- */
.admin-body { background: var(--cream); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--green-deep); color: var(--white); padding: 26px 20px; }
.admin-sidebar .brand-text strong, .admin-sidebar .brand-text span { color: var(--white); }
.admin-sidebar nav { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a {
    padding: 12px 14px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500;
    color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 10px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.admin-main { padding: 34px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
@media (max-width: 1000px) { .admin-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.stat-card span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--green-deep); margin-top: 6px; }

.admin-table-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 14px 20px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--cream-dark); }
table.admin-table th { background: var(--cream-dark); color: var(--green-deep); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.admin-table tr:last-child td { border-bottom: none; }
.badge { padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.badge-in { background: #E4F3E7; color: var(--green-deep); }
.badge-out { background: #FBE7E7; color: var(--red); }
.badge-new { background: #FDF1D6; color: var(--gold); }
.badge-processing { background: #DEEBFA; color: #1D5FAD; }
.badge-fulfilled { background: #E4F3E7; color: var(--green-deep); }
.badge-cancelled { background: #FBE7E7; color: var(--red); }
.row-actions { display: flex; gap: 10px; }
.row-actions a, .row-actions button { font-size: 0.82rem; font-weight: 600; color: var(--green-deep); background: none; border: none; cursor: pointer; padding: 0; }
.row-actions .danger { color: var(--red); }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green-deep); padding: 20px; }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px; width: 100%; max-width: 400px; box-shadow: var(--shadow-card); text-align: center; }
.login-card img { height: 60px; margin: 0 auto 16px; }

.thumb-preview { width: 90px; height: 90px; border-radius: var(--radius); object-fit: cover; background: var(--cream-dark); }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .droplet-frame { max-width: 340px; margin: 0 auto; }
}
