:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #eff6ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --danger: #dc2626;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

body.oz-sub {
    background: #f5f7fa;
}

a {
    color: inherit;
    text-decoration: none;
}

.inner,
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.utility-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.util-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    font-size: 12px;
    color: var(--muted);
}

.util-row p {
    margin: 0;
}

.util-row nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(91, 92, 240, 0.3);
}

.logo-text {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #344054;
    transition: 0.2s;
}

.top-nav a:hover {
    background: #eef2ff;
    color: #312e81;
}

.container {
    min-height: calc(100vh - 260px);
    padding-top: 30px;
    padding-bottom: 54px;
}

.hero-banner {
    position: relative;
    border: 1px solid #d8ddff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 0 26px;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    opacity: 0.55;
}

.hero-slider {
    position: relative;
    height: 380px;
    overflow: hidden;
    z-index: 3;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slideShow 14s infinite;
}

.slide {
    width: 100%;
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px;
    color: #fff;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 18, 33, 0.72), rgba(17, 24, 39, 0.22));
    z-index: 2;
}

.slide.s1::before {
    background-image: url("https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=1800&q=80");
}

.slide.s2::before {
    background-image: url("https://images.unsplash.com/photo-1607082350899-7e105aa886ae?auto=format&fit=crop&w=1800&q=80");
}

.slide.s3::before {
    background-image: url("https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?auto=format&fit=crop&w=1800&q=80");
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 560px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    border-radius: 14px;
}

.hero-copy h2 {
    margin: 0 0 10px;
    font-size: 33px;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.hero-copy p {
    margin: 0 0 14px;
    color: #f3f4f6;
}

.tag {
    display: inline-block;
    margin-bottom: 10px;
    background: #fde047;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 16px rgba(91, 92, 240, 0.24);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn.secondary {
    background: linear-gradient(135deg, #344054, #475467);
    box-shadow: none;
}

.btn.danger {
    background: linear-gradient(135deg, #e11d48, #be123c);
    box-shadow: none;
}

.btn.small {
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 12px;
}

.feature-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.feature-icons article {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.feature-icons .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd6fe, #fbcfe8);
    font-size: 22px;
    margin-bottom: 8px;
}

.feature-icons h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.feature-icons p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.group-block,
.review-block,
.notice-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.review-block,
.notice-block {
    margin-top: 18px;
}

.group-block h3,
.review-block h3,
.notice-block h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.4px;
}

.group-sub {
    margin: 5px 0 15px;
    color: var(--muted);
}

.catalog-list {
    display: grid;
    gap: 14px;
}

.catalog-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    background: var(--surface-soft);
}

.thumb img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
}

.meta h4 {
    margin: 2px 0 6px;
    font-size: 20px;
    color: #1f2937;
}

.meta p {
    margin: 0;
    color: #667085;
}

.line-bottom {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.line-bottom strong {
    color: #db2777;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.line-bottom form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.line-bottom .btn.small {
    min-width: 92px;
    min-height: 36px;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.badge,
.chip {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.product-detail {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 24px;
}

.product-left img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.product-right h1 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.7px;
}

.breadcrumb {
    color: #98a2b3;
    font-size: 12px;
    margin: 0 0 8px;
}

.desc {
    color: var(--muted);
    margin: 0 0 12px;
}

.price {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.6px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.option-row label {
    margin: 0;
    color: var(--muted);
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.inline-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 4px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.auth-wrap,
.checkout-form,
.admin-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    max-width: 640px;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.order-layout .checkout-form {
    max-width: none;
}

.order-side {
    position: sticky;
    top: 96px;
}

.checkout-form h3 {
    margin: 12px 0 10px;
    font-size: 17px;
}

.photo-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.photo-review {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.photo-review img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.photo-review div {
    padding: 12px;
}

.photo-review h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.photo-review p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.notice-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 26px;
    border-bottom: 1px solid #eff1f5;
}

.notice-list li a {
    color: #1f2937;
}

.notice-list li a:hover {
    color: var(--primary);
}

.notice-list li span {
    color: #98a2b3;
    font-size: 12px;
    white-space: nowrap;
}

.notice-more {
    margin-top: 12px;
}

.notice-more a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.notice-page,
.notice-detail {
    max-width: 1120px;
    margin: 0 auto;
}

.notice-page h1,
.notice-detail h1 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -0.6px;
}

.notice-list.full {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.notice-page-head {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 12px;
}

.notice-page-head .group-sub {
    margin-bottom: 0;
}

.notice-board {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.notice-board-head {
    display: flex;
    justify-content: space-between;
    padding: 14px 26px;
    background: #f8faff;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

.notice-board .notice-list.full {
    border: 0;
    border-radius: 0;
}

.notice-date {
    color: #98a2b3;
    margin: 8px 0 0;
}

.notice-content {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 30px;
    background: #fff;
    line-height: 1.8;
}

.notice-detail-head {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 26px;
}

.notice-detail-head .notice-date {
    margin-top: 6px;
}

.notice-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.terms-box {
    border: 1px solid var(--line);
    background: #fafbff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.check-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.check-row input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.check-row a {
    color: var(--primary);
    text-decoration: underline;
}

.terms-doc {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 14px;
}

.terms-doc h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.terms-doc p {
    margin: 0 0 14px;
    color: #555;
    font-size: 13px;
}

.detail-extra {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-extra article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: var(--surface);
}

.detail-extra h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.detail-extra ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
}

.detail-extra li {
    margin-bottom: 7px;
}

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

.cart-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.cart-item img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item form {
    margin: 0;
    display: flex;
    align-items: center;
}

.cart-item .inline-form {
    margin-bottom: 0;
}

.cart-item .inline-form input[type="number"] {
    margin-top: 0;
    width: 82px;
}

.cart-btn {
    min-width: 72px;
    height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: none;
}

.cart-summary,
.order-box,
.done {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin-top: 16px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    color: #475467;
    padding: 28px 0;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-grid h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

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

.footer-grid li {
    margin-bottom: 6px;
}

@media (max-width: 980px) {
    .hero-slider {
        height: 320px;
    }

    .hero-copy h2 {
        font-size: 26px;
    }

    .feature-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-review-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .inline-2 {
        grid-template-columns: 1fr;
    }

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

    .order-side {
        position: static;
    }

    .detail-extra {
        grid-template-columns: 1fr;
    }

    .catalog-item {
        grid-template-columns: 1fr;
    }

    .thumb img {
        width: 100%;
        height: 220px;
    }

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

    .cart-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .brand-row {
        min-height: 64px;
    }

    .logo-text {
        font-size: 21px;
    }

    .top-nav {
        gap: 8px;
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-slider {
        height: 290px;
    }

    .feature-icons {
        grid-template-columns: 1fr;
    }
}

@keyframes slideShow {
    0%, 28% {
        transform: translateX(0);
    }
    33%, 61% {
        transform: translateX(-100%);
    }
    66%, 94% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 세부페이지 — 메인(실로암그린) 톤 통일 */
.sg-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    min-height: 50vh;
}

.sg-main .oz-auth-page,
.sg-main .group-block,
.sg-main .auth-wrap,
.sg-main .notice-page,
.sg-main .notice-detail,
.sg-main .product-detail,
.sg-main .order-layout {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.sg-main .oz-auth-page {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
}

.sg-main .group-block h3,
.sg-main h1 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--text);
}

.sg-main .group-sub {
    color: var(--muted);
    margin: 0 0 24px;
}

.sg-main .btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: none;
    font-weight: 700;
}

.sg-main .btn:hover {
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
}

.sg-main .btn.secondary {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.sg-main .logo-mark {
    background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
}
