/* ========================================
   OUTDOOR GEAR STORE - FULL VERSION
   WITH PARALLAX & MOBILE FRIENDLY
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f4f0;
    color: #1a2a1a;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: #1a3a1a;
    color: #c8e6c8;
    font-size: 12px;
    padding: 8px 0;
    text-align: center;
}

/* ========== HEADER ========== */
.main-header {
    background: linear-gradient(135deg, #0a2e0a 0%, #1a4a1a 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    color: #90ee90;
}

.logo img {
    max-height: 45px;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #90ee90;
}

.cart-icon {
    position: relative;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 30px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e67e22;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #1a3a1a;
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a5a2a;
}

.mobile-menu-header h3 {
    color: white;
    font-size: 18px;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    transition: 0.3s;
    border-bottom: 1px solid #2a5a2a;
}

.mobile-menu a:hover {
    color: #90ee90;
    padding-left: 10px;
}

.mobile-menu .cart-mobile {
    margin-top: 20px;
    background: #e67e22;
    border-radius: 30px;
    text-align: center;
    padding: 12px;
}

.mobile-menu .cart-mobile:hover {
    background: #d35400;
    padding-left: 0;
}

/* ========== HERO SECTION WITH PARALLAX ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
                url('https://plus.unsplash.com/premium_photo-1664301432574-9b4e85c2b2d3?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

/* Parallax hanya untuk desktop */
@media (min-width: 769px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.btn-explore {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 32px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-explore:hover {
    background: #d35400;
    transform: translateY(-3px);
}

/* ========== SECTION TITLE ========== */
.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 40px 0 25px;
    display: inline-block;
    color: #1a3a1a;
    border-left: 4px solid #e67e22;
    padding-left: 15px;
}

/* ========== PRODUCT GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new { background: #2ecc71; color: white; }
.product-badge.hot { background: #e74c3c; color: white; }
.product-badge.premium { background: linear-gradient(135deg, #f1c40f, #e67e22); color: #1a1a1a; }

.product-info {
    padding: 15px;
}

.product-brand {
    font-size: 10px;
    text-transform: uppercase;
    color: #e67e22;
    font-weight: 600;
}

.product-info h3 {
    font-size: 14px;
    margin: 8px 0;
    font-weight: 600;
}

.product-category {
    font-size: 11px;
    color: #888;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e67e22;
    margin: 10px 0;
}

.product-stock {
    font-size: 11px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.btn, .btn-cart {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn {
    background: #1a3a1a;
    color: white;
}

.btn:hover, .btn-cart:hover {
    background: #e67e22;
    color: white;
}

.btn-cart {
    background: #e67e22;
    color: white;
    margin-left: 5px;
}

/* ========== CATEGORY BANNER - MODERN ========== */
.category-banner {
    margin: 60px 0;
    position: relative;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 25px 20px;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.category-card:hover .category-overlay {
    transform: translateY(-5px);
}

.category-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.category-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.category-overlay .shop-now {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #e67e22;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay .shop-now {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FEATURES - GLASSMORPHISM ========== */
.features {
    background: linear-gradient(135deg, #f5f7f5 0%, #e8ede8 100%);
    padding: 60px 0;
    border-radius: 40px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230,126,34,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: rgba(230,126,34,0.3);
}

.feature-item i {
    font-size: 45px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.feature-item:hover i {
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a3a1a;
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ========== NEWSLETTER - MODERN ========== */
.newsletter {
    background: linear-gradient(135deg, #1a472a 0%, #0d2e1a 100%);
    padding: 60px 0;
    border-radius: 0px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1551632811-561732d1e306?w=800') center/cover;
    opacity: 0.1;
    animation: slowZoom 20s ease infinite;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position:center;
}

.newsletter p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: #c8e6c8;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
    background: white;
    border-radius: 60px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.newsletter-form button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230,126,34,0.4);
}

.newsletter-form button i {
    margin-right: 8px;
}

/* Counter Animation */
.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e67e22;
    display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        height: 220px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .newsletter h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 10px;
    }
    
    .newsletter-form input {
        background: white;
        padding: 14px 20px;
    }
    
    .newsletter-form button {
        padding: 14px 20px;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(rgba(10, 31, 10, 0.92), rgba(10, 31, 10, 0.95)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600');
    background-size: cover;
    background-position: center;
    color: #c8e6c8;
    padding: 50px 0 25px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: #e67e22;
}

.footer-col p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-col a {
    font-size: 12px;
    color: #a8c8a8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.footer-logo img {
    max-height: 45px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: #e67e22;
    padding-left: 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a4a2a;
    font-size: 11px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Sembunyikan desktop menu di HP */
    .nav-menu {
        display: none !important;
    }
    
    /* Tampilkan tombol mobile menu */
    .menu-toggle {
        display: block !important;
    }
    
    /* Matikan parallax di HP */
    .hero {
        background-attachment: scroll;
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .btn, .btn-cart {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        height: 140px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    .mobile-menu, .mobile-menu-overlay {
        display: none !important;
    }
    .nav-menu {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-card .product-image {
        height: 140px;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}