/* --- 1. Variables & Reset --- */
:root {
    --primary: #4a148c;
    /* Deep Purple */
    --secondary: #7c43bd;
    --accent: #ff6f00;
    /* Amber */
    --light-bg: #f3e5f5;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header & Top Bar --- */
.top-bar {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 0;
}

.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* FIXED: Not sticky */
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
    display: flex;
    align-items: center;
}

.search-bar {
    display: flex;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 5px 15px;
    width: 40%;
}

.search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 8px;
    outline: none;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

.nav-icons a {
    margin-left: 20px;
    font-size: 1.2rem;
    color: var(--text-dark);
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- 3. Navbar & Dropdown --- */
.navbar {
    background: var(--primary);
    position: relative;
}

.nav-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.menu-toggle {
    display: none;
}

/* Hidden on Desktop */

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

/* Desktop Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 2000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hover only works on desktop */
.dropdown-content li {
    display: block;
    height: auto;
}

.dropdown-content a {
    color: #333;
    padding: 10px 20px;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f3e5f5;
    color: var(--primary);
}

.dropbtn i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* --- 4. Hero Section --- */
.hero {
    height: 450px;
    background: linear-gradient(rgba(74, 20, 140, 0.7), rgba(74, 20, 140, 0.4)), url('../images/main-banner.png') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.primary-btn {
    background: var(--accent);
    color: var(--white);
}

.secondary-btn {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    margin-top: 10px;
}

.primary-btn:hover {
    background: #e65100;
}

/* --- 5. Categories --- */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* --- 6. Main Layout (Sidebar + Feed) --- */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    /* Sidebar stays sticky inside layout */
}

.promo-card {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.promo-card img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.sidebar-info {
    margin-top: 30px;
}

.sidebar-info ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.sidebar-info i {
    color: var(--accent);
    margin-right: 10px;
}

/* --- 7. Product Grid --- */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    white-space: nowrap;
    margin-right: 20px;
}

.divider {
    height: 2px;
    background: #ddd;
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag.sale {
    background: #e53935;
}

.img-container {
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    height: 100%;
    object-fit: contain;
}

.details {
    padding: 15px;
}

.details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.rating {
    color: #fbc02d;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--primary);
}

.add-cart {
    background: rgb(222, 238, 222);
    color: green;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.add-cart i {
    font-size: 20px;
}

.add-cart:hover {
    background: green;
    color: white;
}

/* --- 8. Footer --- */
footer {
    background: #222;
    color: #ccc;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.socials i {
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.socials i:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    background: #111;
    padding: 15px;
    font-size: 0.85rem;
}

/* --- 9. Responsiveness (Mobile & Tablet) --- */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .product-feed {
        order: 1;
    }

    .sidebar-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
    }

    .nav-flex {
        justify-content: flex-start;
        padding: 0 20px;
    }

    /* Toggle Button */
    .menu-toggle {
        display: block;
        background: none;
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 5px;
    }

    /* Mobile Menu */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #380e6d;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        text-align: left;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        z-index: 999;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        display: block;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        padding: 15px 20px;
    }

    /* Mobile Dropdown Behavior */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* Disable default hover */
    .dropdown.open .dropdown-content {
        display: block;
        position: static;
        background-color: #2a0a55;
        width: 100%;
        box-shadow: none;
    }

    .dropdown-content a {
        padding-left: 40px;
        color: #ddd;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .categories {
        margin-top: 20px;
    }
}

/* Ormas story */

/* ORMAS Section Styles */
.ormas-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.ormas-image-space {
    flex: 1;
    min-width: 350px;
    background-color: #f1f5f9;
    background-image: linear-gradient(135deg, #f1f5f9 25%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.image-placeholder-text {
    color: #64748b;
    text-align: center;
    padding: 20px;
    font-style: italic;
    border: 2px dashed #cbd5e1;
    margin: 20px;
    border-radius: 8px;
}

.ormas-content {
    flex: 1.2;
    min-width: 350px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ormas-label {
    color: #f97316; /* Orange */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

.ormas-title {
    color: #1e3a8a; /* Deep Blue */
    font-size: 2.25rem;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.ormas-description {
    color: #475569;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.check-icon {
    color: #1e3a8a;
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

.objective-text {
    color: #334155;
    font-size: 0.95rem;
}

.ormas-btn {
    background-color: #f97316;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    text-decoration: none;
    text-align: center;
}

.ormas-btn:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ormas-content { padding: 30px; }
    .ormas-title { font-size: 1.8rem; }
}

/* ORMAS Industrial Design - Grid & Card Architecture */
.ripc-section {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    padding: 20px;
}

.ripc-header {
    border-left: 8px solid #f97316; /* Orange Accent */
    padding-left: 20px;
    margin-bottom: 40px;
}

.ripc-header h2 {
    color: #1e3a8a; /* Deep Blue */
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ripc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.ripc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ripc-card:hover {
    transform: translateY(-10px);
    border-color: #f97316;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.ripc-card h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.ripc-card h3::before {
    content: "•";
    color: #f97316;
    margin-right: 10px;
    font-size: 2rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.product-tag {
    background: #1e3a8a;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.image-slot {
    width: 100%;
    height: 250px;
    background: #e2e8f0;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 2px dashed #cbd5e1;
}
