/* =========================================
   MKS CASHEW - MASTER STYLESHEET
   ========================================= */

/* --- 1. VARIABLES & BASE --- */
:root {
    --primary: #aa3b22;    /* Brand Red */
    --secondary: #eadca6;  /* Brand Tan */
    --dark: #333333;       /* Dark Text */
    --bg: #faf7f0;         /* Off-white Background */
    --accent: #3b82f6;     /* Header Blue Line */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. PREMIUM HEADER --- */
header { 
    background: #fff; 
    padding: 25px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header-bottom-bar {
    height: 15px;
    background-color: var(--secondary);
    width: 100%;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a { 
    color: #333; 
    text-decoration: none; 
    font-size: 1.05em; 
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover, .main-nav a.active {
    color: #000;
}

.main-nav a:hover::after, .main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}

/* --- 3. DARK HERO SECTION (ENSON STYLE) --- */
.hero-dark {
    /*background-image: url('../pictures/hero-bg.jpg');*/
    background-image: linear-gradient(to left, rgba(20, 20, 20, 0.7) 25%, rgba(20, 20, 20, 0.01) 100%), url('../pictures/hero-bg.jpg');
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 120px 5%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-content {
    max-width: 600px;
    /*margin-left: 5%;*/
    text-align: right;
}

.hero-content h1 {
    font-size: 4.5em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #d1d1d1;
    max-width: 500px;
}

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    background: #e0e0e0;
    color: var(--dark);
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn:hover {
    background: #d0d0d0;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #8b2d18;
}

.btn-hero-white {
    background: #ffffff;
    color: #000000;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1em;
    display: inline-block;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-white:hover {
    background: #e0e0e0;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* --- 5. PRODUCT GRIDS & CARDS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-card h3 {
    margin-top: 15px;
    color: var(--primary);
    font-size: 1.2em;
}

.product-card .price {
    font-weight: bold;
    color: var(--dark);
    margin: 10px 0 15px 0;
}

/* --- 6. FORMS & INPUTS --- */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark);
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- 7. TABLES (CART & ADMIN) --- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
}

/* --- 8. FOOTER --- */
.site-footer {
    background-color: #1c1d21;
    color: #d1d1d1;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stacks the content vertically */
    align-items: center;    /* Centers everything horizontally */
}

/* Socials at the top */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px; /* Adds space below the social icons */
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: #2b2c30;
    color: #fff;
    border-radius: 8px; 
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px); /* Cute hover bounce effect */
}

/* Contact Info */
/* Contact Info */
.footer-contact-item {
    display: flex;
    flex-direction: row; /* Places items side-by-side */
    align-items: center;
    justify-content: center;
    text-align: right; /* Flushes the text cleanly against the right-side icons */
    gap: 20px;
    margin-bottom: 40px;
}

.footer-icon-box {
    background: #2b2c30;
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-icon-box:hover {
    background: var(--primary);
    box-shadow: 0 4px 10px rgba(170, 59, 34, 0.4);
}

.footer-contact-text {
    font-size: 1.05em;
    line-height: 1.6;
}

.footer-contact-text strong {
    display: block;
    color: #fff;
    font-size: 1.1em;
    margin-top: 5px;
}

.footer-contact-text a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2b2c30;
    padding-top: 20px;
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}