/* Custom Palette Setup (White, Slate, and Industrial Greys) */
:root {
    --bg-main: #f8fafc;        /* Slate Tint Light White */
    --bg-card: #ffffff;        /* Crisp White */
    --border-color: #e2e8f0;   /* Clean Neutral Grey */
    --text-primary: #0f172a;   /* Deep Slate Dark Grey */
    --text-secondary: #475569; /* Soft Charcoal Grey */
    --accent-dark: #1e293b;     /* Industrial Iron */
    --accent-cool: #64748b;     /* Medium Slate Grey */
}

/* Structural Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Minimalist Top Navigation */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-cool);
    font-weight: 300;
}

/* Modern Pill Shape Search Bar */
.search-container form {
    display: flex;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill Shape */
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04); /* നേരിയ ഇന്നർ ഷാഡോ */
}

/* സെർച്ച് ബോക്സിൽ ക്ലിക്ക് ചെയ്യുമ്പോൾ വരുന്ന മാറ്റം */
.search-container form:focus-within {
    background-color: var(--bg-card);
    border-color: var(--accent-cool);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15); /* Focus Glow */
}

.search-container input {
    border: none;
    background: transparent;
    padding: 0.6rem 1.2rem;
    outline: none;
    width: 300px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: width 0.3s ease;
}

.search-container input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-container button {
    background: transparent;
    border: none;
    padding: 0 16px 0 10px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.search-container button:hover {
    color: var(--text-primary);
    transform: scale(1.1); /* ഐക്കൺ ചെറുതായി വലുതാകാൻ */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .nav-cta {
    background-color: var(--text-primary);
    color: var(--bg-card);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.nav-links .nav-cta:hover {
    background-color: var(--accent-dark);
    color: var(--bg-card);
}

/* ==========================================
   Half-Height Image Slider Section
   ========================================== */
.slider-section {
    position: relative;
    width: 100%;
    height: 35vh; /* ഹൈറ്റ് പകുതിയായി കുറച്ചു */
    min-height: 380px; /* ചെറിയ സ്ക്രീനുകളിൽ ഒരു മിനിമം വലുപ്പം ഉറപ്പാക്കാൻ */
	padding-top: 10px;
    overflow: hidden;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* സ്മൂത്ത് ആയ സ്ലൈഡിംഗ് ആനിമേഷൻ */
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative; /* ഓവർലേ ഈ ബോക്സിനുള്ളിൽ തന്നെ നിൽക്കാൻ ഇത് നിർബന്ധമാണ് */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ഇമേജുകളുടെ ക്വാളിറ്റി നഷ്ടപ്പെടാതെ സ്ക്രീനിനനുസരിച്ച് ഫിറ്റ് ആകാൻ */
    display: block;
}

/* ഓവർലേ നൽകുന്നതിനുള്ള കോഡ് */
.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1); /* കറുപ്പ് നിറത്തിൽ 40% സുതാര്യത (opacity) */
    pointer-events: none; /* ഇമേജിൽ എന്തെങ്കിലും ലിങ്ക് ഉണ്ടെങ്കിൽ അത് ക്ലിക്ക് ചെയ്യാൻ സാധിക്കുന്നതിന് */
}

/* സ്ലൈഡർ കൺട്രോൾ ബട്ടണുകൾ */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.5); /* സെമി ട്രാൻസ്പരൻ്റ് ഗ്രേ/ബ്ലാക്ക് */
    color: var(--bg-card);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--text-primary);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* ഡോട്ട് ഇൻഡിക്കേറ്ററുകൾ */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

.dot.active {
    background: var(--bg-card);
    transform: scale(1.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .slider-section {
        height: 25vh;
        min-height: 200px;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-card);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
}

/* Services Presentation Section */
.container {
    padding: 2rem 2%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.05);
}

.card-icon {
    color: var(--accent-cool);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   Pre-Footer & Footer Styles 
   ========================================== */

/* ലിങ്കുകൾ നൽകാനുള്ള പ്രീ-ഫൂട്ടർ സെക്ഷൻ */
.pre-footer {
    background-color: var(--bg-card); /* വൈറ്റ് ബാക്ക്ഗ്രൗണ്ട് */
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

/* മൗസ് വെക്കുമ്പോൾ ചെറിയ ഒരു ആനിമേഷൻ */
.footer-column a:hover {
    color: var(--accent-cool);
    padding-left: 5px; 
}

/* ഹൈറ്റ് കുറച്ച പ്രധാന ഫൂട്ടർ */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main); /* ലൈറ്റ് ഗ്രേ ബാക്ക്ഗ്രൗണ്ട് */
    padding: 1.2rem 5%; /* ഹൈറ്റ് കുറയ്ക്കാൻ പാഡിംഗ് കുറച്ചു */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1rem;
}

.footer-meta a:hover {
    color: var(--text-primary);
}



/* ==========================================
   Product Display Cards Styling
   ========================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.view-all-link {
    color: var(--accent-cool);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--text-primary);
}

/* റെസ്പോൺസീവ് ഗ്രിഡ് */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
}

/* കാർഡ് ഡിസൈൻ */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--text-secondary);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: var(--bg-main); /* ഇമേജ് ലോഡ് ആകുന്നതിന് മുൻപുള്ള ബാക്ക്ഗ്രൗണ്ട് */
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ഇവിടെയാണ് മാറ്റം വരുത്തിയിരിക്കുന്നത് */
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05); /* മൗസ് വെക്കുമ്പോൾ ഇമേജ് ചെറുതായി വലുതാകാൻ */
}

.product-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: var(--accent-dark);
    color: var(--bg-card);
    font-size: 0.5rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* ബട്ടണുകൾ എപ്പോഴും താഴെ നിൽക്കാൻ സഹായിക്കുന്നു */
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.price-row {
    margin-top: auto; /* വിലയും ബട്ടണും കാർഡിന്റെ താഴെയാക്കാൻ */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.product-old-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* കാർട്ടിലേക്ക് ആഡ് ചെയ്യാനുള്ള ബട്ടൺ */
.add-cart-btn {
    width: 100%;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-cart-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-card);
}

/* മൊബൈൽ ഡിസൈൻ അഡ്ജസ്റ്റ്മെന്റ് */
@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}







/* മൊബൈൽ സ്ക്രീനുകൾക്കുള്ള അഡ്ജസ്റ്റ്മെന്റ് */
@media (max-width: 768px) {
    .pre-footer {
        padding: 2.5rem 5%;
    }
    .footer-links-grid {
        grid-template-columns: 1fr; /* മൊബൈലിൽ ഒറ്റ കോളമായി മാറാൻ */
        text-align: center;
    }
    .footer-column h4 {
        margin-top: 1rem;
    }
}

/* Responsive Framework Queries */
.menu-toggle, .hamburger { display: none; }

@media (max-width: 992px) {
    .search-container input { width: 180px; }
    .hero-content h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; flex-wrap: wrap; }
    .hamburger { display: block; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }
    .search-container { order: 3; width: 100%; max-width: 100%; margin-top: 1rem; }
    .search-container input { width: 100%; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
    .nav-links a { margin: 0.75rem 0; width: 100%; text-align: center; }
    .nav-links .nav-cta { display: inline-block; width: auto; }
    
    .menu-toggle:checked ~ .nav-links { display: flex; }
    
    .hero-section { padding: 4rem 5%; }
    .hero-content h1 { font-size: 2.2rem; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-meta a { margin: 0 0.5rem; }
}