:root {
    --primary-color: #ea5e00; /* Hobigram Orange */
    --primary-dark: #cc5200;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --black-detail: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}
a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top {
    background: var(--black-detail);
    color: var(--bg-white);
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
}
.header-middle {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}
.logo span {
    color: var(--black-detail);
}
.header-search {
    flex-grow: 1;
    margin: 0 40px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    outline: none;
    font-size: 14px;
    transition: box-shadow 0.3s;
}
.header-search input:focus {
    box-shadow: 0 0 8px rgba(234, 94, 0, 0.3);
}
.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.header-search button:hover {
    background: var(--primary-dark);
}
.header-icons {
    display: flex;
    gap: 20px;
}
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: var(--black-detail);
    position: relative;
    transition: color 0.3s;
}
.icon-box:hover {
    color: var(--primary-color);
}
.icon-box:hover i {
    color: var(--primary-color) !important;
    transition: color 0.3s;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.main-nav {
    border-top: 1px solid var(--border-color);
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 15px 0;
}
.main-nav a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
}

/* Footer */
.main-footer {
    background: var(--bg-white);
    border-top: none;
    padding: 0 0 20px;
    margin-top: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--black-detail);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-muted);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .hamburger-btn {
        display: block !important;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--black-detail);
    }
    .header-middle {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .main-nav.active {
        display: block;
    }
    .nav-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 15px !important;
    }
    .nav-list > li > a {
        padding: 5px 0 !important;
    }
    
    /* Product Grid Mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Slider & Typography Mobile */
    .slide-title { font-size: 32px !important; }
    .slide-subtitle { font-size: 14px !important; }
    .slide-btn { padding: 12px 25px !important; font-size: 12px !important; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
}
