/* =====================================================
   ShopOnline — Amazon-style UI (PHP version)
   ===================================================== */
:root {
  --navy:   #131921;
  --navy2:  #232f3e;
  --navy3:  #37475a;
  --yellow: #febd69;
  --yellow2:#ffd814;
  --yellow3:#f7ca00;
  --orange: #f3a847;
  --link:   #007185;
  --link2:  #c7511f;
  --green:  #007600;
  --text:   #0f1111;
  --muted:  #565959;
  --border: #d5d9d9;
  --bg:     #eaeded;
  --white:  #ffffff;
  --danger: #cc0c39;
  --star:   #FFA41C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Amazon Ember", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link2); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- HEADER ---- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.header-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.logo { font-size: 22px; font-weight: 700; color: var(--white); white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--yellow); }
.logo:hover { text-decoration: none; outline: 1px solid var(--white); border-radius: 2px; }

.header-location { display: none; flex-direction: column; font-size: 11px; color: #ccc; white-space: nowrap; }
.header-location strong { font-size: 13px; color: var(--white); }
@media(min-width:768px){ .header-location { display: flex; } }

.search-form { display: flex; flex: 1; max-width: 700px; border-radius: 4px; overflow: hidden; }
.search-cat { display: none; background: #f3f3f3; border: none; padding: 0 8px; font-size: 12px; color: var(--text); cursor: pointer; border-right: 1px solid #cdcdcd; }
@media(min-width:768px){ .search-cat { display: block; } }
.search-form input[type=text], .search-form input[type=search] { flex: 1; border: none; padding: 8px 10px; font-size: 15px; outline: none; color: var(--text); }
.search-form button { background: var(--yellow); border: none; padding: 0 16px; cursor: pointer; }
.search-form button:hover { background: var(--orange); }
.search-form button svg { width: 20px; height: 20px; color: var(--navy); }

.header-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-nav a { color: var(--white); padding: 6px 8px; border-radius: 2px; font-size: 13px; display: flex; flex-direction: column; border: 1px solid transparent; }
.header-nav a:hover { border-color: var(--white); text-decoration: none; }
.header-nav a small { font-size: 11px; color: #ccc; font-weight: 400; }
.header-nav a strong { font-size: 13px; }
.cart-link { display: flex; align-items: flex-end; gap: 4px; position: relative; padding: 6px 8px; border: 1px solid transparent; border-radius: 2px; color: var(--white); font-weight: 700; }
.cart-link:hover { border-color: var(--white); text-decoration: none; }
.cart-count { position: absolute; top: 0; right: 18px; background: var(--yellow); color: var(--navy); font-size: 16px; font-weight: 700; min-width: 20px; text-align: center; border-radius: 2px; }
.cart-link svg { width: 34px; height: 34px; }

/* Category nav bar */
.cat-nav { background: var(--navy2); }
.cat-nav-inner { max-width: 1500px; margin: 0 auto; display: flex; gap: 0; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-inner a { color: var(--white); padding: 8px 10px; white-space: nowrap; font-size: 13px; display: block; border: 1px solid transparent; border-radius: 2px; }
.cat-nav-inner a:hover { border-color: var(--white); text-decoration: none; }
.cat-nav-inner a.admin-link { color: var(--yellow); font-weight: 600; }

/* ---- MAIN ---- */
main.container { max-width: 1500px; margin: 0 auto; padding: 16px 12px 60px; min-height: 70vh; }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, var(--navy2), var(--navy3)); color: var(--white); padding: 48px 36px; border-radius: 4px; margin-bottom: 20px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; background: rgba(254,189,105,.07); border-radius: 50%; }
.hero p.tag { font-size: 12px; font-weight: 600; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.hero h1 { font-size: 30px; font-weight: 700; line-height: 1.2; max-width: 480px; }
.hero p.sub { color: #adb7be; margin-top: 8px; max-width: 420px; }
.hero a.btn { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 10px 24px; border-radius: 20px; margin-top: 20px; font-size: 15px; }
.hero a.btn:hover { background: var(--orange); text-decoration: none; }

/* ---- SECTION ---- */
.section { margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-header h2 { font-size: 20px; font-weight: 700; }
.section-header a { font-size: 13px; color: var(--link); }

/* ---- CATEGORY CARDS ---- */
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.category-card { background: var(--white); border-radius: 4px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid transparent; transition: border-color .15s; }
.category-card:hover { border-color: var(--orange); text-decoration: none; }
.category-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.category-card span { font-size: 13px; font-weight: 600; color: var(--text); }

/* ---- PRODUCT GRID ---- */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(min-width:600px){ .grid-products { grid-template-columns: repeat(3,1fr); } }
@media(min-width:900px){ .grid-products { grid-template-columns: repeat(4,1fr); } }
@media(min-width:1200px){ .grid-products { grid-template-columns: repeat(5,1fr); } }

.product-card { background: var(--white); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; transition: box-shadow .15s; padding: 12px; }
.product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); border-color: var(--border); text-decoration: none; }
.product-img { position: relative; aspect-ratio: 1/1; background: #f7f7f7; border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.badge-sale { position: absolute; top: 6px; left: 6px; background: var(--danger); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 2px; }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 13px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.product-card:hover h3 { color: var(--link2); }

/* Stars */
.stars { display: flex; align-items: center; gap: 2px; margin: 4px 0; }
.stars .s { color: var(--star); font-size: 13px; }
.stars .s.empty { color: #ddd; }
.stars small { color: var(--muted); font-size: 11px; margin-left: 3px; }

.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.price { font-size: 17px; font-weight: 700; color: var(--text); }
.price-strike { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.free-delivery { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 3px; }

/* ---- PRODUCT DETAIL ---- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 20px; background: var(--white); padding: 20px; border-radius: 4px; }
@media(min-width:768px){ .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail-img img { width: 100%; border-radius: 4px; border: 1px solid var(--border); }
.product-detail-info h1 { font-size: 22px; font-weight: 400; line-height: 1.3; }
.detail-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.detail-price { font-size: 26px; font-weight: 400; }
.detail-price .detail-price-strike { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.in-stock { color: var(--green); font-weight: 700; font-size: 17px; }
.out-stock { color: var(--danger); font-weight: 700; }
.description { color: var(--muted); line-height: 1.6; font-size: 14px; margin-top: 8px; }

.add-to-cart-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.qty-select { padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: #f0f2f2; font-size: 14px; }
.btn-atc { background: var(--yellow2); border: 1px solid #FCD200; color: var(--text); font-weight: 500; padding: 10px; border-radius: 20px; cursor: pointer; font-size: 14px; text-align: center; }
.btn-atc:hover { background: var(--yellow3); }
.btn-buynow { background: var(--orange); border: 1px solid #e77600; color: var(--text); font-weight: 500; padding: 10px; border-radius: 20px; cursor: pointer; font-size: 14px; text-align: center; }
.btn-buynow:hover { background: #c96a00; color: var(--white); }

/* ---- CART ---- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:900px){ .cart-layout { grid-template-columns: 1fr 280px; } }
.cart-box { background: var(--white); border-radius: 4px; padding: 20px; }
.cart-title { font-size: 24px; font-weight: 400; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 100px; height: 100px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 16px; color: var(--link); }
.cart-item-name:hover { color: var(--link2); }
.cart-item-price { font-size: 17px; font-weight: 700; margin: 6px 0; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: #f0f2f2; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #ddd; }
.qty-display { min-width: 28px; text-align: center; font-weight: 600; }
.remove-btn { color: var(--link); font-size: 12px; background: none; border: none; cursor: pointer; padding: 0; }
.remove-btn:hover { color: var(--danger); text-decoration: underline; }
.cart-sidebar { background: var(--white); border-radius: 4px; padding: 20px; height: fit-content; }
.cart-subtotal { font-size: 18px; margin-bottom: 14px; }
.cart-subtotal strong { font-size: 20px; }
.btn-checkout { display: block; width: 100%; background: var(--yellow2); border: 1px solid #FCD200; color: var(--text); font-weight: 500; padding: 10px; border-radius: 20px; cursor: pointer; font-size: 15px; text-align: center; }
.btn-checkout:hover { background: var(--yellow3); text-decoration: none; }
.cart-empty { background: var(--white); border-radius: 4px; padding: 48px; text-align: center; }
.cart-empty h1 { font-size: 24px; font-weight: 400; margin-bottom: 8px; }

/* ---- AUTH ---- */
.auth-wrap { max-width: 400px; margin: 32px auto; background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.auth-wrap h1 { font-size: 26px; font-weight: 400; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px rgba(243,168,71,.3); }
.btn-primary { background: var(--yellow2); border: 1px solid #FCD200; color: var(--text); font-weight: 500; padding: 9px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; }
.btn-primary:hover { background: var(--yellow3); }
.auth-divider { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0; border-top: 1px solid var(--border); padding-top: 12px; }
.auth-link { color: var(--link); }

/* ---- CHECKOUT ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:900px){ .checkout-layout { grid-template-columns: 1fr 320px; } }
.checkout-box { background: var(--white); border-radius: 4px; padding: 24px; }
.checkout-box h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form input, .checkout-form textarea, .checkout-form select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.payment-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.payment-option input[type=radio] { accent-color: var(--orange); }
.order-summary { background: var(--white); border-radius: 4px; padding: 20px; height: fit-content; }
.order-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* ---- ORDERS ---- */
.orders-box { background: var(--white); border-radius: 4px; padding: 24px; margin-bottom: 16px; }
.order-card { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.order-card-header { background: #f0f2f2; padding: 12px 16px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.order-card-header strong { color: var(--text); display: block; font-size: 13px; }
.order-card-body { padding: 16px; }

/* ---- STATUS BADGES ---- */
.status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cfe2ff; color: #084298; }
.status-shipped   { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1e7dd; color: #0a3622; }
.status-cancelled { background: #f8d7da; color: #842029; }

/* ---- ADMIN ---- */
.admin-body { background: #f3f3f3; }
.admin-header { background: var(--navy); color: var(--white); border-bottom: 1px solid var(--navy3); }
.admin-header .header-inner { max-width: 1400px; }
.admin-header .logo { font-size: 18px; }
.admin-header .nav-links a { color: #ccc; font-size: 13px; }
.admin-header .nav-links a:hover { color: var(--yellow); text-decoration: none; }
.admin-main { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: 4px; padding: 20px 24px; border-left: 4px solid var(--yellow); box-shadow: 0 1px 3px rgba(0,0,0,.1); color: inherit; display: block; }
.stat-card:hover { text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--navy2); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; }
.dash-kpis .stat-card { padding: 16px 18px; }
.dash-kpis .stat-num { font-size: 24px; margin-top: 4px; }
.kpi-sales { border-left-color: #007600; }
.kpi-pending { border-left-color: #f3a847; }
.kpi-ok { border-left-color: #007600; }
.kpi-bad { border-left-color: var(--danger); }
.kpi-warn { border-left-color: #cc0c39; }
.kpi-warn .stat-num { color: var(--danger); }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media(max-width:900px){ .dash-grid { grid-template-columns: 1fr; } }
.dash-panel { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 18px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.dash-wide { grid-column: 1 / -1; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.dash-panel-head h2 { font-size: 16px; font-weight: 700; }
.dash-panel-head a { font-size: 12px; }
.dash-muted { font-size: 12px; color: var(--muted); }
.dash-empty { font-size: 13px; color: var(--muted); padding: 12px 0; }
.dash-table { box-shadow: none; font-size: 12px; }
.dash-table th, .dash-table td { padding: 8px 10px; }

.rev-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 8px 0 0; border-bottom: 1px solid var(--border); }
.rev-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.rev-bar { width: 100%; max-width: 28px; background: linear-gradient(180deg, #febd69, #f3a847); border-radius: 3px 3px 0 0; min-height: 2px; }
.rev-label { font-size: 10px; color: var(--muted); }

.stock-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.stock-pill.low { background: #fff3cd; color: #856404; }
.stock-pill.out { background: #f8d7da; color: #842029; }

.review-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.review-list li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.review-list li:last-child { border-bottom: none; padding-bottom: 0; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-toolbar h1 { font-size: 22px; font-weight: 700; }
.btn-admin { background: var(--yellow2); border: 1px solid #FCD200; color: var(--text); padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; display: inline-block; }
.btn-admin:hover { background: var(--yellow3); text-decoration: none; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-size: 13px; }
.admin-table th { background: #f0f2f2; padding: 12px 14px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table a { color: var(--link); }
.admin-table a:hover { color: var(--link2); }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; padding: 0; }
.link-danger:hover { text-decoration: underline; }
.admin-form { display: flex; flex-direction: column; gap: 16px; max-width: 600px; background: var(--white); padding: 24px; border-radius: 4px; }
.admin-form-wide { max-width: 1100px; }
.admin-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.admin-form input, .admin-form textarea, .admin-form select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; }
.admin-form .checkbox-label { flex-direction: row; align-items: center; font-weight: 400; }
.inline-status-form select { padding: 4px 8px; border: 1px solid var(--border); border-radius: 3px; font-size: 12px; }
.form-section { border: 1px solid var(--border); border-radius: 4px; padding: 16px 18px 18px; margin: 0; }
.form-section legend { font-size: 15px; font-weight: 700; padding: 0 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.form-hint { font-size: 12px; color: var(--muted); font-weight: 400; margin: 0; }
.variants-wrap { overflow-x: auto; }
.variants-table input, .variants-table select { width: 100%; min-width: 70px; padding: 6px 8px; font-size: 12px; }
.variants-table td { padding: 6px; }
.link-btn { background: none; border: none; color: var(--link); cursor: pointer; font-size: 13px; padding: 0; }
.link-btn:hover { color: var(--link2); text-decoration: underline; }
.admin-actions { white-space: nowrap; }
.admin-actions form { display: inline; }
.status-active { background: #d1e7dd; color: #0a3622; }
.status-inactive { background: #f8d7da; color: #842029; }
.variant-pickers { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.variant-pickers label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.variant-pickers select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; min-width: 120px; }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumbs .thumb { border: 1px solid var(--border); background: #fff; padding: 2px; cursor: pointer; border-radius: 3px; width: 56px; height: 56px; }
.product-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-videos { margin-top: 10px; font-size: 13px; }
.product-videos a { margin-right: 12px; }
.brand-line, .sku-line, .cart-variant, .cart-sku { font-size: 13px; color: var(--muted); margin-top: 4px; }

.admin-version-badge { background: var(--yellow2); border: 1px solid #FCD200; color: var(--navy); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.admin-header .nav-highlight { color: var(--yellow) !important; font-weight: 600; }
.pm-hero { background: linear-gradient(135deg, var(--navy2), var(--navy3)); color: #fff; border-radius: 6px; padding: 28px 28px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pm-hero h2 { font-size: 24px; margin: 4px 0 8px; }
.pm-hero p { color: #c5ced6; max-width: 640px; line-height: 1.5; font-size: 14px; }
.pm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin: 0; }
.pm-hero .btn-primary { background: var(--yellow2); color: var(--navy); border-color: #FCD200; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pm-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pm-card:hover { border-color: var(--orange); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pm-card strong { color: var(--text); font-size: 15px; }
.pm-card span { color: var(--muted); font-size: 12px; }

.admin-user-bar { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tabs a { background: #fff; border: 1px solid var(--border); padding: 7px 14px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.admin-tabs a:hover { border-color: var(--orange); text-decoration: none; }
.admin-tabs a.active { background: var(--navy2); color: #fff; border-color: var(--navy2); }
.roles-scroll { overflow-x: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.roles-matrix th.mod-head { text-align: center; background: #e7e9ec; font-size: 11px; }
.roles-matrix th.act-head { text-align: center; font-size: 11px; padding: 6px 4px; min-width: 28px; }
.roles-matrix td.perm-cell { text-align: center; padding: 6px 4px; }
.roles-matrix input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }

.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
@media(max-width:800px){ .settings-layout { grid-template-columns: 1fr; } }
.settings-nav { background: #fff; border-radius: 6px; border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.settings-nav a { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.settings-nav a:last-child { border-bottom: none; }
.settings-nav a:hover { background: #f7f8f8; text-decoration: none; color: var(--link2); }
.settings-nav a.active { background: var(--navy2); color: #fff; }
.settings-panel { background: #fff; border-radius: 6px; border: 1px solid var(--border); padding: 22px 24px; }
.settings-panel h2 { font-size: 18px; margin-bottom: 16px; }

.nav-notif-count, .notif-badge { display: inline-block; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; padding: 1px 6px; border-radius: 10px; text-align: center; vertical-align: middle; }
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; }
.notif-item.unread { border-left: 4px solid var(--yellow); background: #fffdf5; }
.notif-icon { font-size: 22px; line-height: 1; }
.notif-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.notif-type { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.notif-body p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.notif-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.notif-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ---- ALERTS ---- */
.alert-success { background: #d1e7dd; color: #0a3622; padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; border-left: 4px solid #0a3622; }
.alert-error   { background: #f8d7da; color: #842029; padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; border-left: 4px solid #842029; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: #ddd; margin-top: 32px; }
.footer-top { border-top: 1px solid var(--navy3); max-width: 1500px; margin: 0 auto; padding: 36px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 24px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #adb7be; font-size: 13px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { background: var(--navy2); text-align: center; padding: 14px; font-size: 12px; color: #888; }

/* ---- BREADCRUMB ---- */
.breadcrumb { font-size: 13px; margin-bottom: 12px; }
.breadcrumb a { color: var(--link); }

/* ---- SEARCH PAGE ---- */
.search-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.search-count strong { color: var(--text); }

/* ---- MISC ---- */
.error { color: var(--danger); font-size: 13px; }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media(max-width:600px){
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 22px; }
  .product-detail { padding: 14px; }
}
