:root {
    /* Brand Colors */
    --primary-color: #603D20;
    --secondary-color: hsl(52, 82%, 63%);
    --accent-color: #988A77;
    --light-bg: #F5F2E7;
    --dark-text: #603D20;
    --light-text: #988A77;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER STYLES
   ============================================ */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo {
    height: 60px;
    width: auto;
    margin-right: 15px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--light-text);
    display: block;
}

/* Navigation */
nav {
    position: relative;
    z-index: 1002;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    background-color: white;
    border-radius: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8dfc8 100%);
    padding: 180px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-text);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: 80px 0;
    background-color: #fff;
}

.category-section {
    margin-bottom: 80px;
}

.category-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.category-section > p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(96, 61, 32, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-bg);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(96, 61, 32, 0.15);
}

/* Product Card Badge */
.product-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-bestseller {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #f9d71c, #f7c600);
    color: #333;
}

.badge-sale {
    background: linear-gradient(135deg, #ff4757, #ff3344);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6348, #ff4500);
    color: white;
}

.badge-kra {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.product-image {
    background-color: var(--light-bg);
    padding: 30px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    background: var(--light-bg);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.button-group {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-button, .details-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    text-align: center;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    border-color: var(--secondary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.details-button {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.details-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 35px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.close {
    color: white;
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    transform: rotate(90deg);
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 40px;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.modal-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.modal-images img:hover {
    transform: scale(1.05);
}

.modal-specs {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f9f6ef 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
}

.modal-specs h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.modal-specs ul {
    list-style: none;
}

.modal-specs li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(96, 61, 32, 0.1);
    color: var(--dark-text);
    font-size: 1rem;
}

.modal-specs li:last-child {
    border-bottom: none;
}

.modal-specs strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .brand-name {
    color: white;
    font-size: 1.5rem;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.8;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--secondary-color);
    width: 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    color: white;
    font-size: 32px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        padding: 10px 0;
        position: relative;
    }

    .logo-container {
        flex: 1;
        margin-right: 10px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .hamburger {
        display: flex;
        position: relative;
        right: 0;
        top: 0;
    }

    nav {
        position: static;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 400px;
        border-top: 1px solid #eee;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
    }

    .nav-menu li a::after {
        display: none;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 26px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 25px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: 40px;
    }

    .modal-body {
        padding: 25px;
    }

    .close {
        right: 20px;
        top: 20px;
        font-size: 35px;
    }

    .modal-images {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        flex-direction: row !important;
        box-shadow: none !important;
    }

    .nav-menu li {
        margin-left: 30px !important;
        border-bottom: none !important;
    }

    .nav-menu li a {
        display: inline-block !important;
        padding: 0 !important;
    }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}