* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f6f8fb;
    color: #1f2937;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navbar Styling */
.shop-navbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    z-index: 1000;
}

.nav-container {
    max-width: 1180px;
    padding: 12px 20px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-text {
    color: #0f172a;
    font-weight: 800;
}

.nav-main-links .nav-link {
    color: #475569;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}

.nav-main-links .nav-link:hover,
.nav-main-links .nav-link.active {
    background: #eaf2ff;
    color: #0d6efd;
}

.navbar a[data-admin-link] {
    display: none;
}

.nav-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.buyer-register-button {
    border: 1px solid #dbe3ef;
    color: #0f172a;
    background: #f8fafc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0aa2c0 100%);
    color: #fff;
    padding: 72px 20px;
    text-align: center;
}

.home-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("gambar/banner.jpeg") center/cover no-repeat;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 20px;
}

.container h1 {
    color: #1e293b;
    font-size: 36px;
    margin-bottom: 20px;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 10px;
}

.container h2 {
    color: #1e293b;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.container p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.foto-profil {
    width: 140px;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    background-color: #e8f4f8;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.foto-toko {
    width: 320px;
    height: 220px;
    object-fit: cover;
}

/* Ensure images don't overflow their container on small screens */
.profile-section img {
    display: block;
    margin: 0 auto;
}

.profile-text {
    flex: 1;
}

.profile-text p {
    margin-bottom: 12px;
}

/* Product List */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.catalog-card {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 20px;
    text-align: center;
    overflow: hidden;
}

.catalog-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.catalog-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #eef6ff;
    border-radius: 12px;
    padding: 10px;
}

.catalog-card h2 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 20px;
}

.catalog-card p {
    margin-bottom: 0;
}

.catalog-card .catalog-price {
    margin-top: 12px;
    font-weight: 700;
    color: #0f766e;
}

.catalog-card .catalog-minimum {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.detail-card {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 30px;
}

.detail-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.detail-header img {
    width: 260px;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #eef6ff;
    border-radius: 14px;
    padding: 12px;
}

.detail-list {
    padding-left: 22px;
    margin-top: 12px;
}

.detail-list li {
    color: #555;
    margin-bottom: 14px;
    line-height: 1.8;
}

.variant-list-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #eef6ff;
    border-radius: 10px;
    padding: 5px;
    margin-right: 10px;
    vertical-align: middle;
}

.price {
    color: #2c3e50;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: #2980b9;
}

.cart-form {
    background-color: #f8fbff;
    border: 1px solid #d7e8ff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 24px;
}

.cart-form label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-form select,
.cart-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
}

.cart-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cart-link {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.cart-list {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: flex;
    gap: 18px;
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.cart-item img {
    width: 120px;
    height: 100px;
    object-fit: contain;
    background-color: #eef6ff;
    border-radius: 12px;
    padding: 8px;
}

.cart-summary {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 20px;
    margin-top: 24px;
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.admin-card {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 28px;
}

.admin-card label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-card input,
.admin-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
}

.admin-note {
    background-color: #f8fbff;
    border: 1px solid #d7e8ff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 16px;
}

.admin-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-product {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 20px;
}

.admin-product-card,
.admin-add-variant-card {
    margin-bottom: 18px;
}

.admin-product-header {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.admin-product-header img {
    width: 120px;
    height: 96px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 8px;
}

.admin-product-header h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.admin-product-header input[type="file"] {
    background: #fff;
}

.admin-product-header small {
    display: block;
    color: #64748b;
    margin-top: -8px;
}

.admin-variant {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(110px, 1fr));
    gap: 12px;
    align-items: end;
    background-color: #f8fbff;
    border: 1px solid #d7e8ff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.admin-variant-with-image {
    grid-template-columns: 96px minmax(180px, 1.3fr) repeat(4, minmax(110px, 1fr));
}

.admin-variant-image img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 6px;
}

.admin-field label {
    margin-bottom: 4px;
}

.admin-field input {
    margin-bottom: 0;
}

.admin-check {
    display: inline-flex !important;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.admin-check input {
    width: auto;
    margin: 0;
}

.admin-add-product,
.admin-add-variant {
    margin-top: 16px;
}

.admin-hidden {
    display: none;
}

.admin-action-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.admin-card input[type="file"] {
    background: #fff;
    cursor: pointer;
}

.btn-danger-admin {
    background-color: #dc3545;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger-admin:hover {
    background-color: #bb2d3b;
}

.product-list {
    list-style-position: inside;
    background-color: #fff;
    padding: 20px 30px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.product-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #555;
}

.product-list li:last-child {
    border-bottom: none;
}

.product-list li:before {
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 20px;
}

.schedule-table thead {
    background-color: #0d6efd;
    color: #fff;
}

.schedule-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.schedule-table tbody tr:hover {
    background-color: #ecf7ff;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    margin-bottom: 30px;
}

.contact-section h2 {
    margin-top: 0;
}

.contact-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2980b9;
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-submit {
    background-color: #0d6efd;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-actions {
        align-items: stretch !important;
        flex-direction: column;
        margin-top: 12px;
    }

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

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
    }

    .admin-product-header,
    .admin-variant {
        grid-template-columns: 1fr;
    }

    .container h1 {
        font-size: 28px;
    }

    .container h2 {
        font-size: 20px;
    }
}

/* Modern store polish */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #0d6efd 52%, #14b8a6 100%);
    padding: 86px 20px;
    position: relative;
    overflow: hidden;
}

.home-hero {
    min-height: 430px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(13, 110, 253, 0.24)),
        url("gambar/banner.jpeg") center/cover no-repeat;
}

.hero-content h1 {
    font-weight: 800;
}

.container {
    max-width: 1180px;
}

.container h1 {
    border-bottom: 0;
    padding-bottom: 0;
    font-weight: 800;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.catalog-card,
.detail-card,
.cart-item,
.cart-summary,
.contact-section,
.contact-form,
.admin-card,
.product-list,
.profile-section {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.catalog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    text-align: left;
}

.catalog-card img {
    height: 190px;
    background: linear-gradient(180deg, #eef6ff, #f8fafc);
    border-radius: 16px;
}

.catalog-card h2 {
    color: #0f172a;
    font-size: 19px;
    font-weight: 800;
}

.catalog-card p {
    color: #64748b;
}

.catalog-link {
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.catalog-link:hover {
    border-color: rgba(13, 110, 253, 0.35);
}

.detail-header {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
}

.detail-header h1 {
    color: #0f172a;
    font-weight: 800;
}

.detail-header img {
    background: #fff;
}

.cart-form,
.admin-variant {
    background: #f8fafc;
    border-color: #dbeafe;
}

.cart-form select,
.cart-form input,
.admin-card input,
.form-group input,
.form-group textarea,
.auth-card .form-control {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
}

.btn-submit,
.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    border-radius: 999px;
    font-weight: 800;
}

.btn-submit:hover,
.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-secondary {
    border-radius: 999px;
}

.cart-item {
    align-items: flex-start;
}

.cart-summary {
    border-top: 4px solid #0d6efd;
}

.contact-link,
.cart-link,
.back-link {
    color: #0d6efd;
}

.auth-page {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fbff, #eef4fb);
}

.auth-card {
    width: min(100%, 460px);
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    padding: 32px;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eaf2ff;
    color: #0d6efd;
    font-size: 26px;
    margin-bottom: 18px;
}

.auth-card h1 {
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
}

.auth-card p,
.auth-switch {
    color: #64748b;
}

.auth-card label {
    display: block;
    color: #334155;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 7px;
}

.auth-switch {
    margin-top: 18px;
    margin-bottom: 0;
    text-align: center;
}

.auth-switch a {
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 991px) {
    .nav-main-links {
        padding-top: 14px;
    }

    .nav-main-links .nav-link {
        padding-left: 12px;
    }
}

/* Home banner: tampil utuh di desktop dan HP tanpa overlay gelap. */
.home-hero {
    width: 100%;
    height: min(28.125vw, 405px);
    min-height: 110px;
    padding: 0 !important;
    background: #fff url("gambar/banner.jpeg") center/contain no-repeat !important;
}

@media (max-width: 576px) {
    .home-hero {
        height: 28.125vw;
        min-height: 96px;
    }
}
