/* RESET MINIMAL */
* {
    box-sizing: border-box;
}

/* =========================
   GLOBAL FONT
========================= */

html, body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont;
    font-weight: 400;
    color: #0f172a;
}
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.3px;
}

p {
    line-height: 1.7;
}
.home-card-title,
.product-card h3 {
    font-weight: 700;
}

.page-header h1 {
    font-weight: 800;
}


/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 36px;
}

.cart-btn {
    font-size: 20px;
    text-decoration: none;
    color: #2563eb;
}

/* HERO */
.hero-clean {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.hero-inner h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-inner p {
    font-size: 18px;
    color: #6b7280;
    max-width: 640px;
}

/* CARDS */
.home-cards {
    padding: 60px 0 100px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.home-card {
    display: block;
    padding: 32px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.home-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

.home-card.highlight {
    background: linear-gradient(180deg, #f0f6ff, #ffffff);
    border-color: #2563eb;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.home-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-card p {
    font-size: 15px;
    color: #6b7280;
}

/* FLOATING WA */
.floating-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}
/* PAGE HEADER */
.page-header {
    padding: 60px 0 40px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: #6b7280;
    font-size: 16px;
}

/* PRODUCT GRID */
.product-list {
    padding: 48px 0 100px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* PRODUCT CARD */
.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.product-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

/* IMAGE */
.product-thumb {
    background: #f9fafb;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* INFO */
.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-info p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.product-action {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
}
/* =========================
   HOME MENU
========================= */

.home-menu {
    padding: 40px 0 80px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.home-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all .25s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.home-card-icon {
    font-size: 34px;
    background: #f2f5f9;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-card-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.home-card-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px;
}

.home-card-action {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
}
/* =========================
   PAGE HEADER (HOME)
========================= */

.page-header-home {
    padding: 46px 0 26px;
}

.page-header-home h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.page-header-home p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.page-header-hint {
    margin-top: 12px;
    display: inline-block;
    font-size: 13px;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 999px;
}


/* =========================
   HOME MENU (POLISH V2)
========================= */

.home-menu {
    padding: 22px 0 70px;
}

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

@media (max-width: 980px) {
    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.home-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 20px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-card:hover {
    transform: translateY(-3px);
    border-color: #dbeafe;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.10);
}

.home-card:active {
    transform: translateY(-1px);
}

.home-card-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    /* bubble + ring */
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.home-card:hover .home-card-icon {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.home-card-content {
    padding-top: 2px;
    min-width: 0;
}

.home-card-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.1px;
    color: #0f172a;
}

.home-card-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.home-card-action {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-card-action::after {
    content: "›";
    font-size: 16px;
    line-height: 1;
    transform: translateY(-1px);
}

.home-card:hover .home-card-action {
    color: #1d4ed8;
}
/* =========================
   HOME MENU (V3 ICON IMAGE)
========================= */

.home-menu {
    padding: 22px 0 70px;
}

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

@media (max-width: 980px) {
    .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .home-grid { grid-template-columns: 1fr; gap: 14px; }
}

.home-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 22px 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-height: 108px;
}

.home-card:hover {
    transform: translateY(-3px);
    border-color: #dbeafe;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
}

.home-card:active { transform: translateY(-1px); }

.home-card-icon {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: #f2f6fb;
    border: 1px solid #e6eef7;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.home-card-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    filter: saturate(1.05);
}

.home-card:hover .home-card-icon {
    background: #eef6ff;
    border-color: #bfdbfe;
}

.home-card-content {
    min-width: 0;
}

.home-card-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #0f172a;
}

.home-card-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.home-card-action {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-card-action::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.home-card:hover .home-card-action { color: #1d4ed8; }
/* =========================
   HOME MENU (V4)
========================= */

.page-header-home h1 {
    letter-spacing: -0.3px;
}

.page-header-home p {
    max-width: 520px;
}

.home-menu {
    padding: 18px 0 72px;
}

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

@media (max-width: 980px) {
    .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .home-grid { grid-template-columns: 1fr; gap: 14px; }
}

.home-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 26px 26px;
    display: flex;
    gap: 18px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-height: 124px;

    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.10);
    border-color: #dbeafe;
}

.home-card:active { transform: translateY(-2px); }

.home-card-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: #f3f7fb;
    border: 1px solid #e6eef7;

    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.home-card-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.home-card-content {
    min-width: 0;
}

.home-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

/* underline pendek seperti contoh */
.home-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 44px;
    border-radius: 999px;
    background: #f97316; /* default accent */
    opacity: .95;
}

.home-card-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

/* =========================
   ACCENT PER MENU
   (bubble + underline)
========================= */

.home-card[data-accent="blue"] .home-card-title::after { background: #2563eb; }
.home-card[data-accent="blue"] .home-card-icon { background: #eff6ff; border-color: #dbeafe; }

.home-card[data-accent="indigo"] .home-card-title::after { background: #4f46e5; }
.home-card[data-accent="indigo"] .home-card-icon { background: #eef2ff; border-color: #e0e7ff; }

.home-card[data-accent="teal"] .home-card-title::after { background: #0f766e; }
.home-card[data-accent="teal"] .home-card-icon { background: #ecfeff; border-color: #cffafe; }

.home-card[data-accent="amber"] .home-card-title::after { background: #d97706; }
.home-card[data-accent="amber"] .home-card-icon { background: #fffbeb; border-color: #fef3c7; }

.home-card[data-accent="rose"] .home-card-title::after { background: #e11d48; }
.home-card[data-accent="rose"] .home-card-icon { background: #fff1f2; border-color: #ffe4e6; }
.page-header {
    background: #f7f7f7;
    padding: 48px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-header p {
    color: #666;
    font-size: 15px;
}
.color-catalog {
    padding-bottom: 60px;
}
.category-title {
    font-size: 24px;
    font-weight: 600;
    margin: 48px 0 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}
.material-block {
    margin-bottom: 40px;
}

.material-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.color-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.color-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.color-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.color-swatch {
    width: 100%;
    height: 90px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
}
.color-name {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}
/* ===========================
   COLOR PREVIEW MODAL
=========================== */

.color-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999;
}

.color-modal.active {
    display: block;
}

.color-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.color-modal-content {
    position: relative;
    max-width: 520px;
    margin: 80px auto;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    z-index: 2;
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.color-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #666;
}

.color-modal-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

.color-modal-info {
    margin-top: 14px;
    text-align: center;
}

.color-modal-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.color-modal-info p {
    font-size: 14px;
    color: #666;
}
