/* ==========================================
   RESET & BASE
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
========================================== */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #4169E1;
    text-decoration: none;
}

.logo i {
    font-size: 22px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #4169E1;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #3359c2;
}

/* ==========================================
   MAIN CONTENT
========================================== */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* ==========================================
   SIDEBAR
========================================== */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #4169E1;
}

.sidebar-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.5;
}

.filter-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #4169E1;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-subtitle i {
    font-size: 10px;
    color: #999;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #000;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #000;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.price-input:focus {
    outline: none;
    border-color: #000;
}

.price-range span {
    color: #999;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background: #4169E1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.apply-btn:hover {
    background: #333;
}

.reset-link {
    display: block;
    text-align: center;
    padding: 8px;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.reset-link:hover {
    color: #000;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.size-btn:hover,
.size-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn:hover,
.color-btn.active {
    border-color: #000;
    transform: scale(1.15);
}

/* Rating Options */
.rating-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ==========================================
   PRODUCT SECTION
========================================== */
.product-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s;
}

.sort-select:focus {
    outline: none;
    border-color: #000;
}

/* ==========================================
   PRODUCT GRID - PERFECT 1:1 SQUARE
========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* GAMBAR KOTAK 1:1 - KUNCI UTAMA */
.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Aspect ratio 1:1 - KOTAK SEMPURNA */
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

/* PLACEHOLDER untuk produk tanpa gambar */
.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.product-placeholder i {
    font-size: 80px;
    color: #ccc;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}





/* PRODUCT INFO - TINGGI KONSISTEN */
.product-info {
    padding: 18px;
}

.product-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #4169E1;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px; /* Fixed height untuk 2 baris */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-rating .stars {
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* ==========================================
   PAGINATION
========================================== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #000;
    color: #000;
}

.page-btn.active {
    background: #4169E1;
    color: #fff;
    border-color: #4169E1;
}

/* ==========================================
   NO PRODUCTS / EMPTY STATE
========================================== */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products i {
    font-size: 70px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.no-products p {
    color: #999;
    margin-bottom: 25px;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #333;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.newsletter {
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    background: transparent;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter input::placeholder {
    color: #666;
}

.newsletter input:focus {
    outline: none;
    border-color: #fff;
}

.newsletter button {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter button:hover {
    background: #e0e0e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    font-size: 13px;
    color: #777;
}

/* ==========================================
   HEADER SEARCH
========================================== */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.search-input-header {
    width: 400px; /* Lebih panjang */
    padding: 12px 25px; /* Lebih besar */
    padding-right: 50px;
    border: 1px solid transparent;
    border-radius: 50px; /* Minimalist rounded */
    font-size: 15px;
    background: #f1f3f5; /* Soft background */
    transition: all 0.4s ease;
    color: #333;
}

.search-input-header::placeholder {
    color: #aaa;
}

.search-input-header:focus {
    width: 450px; /* Expand effect */
    background: #fff;
    border-color: #e0e0e0; /* Minimalist border on focus */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Soft shadow */
    outline: none;
}

.search-btn {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: all 0.3s;
}

.search-btn:hover {
    color: #4169E1;
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE

========================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 280px 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .apply-btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto 10px auto;
        display: block;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0;
        align-items: center;
    }
    
    .logo {
        margin-right: auto;
    }

    .nav {
        display: contents;
    }

    .search-container {
        width: 100%;
        order: 10;
        margin: 5px 0 0 0;
    }
    
    .nav a {
        order: 1;
        font-size: 20px;
    }
    
    .search-input-header {
        width: 100%;
    }
    
    .search-input-header:focus {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px 0;
    }

    .logo {
        font-size: 20px;
    }

    .search-container {
        width: 100%;
        margin-right: 0;
        margin-top: 5px;
    }
    
    .nav a {
        font-size: 18px;
    }

    .search-input-header {
        width: 100%; 
        padding: 8px 35px 8px 15px;
        font-size: 14px;
    }

    .search-input-header:focus {
        width: 100%;
    }
    
    .sidebar {
        padding: 15px;
    }

    .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .apply-btn {
        max-width: 200px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 13px;
        height: 36px;
        margin-bottom: 5px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .product-placeholder i {
        font-size: 50px;
    }

}

/* ==========================================
   PROMO SECTION (MINIMALIST)
========================================== */
.promo-section {
    padding: 80px 0;
    margin-top: 50px; /* Space from products */
    background: #fff;
    overflow: hidden;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.promo-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.promo-content {
    flex: 1;
    max-width: 500px;
}

.promo-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-radius: 4px;
}

.promo-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #4169E1;
    font-weight: 700;
}

.promo-desc {
    font-size: 16px;
    color: #4169E1;
    margin-bottom: 35px;
    line-height: 1.6;
}

.promo-btn {
    display: inline-block;
    padding: 15px 35px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px; /* Pill shape */
    transition: all 0.3s;
}

.promo-btn:hover {
    background: #4169E1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.2);
}

.promo-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.promo-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s;
}

.promo-image:hover img {
    transform: scale(1.05);
}

/* Responsive Promo */
@media (max-width: 768px) {
    .promo-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    
    .promo-title {
        font-size: 32px;
    }
    
    .promo-content {
        max-width: 100%;
    }
}

/* ==========================================
   STORE ADDRESS SECTION
========================================== */
.store-address-section {
    padding: 60px 0 100px 0;
    background: #f9f9f9;
}

.address-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.address-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(65, 105, 225, 0.1);
    color: #4169E1;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.address-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.address-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(65, 105, 225, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4169E1;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    background: #4169E1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(65, 105, 225, 0.2);
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.address-map-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-action {
    display: flex;
    justify-content: center;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #4169E1;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.15);
}

.map-btn:hover {
    background: #3359c2;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(65, 105, 225, 0.25);
}

@media (max-width: 992px) {
    .address-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .address-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .address-card {
        padding: 20px;
    }
    .address-title {
        font-size: 24px;
    }
    .address-desc {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .contact-item {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    .contact-icon {
        margin: 0 auto;
    }
    .promo-section {
        padding: 40px 0;
        margin-top: 30px;
    }
    .promo-title {
        font-size: 26px;
    }
    .promo-desc {
        font-size: 14px;
    }
}