/**
 * ETALASE UMKM LAMPUNG - CUSTOM CSS
 * Save file ini sebagai: etalase-custom.css
 * Location: wp-content/themes/kadence/etalase-custom.css
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    background-color: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffcc00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left .logo {
    height: 60px;
    width: auto;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 40px;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    border: 2px solid #ffcc00;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: #ff9900;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.search-btn {
    padding: 12px 30px;
    background-color: #ffcc00;
    border: none;
    border-radius: 50px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #ff9900;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn,
.jual-btn,
.catalog-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: transparent;
    border: 2px solid #ffcc00;
    color: #333;
}

.login-btn:hover {
    background-color: #ffcc00;
    color: #fff;
}

.jual-btn {
    background-color: #ffcc00;
    color: #333;
}

.jual-btn:hover {
    background-color: #ff9900;
    color: #fff;
    transform: translateY(-2px);
}

.catalog-btn {
    background-color: #333;
    color: #fff;
}

.catalog-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-text {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin: 60px 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    width: 100%;
    height: 411px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Bookmark Badge */
.product-bookmark {
    position: absolute;
    top: -1px;
    left: 8px;
    z-index: 15;
    width: 52px;
    height: 83px;
    pointer-events: none;
}

.bookmark-text {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #333;
    font-weight: bold;
    z-index: 16;
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Title Badge (Always Visible, Hides on Hover) */
.product-title-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: calc(100% - 70px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-title-badge {
    opacity: 0;
}

/* Hover Overlay (Shows on Hover) */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlay-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.overlay-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.overlay-btn {
    background-color: #ffcc00;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.overlay-btn:hover {
    background-color: #ff9900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px;
    text-transform: uppercase;
    padding-right: 40px;
}

.modal-header .price {
    font-size: 20px;
    font-weight: bold;
    color: #ffcc00;
    margin: 0 0 15px;
    display: block;
}

.modal-header p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: 14px;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

/* Map Section - Left Column */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-section iframe {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.map-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.map-btn::before {
    content: "📍";
    font-size: 16px;
}

/* Form Section - Right Column */
.form-section {
    display: flex;
    flex-direction: column;
}

.form-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section p {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    border-color: #ffcc00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-section input::placeholder,
.form-section textarea::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.submit-btn:hover {
    background-color: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.submit-btn i {
    font-size: 18px;
}

/* Responsive Modal */
@media (max-width: 1024px) {
.stats-map-container {
  grid-template-columns: 1fr 1.6fr !important;
}


    .stats-side .etalase-stats-container,
    .stats-side .stats-grid,
    .stats-side .stat-cards,
    .stats-side > div:not(h2) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ============================================
   STATISTICS SECTION
   ============================================ */
.statistics-container {
    background-color: #fff;
    padding: 60px 40px;
    margin: 80px auto;
    max-width: 1400px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.statistics-header h1 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.statistics-graph img,
.statistics-piechart img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.statistics-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

.statistics-logo img {
    width: 100%;
    height: auto;
}

.statistics-description {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.statistics-description p {
    margin-bottom: 20px;
}

/* ============================================
   UMKM NEWS SECTION
   ============================================ */
.umkm-news {
    background-color: #f9f9f9;
    padding: 60px 40px;
    margin: 80px auto;
}

.umkm-news h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
    text-align: center;
}

.news-info button {
    background-color: #ffcc00;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.news-info button:hover {
    background-color: #ff9900;
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 30px;
}

.footer-logo-left,
.footer-logo-right {
    height: 80px;
    width: auto;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-center {
        margin: 0;
        width: 100%;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        padding: 20px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .statistics-content {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
}
/* ============================================
   STATISTIK + PETA COMBINED SECTION - v31
   CRITICAL: Force 3×2 Grid Layout for Statistics
   ============================================ */

/* Main Container - Side by Side Layout */
.stats-map-container {
    display: grid !important;
    grid-template-columns: 0.75fr 1.5fr !important; /* Stats 35%, Map 65% */
    gap: 50px !important;
    align-items: start !important;
    max-width: 1400px;
    margin: 0 auto;
}

/* Statistics Side Styling */
.stats-side h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px !important;
    line-height: 1.3;
}

/* CRITICAL: Force 2×3 Grid on Statistics Cards (2 columns) */
.stats-side .etalase-stats-container,
.stats-side .stats-grid,
.stats-side .stat-cards,
.stats-side [class*="stats"],
.stats-side [class*="grid"],
.stats-side [id*="stats"],
div[class*="etalase-stats"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
    grid-auto-rows: minmax(140px, auto) !important;
}


/* Individual Stat Card Styling */
.stats-side .stat-card,
.stats-side .etalase-stat-card,
.stats-side [class*="stat-"] {
    background: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    min-height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.stats-side .stat-card:hover,
.stats-side .etalase-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* Map Side Styling */
.map-side h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px !important;
    line-height: 1.3;
}

.map-side p {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 25px !important;
}

/* Map Container Styling */
.map-side .etalase-map-container,
.map-side [id*="map"],
.map-side [class*="map"] {
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .stats-map-container {
        grid-template-columns: 0.8fr 1.4fr !important;
        gap: 40px !important;
    }
    
    .stats-side .etalase-stats-container,
    .stats-side .stats-grid,
    .stats-side > div:not(h2) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .stats-map-container {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
    
    .stats-side .etalase-stats-container,
    .stats-side .stats-grid,
    .stats-side > div:not(h2) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .stats-side .etalase-stats-container,
    .stats-side .stats-grid,
    .stats-side > div:not(h2) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stats-side h2,
    .map-side h2 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .stats-side .etalase-stats-container,
    .stats-side .stats-grid,
    .stats-side > div:not(h2) {
        grid-template-columns: 1fr !important;
    }
}

/**
 * INFOGRAFIS MITRA UMKM KARYA LAMPUNG - CUSTOM CSS
 * Add this to etalase-custom.css or inject inline
 */

/* ============================================
   INFOGRAFIS MITRA SECTION STYLING
   ============================================ */

.infografis-mitra-section {
    position: relative;
    overflow: hidden;
}

/* Main Header Styling */
.infografis-mitra-section h2 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Stats Cards Horizontal Layout */
.stats-horizontal-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Individual Stat Card */
.stats-horizontal-container .stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.stats-horizontal-container .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #ffcc00;
}

.stats-horizontal-container .stat-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stats-horizontal-container .stat-card .number {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 10px 0;
}

.stats-horizontal-container .stat-card .label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stats-horizontal-container .stat-card .description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Timestamp Styling */
.infografis-mitra-section .timestamp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    margin-bottom: 50px;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.charts-container .chart-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.charts-container .chart-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.charts-container .chart-wrapper .chart-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Chart Toggle Buttons */
.chart-toggles {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.chart-toggle-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-toggle-btn:hover,
.chart-toggle-btn.active {
    background: #ffcc00;
    border-color: #ffcc00;
    color: #333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-horizontal-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stats-horizontal-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .infografis-mitra-section h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .stats-horizontal-container .stat-card {
        padding: 25px 15px;
    }
    
    .stats-horizontal-container .stat-card .number {
        font-size: 36px;
    }
    
    .stats-horizontal-container .stat-card .icon {
        font-size: 36px;
    }
}

/* Animation for Stats Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-horizontal-container .stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stats-horizontal-container .stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-horizontal-container .stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-horizontal-container .stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stats-horizontal-container .stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Horizontal Divider */
.infografis-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
    margin: 40px 0;
}