/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #f1c40f; /* Kuning Adat */
    --secondary-color: #2c3e50; /* Hitam/Gelap */
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #f9f9f9;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Navigation */
nav {
    background: var(--secondary-color);
    color: #fff;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
}

nav ul li {
    margin-left: 5px;
}

nav ul li.divider {
    width: 2px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    border-radius: 2px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a:hover {
    color: var(--secondary-color);
    background: var(--primary-color);
    transform: translateY(-2px);
}

nav ul li a i {
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('public/assets/images/hero-bg.jpg'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, background 0.3s;
}

.btn-hero:hover {
    background: #d4ac0d;
    transform: scale(1.05);
}

/* Section Common */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Sejarah Section */
.history-container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.history-text {
    flex: 1;
    min-width: 300px;
}

.history-text h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.history-img {
    flex: 1;
    min-width: 300px;
}

.history-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 10px 10px 0 var(--primary-color);
}

/* Motif Highlight */
.motif-box {
    background: var(--light-bg);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    margin-top: 2rem;
}

/* Proses Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-card {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: translateY 0.3s;
}

.process-card:hover {
    transform: translateY(-10px);
}

.process-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.process-card h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Catalog Grid */
.catalog-container {
    padding: 3rem 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 250px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-info .price {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-info .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-detail, .btn-cart {
    width: 100%;
    padding: 0.7rem;
    text-align: center;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-detail {
    background: #fff;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-detail:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

.btn-cart {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-cart:hover {
    background: #d46b2b;
    border-color: #d46b2b;
}

/* Product Detail Page */
.detail-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-wrapper {
    display: flex;
    gap: 50px;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.detail-image {
    flex: 1;
    min-width: 300px;
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    min-width: 300px;
}

.detail-info h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.detail-info .price {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.detail-description {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.8;
}

.detail-meta {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.detail-meta p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Order Form */
.order-form {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.order-form label {
    font-weight: 600;
    color: var(--secondary-color);
}

.btn-add-cart {
    background: var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

/* Cart Page */
.cart-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-table-wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

table th {
    text-align: left;
    padding: 1rem;
    background: var(--light-bg);
    color: var(--secondary-color);
    border-bottom: 2px solid #eee;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-delete {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-delete:hover {
    color: #c0392b;
}

.btn-checkout {
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #d35400;
}

/* Checkout Page */
.checkout-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkout-form-section {
    flex: 2;
    min-width: 350px;
}

.checkout-summary-section {
    flex: 1;
    min-width: 300px;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: var(--secondary-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    border-top: 2px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

#ongkir-result {
    margin-top: 10px;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 6px;
    display: none;
}

/* Authentication (Login/Register) */
.auth-container {
    max-width: 400px;
    margin: 5rem auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.auth-container h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Base Button */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background 0.3s;
}

.btn:hover {
    background: #d46b2b;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
