:root{
  --accent:#b88920;
  --muted:#6b7280;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:#f9fafb;color:#071029;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.5}
.container{max-width:1200px;margin:0 auto;padding:1rem}

/* Header */
.site-header{background:linear-gradient(135deg,#fff 0%,#f3f4f6 100%);border-bottom:2px solid #e5e7eb;position:sticky;top:0;z-index:50}
.header-inner{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;flex-wrap:wrap}
.brand{margin:0;font-size:1.5rem;font-weight:700;color:#000}
.nav{display:flex;gap:0.5rem;flex-wrap:wrap}
.nav-btn{background:transparent;border:0;padding:0.5rem 1rem;border-radius:8px;cursor:pointer;font-weight:500;transition:all .2s}
.nav-btn:hover{background:#e5e7eb}
.nav-btn.active{background:var(--accent);color:#fff}
.header-actions{display:flex;gap:0.75rem;align-items:center;flex-wrap:wrap}
input[type=search]{padding:0.5rem 0.75rem;border-radius:8px;border:1px solid #d1d5db;width:200px;font-size:0.95rem}
input[type=search]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(184,137,32,0.1)}

/* Buttons */
.btn{background:var(--accent);color:#fff;padding:0.6rem 1rem;border-radius:8px;border:0;cursor:pointer;font-weight:600;transition:all .2s;font-size:0.95rem}
.btn:hover{background:#a07719;transform:translateY(-2px);box-shadow:0 4px 12px rgba(184,137,32,0.3)}
.btn.ghost{background:transparent;color:var(--accent);border:2px solid var(--accent)}
.btn.ghost:hover{background:rgba(184,137,32,0.1)}
.btn.small{padding:0.4rem 0.6rem;font-size:0.85rem}
.icon-btn{background:#eef2f7;border:0;padding:0.35rem;border-radius:6px;cursor:pointer;transition:all .15s}
.icon-btn:hover{background:#e0e6f0}

/* Hero */
.hero{display:grid;grid-template-columns:1fr 400px;gap:2rem;align-items:center;padding:3rem 0}
.hero-text h2{margin:0 0 0.75rem 0;font-size:2rem;line-height:1.2}
.hero-text p{margin:0 0 1.5rem 0;color:#4b5563;font-size:1.05rem}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero-image{display:flex;align-items:center;justify-content:center;min-height:420px}
.hero-image img{
  display:block;width:100%;height:auto;max-height:500px;object-fit:contain;
  border-radius:12px;
  background:linear-gradient(135deg,#fdf8e4 0%,#f9fafb 100%);
  padding:8px;border:1px solid #f0e6c5;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

/* Products */
.products{margin:3rem 0}
.products h3{font-size:1.5rem;margin-bottom:1.5rem}
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}
.product{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 2px 8px rgba(0,0,0,0.06);display:flex;flex-direction:column;transition:all .3s;cursor:pointer}
.product:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,0.12)}
.product:focus{outline:2px solid var(--accent)}
.product-image{width:100%;height:180px;object-fit:cover;border-radius:8px;margin-bottom:0.75rem}
.product-body{padding:0.5rem 0;flex:1}
.product-title{margin:0 0 0.5rem 0;font-size:1rem;font-weight:600}
.product-meta{display:flex;justify-content:space-between;align-items:center;margin-top:0.75rem}
.product-price{font-size:1.25rem;font-weight:700;color:var(--accent)}

/* Cart */
.cart{position:fixed;right:20px;top:90px;width:360px;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 10px 40px rgba(0,0,0,0.15);display:none;z-index:60;max-height:70vh;overflow:auto}
.cart[aria-hidden="false"]{display:block}
.cart h4{margin:0 0 1rem 0}
.cart-items{min-height:60px;max-height:360px;overflow-y:auto}
.cart-item{display:grid;grid-template-columns:60px 1fr 140px;gap:0.75rem;align-items:center;padding:0.75rem 0;border-bottom:1px solid #f1f5f9}
.cart-item:last-child{border-bottom:none}
.cart-item img{width:60px;height:60px;object-fit:cover;border-radius:6px}
.cart-item strong{display:block;font-size:0.95rem}
.cart-item .muted{font-size:0.85rem;color:var(--muted)}
.qty-controls{display:flex;align-items:center;gap:0.3rem}
.qty-controls button{padding:0.3rem 0.5rem;border-radius:4px;border:1px solid #e6e9ef;background:#fff;cursor:pointer;font-size:0.8rem}
.qty-controls button:hover{background:#f3f4f6}
.qty-num{min-width:24px;text-align:center;font-size:0.9rem;font-weight:600}
.cart-footer{margin-top:1rem;border-top:1px solid #f1f5f9;padding-top:1rem}
.cart-total{font-size:1.1rem;font-weight:700;margin-bottom:0.75rem}
.cart-actions{display:flex;flex-direction:column;gap:0.5rem}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:120;opacity:0;pointer-events:none;transition:opacity .2s}
.modal[aria-hidden="false"]{opacity:1;pointer-events:auto}
.modal-panel{background:#fff;border-radius:12px;max-width:900px;width:100%;box-shadow:0 15px 50px rgba(0,0,0,0.3);position:relative;padding:2rem;max-height:90vh;overflow-y:auto}
.modal-close{position:absolute;right:15px;top:15px;background:transparent;border:0;padding:8px;border-radius:6px;cursor:pointer;color:#6b7280}
.modal-close:hover{background:#f3f4f6;color:#000}
.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}
.modal-image img{width:100%;height:380px;object-fit:cover;border-radius:8px;display:block}
.modal-body h3{margin:0 0 0.5rem 0;font-size:1.5rem}
.modal-body p.muted{color:var(--muted)}
.modal-meta{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1.5rem 0}
.price{font-size:1.75rem;font-weight:700;color:var(--accent)}
.qty{display:flex;align-items:center;gap:0.75rem;border:1px solid #e5e7eb;padding:0.5rem;border-radius:8px}
.qty input{width:60px;border:0;text-align:center;font-weight:600;font-size:1rem;padding:0}
.qty input:focus{outline:none}
.modal-actions{margin-top:1.5rem;display:flex;gap:1rem}

/* Contracts Section */
.contracts{background:#f3f4f6;padding:2rem;border-radius:12px;margin:3rem 0}
.contracts h3{margin:0 0 0.75rem 0}
.contracts p{color:var(--muted);margin:0 0 1.5rem 0}
form{max-width:500px}
label{display:block;margin:1rem 0 0.4rem 0;font-weight:600;color:#1f2937}
input,textarea{width:100%;padding:0.75rem;border-radius:8px;border:1px solid #d1d5db;font-family:inherit;font-size:0.95rem}
input:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(184,137,32,0.1)}
textarea{resize:vertical}
.form-actions{display:flex;gap:1rem;margin-top:1.5rem}

/* Footer */
.site-footer{border-top:2px solid #e5e7eb;padding:2rem 0;margin-top:3rem;background:#fff}
.footer-inner{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.footer-inner strong{display:block;margin-bottom:0.5rem;font-size:1.1rem}
.footer-inner p{margin:0.3rem 0;color:var(--muted)}
.footer-inner a{color:var(--accent);text-decoration:none}
.footer-inner a:hover{text-decoration:underline}

/* Category Previews */
.category-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin:2rem 0}
.category-preview-item{background:#f9fafb;border-radius:12px;overflow:hidden;border:2px solid #e5e7eb;transition:all .3s}
.category-preview-item:hover{border-color:var(--accent);box-shadow:0 4px 12px rgba(184,137,32,0.1)}
.category-toggle{width:100%;background:linear-gradient(135deg,#fff 0%,#f3f4f6 100%);border:0;padding:1rem;font-size:1.05rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:0.75rem;transition:all .2s;color:#000}
.category-toggle:hover{background:linear-gradient(135deg,#f3f4f6 0%,#e5e7eb 100%)}
.toggle-icon{display:inline-block;transition:transform .3s}
.category-toggle[aria-expanded="true"] .toggle-icon{transform:rotate(90deg)}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;padding:1rem;background:#fff;max-height:0;overflow:hidden;opacity:0;transition:max-height .3s ease,opacity .3s ease,padding .3s ease}
.category-grid[aria-hidden="false"]{max-height:500px;opacity:1;padding:1rem}
.category-preview-product{background:#fff;border-radius:8px;overflow:hidden;border:1px solid #e5e7eb;display:flex;flex-direction:column;cursor:pointer;transition:all .2s}
.category-preview-product:hover{transform:translateY(-3px);box-shadow:0 6px 16px rgba(0,0,0,0.1)}
.category-preview-product img{width:100%;height:120px;object-fit:cover}
.category-preview-product .title{padding:0.6rem;font-size:0.85rem;font-weight:600;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-preview-product .price{padding:0 0.6rem 0.6rem 0.6rem;color:var(--accent);font-weight:700;font-size:0.95rem;flex-grow:1}
.category-preview-product .btn{margin:0 0.6rem 0.6rem;width:calc(100% - 1.2rem)}

/* ===== INVESTMENT SECTION ===== */
.investments-section { padding: 4rem 0; background-color: #f9f9f9; color: #333; }
.invest-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.invest-header { text-align: center; margin-bottom: 3rem; }
.invest-header h2 { color: #b8860b; font-size: 2.5rem; margin-bottom: 1rem; }
.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.invest-card { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-top: 4px solid #d4af37; }
.invest-card h3 { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1.5rem; color: #333; }
.calc-group { margin-bottom: 1.5rem; }
.calc-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.calc-group input, .calc-group select { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.calc-results { background: #fdf8e4; padding: 1.5rem; border-radius: 8px; margin-top: 1.5rem; }
.calc-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.invest-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.invest-table th, .invest-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
.invest-table th { background-color: #f4f4f4; color: #555; }
.benefits-list { list-style: none; padding: 0; }
.benefits-list li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.benefits-list li::before { content: "✔"; color: #d4af37; position: absolute; left: 0; }
.disclaimer { text-align: center; font-size: 0.85rem; color: #777; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #ddd; }
.reg-form-group { margin-bottom: 1rem; }
.reg-form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.reg-form-group input, .reg-form-group select, .reg-form-group textarea { width: 100%; padding: 0.7rem; border: 1px solid #ccc; border-radius: 6px; }
.reg-helper { font-size: 0.8rem; color: #666; margin-top: 0.2rem; }
.reg-examples { font-size: 0.8rem; color: #555; margin-top: 0.2rem; font-style: italic; }

/* ===== CAREERS SECTION ===== */
.careers-section { padding: 4rem 0; background-color: #fff; color: #333; border-top: 1px solid #eee; }
.careers-container { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.careers-header { text-align: center; margin-bottom: 2rem; }
.careers-header h2 { color: #b8860b; font-size: 2rem; margin-bottom: 1rem; }
.job-list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.job-tag { background: #f4f4f4; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; border: 1px solid #e0e0e0; }
.ideal-for { background: #fdf8e4; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; border-left: 4px solid #d4af37; }
.careers-form { background: #b3e5fc; padding: 2rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #81d4fa; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
.success-message { display: none; background-color: #d4edda; color: #155724; padding: 1rem; border-radius: 6px; margin-top: 1rem; text-align: center; border: 1px solid #c3e6cb; }

/* ===== TOAST ===== */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* ================= POPUP STYLES ================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 30px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.popup-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.25);
    max-width: 440px;
    width: 100%;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    transform: translateX(-70px);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
    max-height: 88vh;
    overflow-y: auto;
    border-top: 6px solid #d4af37;
}
.popup-overlay.active .popup-card {
    transform: translateX(0);
    opacity: 1;
}
.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
    font-weight: 400;
}
.popup-close:hover {
    background: #f3f4f6;
    color: #111;
    transform: rotate(90deg);
}
.popup-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.4rem 0;
    padding-right: 2.2rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.popup-sub {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0 0 1.1rem 0;
    line-height: 1.4;
}
.popup-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.popup-list li {
    background: #fdf8e4;
    border: 1px solid #f0e6c5;
    border-radius: 30px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.popup-extra {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0 0 1rem 0;
}
.popup-cta {
    display: inline-block;
    background: #d4af37;
    color: #000;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    margin-top: 0.2rem;
    font-family: inherit;
}
.popup-cta:hover {
    background: #c49b2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.55);
}
.popup-cta:active {
    transform: translateY(0);
}
.popup-cta.secondary {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.3);
}
.popup-cta.secondary:hover {
    background: #1e2b37;
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.45);
}
.popup-footer-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin: 0.8rem 0 0 0;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .modal-grid{grid-template-columns:1fr}
  .modal-image img{height:280px}
  .footer-inner{grid-template-columns:1fr}
}

@media(max-width:768px){
  .hero{grid-template-columns:1fr;padding:2rem 0}
  .hero-image{display:flex;min-height:auto;margin-top:1.5rem}
  .hero-image img{max-height:360px}
  .header-inner{flex-direction:column;align-items:stretch}
  .nav{width:100%}
  input[type=search]{width:100%}
  .product-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
  .cart{width:90%;right:5%;left:5%;top:auto;bottom:20px}
  .modal-panel{padding:1.5rem}
  .hero-text h2{font-size:1.5rem}
}

@media (max-width: 600px) {
  .popup-overlay {
      padding: 16px;
      justify-content: center;
  }
  .popup-card {
      max-width: 100%;
      padding: 1.6rem;
      border-radius: 16px;
      border-top-width: 4px;
  }
  .popup-list li {
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
  }
  .popup-title {
      font-size: 1.15rem;
  }
}