*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--red-primary: #D32F2F;--red-dark: #B71C1C;--red-light: #EF5350;--green-primary: #2E7D32;--green-dark: #1B5E20;--green-light: #4CAF50;--yellow-accent: #FDD835;--yellow-light: #FFF9C4;--white: #FFFFFF;--gray-50: #FAFAFA;--gray-100: #F5F5F5;--gray-200: #EEEEEE;--gray-300: #E0E0E0;--gray-400: #BDBDBD;--gray-500: #9E9E9E;--gray-600: #757575;--gray-700: #616161;--gray-800: #424242;--gray-900: #212121;--font-header: "Oswald", Impact, sans-serif;--font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;--shadow-sm: 0 1px 2px rgba(0,0,0,.05);--shadow-md: 0 4px 6px rgba(0,0,0,.1);--shadow-lg: 0 10px 15px rgba(0,0,0,.1);--shadow-xl: 0 20px 25px rgba(0,0,0,.15);--radius-sm: 2px;--radius-md: 6px;--radius-lg: 8px;--radius-full: 9999px}body{font-family:var(--font-body);background:var(--gray-200);color:var(--gray-900);line-height:1.4;-webkit-font-smoothing:antialiased}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit;font-size:inherit}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{background:var(--red-primary);color:#fff;padding:8px 24px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-md);position:sticky;top:0;z-index:100}.app-header h1{font-family:var(--font-header);font-size:22px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.app-header .subtitle{font-size:11px;opacity:.85;font-weight:400;letter-spacing:.5px}.header-actions{display:flex;gap:12px;align-items:center}.app-main{flex:1;display:flex;gap:0;overflow:hidden}.sidebar{width:280px;background:#fff;border-right:1px solid var(--gray-200);display:flex;flex-direction:column;overflow:hidden}.sidebar-header{padding:12px 16px;border-bottom:1px solid var(--gray-200);background:var(--gray-50)}.sidebar-header h2{font-size:13px;font-weight:600;color:var(--gray-700);text-transform:uppercase;letter-spacing:.5px}.sidebar-content{flex:1;overflow-y:auto;padding:8px}.grid-editor-container{flex:1;padding:12px;overflow:auto;display:flex;flex-direction:column;align-items:center}.grid-wrapper{background:#fff;border:1px solid var(--gray-300);overflow:hidden;width:100%;max-width:1100px}.grid-header-bar{background:var(--red-primary);color:#fff;padding:10px 16px;display:flex;align-items:center;justify-content:space-between}.grid-header-bar h2{font-family:var(--font-header);font-size:18px;letter-spacing:1px}.grid-header-bar .week-dates{font-size:12px;opacity:.9}.grid-panel{display:grid;background:var(--gray-300)}.grid-panel-framed{border:3px solid var(--red-primary);border-top:none}.grid-cell.divider-right{border-right:3px solid var(--red-primary)}.grid-cell{background:#fff;border:1px solid var(--gray-300);min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:box-shadow .15s ease;position:relative;overflow:hidden}.grid-cell:hover{box-shadow:0 0 0 2px var(--green-primary);z-index:1}.grid-cell.empty{color:var(--gray-400);background:var(--gray-50)}.grid-cell.empty:hover{color:var(--green-primary);background:#fff}.grid-cell.empty .cell-placeholder{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px}.grid-cell.empty .cell-placeholder .plus-icon{font-size:24px;font-weight:300;line-height:1;opacity:.5}.grid-cell.filled{border:1px solid var(--gray-200);cursor:grab;padding:6px 4px 4px;background:#fff}.grid-cell.filled:hover{box-shadow:0 2px 8px #00000026;z-index:2}.grid-cell.filled:active{cursor:grabbing}.cell-product{display:flex;flex-direction:column;width:100%;height:100%;gap:0}.cell-images-container{display:flex;align-items:center;justify-content:center;flex:1;padding:6px 4px 0;gap:0;min-height:0;position:relative}.cell-image-slot{display:flex;align-items:center;justify-content:center;min-width:0}.cell-image-left{z-index:1;transform:translateY(-4px) rotate(-3deg)}.cell-image-right{z-index:2;transform:translateY(4px) rotate(3deg);margin-left:-30px}.cell-product-image{width:90px;height:90px;object-fit:contain;background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cell-product-image-emoji{font-size:42px;background:transparent}.cell-halal-badge{position:absolute;top:3px;left:3px;width:36px;height:36px;z-index:4;pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2));border-radius:50%;overflow:hidden}.cell-emoji-badge{position:absolute;top:3px;right:22px;font-size:18px;line-height:1;z-index:4;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}.cell-bottom-bar{display:flex;align-items:flex-end;justify-content:space-between;width:100%;padding:2px 3px 3px;gap:4px;min-height:0}.cell-product-info{display:flex;flex-direction:column;align-items:flex-start;gap:1px;flex-shrink:1;min-width:0;flex:1;padding:0}.cell-product-name{font-size:12px;font-weight:700;color:var(--gray-900);line-height:1.15;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:left}.cell-product-description{font-size:10px;color:var(--gray-600);line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:left}.cell-product-origin{font-size:8px;color:var(--gray-400);font-style:italic}.cell-price-badge{width:58px;height:48px;border-radius:6px;background:var(--red-primary);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--font-header);line-height:1;flex-shrink:0;position:relative}.cell-price-badge .price-main{display:flex;align-items:flex-start;line-height:1}.cell-price-badge .price-dollars{font-size:28px;font-weight:700;line-height:.85}.cell-price-badge .price-cents{font-size:14px;font-weight:700;line-height:1;margin-top:-2px}.cell-price-badge .price-cent-symbol,.cell-price-badge .price-dollar-sign{font-size:16px;font-weight:700;line-height:1;margin-top:-2px}.cell-price-badge .price-qty{font-size:20px;font-weight:700;line-height:.85}.cell-price-badge .price-unit{font-size:10px;font-weight:500;opacity:.95;margin-top:1px}.cell-price-badge.cents-only{background:var(--green-primary)}.cell-price-badge.cents-only .price-dollars{font-size:28px}.cell-price-badge.multi-buy{background:var(--red-primary)}.cell-price-badge.badge-red{background:var(--red-primary);color:#fff}.cell-price-badge.badge-green{background:var(--green-primary);color:#fff}.cell-price-badge.badge-yellow{background:#f9a825;color:#333}.badge-color-picker{display:flex;gap:10px;margin-top:4px}.badge-color-btn{width:40px;height:40px;border-radius:50%;border:3px solid transparent;cursor:pointer;font-size:18px;font-weight:700;color:#fff;display:flex;align-items:center;justify-content:center;transition:border-color .15s,transform .15s}.badge-color-btn:hover{transform:scale(1.1)}.badge-color-btn.active{border-color:#333;box-shadow:0 0 0 2px #fff,0 0 0 4px #333}.cell-delete-btn{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:var(--radius-full);background:var(--red-primary);color:#fff;border:none;font-size:10px;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease;z-index:3}.grid-cell.filled:hover .cell-delete-btn{opacity:1}.cell-delete-btn:hover{background:var(--red-dark)}.cell-edit-indicator{position:absolute;top:2px;left:2px;font-size:10px;opacity:0;transition:opacity .15s ease;z-index:3}.grid-cell.filled:hover .cell-edit-indicator{opacity:.5}.cell-move-btn{position:absolute;top:2px;right:22px;width:18px;height:18px;background:var(--blue-primary, #1976D2);color:#fff;border:none;border-radius:50%;cursor:pointer;font-size:10px;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease;z-index:3}.grid-cell.filled:hover .cell-move-btn{opacity:1}.cell-move-btn:hover{background:#1565c0}.grid-cell.moving-source{outline:3px solid #1976D2;outline-offset:-2px;opacity:.6;animation:pulse-move 1s ease-in-out infinite}@keyframes pulse-move{0%,to{opacity:.6}50%{opacity:.9}}.grid-cell.move-target.empty{background:#e3f2fd;border:2px dashed #1976D2}.grid-cell.move-target.filled{outline:2px dashed #FF9800;outline-offset:-2px}.moving-mode-banner{background:#1976d2;color:#fff;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:500;border-radius:6px;margin:4px 0}.btn-cancel-move{background:#fff3;color:#fff;border:none;border-radius:4px;padding:4px 10px;cursor:pointer;font-size:12px;font-weight:600}.btn-cancel-move:hover{background:#ffffff4d}.section-header{background:var(--red-primary);color:#fff;font-family:var(--font-header);font-size:14px;font-weight:700;letter-spacing:2px;text-transform:uppercase;text-align:center;padding:6px 12px;display:flex;align-items:center;justify-content:center;min-height:32px;-webkit-user-select:none;user-select:none;position:relative;cursor:pointer;overflow:visible}.section-header.section-banner{background:var(--green-dark);font-size:16px;letter-spacing:2.5px;min-height:40px}.section-header.section-accent{background:#e91e63;font-size:12px;letter-spacing:1.5px;min-height:28px;font-style:italic}.section-editor{position:absolute;top:100%;left:50%;transform:translate(-50%);z-index:100;background:#fff;border:2px solid #333;border-radius:8px;padding:12px;min-width:250px;box-shadow:0 4px 16px #00000040;display:flex;flex-direction:column;gap:8px}.section-editor input[type=text]{width:100%;padding:6px 10px;border:1px solid #ccc;border-radius:4px;font-size:14px;font-weight:600}.section-editor-colors{display:flex;gap:12px;align-items:center}.section-editor-colors label{display:flex;align-items:center;gap:4px;font-size:12px;color:#333;font-weight:600}.section-editor-colors input[type=color]{width:32px;height:28px;border:1px solid #ccc;border-radius:4px;cursor:pointer;padding:1px}.section-editor-actions{display:flex;gap:8px;justify-content:flex-end}.section-editor-actions button{padding:4px 14px;border:none;border-radius:4px;font-size:12px;font-weight:600;cursor:pointer}.section-editor-actions button:first-child{background:var(--green-dark);color:#fff}.section-editor-actions button:last-child{background:#eee;color:#333}.section-frame{border:3px solid var(--red-primary);z-index:2;border-radius:0}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:200;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);width:480px;max-width:90vw;max-height:80vh;display:flex;flex-direction:column;animation:slideUp .2s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{padding:16px 20px;border-bottom:1px solid var(--gray-200);display:flex;align-items:center;justify-content:space-between}.modal-header h3{font-size:16px;font-weight:600}.modal-close{width:32px;height:32px;border-radius:var(--radius-full);border:none;background:var(--gray-100);font-size:18px;display:flex;align-items:center;justify-content:center;color:var(--gray-600)}.modal-close:hover{background:var(--gray-200);color:var(--gray-900)}.modal-body{flex:1;overflow-y:auto;padding:16px 20px}.search-input-wrapper{position:relative;margin-bottom:12px}.search-input{width:100%;padding:10px 14px 10px 38px;border:2px solid var(--gray-300);border-radius:var(--radius-md);font-size:14px;outline:none;transition:border-color .15s ease}.search-input:focus{border-color:var(--green-primary)}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--gray-400);font-size:16px}.search-results{display:flex;flex-direction:column;gap:4px}.search-result-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-md);cursor:pointer;transition:background .1s ease;border:1px solid transparent}.search-result-item:hover{background:#2e7d3214;border-color:var(--green-light)}.search-result-image{width:44px;height:44px;border-radius:var(--radius-sm);background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}.search-result-info{flex:1;min-width:0}.search-result-name{font-size:14px;font-weight:600;color:var(--gray-800)}.search-result-desc{font-size:11px;color:var(--gray-500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result-meta{display:flex;gap:8px;align-items:center}.search-result-price{font-family:var(--font-header);font-size:16px;font-weight:700;color:var(--red-primary)}.search-result-unit{font-size:11px;color:var(--gray-500)}.search-result-category{font-size:10px;padding:2px 8px;border-radius:var(--radius-full);background:var(--gray-100);color:var(--gray-600)}.category-filter{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.category-chip{padding:4px 12px;border-radius:var(--radius-full);border:1px solid var(--gray-300);background:#fff;font-size:12px;color:var(--gray-600);transition:all .15s ease}.category-chip:hover{border-color:var(--green-primary);color:var(--green-primary)}.category-chip.active{background:var(--green-primary);color:#fff;border-color:var(--green-primary)}.ad-list{display:flex;flex-direction:column;gap:6px}.ad-list-item{padding:10px;border-radius:var(--radius-md);border:1px solid var(--gray-200);cursor:pointer;transition:all .15s ease}.ad-list-item:hover{border-color:var(--green-primary);background:#2e7d320a}.ad-list-item.active{border-color:var(--green-primary);background:#2e7d3214}.ad-list-item-name{font-size:14px;font-weight:600;color:var(--gray-800)}.ad-list-item-dates{font-size:12px;color:var(--gray-500);margin-top:2px}.ad-list-item-status{display:inline-block;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:2px 8px;border-radius:var(--radius-full);margin-top:4px}.ad-list-item-status.draft{background:var(--yellow-light);color:#f57f17}.ad-list-item-status.approved{background:#e8f5e9;color:var(--green-dark)}.ad-list-item-status.pending_review{background:#e3f2fd;color:#1565c0}.btn{padding:8px 16px;border-radius:var(--radius-md);border:none;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px;transition:all .15s ease}.btn-primary{background:var(--green-primary);color:#fff}.btn-primary:hover{background:var(--green-dark)}.btn-secondary{background:var(--gray-100);color:var(--gray-700);border:1px solid var(--gray-300)}.btn-secondary:hover{background:var(--gray-200)}.btn-danger{background:var(--red-primary);color:#fff}.btn-danger:hover{background:var(--red-dark)}.btn-sm{padding:5px 10px;font-size:12px}.grid-controls{display:flex;align-items:center;gap:16px;padding:8px 16px;border-bottom:1px solid var(--gray-200);background:var(--gray-50)}.grid-control-group{display:flex;align-items:center;gap:8px}.grid-control-group label{font-size:12px;font-weight:600;color:var(--gray-600);text-transform:uppercase;letter-spacing:.5px}.grid-control-group input[type=number]{width:56px;padding:4px 8px;border:1px solid var(--gray-300);border-radius:var(--radius-sm);text-align:center;font-size:13px}.grid-control-group button{width:28px;height:28px;border-radius:var(--radius-sm);border:1px solid var(--gray-300);background:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;color:var(--gray-600)}.grid-control-group button:hover{background:var(--gray-100)}.new-ad-form{display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--gray-50);border-radius:var(--radius-md);border:1px solid var(--gray-200)}.new-ad-form input{padding:8px 12px;border:1px solid var(--gray-300);border-radius:var(--radius-sm);font-size:13px}.new-ad-form input:focus{outline:none;border-color:var(--green-primary)}.no-results{text-align:center;padding:32px 16px;color:var(--gray-500)}.no-results .emoji{font-size:32px;margin-bottom:8px}.loading-spinner{display:flex;align-items:center;justify-content:center;padding:24px;color:var(--gray-500)}.edit-modal{width:520px}.edit-field{margin-bottom:16px}.edit-field label{display:block;font-size:12px;font-weight:600;color:var(--gray-600);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.edit-input{width:100%;padding:10px 14px;border:2px solid var(--gray-300);border-radius:var(--radius-md);font-size:14px;outline:none;transition:border-color .15s ease}.edit-input:focus{border-color:var(--green-primary)}.edit-textarea{resize:vertical;min-height:70px}.edit-field-row{display:flex;gap:12px;margin-bottom:16px}.image-edit-area{display:flex;flex-direction:column;align-items:center}.image-preview-wrapper{position:relative;width:120px;height:120px;border-radius:var(--radius-md);overflow:hidden;border:2px solid var(--gray-200)}.image-preview{width:100%;height:100%;object-fit:cover}.image-remove-btn{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:var(--radius-full);background:var(--red-primary);color:#fff;border:none;font-size:14px;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-remove-btn:hover{background:var(--red-dark)}.image-placeholder{width:120px;height:120px;border-radius:var(--radius-md);border:2px dashed var(--gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:var(--gray-400);font-size:12px;transition:all .15s ease}.image-placeholder:hover{border-color:var(--green-primary);color:var(--green-primary)}.modal-footer{padding:12px 20px;border-top:1px solid var(--gray-200);display:flex;justify-content:flex-end;gap:8px}.page-tabs{display:flex;gap:3px;padding:6px 12px;background:#fff;border-bottom:2px solid var(--gray-200);overflow-x:auto;width:100%;justify-content:center;flex-wrap:wrap}.page-tab{display:flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid var(--gray-200);border-radius:var(--radius-sm);background:var(--gray-50);color:var(--gray-600);font-size:11px;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap}.page-tab:hover{border-color:var(--green-primary);color:var(--green-primary);background:#2e7d320a}.page-tab.active{border-color:var(--red-primary);background:var(--red-primary);color:#fff}.page-tab-number{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:var(--radius-full);background:#0000001a;font-size:10px;font-weight:700}.page-tab.active .page-tab-number{background:#ffffff40}.page-tab-name{font-size:11px}.add-sheet-btn{background:#e8f5e9!important;border:2px dashed var(--green-primary)!important;color:var(--green-primary)!important;font-weight:700;cursor:pointer}.add-sheet-btn:hover{background:#c8e6c9!important}.remove-sheet-btn{background:#ffebee!important;border:2px dashed var(--red-primary)!important;color:var(--red-primary)!important;font-weight:700;cursor:pointer}.remove-sheet-btn:hover{background:#ffcdd2!important}.add-sheet-modal{background:#fff;border-radius:12px;padding:24px;min-width:500px;max-width:600px;box-shadow:0 8px 32px #0000004d}.add-sheet-modal h3{margin-bottom:4px;font-size:18px}.modal-subtitle{font-size:13px;color:var(--gray-500);margin-bottom:16px}.sheet-template-grid{display:flex;flex-direction:column;gap:12px}.sheet-template-slot{display:flex;flex-direction:column;gap:4px}.sheet-template-slot label{font-size:12px;font-weight:700;color:var(--gray-600)}.sheet-template-slot select{padding:8px 10px;border:1px solid #ccc;border-radius:6px;font-size:13px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.grid-cell.dragging{opacity:.4;border-style:dashed;border-color:var(--gray-400)}.grid-cell.drag-over{border-color:var(--green-primary)!important;background:#2e7d3214!important;box-shadow:inset 0 0 0 2px var(--green-primary);transition:all .1s ease}.grid-cell.drag-over.empty{border-style:solid;background:#2e7d321f!important}.grid-cell.drag-over.filled{border-color:var(--yellow-accent)!important;background:#fdd83526!important;box-shadow:inset 0 0 0 2px var(--yellow-accent)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--gray-300);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--gray-400)}.toolbar{display:flex;align-items:center;gap:8px;padding:6px 16px;background:#fff;border-bottom:1px solid var(--gray-200)}.toolbar-divider{width:1px;height:20px;background:var(--gray-300)}.zoom-control{display:flex;align-items:center;gap:4px}.zoom-control button{width:26px;height:26px;border-radius:var(--radius-sm);border:1px solid var(--gray-300);background:#fff;font-size:14px;display:flex;align-items:center;justify-content:center;color:var(--gray-600)}.zoom-control button:hover{background:var(--gray-100)}.zoom-control span{font-size:11px;font-weight:600;color:var(--gray-600);min-width:36px;text-align:center}.cover-page{display:flex;flex-direction:column;background:#fff;border:2px solid var(--red-primary);width:100%;max-width:1100px;border-radius:0 0 8px 8px;overflow:hidden}.cover-header{display:grid;grid-template-columns:1fr 1fr;border-bottom:3px solid var(--red-primary)}.cover-logo{background:#111;display:flex;align-items:center;justify-content:center;padding:8px;border-right:3px solid var(--red-primary);cursor:pointer;transition:opacity .15s ease}.cover-logo:hover{opacity:.85}.cover-logo-image{max-width:100%;max-height:120px;object-fit:contain}.cover-logo-placeholder{display:flex;flex-direction:column;align-items:center;gap:4px}.cover-logo-plus{font-size:36px;color:#ffffff80;font-weight:300;line-height:1}.cover-logo-hint{font-family:var(--font-header);font-size:13px;color:#ffffff80;text-transform:uppercase;letter-spacing:2px}.cover-featured{flex:1;display:flex;flex-direction:column;background:#fff}.cover-featured-top{display:flex;justify-content:space-between;align-items:stretch;background:var(--red-primary)}.cover-featured-label{background:var(--red-primary);color:#fff;font-family:var(--font-header);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1px;text-align:center;padding:2px 8px;display:flex;align-items:center}.week-calendar-widget{border:2px solid #333;background:#ffe600;font-family:var(--font-header);line-height:1;flex-shrink:0}.week-calendar-header{background:#ffe600;color:#333;font-size:8px;font-weight:700;text-align:center;padding:2px 6px 1px;border-bottom:1px solid #333;letter-spacing:.5px}.week-calendar-grid{display:flex}.week-calendar-day{display:flex;flex-direction:column;align-items:center;border-right:1px solid #333;min-width:20px;padding:0}.week-calendar-day:last-child{border-right:none}.week-calendar-letter{font-size:9px;font-weight:700;color:#333;padding:1px 3px;border-bottom:1px solid #333;width:100%;text-align:center}.week-calendar-date{font-size:10px;font-weight:800;color:#333;padding:2px 3px;width:100%;text-align:center}.cover-featured-grid{flex:1}.cover-featured-grid .grid-cell{min-height:120px;padding:4px}.cover-info-bar{background:var(--gray-100);border-bottom:3px solid var(--red-primary);padding:6px 12px;text-align:center}.cover-info-tagline{font-size:10px;font-weight:600;color:var(--gray-700);line-height:1.3;margin-bottom:3px}.cover-info-details{display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px;color:var(--gray-600);font-weight:500}.cover-info-hours{color:var(--red-primary);font-weight:700}.cover-info-separator{color:var(--gray-400)}.cover-info-website{color:var(--green-primary);font-weight:600}.cover-banner{background:linear-gradient(135deg,#e91e63,#d32f2f,#e91e63);color:#fff;text-align:center;padding:8px 16px;cursor:pointer;border-bottom:2px solid var(--red-dark);transition:filter .15s ease;min-height:36px;display:flex;align-items:center;justify-content:center}.cover-banner:hover{filter:brightness(1.08)}.cover-banner-festive{background:linear-gradient(135deg,#e91e63,#c2185b,#d32f2f,#c2185b,#e91e63)}.cover-banner-produce{background:linear-gradient(135deg,#2e7d32,#388e3c,#2e7d32)}.cover-banner-text{font-family:var(--font-header);font-size:18px;font-weight:700;letter-spacing:3px;text-transform:uppercase;text-shadow:1px 1px 2px rgba(0,0,0,.2)}.cover-banner-input{background:#fff3;border:1px solid rgba(255,255,255,.5);border-radius:var(--radius-sm);color:#fff;font-family:var(--font-header);font-size:18px;font-weight:700;letter-spacing:3px;text-transform:uppercase;text-align:center;padding:4px 16px;width:80%;outline:none}.cover-banner-input::placeholder{color:#fff9}.cover-body{display:grid;grid-template-columns:3fr 1fr;grid-template-rows:1fr auto;gap:2px}.cover-left-section{grid-column:1;grid-row:1}.cover-produce-cells{min-height:100%;border:4px solid var(--red-primary);border-radius:12px;overflow:hidden}.cover-produce-cells .grid-cell{min-height:150px;border:1px solid var(--gray-200)}.cover-right-col{grid-column:2;grid-row:1}.cover-right-cells{min-height:100%;border:4px solid var(--red-primary);border-radius:12px;overflow:hidden}.cover-right-cells .grid-cell{min-height:150px;border:1px solid var(--gray-200)}.cover-bottom{grid-column:1 / -1;grid-row:2}.cover-bottom-cells .grid-cell{min-height:140px;border:1px solid var(--gray-200)}.cover-zone-grid{background:var(--gray-300)}.cover-zone-grid .grid-cell{border:1px solid var(--gray-200)}.cover-page>.cover-header,.cover-page>.cover-info-bar,.cover-page>.cover-banner,.cover-page>.cover-body{position:relative}.halal-toggle-row,.unlink-toggle-row{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--gray-50);border-radius:var(--radius-md);border:1px solid var(--gray-200)}.toggle-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px}.toggle-label input[type=checkbox]{width:18px;height:18px;accent-color:var(--green-primary)}.toggle-text{color:var(--gray-700);font-weight:500}.secondary-product-section{margin-top:10px;padding:10px;border:1px dashed var(--gray-300);border-radius:var(--radius-md);background:var(--gray-50)}.secondary-product-selected{display:flex;align-items:center;justify-content:space-between;gap:8px}.secondary-product-info{display:flex;align-items:center;gap:8px}.secondary-product-thumb{width:40px;height:40px;object-fit:contain;border-radius:var(--radius-sm);border:1px solid var(--gray-200)}.secondary-product-name{font-size:13px;font-weight:600;color:var(--gray-800)}.secondary-search-results{max-height:200px;overflow-y:auto;margin-top:6px;border:1px solid var(--gray-200);border-radius:var(--radius-md);background:#fff}.secondary-search-item{display:flex;align-items:center;gap:8px;padding:8px 10px;cursor:pointer;font-size:13px;border-bottom:1px solid var(--gray-100);transition:background .1s ease}.secondary-search-item:last-child{border-bottom:none}.secondary-search-item:hover{background:#2e7d3214}.secondary-search-thumb{width:32px;height:32px;object-fit:contain;border-radius:var(--radius-sm)}.emoji-input-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.emoji-picker-wrapper{position:relative}.emoji-picker-trigger{display:flex;align-items:center;gap:8px}.emoji-picker-btn{display:flex;align-items:center;gap:6px;padding:6px 14px;border:2px solid var(--gray-300);border-radius:var(--radius-md);background:#fff;font-size:22px;cursor:pointer;transition:border-color .15s}.emoji-picker-btn:hover{border-color:var(--green-primary)}.emoji-picker-arrow{font-size:10px;color:var(--gray-500)}.emoji-dropdown{position:absolute;top:100%;left:0;z-index:50;background:#fff;border:1px solid var(--gray-300);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:320px;max-height:280px;overflow:hidden;margin-top:4px}.emoji-category-tabs{display:flex;overflow-x:auto;border-bottom:1px solid var(--gray-200);padding:0}.emoji-cat-tab{flex-shrink:0;padding:6px 10px;border:none;background:transparent;font-size:11px;font-weight:600;color:var(--gray-500);cursor:pointer;border-bottom:2px solid transparent;transition:all .15s}.emoji-cat-tab:hover{color:var(--gray-800);background:var(--gray-50)}.emoji-cat-tab.active{color:var(--red-primary);border-bottom-color:var(--red-primary)}.emoji-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px;overflow-y:auto;max-height:200px}.emoji-grid-btn{width:100%;aspect-ratio:1;border-radius:var(--radius-md);border:2px solid transparent;background:var(--gray-50);font-size:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .12s ease}.emoji-grid-btn:hover{background:var(--gray-200);transform:scale(1.15)}.emoji-grid-btn.selected{border-color:var(--green-primary);background:#2e7d321a}.back-page{width:1100px;background:#fff;border:2px solid var(--red-primary);font-family:var(--font-body)}.bp-header{display:flex;min-height:140px;border-bottom:2px solid #333}.bp-logo{flex:0 0 55%;background:#1a1a1a;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:12px}.bp-logo-image{max-width:100%;max-height:130px;object-fit:contain}.bp-logo-placeholder{display:flex;flex-direction:column;align-items:center;gap:4px;color:#888}.bp-logo-plus{font-size:32px;color:#666}.bp-logo-hint{font-size:11px;color:#666;text-transform:uppercase;letter-spacing:1px}.bp-featured{flex:1;display:flex;flex-direction:column}.bp-featured-grid{flex:1}.bp-featured-grid .grid-cell{min-height:130px;border-left:1px solid #ccc}.bp-info-bar{border-bottom:2px solid #333;padding:4px 12px;text-align:center;background:#fff}.bp-info-tagline{font-size:9px;font-weight:600;color:#333;letter-spacing:.3px}.bp-info-row{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:2px;font-size:10px;font-weight:700}.bp-info-website{color:#333}.bp-info-separator{color:#999;font-size:8px}.bp-info-hours{color:#333;text-transform:uppercase}.bp-calendar{margin-left:auto}.bp-main-grid{padding:0}.bp-product-grid{gap:0!important}.bp-product-grid .grid-cell{min-height:120px;border:1px solid #ccc;border-radius:0}.bp-product-grid .grid-cell.empty{background:#fff;border:1px solid #ddd}.bp-zone-grid .grid-cell{border-radius:0}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#1b5e20,#d32f2f)}.login-card{background:#fff;border-radius:12px;padding:40px;width:400px;box-shadow:0 8px 32px #0003}.login-header{text-align:center;margin-bottom:24px}.login-header h1{font-size:22px;margin-bottom:4px}.login-header p{color:var(--gray-500);font-size:14px}.login-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:4px}.form-group label{font-size:12px;font-weight:600;color:var(--gray-600)}.form-group input{padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px}.form-group input:focus{border-color:var(--green-primary);outline:none;box-shadow:0 0 0 3px #2e7d321a}.login-btn{padding:12px!important;font-size:15px!important;margin-top:8px}.login-error{background:#ffebee;color:#c62828;padding:8px 12px;border-radius:6px;font-size:13px}.login-success{background:#e8f5e9;color:#2e7d32;padding:8px 12px;border-radius:6px;font-size:13px}.user-menu{display:flex;align-items:center;gap:4px;margin-left:16px;padding-left:16px;border-left:1px solid rgba(255,255,255,.3)}.user-menu-name{color:#fff;font-size:13px;font-weight:600}.user-menu-role{color:#ffffffb3;font-size:11px;text-transform:uppercase;background:#ffffff26;padding:2px 6px;border-radius:3px;margin-left:4px}.user-menu .btn-sm{font-size:11px;padding:4px 8px;background:#ffffff26;color:#fff;border:none;border-radius:4px;cursor:pointer}.user-menu .btn-sm:hover{background:#ffffff40}.user-mgmt-modal{background:#fff;border-radius:12px;padding:0;width:600px;max-height:80vh;overflow-y:auto;box-shadow:0 8px 32px #0000004d}.user-mgmt-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #eee}.user-mgmt-header h3{margin:0}.btn-close{background:none;border:none;font-size:18px;cursor:pointer;color:var(--gray-500)}.user-list{padding:0}.user-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 20px;border-bottom:1px solid #f0f0f0}.user-row.inactive{opacity:.5}.user-info{flex:1;min-width:150px}.user-name{font-weight:600;font-size:14px;display:block}.user-email{font-size:12px;color:var(--gray-500)}.user-role select{padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.role-badge{display:inline-block;padding:3px 8px;border-radius:4px;color:#fff;font-size:11px;font-weight:600}.user-actions{display:flex;gap:4px}.btn-sm{font-size:11px;padding:4px 8px;border:1px solid #ddd;border-radius:4px;background:#fff;cursor:pointer}.btn-sm:hover{background:#f5f5f5}.btn-sm.btn-danger{color:#c62828;border-color:#ffcdd2}.btn-sm.btn-danger:hover{background:#ffebee}.btn-sm.btn-primary{background:var(--green-primary);color:#fff;border-color:var(--green-primary)}.reset-password-row{width:100%;display:flex;gap:8px;padding-top:8px}.reset-password-row input{flex:1;padding:6px 10px;border:1px solid #ddd;border-radius:4px;font-size:13px}.user-last-login{font-size:11px;color:var(--gray-400);width:100%}.add-user-form{padding:16px 20px;border-top:1px solid #eee}.add-user-form h4{margin-bottom:12px}.add-user-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.add-user-fields input,.add-user-fields select{padding:8px 10px;border:1px solid #ddd;border-radius:6px;font-size:13px}.add-user-actions{display:flex;gap:8px;justify-content:flex-end}.add-user-btn{margin:16px 20px}.ad-status-row{display:flex;align-items:center;gap:6px;margin-top:4px;flex-wrap:wrap}.ad-status-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:transform .1s}.ad-status-badge:hover{transform:scale(1.05);filter:brightness(.95)}.ad-status-badge.draft{background:#fff3e0;color:#e65100;border:1px solid #FFB74D}.ad-status-badge.pending_review{background:#e3f2fd;color:#1565c0;border:1px solid #64B5F6}.ad-status-badge.approved{background:#e8f5e9;color:#2e7d32;border:1px solid #81C784}.ad-status-meta{font-size:10px;color:var(--gray-400);font-style:italic}.locked-banner{background:#fff3e0;border:1px solid #FFB74D;color:#e65100;padding:8px 16px;border-radius:6px;font-size:13px;text-align:center;margin:4px 0}.price-format-toggle{display:flex;gap:8px}.price-format-btn{flex:1;padding:8px 12px;border:2px solid #ddd;border-radius:8px;background:#fff;cursor:pointer;font-size:13px;font-weight:600;transition:all .15s ease}.price-format-btn:hover{border-color:#999}.price-format-btn.active{border-color:var(--green-dark);background:#e8f5e9;color:var(--green-dark)}
