/* ============================================
    Article 쇼핑몰 - 메인 스타일시트
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   헤더
   ============================================ */

.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: #ff6b6b;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

.search-box button {
    padding: 8px 20px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.search-box button:hover {
    background-color: #ff5252;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.header-icons a:hover {
    color: #ff6b6b;
}

.header-icons span {
    color: #ddd;
}

.cart-link {
    background-color: #ff6b6b;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    position: relative;
}

.cart-link #cartCount {
    background-color: white;
    color: #ff6b6b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

/* ============================================
   네비게이션 메뉴
   ============================================ */

.navbar {
    background-color: #f9f9f9;
    border-bottom: 2px solid #ff6b6b;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 15px 0;
    gap: 40px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    display: block;
    padding: 10px 0;
}

.nav-menu > li > a:hover {
    color: #ff6b6b;
}

/* 드롭다운 메뉴 */
.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 5px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .submenu {
    display: flex;
    flex-direction: column;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #fff5f5;
    color: #ff6b6b;
}

/* ============================================
   배너
   ============================================ */

.banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
}

/* ============================================
   메인 콘텐츠
   ============================================ */

.main-content {
    padding: 40px 0;
    min-height: 500px;
}

/* 필터 섹션 */
.filter-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.filters {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filters input[type="checkbox"] {
    cursor: pointer;
}

.reset-btn {
    padding: 8px 20px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.reset-btn:hover {
    background-color: #d0d0d0;
}

/* 상품 섹션 */
.products-section h2 {
    margin-bottom: 30px;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* 상품 카드 */
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 280px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border-bottom: 1px solid #eee;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #ff6b6b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.btn-detail {
    flex: 1;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
}

.btn-detail:hover {
    background-color: #e8e8e8;
}

.btn-cart {
    flex: 1;
    padding: 10px;
    background-color: #ff6b6b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
}

.btn-cart:hover {
    background-color: #ff5252;
}

/* ============================================
   모달
   ============================================ */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.modal-content input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.phone-verification-row {
    display: flex;
    gap: 8px;
}

.phone-verification-row input {
    min-width: 0;
    flex: 1;
}

.phone-verification-row button {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.verification-status {
    min-height: 18px;
    margin: -5px 0 0;
    color: #2c7a4b;
    font-size: 12px;
}

.modal-content button {
    padding: 12px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #ff5252;
}

/* ============================================
   푸터
   ============================================ */

.footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.footer-section p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    color: #bbb;
    font-size: 14px;
}

/* ============================================
   반응형 디자인
   ============================================ */

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 20px;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 20px;
        padding: 10px 0;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .filters {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .modal-content {
        margin: 20px;
    }
}

/* Article storefront refresh */
:root {
    --ink: #1d1d1b;
    --muted: #707070;
    --line: #dedede;
    --paper: #ffffff;
    --accent: #111111;
    --acid: #f5f5f5;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Trebuchet MS", "Malgun Gothic", sans-serif;
}

.container {
    max-width: 1320px;
}

.policy-page {
    max-width: 850px;
    padding-top: 64px;
    padding-bottom: 90px;
}

.policy-page h1 {
    margin-bottom: 36px;
    font-family: Georgia, serif;
    font-weight: 400;
}

.policy-page h2 {
    margin: 28px 0 8px;
    font-size: 18px;
}

.header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    border-bottom: 1px solid var(--line);
}

.utility-bar {
    background: var(--ink);
    color: #f5f3ed;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.utility-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top {
    padding: 26px 0 22px;
    border-bottom: 0;
}

.header-top-content {
    align-items: flex-end;
}

.logo h1 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 400;
    line-height: .85;
    letter-spacing: -2px;
}

.logo a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.logo-kicker,
.logo-subtitle,
.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.logo-kicker {
    margin-bottom: 9px;
    color: var(--accent);
    font-weight: 700;
}

.logo-subtitle {
    margin-top: 9px;
    letter-spacing: .8px;
    text-transform: none;
}

.header-right {
    gap: 24px;
}

.search-box {
    border-bottom: 1px solid var(--ink);
    gap: 8px;
}

.search-box input {
    width: 190px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 8px 0;
    background: transparent;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 1px;
}

.search-box button:hover {
    background: transparent;
    color: var(--accent);
}

.header-icons {
    gap: 10px;
}

.header-icons a {
    color: var(--ink);
    font-size: 11px;
    letter-spacing: .4px;
}

.header-icons a:hover {
    color: var(--accent);
}

.header-icons > span {
    color: #aaa59d;
}

.cart-link {
    padding: 0;
    background: transparent;
    color: var(--ink) !important;
    font-weight: 400;
}

.cart-link #cartCount {
    width: 17px;
    height: 17px;
    margin-left: 2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
}

.navbar {
    background: transparent;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.nav-menu {
    justify-content: center;
    gap: 42px;
    padding: 14px 0 16px;
}

.nav-menu > li > a {
    padding: 3px 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.nav-menu > li > a:hover {
    color: var(--accent);
}

.submenu {
    top: 100%;
    z-index: 1000;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 6px 6px 0 rgba(29, 29, 27, .08);
}

.submenu li a:hover {
    background: var(--acid);
    color: var(--ink);
}

.banner {
    min-height: 430px;
    margin: 0;
    padding: 0;
    background: var(--accent);
    color: #fff9ef;
    text-align: left;
    overflow: hidden;
}

.banner-content {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-copy {
    padding: 48px 0;
}

.banner-copy .eyebrow {
    margin-bottom: 22px;
    color: #cfcfcf;
}

.banner-copy h2 {
    max-width: 650px;
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -3px;
}

.banner-copy h2 em {
    color: var(--acid);
    font-style: normal;
}

.banner-copy > p:not(.eyebrow) {
    margin-bottom: 30px;
    color: #d8d8d8;
    font-size: 15px;
}

.banner-copy button {
    padding: 13px 18px;
    border: 1px solid #fff9ef;
    border-radius: 0;
    background: transparent;
    color: #fff9ef;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: .7px;
}

.banner-copy button:hover {
    background: var(--acid);
    color: var(--ink);
}

.banner-copy button span {
    margin-left: 22px;
    font-size: 18px;
}

.banner-art {
    width: min(38vw, 430px);
    height: 320px;
    position: relative;
    border: 1px solid rgba(255, 249, 239, .55);
    transform: rotate(4deg);
}

.art-label,
.art-caption {
    position: absolute;
    font-size: 10px;
    letter-spacing: 2px;
}

.art-label {
    top: 18px;
    left: 20px;
}

.art-caption {
    right: 20px;
    bottom: 18px;
    text-align: right;
    line-height: 1.4;
}

.art-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--acid);
    font-family: Georgia, serif;
    font-size: 150px;
    transform: translate(-50%, -50%);
}

.quick-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding-top: 28px;
}

.quick-categories button {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
}

.quick-categories button:hover {
    border-color: var(--ink);
    background: var(--acid);
}

.quick-categories button span {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
}

.main-content {
    padding: 64px 0 90px;
    min-height: 500px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 0 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
}

.filter-section h3 {
    margin: 0 auto 0 0;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
}

.filters {
    gap: 17px;
    margin: 0;
}

.filters label {
    color: var(--muted);
    font-size: 11px;
}

.reset-btn {
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
}

.reset-btn:hover {
    background: transparent;
    text-decoration: underline;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
}

.products-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -1px;
}

.section-heading > span {
    color: var(--muted);
    font-size: 11px;
}

.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 16px;
}

.product-card {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card .product-image {
    height: 320px;
    background: #e7e3dc;
    border: 0;
    font-size: 72px;
    transition: filter .25s ease;
}

.product-image-link {
    cursor: pointer;
}

.product-card:hover .product-image {
    filter: contrast(1.08) saturate(.8);
}

.product-info {
    padding: 13px 0 0;
}

.product-category {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 1.2px;
}

.product-name {
    margin: 5px 0 7px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.product-description {
    min-height: 21px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 11px;
}

.product-price {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 14px;
}

.product-buttons {
    gap: 6px;
}

.btn-detail,
.btn-cart {
    padding: 9px;
    border-radius: 0;
    font-size: 11px;
}

.btn-detail {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}

.btn-cart {
    background: var(--ink);
}

.btn-cart:hover {
    background: var(--accent);
}

@media (max-width: 800px) {
    .utility-inner span:last-child,
    .logo-subtitle,
    .section-heading > span {
        display: none;
    }

    .header-top-content,
    .header-right {
        align-items: center;
    }

    .header-top-content {
        display: block;
    }

    .header-right {
        justify-content: space-between;
        margin-top: 22px;
    }

    .nav-menu {
        justify-content: flex-start;
        gap: 22px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .nav-menu > li {
        flex: 0 0 auto;
    }

    .nav-menu > li > a {
        white-space: nowrap;
    }

    .banner-content {
        min-height: 390px;
    }

    .banner-art {
        width: 190px;
        height: 230px;
    }

    .art-emoji {
        font-size: 90px;
    }

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

    .quick-categories button:last-child {
        grid-column: span 2;
    }

    .filter-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .filters {
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    .product-card .product-image {
        height: 230px;
    }
}

@media (max-width: 480px) {
    .utility-inner {
        justify-content: center;
    }

    .logo h1 {
        font-size: 42px;
    }

    .search-box input {
        width: 130px;
    }

    .header-icons {
        gap: 6px;
    }

    .header-icons a {
        font-size: 10px;
    }

    .banner-content {
        min-height: 440px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .banner-copy h2 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .banner-art {
        display: none;
    }

    .main-content {
        padding-top: 44px;
    }

    .products-section h2 {
        font-size: 28px;
    }

    .product-card .product-image {
        height: 190px;
        font-size: 54px;
    }
}
