/* =========================================================
   GILDONGSEKKI SHOP PAGE V2
   기존 서브페이지 1180 규격 + STORE UI
========================================================= */

.shop-page{
  min-height:70vh;
}


/* =========================================================
   HERO
   공용 subpage-layout-final 규격을 사용한다.
========================================================= */

body.gs-depth-shop
.functional-page-hero.gs-subhero{
  background:
    radial-gradient(
      circle at 82% 44%,
      rgba(225,187,109,.22),
      transparent 35%
    ),
    linear-gradient(
      115deg,
      #edf3e9 0%,
      #f7f2e6 58%,
      #eee4d0 100%
    ) !important;
}


/* =========================================================
   MAIN
========================================================= */

.shop-main-section{
  padding:
    8px 0 72px;

  background:
    transparent !important;
}

.shop-functional-wrap{
  box-sizing:border-box;

  width:
    min(
      1180px,
      calc(100% - 48px)
    ) !important;

  max-width:
    1180px !important;

  margin:
    0 auto !important;

  padding:
    0 !important;
}


/* =========================================================
   STORE TOOLBAR
========================================================= */

.shop-toolbar{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    auto;

  align-items:stretch;

  gap:12px;

  margin-bottom:20px;
}


/* =========================================================
   PRIMARY TAB
========================================================= */

.shop-tabs{
  min-width:0;

  display:flex;
  align-items:center;

  gap:4px;

  padding:6px;

  border:
    1px solid
    rgba(117,98,66,.12);

  border-radius:18px;

  background:
    rgba(255,255,255,.74);

  box-shadow:
    0 8px 24px
    rgba(76,63,40,.045);

  overflow-x:auto;

  scrollbar-width:none;
}

.shop-tabs::-webkit-scrollbar{
  display:none;
}

.shop-tab{
  position:relative;

  flex:0 0 auto;

  min-width:132px;
  height:48px;

  padding:
    0 22px;

  border:0;
  border-radius:13px;

  background:
    transparent;

  color:#756f66;

  font:inherit;

  font-size:14px;
  font-weight:850;

  cursor:pointer;

  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.shop-tab:hover{
  color:#332f29;

  background:
    rgba(242,236,221,.64);
}

.shop-tab.is-active{
  color:#25211c;

  background:
    linear-gradient(
      180deg,
      #f5ecd6,
      #eee0bd
    );

  box-shadow:
    0 6px 16px
    rgba(117,92,44,.10);
}

.shop-tab.is-active::after{
  content:"";

  position:absolute;

  left:50%;
  bottom:6px;

  width:18px;
  height:2px;

  transform:
    translateX(-50%);

  border-radius:999px;

  background:
    #a98849;
}


/* =========================================================
   ACCOUNT / POINT
========================================================= */

.shop-account-bar{
  min-width:265px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:16px;

  padding:
    10px 14px 10px 17px;

  border:
    1px solid
    rgba(117,98,66,.12);

  border-radius:18px;

  background:
    rgba(255,255,255,.74);

  box-shadow:
    0 8px 24px
    rgba(76,63,40,.045);
}

.shop-account-copy{
  min-width:0;
}

.shop-account-copy small{
  display:block;

  margin-bottom:3px;

  color:#9b8b6b;

  font-size:8px;
  font-weight:900;

  letter-spacing:.14em;
}

.shop-account-copy strong{
  display:block;

  max-width:210px;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  color:#514c44;

  font-size:11px;
  line-height:1.45;
}

.shop-point-badge{
  flex:0 0 auto;

  min-width:76px;

  padding:
    9px 12px;

  text-align:center;

  border:
    1px solid
    rgba(185,145,66,.20);

  border-radius:999px;

  background:
    linear-gradient(
      180deg,
      #fff9e8,
      #f8edcf
    );

  color:#8c6a2e;

  font-size:12px;
  font-weight:950;
}


/* =========================================================
   NOTICE
========================================================= */

.shop-notice{
  margin:
    0 0 16px;

  padding:
    11px 14px;

  border:
    1px solid
    rgba(117,98,66,.11);

  border-radius:13px;

  background:#fffaf0;

  color:#625b50;

  font-size:11px;
  line-height:1.6;
}

.shop-notice.is-error{
  border-color:
    rgba(196,85,85,.18);

  background:#fff4f2;

  color:#a04f4f;
}


/* =========================================================
   CONTENT
========================================================= */

.shop-content{
  min-height:360px;
}


/* =========================================================
   SECTION HEAD
========================================================= */

.shop-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:20px;

  margin:
    0 0 14px;

  padding:
    2px 2px 0;
}

.shop-section-title small{
  display:block;

  margin-bottom:5px;

  color:#a08d68;

  font-size:8px;
  font-weight:950;

  letter-spacing:.16em;
}

.shop-section-title h2{
  margin:0;

  color:#2f2b26;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(25px,2.5vw,34px);

  font-weight:700;

  line-height:1.16;

  letter-spacing:-.025em;
}

.shop-section-title p{
  margin:
    8px 0 0;

  color:#837c71;

  font-size:11px;
  line-height:1.65;
}


/* =========================================================
   FILTER
========================================================= */

.shop-filter-bar{
  display:flex;
  align-items:center;

  gap:7px;

  margin:
    0 0 16px;

  overflow-x:auto;

  scrollbar-width:none;
}

.shop-filter-bar::-webkit-scrollbar{
  display:none;
}

.shop-filter{
  flex:0 0 auto;

  min-width:64px;
  height:32px;

  padding:
    0 13px;

  border:
    1px solid
    rgba(117,98,66,.12);

  border-radius:999px;

  background:
    rgba(255,255,255,.75);

  color:#777066;

  font:inherit;

  font-size:10px;
  font-weight:850;

  cursor:pointer;
}

.shop-filter:hover{
  border-color:
    rgba(158,125,65,.22);

  color:#403b34;
}

.shop-filter.is-active{
  border-color:
    rgba(171,134,61,.30);

  background:#f3e6c7;

  color:#5a4722;
}


/* =========================================================
   PACK GRID
========================================================= */

.shop-pack-grid{
  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:14px;
}

.shop-pack-card{
  min-width:0;

  display:flex;
  flex-direction:column;

  padding:11px;

  border:
    1px solid
    rgba(119,101,70,.12);

  border-radius:18px;

  background:
    rgba(255,255,255,.80);

  box-shadow:
    0 10px 28px
    rgba(79,65,39,.055);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.shop-pack-card:hover{
  transform:
    translateY(-3px);

  border-color:
    rgba(164,128,60,.24);

  box-shadow:
    0 16px 34px
    rgba(79,65,39,.09);
}


/* =========================================================
   EMOTE PREVIEW
========================================================= */

.shop-pack-preview{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:6px;

  aspect-ratio:1.28 / 1;

  margin-bottom:12px;

  padding:9px;

  border-radius:14px;

  background:
    linear-gradient(
      145deg,
      #f6f3eb,
      #efe9da
    );

  overflow:hidden;
}

.shop-pack-preview-item{
  min-width:0;
  min-height:0;

  display:flex;
  align-items:center;
  justify-content:center;

  border:
    1px solid
    rgba(255,255,255,.80);

  border-radius:10px;

  background:
    rgba(255,255,255,.62);

  overflow:hidden;
}

.shop-pack-preview-item img{
  display:block;

  width:100%;
  height:100%;

  object-fit:contain;
}

.shop-pack-preview-empty{
  grid-column:1 / -1;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#a39a8c;

  font-size:10px;
}


/* =========================================================
   PACK TEXT
========================================================= */

.shop-pack-meta{
  min-width:0;

  display:flex;
  flex:1;
  flex-direction:column;
}

.shop-pack-badges{
  min-height:20px;

  display:flex;
  flex-wrap:wrap;

  gap:5px;

  margin-bottom:6px;
}

.shop-pack-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:20px;

  padding:
    2px 7px;

  border-radius:999px;

  background:#f1eee7;

  color:#82786a;

  font-size:8px;
  font-weight:900;
}

.shop-pack-badge.is-owned{
  background:#f5e7be;

  color:#725720;
}

.shop-pack-name{
  margin:0;

  color:#332f2a;

  font-size:14px;
  font-weight:900;

  line-height:1.4;

  overflow-wrap:anywhere;
}

.shop-pack-creator{
  margin-top:4px;

  color:#978f83;

  font-size:9px;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.shop-pack-description{
  min-height:34px;

  margin:
    8px 0 0;

  color:#837b70;

  font-size:9px;
  line-height:1.55;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
}

.shop-pack-bottom{
  display:block;

  width:100%;

  margin-top:14px;

  padding-top:12px;

  border-top:
    1px solid
    rgba(118,100,68,.08);
}


/*
 * GILDONG_SHOP_BIG_PURCHASE_BUTTON_V1
 *
 * 가격은 별도 작은 텍스트가 아니라
 * 구매 버튼 안에서 함께 표시한다.
 */
.shop-pack-price{
  display:none;
}


.shop-pack-action{
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  min-width:0;
  height:56px;

  padding:
    0 16px;

  border:
    1px solid
    rgba(160,126,62,.24);

  border-radius:15px;

  background:
    linear-gradient(
      180deg,
      #f6e9c7,
      #e7d09a
    );

  color:#59431b;

  font:inherit;

  font-size:15px;
  font-weight:950;

  letter-spacing:-.02em;

  cursor:pointer;

  transition:
    transform .16s ease,
    filter .16s ease,
    box-shadow .16s ease;

  box-shadow:
    0 7px 16px
    rgba(113,84,30,.10);
}

.shop-pack-action:hover:not(:disabled){
  filter:
    brightness(.98);

  transform:
    translateY(-1px);
}

.shop-pack-action:disabled{
  opacity:.50;

  cursor:default;
}


/* =========================================================
   EMPTY / LOADING
========================================================= */

.shop-loading,
.shop-empty{
  min-height:300px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:38px 24px;

  text-align:center;

  border:
    1px dashed
    rgba(135,113,75,.17);

  border-radius:20px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.72),
      rgba(251,247,238,.74)
    );

  color:#999083;

  font-size:11px;
  line-height:1.7;
}

.shop-empty::before{
  content:"";

  width:54px;
  height:54px;

  margin-bottom:15px;

  border-radius:18px;

  background:
    url("/gildongsekki/assets/images/brand/nav-shop-v1.webp?v=20260930_nav1")
    center / 44px 44px
    no-repeat;

  opacity:.60;
}

.shop-empty strong{
  display:block;

  margin-bottom:5px;

  color:#514b42;

  font-size:15px;
  font-weight:900;
}


/* =========================================================
   POINT SHOP
========================================================= */

.shop-point-placeholder{
  min-height:300px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:36px;

  text-align:center;

  border:
    1px solid
    rgba(135,113,75,.13);

  border-radius:20px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.84),
      rgba(248,242,228,.80)
    );

  box-shadow:
    0 12px 30px
    rgba(79,65,39,.045);
}

.shop-point-large{
  margin-bottom:15px;

  color:#94702d;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(34px,4vw,48px);

  font-weight:700;
}

.shop-point-placeholder strong{
  margin-bottom:7px;

  color:#403a32;

  font-size:18px;
  font-weight:900;
}

.shop-point-placeholder p{
  max-width:460px;

  margin:0;

  color:#8b8376;

  font-size:10px;
  line-height:1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:980px){

  .shop-toolbar{
    grid-template-columns:
      1fr;
  }

  .shop-account-bar{
    min-width:0;
  }

  .shop-pack-grid{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:680px){

  .shop-main-section{
    padding:
      3px 0 54px;
  }

  .shop-functional-wrap{
    width:
      calc(100% - 24px) !important;
  }

  .shop-toolbar{
    gap:8px;

    margin-bottom:14px;
  }

  .shop-tabs{
    border-radius:15px;
  }

  .shop-tab{
    min-width:108px;
    height:42px;

    padding:
      0 16px;

    font-size:11px;
  }

  .shop-account-bar{
    border-radius:15px;

    padding:
      9px 12px;
  }

  .shop-account-copy strong{
    max-width:none;

    white-space:normal;
  }

  .shop-section-head{
    display:block;

    margin-bottom:12px;
  }

  .shop-section-title h2{
    font-size:25px;
  }

  .shop-filter-bar{
    margin-bottom:12px;
  }

  .shop-pack-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:9px;
  }

  .shop-pack-card{
    padding:9px;

    border-radius:15px;
  }

  .shop-pack-preview{
    padding:7px;

    border-radius:11px;
  }
}


@media(max-width:430px){

  .shop-pack-grid{
    grid-template-columns:
      minmax(0,1fr);
  }

  .shop-pack-preview{
    aspect-ratio:
      1.8 / 1;
  }
}


/* =========================================================
   SHOP AUTHORING UI V1
========================================================= */

.shop-section-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.shop-primary-action,
.shop-secondary-action,
.shop-mini-action{
  appearance:none;
  border:0;
  font:inherit;
  cursor:pointer;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.shop-primary-action{
  min-height:38px;
  padding:0 16px;
  border:1px solid rgba(152,118,55,.24);
  border-radius:11px;
  background:
    linear-gradient(
      180deg,
      #f3e6c6,
      #e7d3a4
    );
  color:#5b451c;
  font-size:10px;
  font-weight:950;
  box-shadow:
    0 6px 15px
    rgba(107,82,36,.08);
}

.shop-secondary-action{
  min-height:38px;
  padding:0 15px;
  border:1px solid rgba(115,102,78,.14);
  border-radius:11px;
  background:rgba(255,255,255,.88);
  color:#625b51;
  font-size:10px;
  font-weight:900;
}

.shop-primary-action:hover:not(:disabled),
.shop-secondary-action:hover:not(:disabled),
.shop-mini-action:hover:not(:disabled){
  transform:translateY(-1px);
}

.shop-primary-action:disabled,
.shop-secondary-action:disabled,
.shop-mini-action:disabled{
  opacity:.45;
  cursor:default;
}


/* MODAL */

.shop-manager-overlay{
  position:fixed;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(40,35,27,.42);
  backdrop-filter:blur(6px);
}

.shop-manager-overlay[hidden]{
  display:none !important;
}

.shop-manager-dialog{
  width:min(760px,100%);
  max-height:min(820px,calc(100vh - 48px));
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(115,96,62,.15);
  border-radius:22px;
  background:#fbfaf6;
  box-shadow:
    0 30px 80px
    rgba(40,31,18,.24);
}

.shop-manager-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:21px 22px 17px;
  border-bottom:1px solid rgba(110,94,67,.09);
  background:
    linear-gradient(
      135deg,
      #f5f2e9,
      #eee5d1
    );
}

.shop-manager-heading small{
  display:block;
  margin-bottom:5px;
  color:#9a8051;
  font-size:8px;
  font-weight:950;
  letter-spacing:.16em;
}

.shop-manager-heading h2{
  margin:0;
  color:#302c27;
  font-size:22px;
  line-height:1.25;
}

.shop-manager-heading p{
  margin:6px 0 0;
  color:#80786d;
  font-size:10px;
  line-height:1.55;
}

.shop-manager-close{
  flex:0 0 auto;
  width:34px;
  height:34px;
  border:1px solid rgba(100,87,66,.10);
  border-radius:50%;
  background:rgba(255,255,255,.72);
  color:#6d655a;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.shop-manager-body{
  min-height:220px;
  overflow-y:auto;
  padding:20px 22px 24px;
}

.shop-manager-loading,
.shop-manager-error,
.shop-manager-empty{
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  border:1px dashed rgba(120,100,68,.15);
  border-radius:16px;
  background:rgba(255,255,255,.58);
  color:#8e867a;
  font-size:10px;
  line-height:1.7;
}

.shop-manager-empty.compact{
  min-height:90px;
}

.shop-manager-empty strong{
  margin-bottom:5px;
  color:#4f4941;
  font-size:14px;
}

.shop-manager-empty p{
  margin:0 0 15px;
}


/* FORM */

.shop-pack-form{
  display:grid;
  gap:12px;
  margin-bottom:18px;
}

.shop-form-field{
  display:grid;
  gap:6px;
}

.shop-form-field > span{
  color:#71695e;
  font-size:9px;
  font-weight:900;
}

.shop-form-field input,
.shop-form-field textarea{
  box-sizing:border-box;
  width:100%;
  border:1px solid rgba(111,96,70,.14);
  border-radius:11px;
  outline:none;
  background:#fff;
  color:#39342e;
  font:inherit;
  font-size:11px;
  line-height:1.5;
}

.shop-form-field input{
  height:42px;
  padding:0 12px;
}

.shop-form-field textarea{
  min-height:88px;
  padding:10px 12px;
  resize:vertical;
}

.shop-form-field input:focus,
.shop-form-field textarea:focus{
  border-color:rgba(164,127,58,.38);
  box-shadow:
    0 0 0 3px
    rgba(191,154,82,.08);
}

.shop-form-field input:disabled,
.shop-form-field textarea:disabled{
  background:#f3f1ec;
  color:#8d867a;
}

.shop-form-actions,
.shop-editor-footer{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:4px;
}


/* MY PACK */

.shop-mine-list{
  display:grid;
  gap:10px;
}

.shop-mine-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 15px;
  border:1px solid rgba(115,98,69,.11);
  border-radius:14px;
  background:#fff;
}

.shop-mine-info{
  min-width:0;
}

.shop-mine-title-row,
.shop-editor-summary-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.shop-mine-title-row strong,
.shop-editor-summary-title strong{
  color:#3c3731;
  font-size:13px;
}

.shop-mine-info p{
  margin:5px 0 0;
  color:#91897d;
  font-size:9px;
}

.shop-reject-text{
  color:#a45e57 !important;
}

.shop-status-badge{
  display:inline-flex;
  align-items:center;
  min-height:21px;
  padding:2px 8px;
  border-radius:999px;
  background:#efede7;
  color:#746d62;
  font-size:8px;
  font-weight:950;
}

.shop-status-badge[data-status="draft"]{
  background:#eeeae0;
}

.shop-status-badge[data-status="pending"]{
  background:#e8edf3;
  color:#53677b;
}

.shop-status-badge[data-status="approved"]{
  background:#e5efe4;
  color:#537052;
}

.shop-status-badge[data-status="rejected"]{
  background:#f5e5e2;
  color:#9a5a53;
}


/* EDITOR */

.shop-editor-summary{
  margin-bottom:15px;
}

.shop-reject-box{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(181,91,80,.13);
  border-radius:10px;
  background:#fff1ef;
  color:#985b53;
  font-size:9px;
  line-height:1.55;
}

.shop-upload-box{
  margin:8px 0 18px;
  padding:14px;
  border:1px dashed rgba(149,118,60,.25);
  border-radius:14px;
  background:#faf6eb;
}

.shop-upload-box strong{
  display:block;
  color:#50483e;
  font-size:11px;
}

.shop-upload-box p{
  margin:4px 0 10px;
  color:#8b8275;
  font-size:9px;
}

.shop-upload-box input[type="file"]{
  width:100%;
  font-size:10px;
}

.shop-editor-emotes{
  margin-top:10px;
}

.shop-editor-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:9px;
}

.shop-editor-section-head strong{
  color:#49433b;
  font-size:11px;
}

.shop-editor-section-head span{
  color:#91897d;
  font-size:9px;
}

.shop-editor-emote-list{
  display:grid;
  gap:8px;
}

.shop-editor-emote-row{
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:11px;
  padding:9px;
  border:1px solid rgba(112,97,71,.10);
  border-radius:12px;
  background:#fff;
}

.shop-editor-emote-preview{
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:10px;
  background:#f2efe7;
}

.shop-editor-emote-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.shop-editor-emote-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
}

.shop-editor-emote-meta > input{
  box-sizing:border-box;
  width:100%;
  height:34px;
  padding:0 10px;
  border:1px solid rgba(111,96,70,.13);
  border-radius:9px;
  outline:none;
  font:inherit;
  font-size:10px;
}

.shop-editor-emote-controls{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.shop-mini-action{
  min-height:26px;
  padding:0 9px;
  border:1px solid rgba(110,95,69,.12);
  border-radius:8px;
  background:#f8f6f0;
  color:#675f55;
  font-size:8px;
  font-weight:900;
}

.shop-mini-action.is-danger{
  color:#a15a53;
  background:#fff3f1;
}


/* REMOVE OLD POINT LARGE */
.shop-point-large{
  display:none !important;
}


@media(max-width:680px){

  .shop-section-head{
    display:flex;
    align-items:flex-start;
    gap:12px;
  }

  .shop-section-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .shop-section-actions .shop-primary-action,
  .shop-section-actions .shop-secondary-action{
    min-height:32px;
    padding:0 10px;
    font-size:8px;
  }

  .shop-manager-overlay{
    align-items:flex-end;
    padding:0;
  }

  .shop-manager-dialog{
    width:100%;
    max-height:90vh;
    border-radius:20px 20px 0 0;
  }

  .shop-manager-top{
    padding:17px 16px 14px;
  }

  .shop-manager-body{
    padding:16px;
  }

  .shop-mine-card{
    align-items:flex-start;
  }

  .shop-editor-emote-row{
    grid-template-columns:58px minmax(0,1fr);
  }

  .shop-editor-emote-preview{
    width:58px;
    height:58px;
  }
}


/* =========================================================
   GILDONG_SHOP_PACK_DETAIL_V1
   PACK DETAIL POPUP
========================================================= */

body.shop-pack-detail-open{
  overflow:hidden;
}


.shop-pack-card{
  cursor:pointer;
}


.shop-pack-card:focus-visible{
  outline:
    3px solid
    rgba(177,138,66,.30);

  outline-offset:3px;
}


.shop-pack-detail-overlay{
  position:fixed;
  inset:0;

  z-index:15000;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:24px;

  background:
    rgba(25,21,15,.58);

  backdrop-filter:
    blur(7px);

  overflow:auto;
}


.shop-pack-detail-dialog{
  width:
    min(760px,100%);

  max-height:
    calc(100dvh - 48px);

  overflow:auto;

  padding:26px;

  border:
    1px solid
    rgba(157,127,70,.16);

  border-radius:26px;

  background:
    #fffdf8;

  box-shadow:
    0 28px 80px
    rgba(33,27,18,.30);
}


.shop-pack-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:20px;
}


.shop-pack-detail-head-text{
  min-width:0;
}


.shop-pack-detail-badges{
  display:flex;
  flex-wrap:wrap;

  gap:6px;

  margin-bottom:9px;
}


.shop-pack-detail-title{
  margin:0;

  color:#302b24;

  font-size:25px;
  font-weight:950;

  line-height:1.3;

  overflow-wrap:anywhere;
}


.shop-pack-detail-creator{
  margin-top:7px;

  color:#928879;

  font-size:12px;
  font-weight:700;
}


.shop-pack-detail-close{
  flex:0 0 auto;

  width:42px;
  height:42px;

  padding:0;

  border:
    1px solid
    rgba(115,96,64,.12);

  border-radius:50%;

  background:#f4efe5;

  color:#625746;

  font-size:28px;
  line-height:1;

  cursor:pointer;
}


.shop-pack-detail-description{
  margin:
    18px 0 0;

  padding:
    14px 16px;

  border-radius:14px;

  background:
    #f8f5ee;

  color:#71685c;

  font-size:13px;
  line-height:1.65;

  white-space:pre-wrap;
}


.shop-pack-detail-emote-head{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-top:24px;
  margin-bottom:12px;

  color:#544a3d;

  font-size:13px;
}


.shop-pack-detail-emote-head strong{
  font-size:16px;
  font-weight:950;
}


.shop-pack-detail-emote-head span{
  color:#9a8f80;
  font-weight:800;
}


.shop-pack-detail-grid{
  display:grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(104px,1fr)
    );

  gap:12px;
}


.shop-pack-detail-emote{
  min-width:0;

  padding:8px;

  border:
    1px solid
    rgba(131,108,68,.11);

  border-radius:15px;

  background:#fff;

  box-shadow:
    0 5px 16px
    rgba(75,61,38,.04);
}


.shop-pack-detail-emote-image{
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;

  aspect-ratio:1 / 1;

  padding:6px;

  border-radius:11px;

  background:
    #f7f4ed;

  overflow:hidden;
}


.shop-pack-detail-emote-image img{
  display:block;

  width:100%;
  height:100%;

  object-fit:contain;
}


.shop-pack-detail-emote-name{
  margin-top:7px;

  color:#6f6558;

  font-size:10px;
  font-weight:800;

  text-align:center;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


.shop-pack-detail-empty{
  grid-column:1 / -1;

  padding:40px 20px;

  border:
    1px dashed
    rgba(126,105,68,.18);

  border-radius:16px;

  color:#9c9387;

  text-align:center;
}


.shop-pack-detail-footer{
  margin-top:24px;

  padding-top:18px;

  border-top:
    1px solid
    rgba(118,100,68,.10);
}


.shop-pack-detail-action{
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  height:58px;

  padding:
    0 18px;

  border:
    1px solid
    rgba(160,126,62,.24);

  border-radius:16px;

  background:
    linear-gradient(
      180deg,
      #f6e9c7,
      #e7d09a
    );

  color:#59431b;

  font:inherit;

  font-size:16px;
  font-weight:950;

  cursor:pointer;

  box-shadow:
    0 8px 20px
    rgba(113,84,30,.11);
}


.shop-pack-detail-action:hover:not(:disabled){
  filter:brightness(.98);

  transform:
    translateY(-1px);
}


.shop-pack-detail-action:disabled{
  opacity:.52;

  cursor:default;
}


@media (max-width:640px){

  .shop-pack-detail-overlay{
    align-items:flex-end;

    padding:
      12px;
  }


  .shop-pack-detail-dialog{
    width:100%;

    max-height:
      calc(100dvh - 24px);

    padding:
      20px 16px 18px;

    border-radius:
      22px 22px 16px 16px;
  }


  .shop-pack-detail-title{
    font-size:21px;
  }


  .shop-pack-detail-grid{
    grid-template-columns:
      repeat(
        auto-fill,
        minmax(76px,1fr)
      );

    gap:8px;
  }


  .shop-pack-detail-emote{
    padding:6px;

    border-radius:12px;
  }


  .shop-pack-detail-emote-name{
    font-size:9px;
  }


  .shop-pack-detail-action{
    height:54px;

    font-size:15px;
  }
}




/* =========================================================
   GILDONG_CREATOR_SALES_STYLE_V1
   이모티콘 제작자 판매 리워드 현황
========================================================= */

.shop-sales-summary {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid #ded2b6;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    #fffdf8,
    #f7f0e1
  );
  box-shadow: 0 8px 24px rgba(67, 52, 28, .06);
}

.shop-sales-heading {
  margin: 0 0 17px;
  color: #55442a;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.035em;
}

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

.shop-sales-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  padding: 19px 15px;
  border: 1px solid #e8ddca;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
}

.shop-sales-metric span {
  color: #857762;
  font-size: 12px;
  font-weight: 700;
}

.shop-sales-metric strong {
  color: #564326;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.shop-sales-note {
  margin: 14px 0 0;
  color: #897d6b;
  font-size: 12px;
  line-height: 1.65;
}

.shop-mine-sales {
  margin: 9px 0 0;
  padding: 9px 12px;
  border: 1px solid #eadfc9;
  border-radius: 8px;
  background: #fcf8ee;
  color: #796038;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .shop-sales-summary {
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 13px;
  }

  .shop-sales-heading {
    font-size: 17px;
  }

  .shop-sales-grid {
    gap: 8px;
  }

  .shop-sales-metric {
    gap: 7px;
    padding: 15px 11px;
  }

  .shop-sales-metric span {
    font-size: 11px;
  }

  .shop-sales-metric strong {
    font-size: 20px;
  }

  .shop-mine-sales {
    font-size: 11px;
    padding: 8px 10px;
  }
}

/* /GILDONG_CREATOR_SALES_STYLE_V1 */
