/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header Styles */
.header {
    backdrop-filter: blur(10px);
    height: 100vh;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    background-image: url("../img/header12.png");
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.iklan {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 65px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header h1 {
    color: #4a5568;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Main Content Wrapper */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(253, 251, 251, 0.9);
    backdrop-filter: blur(10px);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 12px 35px rgba(171, 184, 186, 0.477);
    transform: translateY(-2px);
    background: rgba(254, 253, 253, 0.95);
}

.search-bar input.searching {
    background: rgba(249, 249, 249, 0.95);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.search-bar input.searching::placeholder {
    color: #667eea;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-icon.searching {
    color: #667eea;
    animation: searchPulse 1.5s infinite;
}

@keyframes searchPulse {
    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Category Filter */
.category-filter {
    min-width: 200px;
}

.category-filter select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-filter select:focus {
    outline: none;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    background: #17a2b8;
}

.category-filter select.filtering {
    background: rgba(117, 51, 193, 0.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.add-product-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    text-decoration: none;
}

.add-product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4);
}

/* Controls Section */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #4a5568;
    font-weight: 600;
    font-size: 16px;
}

/* Search Results Info */
.search-results-info {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.4s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-results-info h4 {
    color: #4a5568;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.search-results-info p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.products-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.products-grid.mobile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Product Card */
.product-card:hover .product-image-only {
    transform: scale(1.05);
}

.product-image-only {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card.search-match {
    animation: highlightMatch 0.6s ease;
}

.product-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes highlightMatch {
    0% {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1);
    }
    25% {
        background: rgba(102, 126, 234, 0.15);
        transform: scale(1.02);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    }
    50% {
        background: rgba(102, 126, 234, 0.1);
        transform: scale(1.01);
    }
    100% {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    min-height: 200px;
    border-radius: 10px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Product Wrapper */
.product-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.product-card {
    background: none;
    border: none;
    box-shadow: none;
    width: 85%;
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    width: 85%;
    justify-content: center;
    flex-direction: column;
}

.product-actions .btn {
    padding: 10px 12px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.product-actions .btn-danger {
    background: linear-gradient(135deg, #fc8181, #f56565);
}

.product-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn {
    padding: 20px 169px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #fc8181, #f56565);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Alert System */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-close {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    margin-left: auto;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Empty State */
.empty-state-search {
    display: none;
    text-align: center;
    padding: 40px 15px;
    color: #718096;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-search i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.empty-state-search h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.empty-state-search p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.empty-state-search .btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.empty-state-search .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal.modal-active {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.modal-closing {
    animation: modalFadeOut 0.3s ease;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-submitting {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.close-modal {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #718096;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #4a5568;
    transform: scale(1.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    margin: 0 2px;
    border: 2px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 14px;
}

.pagination a:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.pagination a.active,
.pagination span.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Clear Search Button */
.clear-search-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    color: #4a5568;
    background: rgba(0, 0, 0, 0.05);
}

.btn-view {
    background: linear-gradient(135deg, #58bfeb, #64cce8);
    color: white;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 12px;
    border-radius: 8px;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 15px;
    color: #718096;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0 15px;
    margin-top: 30px;
    font-family: "Poppins", sans-serif;
    animation: slideUp 0.5s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 600;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #3498db;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.85rem;
}

.footer-section i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: #ecf0f1;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #34495e;
    margin-top: 15px;
    font-size: 0.8rem;
}

/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-brand img {
    margin-right: 8px;
    height: 25px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.nav-link i {
    margin-right: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Promo Carousel */
.promo-carousel {
    position: relative;
    width: 100%;
    margin: 15px auto 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    height: 180px;
    max-width: 1200px;
    background: #f8f9fa;
}

.promo-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    cursor: pointer;
    border-radius: 12px;
}

.promo-slide.active {
    opacity: 1;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.promo-slide-content {
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    max-width: 45%;
    z-index: 5;
}

.promo-slide-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.promo-slide-desc {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.95;
    line-height: 1.4;
}

.promo-discount {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(238, 90, 36, 0.4);
}

.promo-btn {
    background: linear-gradient(45deg, #4361ee, #3f37c9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
}

.promo-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.promo-carousel-controls:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.promo-carousel-prev {
    left: 15px;
}

.promo-carousel-next {
    right: 15px;
}

.promo-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.promo-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.promo-indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.5);
}

.promo-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.single-slide .promo-carousel-controls,
.single-slide .promo-carousel-indicators {
    display: none;
}

/* Promo Cards */
.promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.promo-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    padding: 25px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.promo-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.promo-card-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Popup Promo */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.promo-popup.show {
    display: flex;
}

.promo-popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.promo-popup img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.promo-popup-text {
    padding: 30px;
    text-align: center;
}

.promo-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.promo-popup-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.promo-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* Loading State for Carousel */
.promo-carousel.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerCarousel 2s infinite;
}

@keyframes shimmerCarousel {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Hover Effects */
.promo-slide:hover .promo-slide-content {
    transform: translateY(-50%) scale(1.05);
    transition: all 0.3s ease;
}

.promo-carousel:hover .promo-carousel-controls {
    opacity: 1;
}

.promo-carousel-controls {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Features Section */
.features-section {
    padding: 40px 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive Design */

/* <= 992px (Laptop kecil / Tablet landscape) */
@media (max-width: 992px) {
    .header {
        height: 60vh;
        background-size: cover;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-carousel {
        height: 160px;
        margin: 12px auto 22px;
    }

    .promo-slide-title {
        font-size: 20px;
    }

    .promo-slide-desc {
        font-size: 13px;
    }
}

/* <= 768px (Tablet portrait) */
@media (max-width: 768px) {
    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    /* Navbar */
    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #34495e;
        flex-direction: column;
        padding: 0.8rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        margin: 0.4rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Promo Carousel */
    .promo-carousel {
        height: auto;
        margin: 10px 15px;
    }

    .promo-slide img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
    }

    .promo-slide-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 10px;
        text-align: center;
        border-radius: 0 0 10px 10px;
    }

    .promo-slide-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .promo-slide-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .promo-discount {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }

    .promo-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .promo-carousel-controls {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .promo-carousel-prev {
        left: 10px;
    }

    .promo-carousel-next {
        right: 10px;
    }

    .promo-carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .promo-indicator {
        width: 8px;
        height: 8px;
    }

    /* Promo Cards */
    .promo-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 15px;
        padding: 0;
    }

    .promo-card {
        padding: 20px;
    }

    .promo-card-title {
        font-size: 18px;
    }

    .promo-card-desc {
        font-size: 13px;
    }

    /* Features */
    .features-section {
        padding: 30px 12px;
        margin: 20px 12px;
    }

    .features-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }

    .product-image {
        height: 150px;
    }

    /* Controls */
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 15px;
    }

    .search-bar,
    .category-filter {
        min-width: 0;
        width: 100%;
    }

    .add-product-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* Iklan */
    .iklan {
        padding: 30px 20px;
        margin: 0 15px 20px;
    }
}

/* <= 576px (Mobile) */
@media (max-width: 576px) {
    .header {
        height: 50vh;
        padding: 0 15px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 130px;
    }

    .product-actions {
        flex-direction: column;
        gap: 6px;
    }

    .product-actions .btn {
        padding: 8px;
        font-size: 11px;
    }

    /* Modal */
    .modal-content {
        padding: 20px;
        margin: 0 10px;
        max-width: 90%;
    }

    .main-content {
        padding: 0 10px 30px;
    }

    /* Alerts */
    .alert-container {
        max-width: 90%;
        right: 10px;
        top: 10px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Promo Carousel */
    .promo-carousel {
        height: auto;
        margin: 8px 10px 15px;
        border-radius: 8px;
    }

    .promo-slide img {
        height: 120px;
    }

    .promo-slide-content {
        padding: 8px;
    }

    .promo-slide-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .promo-slide-desc {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .promo-discount {
        font-size: 10px;
        padding: 4px 8px;
    }

    .promo-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .promo-carousel-controls {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .promo-carousel-prev {
        left: 8px;
    }

    .promo-carousel-next {
        right: 8px;
    }

    .promo-carousel-indicators {
        bottom: 8px;
        gap: 5px;
    }

    .promo-indicator {
        width: 7px;
        height: 7px;
    }

    /* Promo Cards */
    .promo-cards {
        margin: 15px 10px;
    }

    .promo-card {
        padding: 18px;
    }

    .promo-card-title {
        font-size: 16px;
    }

    .promo-card-desc {
        font-size: 12px;
    }
}

/* <= 400px (Small Mobile) */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-image {
        height: 180px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Promo Carousel */
    .promo-carousel {
        margin: 5px 8px 12px;
    }

    .promo-slide img {
        height: 100px;
    }

    .promo-slide-content {
        padding: 6px;
    }

    .promo-slide-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .promo-slide-desc {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .promo-discount {
        font-size: 9px;
        padding: 3px 6px;
    }

    .promo-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .promo-carousel-controls {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .promo-carousel-prev {
        left: 5px;
    }

    .promo-carousel-next {
        right: 5px;
    }

    .promo-carousel-indicators {
        bottom: 6px;
        gap: 4px;
    }

    .promo-indicator {
        width: 6px;
        height: 6px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .promo-carousel-controls {
        opacity: 0.8;
    }

    .promo-carousel-controls:active {
        opacity: 1;
        transform: translateY(-50%) scale(0.95);
    }

    .btn:hover,
    .add-product-btn:hover,
    .promo-btn:hover,
    .product-actions .btn:hover,
    .pagination a:hover,
    .social-links a:hover,
    .feature-card:hover,
    .promo-card:hover,
    .promo-slide:hover .promo-slide-content {
        transform: none;
        box-shadow: none;
    }
}
