:root {
    /* POSOne Oman Unique Identity - Orange & Blue */
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --primary-dark: #c2410c;
    
    --secondary-color: #2563eb;
    --secondary-hover: #1d4ed8;
    
    --accent-color: #0f172a;
    --accent-hover: #1e293b;
    
    --text-color: #1e293b;
    --text-muted: #64748b;
    
    --bg-light: #f8fafc;
    --bg-sand: #fdfaf6;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.4);
    
    /* 3D and Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(249, 115, 22, 0.1);
    --glass-blur: blur(12px);
    
    --shadow-3d: 
        8px 8px 16px rgba(163, 177, 198, 0.4), 
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    --shadow-3d-hover: 
        12px 12px 20px rgba(163, 177, 198, 0.5), 
        -12px -12px 20px rgba(255, 255, 255, 0.9);
    --shadow-3d-inset: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.4), 
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
        
    --radius-3d: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #eef2f5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Override Legacy Wrapper to allow Full Width */
#wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure Sections are Full Width */
.products-section {
    width: 100%;
    max-width: 100%;
    padding: 2rem 0;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 3rem;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

/* Original Modal Styles Needed for functionality */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-3d);
    box-shadow: var(--shadow-3d);
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Ensure modal grid looks good */
#modal-body.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Map Existing Elements to 3D Style */
.product-card {
    background: #eef2f5 !important;
    border-radius: var(--radius-3d) !important;
    box-shadow: var(--shadow-3d) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-3d-hover) !important;
    transform: translateY(-5px) scale(1.02) !important;
}

.product-image img {
    border-bottom: 2px solid rgba(249, 115, 22, 0.05);
}

.btn-view {
    background: #eef2f5 !important;
    color: var(--primary-color) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-3d) !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
}

.btn-view:active {
    box-shadow: var(--shadow-3d-inset) !important;
    transform: translateY(2px) !important;
}

/* Header Overrides for Oman Theme */
.modern-header__main {
    background: #ffffff !important;
    border-bottom: 2px solid rgba(249, 115, 22, 0.05);
}

.modern-header__menu-link {
    color: var(--primary-dark) !important;
}

.modern-header__menu-link:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}