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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --gray-color: #636e72;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.ws-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.ws-initial {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ws-name {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #8B4513;
}

.ws-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.ws-logo span {
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ws-logo::after {
    content: 'Waroeng Sultan';
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 0.8rem;
    color: #8B4513;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ws-logo--footer {
    font-size: 1.8rem;
}

.ws-logo--footer::after {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.admin-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.admin-link--hidden {
    display: none !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Menu Section */
.menu {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ddd;
    background: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

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

.filter-btn:hover {
    border-color: var(--primary-color);
}

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

.cake-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.cake-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
}

.cake-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.cake-card:hover .cake-image {
    transform: scale(1.04);
}

.cake-info {
    padding: 1.5rem;
}

.cake-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cake-description {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cake-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cake-category {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.cake-status {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.cake-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.1rem;
    border-radius: 30px;
    border: 1px solid #e5e5e5;
    background: white;
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-add {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 8px 18px rgba(255,107,107,0.25);
}

.btn-add:hover {
    color: white;
    box-shadow: 0 12px 24px rgba(255,107,107,0.35);
}

.btn-details {
    font-size: 0.95rem;
}

/* Order Panel */
.order-panel {
    margin-top: 3rem;
    background: #fff7f2;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.08);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.order-panel__header h3 {
    font-size: 1.6rem;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.order-panel__header p {
    color: #666;
    margin-bottom: 1.5rem;
}

.order-panel__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.order-items {
    background: white;
    border-radius: 14px;
    padding: 1rem;
    min-height: 120px;
    border: 1px dashed rgba(139, 69, 19, 0.15);
}

.order-empty {
    text-align: center;
    color: #8B4513;
    padding: 2rem 1rem;
}

.order-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #f0e6d9;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item__name {
    font-weight: 600;
    color: #4b2e1a;
}

.order-item__price {
    color: #8B4513;
    font-weight: 600;
}

.order-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8f4e9;
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
}

.order-qty button {
    background: white;
    border: 1px solid #e7d9c6;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
}

.order-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
}

.order-summary {
    background: white;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(139, 69, 19, 0.08);
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    color: #4b2e1a;
}

.order-summary__note {
    font-size: 0.9rem;
    color: #8B4513;
    background: #fdf3dc;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
}

.order-panel__form {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.order-panel__form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #4b2e1a;
}

.order-panel__form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #e7d9c6;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.btn-order {
    width: 100%;
    justify-content: center;
}

.btn-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.order-panel__hint {
    font-size: 0.85rem;
    color: #666;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-info i {
    color: var(--primary-color);
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .order-panel__content {
        grid-template-columns: 1fr;
    }

    .cake-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Style tambahan untuk Waroeng Sultan */

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    color: #8B4513;
    margin-top: 1rem;
    font-style: italic;
}

/* Specialty Badge */
.specialty-badge {
    display: inline-block;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #8B4513;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.specialty-badge i {
    margin-right: 8px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f4e9 0%, #f5e6d3 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #8B4513;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Achievements */
.achievements {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.achievement {
    text-align: center;
}

.achievement h4 {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.achievement p {
    font-size: 0.9rem;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #d4af37;
    margin-top: 0.5rem;
}

.info-item h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.contact-map {
    background: #f8f4e9;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-link {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.map-embed {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.map-cta {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8B4513;
    font-weight: 600;
}

.map-link:hover .map-cta {
    color: #d4af37;
}

.map-placeholder {
    text-align: center;
    color: #8B4513;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

/* Footer Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #d4af37;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #d4af37;
}

.footer-note {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 1rem;
    font-style: italic;
}

/* Loading Placeholder */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #8B4513;
}

.loading-placeholder .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Modal Styling */
.modal-content .cake-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.details-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.details-content h2 {
    color: #8B4513;
    margin-bottom: 1rem;
}

.details-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.details-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8B4513;
    font-weight: 500;
}

.details-price {
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1.5rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.availability.available {
    background-color: #d4edda;
    color: #155724;
}

.availability.unavailable {
    background-color: #f8d7da;
    color: #721c24;
}

/* Filter Buttons Update */
.filter-buttons {
    justify-content: center;
}

/* Responsive Design Update */
@media (max-width: 768px) {
    .modal-content .cake-details {
        grid-template-columns: 1fr;
    }
    
    .achievements {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
        padding: 0.8rem 0;
    }

    .contact-info {
        align-items: stretch;
    }

    .contact-info p {
        justify-content: flex-start;
    }
}
