/* Reset dan styling dasar */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --text-color: #2d3748;
    --text-light: #718096;
    --background-color: #f8f9ff;
    --card-color: #ffffff;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

section {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Header */
.header {
    background-color: var(--card-color);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    z-index: 2;
}

#shop-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.tagline-wrapper {
    text-align: center;
    margin-top: 5px;
}

#shop-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.navigation {
    display: flex;
    align-items: center;
}

#category-menu {
    display: flex;
    margin-right: 20px;
}

#category-menu li {
    margin: 0 15px;
}

#category-menu a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

#category-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

#category-menu a:hover,
#category-menu a.active {
    color: var(--primary-color);
}

#category-menu a:hover::after,
#category-menu a.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    background-color: var(--background-color);
    border-radius: 30px;
    overflow: hidden;
    padding: 6px 6px 6px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#search-input {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    padding-right: 10px;
    width: 150px;
    outline: none;
}

#search-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    background-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover {
    box-shadow: 0 6px 15px rgba(247, 37, 133, 0.4);
}

.cta-button:hover::after {
    width: 100%;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: perspective(800px) rotateY(-15deg);
    transition: transform 1s ease;
}

.hero-image:hover img {
    transform: perspective(800px) rotateY(0deg);
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Featured Categories */
.featured-categories {
    margin-bottom: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    color: white;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.category-icon i {
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.category-card:hover .category-icon i {
    color: white;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.category-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-link {
    color: white;
}

.category-card:hover .category-link::after {
    background-color: white;
}

/* Product Section */
.product-section {
    position: relative;
}

.product-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: -5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 0 4px 4px 0;
    z-index: 2;
    display: none;
}

.product-badge::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 5px;
    height: 5px;
    background-color: #a4133c;
    border-top-left-radius: 5px;
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.view-product {
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .view-product {
    transform: translateY(0);
    opacity: 1;
}

.view-product:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: var(--transition);
}

.product-name:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #f39c12;
}

.product-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 4px;
    transition: var(--transition);
}

.product-link:hover {
    background-color: var(--secondary-color);
}

/* About Section */
.about-section {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 60px 0;
    margin-top: 80px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

#shop-contact h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

#shop-contact h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

#contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: var(--transition);
}

.contact-item:hover i {
    background-color: var(--primary-color);
    color: white;
}

.contact-item a, 
.contact-item span {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item:hover a {
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    padding: 80px 0;
    color: white;
    position: relative;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-text p {
    opacity: 0.9;
    font-weight: 300;
}

.newsletter-form {
    flex: 1;
    display: flex;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    outline: none;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #d81b60;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

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

.footer-section.brand #footer-shop-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.footer-section.brand #footer-tagline {
    margin-bottom: 20px;
    opacity: 0.7;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-section.links ul li {
    margin-bottom: 12px;
}

.footer-section.links ul li a {
    color: #e2e8f0;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-section.links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section.contact .contact-item {
    margin-bottom: 15px;
}

.footer-section.contact .contact-item i {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-section.contact .contact-item:hover i {
    background-color: var(--primary-color);
}

.footer-section.contact .contact-item a,
.footer-section.contact .contact-item span {
    color: #e2e8f0;
    opacity: 0.7;
}

.footer-section.contact .contact-item:hover a {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-color);
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.product-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    padding: 0;
}

.modal-product-image {
    flex: 1;
    overflow: hidden;
}

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

.modal-product-info {
    flex: 1;
    padding: 40px;
}

.modal-product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-product-info p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.modal-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #f39c12;
}

.modal-product-rating span {
    margin-left: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-product-description {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.modal-product-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-product-link:hover {
    background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--card-color);
        flex-direction: column;
        padding: 80px 20px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1;
    }
    
    .navigation.active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    #category-menu {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }
    
    #category-menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .hero-content {
        flex-direction: column-reverse;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image::after {
        display: none;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-product-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #shop-name {
        font-size: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        position: static;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}