:root {
    --primary: #ff9900; /* E-commerce orange */
    --dark: #131921;
    --background: #eaeded;
    --surface: #ffffff;
    --text: #333333;
    --border: #ddd;
    --price: #b12704;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    min-height: 100vh;
}
/* Top Navigation Bar */
.navbar {
    background-color: var(--dark);
    color: white;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .brand { font-size: 1.5rem; font-weight: bold; color: white; text-decoration: none; }
.navbar .brand span { color: var(--primary); }
.cart-status { background: var(--primary); color: var(--dark); padding: 5px 15px; border-radius: 20px; font-weight: bold; }

/* Main Core Layout */
.layout-container { display: flex; flex: 1; }
.sidebar {
    width: 240px; background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; padding: 20px 0;
}
.sidebar-title { padding: 0 24px 10px 24px; font-weight: bold; border-bottom: 1px solid var(--border); }
.menu-link {
    padding: 12px 24px; color: #444; text-decoration: none; display: block; transition: all 0.2s;
}
.menu-link:hover { background-color: #f7f7f7; color: var(--primary); }
.menu-link.active { font-weight: bold; color: black; background-color: #f3f3f3; border-left: 4px solid var(--primary); }

/* Product Display Space */
.main-content { flex-grow: 1; padding: 30px; }
.page-title { margin-top: 0; font-size: 1.6rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Product Details */
.product-image { height: 160px; background: #eee; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 15px; }
.product-title { font-size: 1rem; font-weight: 600; margin: 0 0 8px 0; }
.product-price { color: var(--price); font-size: 1.2rem; font-weight: bold; margin-bottom: 12px; }
.buy-btn { background: #ffd814; border: 1px solid #fcd200; border-radius: 20px; padding: 8px; cursor: pointer; width: 100%; font-weight: 500; }
.buy-btn:hover { background: #f7ca00; }

/* Diagnostic Box for CDN Tracking */
.cdn-debug-info { margin-top: 40px; background: #fff; border: 1px dashed #aaa; padding: 15px; border-radius: 4px; }
code { background: #f1f1f1; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
