@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;600&display=swap');

/* Base Overrides for Brand Look */
body {
    font-family: 'Poppins', sans-serif;
}

/* Helper spacing */
.section-pad {
    padding: 60px 0;
}

/* Warm Brand Colors */
:root {
    --primary: #d02022;
    --accent: #ffb703;
    --bg-light: #fef8f5;
    --text-dark: #333;
}

/* Hero Section */
.hero-banner {
    position: relative;
    background: url('../images/Product Image/Cover.png') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    margin: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #a0181a;
    color: #fff;
}

.btn-outline {
    background: var(--accent);
    color: #333;
    border: none;
}

.btn-outline:hover {
    background: #e6a502;
    color: #333;
}

/* Category & Product Cards */
.category-section {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-light);
}

.category-section h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.cat-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    display: block;
    color: var(--text-dark);
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fff;
}

/* Category grid specific enhancements (Phase 5) */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.category-img-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img-container img {
    transform: scale(1.1);
}

.category-card h3 {
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
}

.category-card p {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Category grid specific enhancements (Phase 5) */

/* Product Info */
.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.product-img {
    flex: 1;
    min-width: 300px;
}

.product-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 2;
    min-width: 300px;
}

.product-info h2 {
    font-size: 28px;
    color: #d02022;
    margin-bottom: 15px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-table th,
.product-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.product-table th {
    background: #f5f5f5;
    font-weight: 600;
    width: 40%;
}

.ingredients-box {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #d02022;
    margin: 20px 0;
}

.related-products {
    margin-top: 30px;
}

.related-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.related-list span {
    background: #eee;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Float WhatsApp */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 12px 25px;
    transition: transform 0.3s;
}

.wa-float:hover {
    transform: scale(1.05);
    color: #fff;
}

.wa-icon {
    font-size: 22px;
    margin-right: 10px;
}

/* Distributor Form */
.distributor-form-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #d02022;
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #a0181a;
}

/* Catalogue Table */
.catalogue-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.catalogue-table th,
.catalogue-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.catalogue-table th {
    background: #d02022;
    color: #fff;
}

.catalogue-table tr:nth-child(even) {
    background: #f9f9f9;
}

.download-btn {
    display: block;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

/* --- Premium UX Smoothing (Phase 16) --- */
html {
    scroll-behavior: smooth;
}

/* Global Transition Lock */
a,
button,
.category-card,
.product-item,
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Primary Colors (Re-declaration protection) */
:root {
    --primary: #d71920;
    /* Nexxus Red */
    --hover-red: #b31218;
    /* Deep hover state */
    --bg-light: #fdf5f0;
    /* Warm background */
}

/* Header & Nav Layout fix */
.site-header {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Active Navigation Indicators */
.main-nav .menu li a:hover,
.main-nav .menu li a[href*="index.html"]:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.main-nav .menu li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    margin-top: 4px;
}

.main-nav .menu li a:hover::after {
    width: 100%;
}

.site-header .logo img {
    max-height: 55px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #d32f2f;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-phone {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.btn-wa {
    padding: 10px 18px;
    background-color: #25D366;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-wa:hover {
    background-color: #1ebd5a;
    color: white;
}