@charset "utf-8";

/* ==========================================================================
   대구메이트 메인 페이지 (Figma 00_main / node 7288:16027)
   - default_shop.css 뒤에 로드되어 메인 화면 레이아웃을 덮어쓴다.
   - 모바일 전용 페이지 없이 반응형으로 대응한다. (theme.config.php : G5_THEME_DEVICE='pc')
   - body 기본 font-size 가 0.75em 이므로 이 파일은 모두 px 로 작성한다.

   브레이크포인트
     ~1439px  큰 노트북    : 히어로 여백 축소
     ~1279px  태블릿 가로  : 헤드라인/여백 1단계 축소
     ~1023px  태블릿       : 2열 그리드, 히어로 높이 축소
     ~767px   모바일       : 햄버거 메뉴, 상품 2열, 푸터 세로 배치
     ~479px   소형 모바일  : 기능 카드 1열
   ========================================================================== */

:root {
    --dm-primary: #1f3979;      /* Colors/Brand Color/Light/Primary */
    --dm-primary-hover: #2a4c9b;/* Primary 를 밝힌 hover 전용 색 (시안에는 없음) */
    --dm-purple: #875bbc;
    --dm-blue: #4178ff;
    --dm-base0: #000000;        /* Colors/Grey Color/Light/Base0 */
    --dm-base1: #2d2d2d;        /* Colors/Grey Color/Light/Base1 */
    --dm-base2: #444444;        /* Colors/Grey Color/Light/Base2 */
    --dm-base4: #8c8c8c;        /* Colors/Grey Color/Light/Base4 */
    --dm-base6: #b2b2b2;        /* Colors/Grey Color/Light/Base6 */
    --dm-base8: #e0e0e0;        /* Colors/Grey Color/Light/Base8 */
    --dm-base9: #f4f4f4;        /* Colors/Grey Color/Light/Base9 */
    --dm-base10: #ffffff;       /* Colors/Grey Color/Light/Base10 */
    --dm-how-bg: #f3f8ff;
    --dm-content: 1200px;       /* 시안 본문 폭 */
    --dm-gutter: 20px;          /* 좌우 최소 여백 */
    --dm-font-kr: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', dotum, sans-serif;
    --dm-font-en: 'Montserrat', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

#dm_wrap {
    min-width: 320px;
    background: var(--dm-base10);
    font-family: var(--dm-font-kr);
    font-size: 16px;
    line-height: 1.5;
    color: var(--dm-base1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 본문이 짧은 화면(로그인 등) : 본문이 남는 높이를 채워 푸터를 화면 아래에 붙인다.
   dm.head.php 를 부르기 전에 $dm_wrap_fill = true 로 켠다.
   푸터 높이가 폭마다 달라(모바일은 주소 줄바꿈) 고정값 계산 대신 flex 로 채운다. */
#dm_wrap.dm-wrap-fill {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
#dm_wrap.dm-wrap-fill > #dm_container {
    flex: 1 0 auto;
}

/* default_shop.css 가 이미 margin/padding/list-style 을 초기화하므로
   여기서는 ID 선택자로 클래스 규칙을 덮어쓰지 않도록 최소한만 다시 지정한다. */
#dm_wrap a {
    text-decoration: none;
}
#dm_wrap img {
    border: 0;
}
/* default_shop.css 의 p{word-break:break-all} 은 영문에서 단어를 잘라버린다 */
#dm_wrap p,
#dm_wrap span,
#dm_wrap a,
#dm_wrap h2 {
    word-break: normal;
    overflow-wrap: break-word;
}

/* 본문 폭 컨테이너 : 넓은 화면에서 정확히 1200px, 좁은 화면에서는 좌우 여백만 유지 */
.dm-about-list,
.dm-goods-sec {
    width: 100%;
    max-width: calc(var(--dm-content) + var(--dm-gutter) * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--dm-gutter);
    padding-right: var(--dm-gutter);
}

/* 화면 폭에 따라 숨기는 줄바꿈 */
.dm-br-pc,
.dm-br-tb,
.dm-br-mo {
    display: inline;
}

/* 그라디언트 텍스트 (bg-clip-text) */
.dm-grad,
.dm-grad-blue {
    display: inline-block;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dm-grad {
    background-image: linear-gradient(90deg, var(--dm-primary) 0%, var(--dm-purple) 100%);
}
.dm-grad-blue {
    background-image: linear-gradient(90deg, var(--dm-primary) 0%, var(--dm-blue) 100%);
}

/* --------------------------------------------------------------- 상단 */
#dm_hd {
    position: relative;
    z-index: 110;
    height: 60px;
    background: var(--dm-base10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dm-hd-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 60px 0 40px;
}
.dm-logo {
    flex: none;
    display: block;
    width: 200px;
    height: 28px;
}
.dm-logo img {
    display: block;
    width: 100%;
    height: 100%;
}
.dm-gnb ul {
    display: flex;
    align-items: center;
    gap: 52px;
}
.dm-gnb a {
    display: block;
    font-family: var(--dm-font-kr);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--dm-base1);
    white-space: nowrap;
}
.dm-gnb a:hover {
    color: var(--dm-primary);
}
/* 모바일 메뉴 버튼 : 767px 이하에서만 노출 */
.dm-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: none;
}
.dm-menu-btn span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--dm-base1);
}
.dm-menu-btn span.sound_only {
    height: auto;
}

/* --------------------------------------------------------------- 히어로 */
.dm-hero {
    position: relative;
    height: 800px;
    margin: 0 40px;
    border-radius: 20px;
    overflow: hidden;
}
.dm-hero-bg {
    position: absolute;
    inset: 0;
    /* 시안에서 이미지와 오버레이가 함께 좌우 반전되어 있다 */
    transform: scaleX(-1);
}
.dm-hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    /* 시안은 이미지를 늘려 채우지만 1840x800 에서만 성립하므로,
       전 구간에서 비율을 유지한 채 잘라 채운다. */
    object-fit: cover;
    object-position: center;
}
.dm-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%),
        linear-gradient(-48.99deg, rgba(31, 57, 121, 0.5) 0%, rgba(31, 57, 121, 0) 63.717%),
        linear-gradient(90deg, rgba(232, 232, 232, 0) 57.745%, rgba(232, 232, 232, 0.7) 100%);
}
.dm-hero-text {
    position: absolute;
    top: 50%;
    left: 200px;
    right: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 68px;
}
.dm-hero-txt {
    display: flex;
    flex-direction: column;
    gap: 26px;
    color: var(--dm-base10);
    white-space: nowrap;
}
.dm-hero-title {
    font-family: var(--dm-font-en);
    font-weight: 700;
    font-size: 60px;
    line-height: 60px;
    letter-spacing: -1.2px;
}
.dm-hero-desc {
    font-family: var(--dm-font-en);
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
}
.dm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 4px;
    background: var(--dm-primary);
    font-family: var(--dm-font-kr);
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: var(--dm-base10);
    text-align: center;
    white-space: nowrap;
}
.dm-btn-primary img {
    display: block;
    flex: none;
    width: 24px;
    height: 24px;
}

/* --------------------------------------------- Why Choose Daegu Mate? */
.dm-about {
    padding-top: 160px;
}
.dm-about-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    padding: 0 var(--dm-gutter);
    text-align: center;
}
.dm-about-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.dm-about-mark img {
    display: block;
    width: 82px;
    height: 58px;
}
.dm-about-title {
    font-family: var(--dm-font-en);
    font-weight: 700;
    font-size: 54px;
    line-height: normal;
    letter-spacing: -1.08px;
}
.dm-about-slogan {
    font-family: var(--dm-font-en);
    font-weight: 500;
    font-size: 28px;
    line-height: normal;
}
.dm-about-desc {
    max-width: 900px;
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dm-base1);
}

.dm-about-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 120px;
}
.dm-about-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
    border: 1px solid var(--dm-base8);
    border-radius: 4px;
    overflow: hidden;
}
.dm-about-list img {
    display: block;
    flex: none;
    width: 48px;
    height: 48px;
}
.dm-about-list span {
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--dm-base0);
    text-align: center;
}

.dm-about-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 120px;
    padding: 0 var(--dm-gutter);
    text-align: center;
}
.dm-about-trust-title {
    max-width: 784px;
    font-family: var(--dm-font-en);
    font-weight: 500;
    font-size: 28px;
    line-height: normal;
}
.dm-about-trust-desc {
    max-width: 900px;
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dm-base1);
}

/* ------------------------------------------- How to Make a Reservation */
.dm-how {
    margin-top: 160px;
    padding: 100px 0;
    background: var(--dm-how-bg);
    overflow: hidden;
}
.dm-how-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    padding: 0 var(--dm-gutter);
}
.dm-how-title {
    font-family: var(--dm-font-en);
    font-weight: 700;
    font-size: 54px;
    line-height: normal;
    letter-spacing: -1.08px;
    text-align: center;
}
.dm-how-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
}
.dm-how-lead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.dm-how-lead-sub {
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dm-base1);
}
.dm-how-lead-title {
    font-family: var(--dm-font-en);
    font-weight: 500;
    font-size: 28px;
    line-height: normal;
}
.dm-how-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: var(--dm-content);
}
.dm-how-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    aspect-ratio: 1 / 1;
    padding: 40px 20px;
    border: 1px solid var(--dm-base8);
    border-radius: 300px;
    background: var(--dm-primary);
    overflow: hidden;
}
.dm-how-list img {
    display: block;
    flex: none;
    width: 60px;
    height: 60px;
}
.dm-how-list span {
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--dm-base10);
    text-align: center;
    white-space: nowrap;
}
.dm-how-note {
    max-width: 900px;
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dm-base1);
    text-align: center;
}

/* ------------------------------------------------------------- 상품진열 */
.dm-goods-sec {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 160px;
}
.dm-goods-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.dm-goods-head h2 {
    font-family: var(--dm-font-en);
    font-weight: 700;
    font-size: 32px;
    line-height: normal;
    letter-spacing: -0.64px;
    color: var(--dm-base0);
}
.dm-more {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--dm-font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dm-base1);
    text-align: center;
    white-space: nowrap;
}
.dm-more img {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
}

.dm-goods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 120px 28px;
}
.dm-goods-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    border-radius: 8px;
}
.dm-goods-thumb {
    position: relative;
    display: block;
    aspect-ratio: 279 / 209;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dm-base9);
}
.dm-goods-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
.dm-goods-soldout {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    font-family: var(--dm-font-en);
    font-weight: 700;
    font-size: 16px;
    color: var(--dm-base10);
    letter-spacing: 1px;
}
.dm-goods-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.dm-goods-name {
    display: block;
    font-family: var(--dm-font-kr);
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: var(--dm-base0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-goods-price {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}
.dm-goods-price strong {
    font-family: var(--dm-font-kr);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--dm-primary);
}
.dm-goods-price del {
    font-family: var(--dm-font-kr);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--dm-base4);
    text-decoration: line-through;
}
.dm-goods-empty {
    width: 100%;
    padding: 60px 0;
    font-family: var(--dm-font-en);
    font-size: 16px;
    color: var(--dm-base4);
    text-align: center;
}

/* --------------------------------------------------------------- 하단 */
#dm_ft {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 180px;
    margin-top: 160px;
    padding: 0 max(var(--dm-gutter), calc((100% - var(--dm-content)) / 2));
    background: var(--dm-base9);
    overflow: hidden;
}
.dm-ft-logo {
    flex: none;
    display: block;
    width: 100px;
    height: 70px;
}
.dm-ft-logo img {
    display: block;
    width: 100%;
    height: 100%;
}
.dm-ft-txt {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 긴 주소 줄이 로고를 밀지 않게 한다 */
    min-width: 0;
    font-family: var(--dm-font-kr);
    color: var(--dm-base4);
}
/* 약관 링크 */
.dm-ft-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dm-ft-links a {
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: var(--dm-base2);
}
/* 사업자 정보 : 한 줄 안의 칸은 세로 구분선(.dm-ft-bar)으로 나뉜다 */
.dm-ft-con {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dm-ft-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
}
.dm-ft-bar {
    flex: none;
    width: 1px;
    height: 16px;
    background: var(--dm-base6);
}
.dm-ft-copy {
    font-family: var(--dm-font-kr);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

/* ----------------------------------------------------------- 퀵 메뉴 */
#dm_quick {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#dm_quick a {
    display: block;
    width: 48px;
    height: 48px;
}
#dm_quick img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ======================================================================
   hover — 마우스 포인터가 있는 환경(PC)에서만 적용한다.
   터치 기기에서는 hover 상태가 탭 후에도 남아 있으므로 제외한다.
   ====================================================================== */
@media (hover: hover) and (pointer: fine) {

    /* 히어로 CTA 버튼 : 화살표가 진행 방향으로 살짝 밀린다 */
    .dm-btn-primary {
        transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
    .dm-btn-primary img {
        transition: transform 0.2s ease;
    }
    .dm-btn-primary:hover {
        background: var(--dm-primary-hover);
        box-shadow: 0 8px 18px rgba(31, 57, 121, 0.35);
        transform: translateY(-2px);
    }
    .dm-btn-primary:hover img {
        transform: translateX(4px);
    }

    /* View More : 화살표가 진행 방향으로 밀린다 */
    .dm-more img {
        transition: transform 0.2s ease;
    }
    .dm-more:hover img {
        transform: translateX(4px);
    }

    /* 하단 약관 링크 */
    .dm-ft-links a:hover {
        color: var(--dm-base1);
        text-decoration: underline;
    }

    /* 퀵메뉴 : 브랜드 아이콘이라 색은 건드리지 않고 크기와 그림자만 준다.
       원형·라운드 모양을 따라가도록 box-shadow 대신 drop-shadow 를 쓴다. */
    #dm_quick a {
        transition: transform 0.2s ease, filter 0.2s ease;
    }
    #dm_quick a:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
    }

    /* Why Choose 기능 카드 */
    .dm-about-list li {
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
    .dm-about-list span {
        transition: color 0.2s ease;
    }
    .dm-about-list li:hover {
        border-color: var(--dm-primary);
        box-shadow: 0 8px 20px rgba(31, 57, 121, 0.12);
        transform: translateY(-4px);
    }
    .dm-about-list li:hover span {
        color: var(--dm-primary);
    }

    /* How to Make a Reservation 원형 */
    .dm-how-list li {
        transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }
    .dm-how-list li:hover {
        background: var(--dm-primary-hover);
        box-shadow: 0 10px 24px rgba(31, 57, 121, 0.25);
        transform: translateY(-6px);
    }

    /* 상품 카드 : 썸네일만 확대되고 모서리 밖으로 나가지 않는다
       (.dm-goods-thumb 이 overflow:hidden) */
    .dm-goods-thumb img {
        transition: transform 0.35s ease;
    }
    .dm-goods-name {
        transition: color 0.2s ease;
    }
    .dm-goods-item:hover .dm-goods-thumb img {
        transform: scale(1.06);
    }
    .dm-goods-item:hover .dm-goods-name {
        color: var(--dm-primary);
    }
}

/* 모션 최소화를 선호하는 사용자에게는 이동·확대를 끈다 */
@media (prefers-reduced-motion: reduce) {
    .dm-btn-primary,
    .dm-btn-primary img,
    .dm-more img,
    #dm_quick a,
    .dm-about-list li,
    .dm-about-list span,
    .dm-how-list li,
    .dm-goods-thumb img,
    .dm-goods-name {
        transition: none;
    }
    .dm-btn-primary:hover,
    .dm-btn-primary:hover img,
    .dm-more:hover img,
    #dm_quick a:hover,
    .dm-about-list li:hover,
    .dm-how-list li:hover,
    .dm-goods-item:hover .dm-goods-thumb img {
        transform: none;
    }
}

/* ======================================================================
   ~1439px : 큰 노트북
   ====================================================================== */
@media (max-width: 1439px) {
    .dm-hero-text {
        left: 120px;
    }
}

/* ======================================================================
   ~1279px : 태블릿 가로
   ====================================================================== */
@media (max-width: 1279px) {
    .dm-br-pc {
        display: none;
    }

    .dm-hd-inner {
        padding: 0 24px;
    }
    .dm-gnb ul {
        gap: 28px;
    }
    .dm-gnb a {
        font-size: 15px;
    }

    .dm-hero {
        height: 640px;
        margin: 0 24px;
    }
    .dm-hero-text {
        left: 64px;
        right: 64px;
        gap: 52px;
    }
    .dm-hero-title {
        font-size: 48px;
        line-height: 52px;
        letter-spacing: -0.96px;
    }

    .dm-about {
        padding-top: 120px;
    }
    .dm-about-intro {
        gap: 56px;
    }
    .dm-about-title,
    .dm-how-title {
        font-size: 44px;
        letter-spacing: -0.88px;
    }
    .dm-about-list,
    .dm-about-trust {
        margin-top: 96px;
    }

    .dm-how {
        margin-top: 120px;
        padding: 80px 0;
    }
    .dm-how-inner {
        gap: 72px;
    }

    .dm-goods-sec {
        margin-top: 120px;
    }
    .dm-goods {
        gap: 72px 24px;
    }

    #dm_ft {
        margin-top: 120px;
    }
    /* 사업자 정보 한 줄(1040px 기준)이 더는 들어가지 않는 폭이다.
       칸 단위로 접으면 줄 끝에 구분선만 남으므로 칸마다 줄을 바꾼다. */
    .dm-ft-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .dm-ft-bar {
        display: none;
    }
}

/* ======================================================================
   ~1023px : 태블릿
   ====================================================================== */
@media (max-width: 1023px) {
    .dm-br-tb {
        display: none;
    }

    /* 상단 : GNB 6개가 로고와 겹치기 시작하므로 햄버거 메뉴로 전환 */
    .dm-menu-btn {
        display: flex;
    }
    .dm-gnb {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--dm-base10);
        border-bottom: 1px solid var(--dm-base8);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }
    .dm-nav-open .dm-gnb {
        display: block;
    }
    .dm-gnb ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .dm-gnb li + li {
        border-top: 1px solid #f0f0f0;
    }
    .dm-gnb a {
        padding: 14px 24px;
        font-size: 15px;
    }

    .dm-hero {
        height: 560px;
        border-radius: 16px;
    }
    .dm-hero-text {
        left: 40px;
        right: 40px;
        gap: 44px;
    }
    .dm-hero-txt {
        gap: 20px;
        white-space: normal;
    }
    .dm-hero-title {
        font-size: 40px;
        line-height: 46px;
        letter-spacing: -0.8px;
    }
    .dm-hero-desc {
        font-size: 16px;
    }

    .dm-about-title,
    .dm-how-title {
        font-size: 36px;
        letter-spacing: -0.72px;
    }
    .dm-about-slogan,
    .dm-about-trust-title,
    .dm-how-lead-title {
        font-size: 24px;
    }
    .dm-about-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dm-how-list {
        grid-template-columns: repeat(2, minmax(0, 220px));
        gap: 32px;
    }

    /* 4개가 한 줄에 유지되도록 열 수는 그대로 두고 간격만 줄인다 */
    .dm-goods {
        gap: 56px 20px;
    }
    .dm-goods-head h2 {
        font-size: 28px;
    }
    .dm-goods-name {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ======================================================================
   ~767px : 모바일
   ====================================================================== */
@media (max-width: 767px) {
    :root {
        --dm-gutter: 16px;
    }

    .dm-br-mo {
        display: none;
    }

    /* 상단 (햄버거 전환은 1023px 구간에서 이미 적용됨) */
    .dm-hd-inner {
        padding: 0 var(--dm-gutter);
    }
    .dm-logo {
        width: 160px;
        height: 22px;
    }
    .dm-gnb a {
        padding: 14px var(--dm-gutter);
    }

    /* 히어로 */
    .dm-hero {
        height: 440px;
        margin: 0 var(--dm-gutter);
        border-radius: 12px;
    }
    /* 좁은 폭에서는 좌우가 크게 잘리므로 노출 위치를 옮긴다.
       이미지가 scaleX(-1) 로 반전돼 있어 값을 낮출수록 화면 오른쪽이 더 보인다. */
    .dm-hero-bg img {
        object-position: 30% center;
    }
    .dm-hero-text {
        left: 20px;
        right: 20px;
        gap: 28px;
    }
    .dm-hero-txt {
        gap: 14px;
    }
    .dm-hero-title {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: -0.6px;
    }
    .dm-hero-desc {
        font-size: 14px;
    }
    .dm-btn-primary {
        gap: 8px;
        padding: 13px 18px;
        font-size: 13px;
    }
    .dm-btn-primary img {
        width: 20px;
        height: 20px;
    }

    /* 소개 */
    .dm-about {
        padding-top: 72px;
    }
    .dm-about-intro {
        gap: 36px;
    }
    .dm-about-head {
        gap: 20px;
    }
    .dm-about-mark img {
        width: 62px;
        height: 44px;
    }
    .dm-about-title,
    .dm-how-title {
        font-size: 26px;
        letter-spacing: -0.52px;
    }
    .dm-about-slogan,
    .dm-about-trust-title,
    .dm-how-lead-title {
        font-size: 19px;
    }
    .dm-about-desc,
    .dm-about-trust-desc,
    .dm-how-lead-sub,
    .dm-how-note {
        font-size: 14px;
    }
    .dm-about-list {
        gap: 12px;
        margin-top: 56px;
    }
    .dm-about-list li {
        gap: 16px;
        padding: 24px 12px;
    }
    .dm-about-list img {
        width: 40px;
        height: 40px;
    }
    .dm-about-list span {
        font-size: 14px;
    }
    .dm-about-trust {
        gap: 24px;
        margin-top: 56px;
    }

    /* 예약안내 */
    .dm-how {
        margin-top: 72px;
        padding: 56px 0;
    }
    .dm-how-inner {
        gap: 44px;
    }
    .dm-how-contents {
        gap: 36px;
    }
    .dm-how-lead {
        gap: 12px;
    }
    .dm-how-list {
        grid-template-columns: repeat(2, minmax(0, 160px));
        gap: 16px;
    }
    .dm-how-list li {
        gap: 14px;
        padding: 16px 10px;
    }
    .dm-how-list img {
        width: 44px;
        height: 44px;
    }
    .dm-how-list span {
        font-size: 13px;
        white-space: normal;
    }

    /* 상품진열 */
    .dm-goods-sec {
        gap: 24px;
        margin-top: 72px;
    }
    .dm-goods-head h2 {
        font-size: 22px;
    }
    .dm-more {
        gap: 8px;
        font-size: 14px;
    }
    .dm-more img {
        width: 16px;
        height: 16px;
    }
    .dm-goods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 16px;
    }
    .dm-goods-item {
        gap: 12px;
    }
    .dm-goods-text {
        gap: 4px;
    }
    .dm-goods-name {
        font-size: 15px;
        line-height: 22px;
    }
    .dm-goods-price strong {
        font-size: 14px;
        line-height: 20px;
    }
    .dm-goods-price del {
        font-size: 12px;
        line-height: 18px;
    }
    .dm-goods-soldout {
        font-size: 14px;
    }
    .dm-goods-empty {
        padding: 40px 0;
        font-size: 14px;
    }

    /* 하단 */
    #dm_ft {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        min-height: 0;
        margin-top: 72px;
        padding: 32px var(--dm-gutter);
    }
    .dm-ft-logo {
        width: 76px;
        height: 53px;
    }
    .dm-ft-txt {
        gap: 10px;
    }
    .dm-ft-row {
        /* 줄 바꿈은 ~1279px 규칙이 이미 처리한다. 여기서는 크기만 줄인다 */
        font-size: 12px;
        line-height: 18px;
    }
    .dm-ft-copy {
        font-size: 11px;
    }

    /* 퀵메뉴 : 세로로 쌓으면 본문을 길게 가리므로 가로 배치로 바꾼다 */
    #dm_quick {
        flex-direction: row;
        right: 12px;
        bottom: 12px;
        gap: 6px;
    }
    #dm_quick a {
        width: 40px;
        height: 40px;
    }

    /* 팝업레이어: 관리자 지정 위치·크기(인라인 style)를 무시하고 가로 100% */
    #hd_pop {
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
    }
    .hd_pops {
        left: 0 !important;
        right: 0;
        box-sizing: border-box;
    }
    .hd_pops_con {
        width: auto !important;
        height: auto !important;
    }
}

/* ======================================================================
   ~479px : 소형 모바일
   ====================================================================== */
@media (max-width: 479px) {
    .dm-hero {
        height: 400px;
    }
    .dm-hero-title {
        font-size: 26px;
        line-height: 32px;
    }

    /* 기능 카드는 좁은 폭에서도 2열 3행을 유지한다 (아이콘 위 / 텍스트 아래) */
    .dm-about-list li {
        gap: 12px;
        padding: 20px 10px;
    }

    .dm-how-list {
        grid-template-columns: repeat(2, minmax(0, 140px));
    }

    .dm-goods {
        gap: 24px 12px;
    }
}

/* ==========================================================================
   고정폭 서브 페이지의 상단 (.dm-hd-fixed)
   - 영카트 서브 페이지는 default_shop.css 의 #wrapper{min-width:1200px} 고정폭이고
     viewport 메타도 주지 않는다(head.sub.php 참고).
   - 창을 줄였을 때 상단만 접히면 본문과 폭이 어긋나므로 위 반응형 구간을
     되돌려 항상 PC 배치를 유지한다. ID+클래스라 미디어쿼리보다 우선한다.
   ========================================================================== */
#dm_hd.dm-hd-fixed {
    min-width: 1200px;
}
#dm_hd.dm-hd-fixed .dm-menu-btn {
    display: none;
}
#dm_hd.dm-hd-fixed .dm-gnb {
    display: block;
    position: static;
    border-bottom: 0;
    box-shadow: none;
}
#dm_hd.dm-hd-fixed .dm-gnb ul {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}
#dm_hd.dm-hd-fixed .dm-gnb li + li {
    border-top: 0;
}
#dm_hd.dm-hd-fixed .dm-gnb a {
    padding: 0;
    font-size: 16px;
}

/* ==========================================================================
   고정폭 서브 페이지의 하단 (.dm-ft-fixed / .dm-quick-fixed)
   - 상단(.dm-hd-fixed)과 같은 이유로 창 폭에 맞춰 접지 않고 1200px 를 지킨다.
   - 메인은 마지막 섹션과 간격이 필요하지만 서브는 #wrapper 가 바로 위에서
     끝나므로 margin-top 을 두면 흰 띠가 생긴다. 영카트 #ft 처럼 붙인다.
   - 퀵메뉴는 우측 #side_menu(고정 50px 레일)와 겹치므로 그 왼쪽으로 비킨다.
   ========================================================================== */
#dm_ft.dm-ft-fixed {
    min-width: 1200px;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    min-height: 180px;
    margin-top: 0;
    padding: 0 max(var(--dm-gutter), calc((100% - var(--dm-content)) / 2));
}
#dm_ft.dm-ft-fixed .dm-ft-logo {
    width: 100px;
    height: 70px;
}
#dm_ft.dm-ft-fixed .dm-ft-txt {
    gap: 12px;
}
#dm_ft.dm-ft-fixed .dm-ft-row {
    /* 고정폭이라 1040px 자리가 늘 확보된다. 창이 좁아도 한 줄을 지킨다 */
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 18px;
}
#dm_ft.dm-ft-fixed .dm-ft-bar {
    display: block;
    height: 16px;
}
#dm_ft.dm-ft-fixed .dm-ft-copy {
    font-size: 12px;
}
#dm_quick.dm-quick-fixed {
    /* #side_menu 폭 50px + 여백 20px */
    right: 70px;
    bottom: 20px;
    flex-direction: column;
    gap: 8px;
}
#dm_quick.dm-quick-fixed a {
    width: 48px;
    height: 48px;
}
