/* style.css - Aksesorisku v6 (fixed Featured Products & layout) */

:root {
    --bg-main: #fef6ff;
    --bg-card: #ffffff;
    --accent: #ffc6e3;
    --accent-2: #c8e7ff;
    --accent-3: #ffe9b5;
    --text-main: #444444;
    --text-muted: #777777;
    --border-soft: #f0dcec;
    --radius-lg: 16px;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top, #ffe9f5, #fef6ff 45%, #f7fbff 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* Layout utama */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 12px 32px;
}

/* Header / navbar */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    margin-left: 10px;
    margin-bottom: 6px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 999px;
    transition: 0.2s;
}

.nav-links a:hover {
    background: var(--accent-2);
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Hero card */
.hero-card {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card-inner {
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 14px;
    backdrop-filter: blur(10px);
}

.hero-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222222;
}

.hero-card-subtitle {
    font-size: 12px;
    color: #444444;
    margin-bottom: 10px;
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.hero-card-item {
    background: #ffffffee;
    border-radius: 12px;
    padding: 6px;
    font-size: 10px;
    text-align: center;
}

/* Featured thumbs selalu kotak */
.hero-card-item-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffe9f5, #fffde7);
    margin-bottom: 4px;
    overflow: hidden;
}

.hero-card-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Search */
.search-bar {
    margin: 12px 0 22px;
}

.search-bar form {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e4d2ef;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Gallery / Produk Kami */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    margin-top: 10px;
    gap: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.media-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.media-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.media-video {
    width: 100%;
    display: block;
}

.media-body {
    padding: 10px 12px 12px;
}

.media-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.media-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.media-tag {
    font-size: 11px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-3);
    color: #7a5a25;
}

.media-price {
    font-size: 12px;
    font-weight: 600;
    color: #e67e22;
}

.media-code {
    font-size: 11px;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
}

.pagination a {
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e4d2ef;
    color: var(--text-main);
}

/* Contact page */
.contact-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    margin-top: 16px;
}

.contact-list {
    list-style: none;
    margin-top: 10px;
}

.contact-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-label {
    font-weight: 600;
    margin-right: 4px;
}

/* Footer */
.site-footer {
    margin-top: 32px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wrapper {
        padding: 12px 10px 24px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-card {
        order: -1;
    }

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

    .search-bar form {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .brand-title {
        font-size: 18px;
    }

    .search-bar form {
        flex-direction: column;
    }

    .search-bar button {
        width: 100%;
    }
}
