/* 연합회💛 Shopping Mall - UK Theme */
:root {
  --brand-primary: #212529;
  --brand-secondary: #666666;
  --brand-danger: #B02A37;
  --brand-danger-hover: #A52834;
  --brand-dark: #000000;
  --brand-light: #ffffff;
  --brand-gray: #eeeeee;
  --brand-border: #dee2e6;
  --brand-blue: #21257E;
  --brand-red: #A70101;
  --group-bg: #F9FAFB;
  --group-text: #101828;
  --group-text-sub: #6A7282;
  --group-icon-gradient: linear-gradient(135deg, #2B7FFF 0%, #155DFC 100%);
  --group-blue: #155DFC;
  --group-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
  --group-notice-bg: #FEF3C6;
  --group-notice-icon: #E17100;
  --group-news-bg: #DCFCE7;
  --group-news-icon: #00A63E;
  --group-banner-gradient: linear-gradient(90deg, #155DFC 0%, #9810FA 100%);
  --group-page-text: #364153;
}

* {
  font-size: 1rem;
}

body {
  font-family: 'Helvetica Neue', 'Noto Sans KR', Arial, sans-serif;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Hedvig Letters Serif', 'Helvetica Neue', 'Noto Sans KR', serif;
  color: var(--brand-primary);
}

/* Main Layout */
.main-content {
  min-height: calc(100vh - 400px);
}

/* Buttons */
.btn-brand {
  font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-brand-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-light);
}

.btn-brand-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--brand-light);
}

.btn-brand-danger {
  background-color: var(--brand-danger);
  border-color: var(--brand-danger-hover);
  color: var(--brand-light);
  font-size: 24px;
  font-weight: 700;
  padding: 14px 60px;
  border-radius: 30px;
}

.btn-brand-danger:hover {
  background-color: var(--brand-danger-hover);
  border-color: var(--brand-danger-hover);
  color: var(--brand-light);
}

/* Product Cards */
.product-card {
  background: var(--brand-light);
  border: none;
  border-radius: 8px;
  box-shadow: 3px 3px 3px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img-box {
  height: 314px;
  background: rgba(204, 204, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.product-title {
  font-family: 'Hedvig Letters Serif', 'Noto Sans KR', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-secondary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-price {
  font-family: 'Hedvig Letters Serif', 'Noto Sans KR', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--brand-blue);
}

.product-price.out-of-stock {
  color: var(--brand-red);
}

/* Service Features */
.service-features {
  padding: 100px 0;
  background: var(--brand-light);
}

.service-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--brand-secondary);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--brand-border);
}

.service-item {
  text-align: center;
  padding: 20px;
}

.service-text {
  font-size: 20px;
  font-weight: 400;
  color: var(--brand-secondary);
}

/* Brand Logos */
.brand-section {
  padding: 50px 0;
  background: var(--brand-light);
}

.brand-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.brand-item {
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Forms */
.form-control {
  border: 1px solid var(--brand-border);
  border-radius: 4.8px;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 300;
  color: var(--brand-primary);
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

.form-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* Cart & Checkout */
.cart-summary {
  background: var(--brand-gray);
  border-radius: 8px;
  padding: 20px;
}

.cart-item {
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid var(--brand-secondary);
  padding: 15px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.order-summary-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-secondary);
}

.order-total {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-secondary);
  border-top: 1px solid var(--brand-secondary);
  padding-top: 10px;
  margin-top: 10px;
}

/* Utility Classes */
.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-secondary) !important; }
.text-brand-danger { color: var(--brand-danger) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-red { color: var(--brand-red) !important; }

.bg-brand-gray { background-color: var(--brand-gray) !important; }
.border-brand { border-color: var(--brand-border) !important; }

/* Responsive */
@media (max-width: 768px) {
  .brand-grid {
    flex-direction: column;
    gap: 30px;
  }
  
  .service-features {
    padding: 30px 0;
  }
  
  .service-title {
    font-size: 24px;
  }
  
  .service-text {
    font-size: 16px;
  }
}

/* Legacy support for existing components */
.p-img-box {
    display: flex;
    justify-content: center;
    align-content: center;
}

.p-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.p-img-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    box-sizing: border-box;
    margin: 0 10px;
}

/* Pagination */
.page-item a {
    color: var(--brand-primary);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid var(--brand-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-item a:hover {
    background-color: var(--brand-primary);
    color: var(--brand-light);
}

.page-item.active a {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-light);
}

/* Swiper */
.main-slide {
    height: 600px;
    max-height: 40vh;
}

@media (max-width: 768px) {
    .main-slide {
        height: 400px;
    }
}

.main-slide .swiper-wrapper {
    height: 100%;
}

.main-slide .swiper-slide {
    height: 100%;
}

.main-slide .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Currency */
.currency-gbp::before {
    content: "£";
}

/* Shipping Info */
.shipping-info {
    background: var(--brand-gray);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.shipping-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-primary);
    text-align: center;
}

.shipping-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-primary);
    text-align: center;
    line-height: 1.5;
}

/* Age Verification */
.age-verification {
    font-size: 16px;
    color: var(--brand-primary);
    text-align: right;
    margin-top: 20px;
    font-style: italic;
}

/* Reasons to Choose Section */
.reasons-section {
    background-color: var(--brand-light);
    padding: 50px 0;
}

.reasons-title {
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--brand-secondary);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}

.title-underline {
    width: 800px;
    height: 1px;
    background-color: #CCCCCC;
    border: none;
    margin: 0 auto 40px;
}

.reasons-item {
    padding: 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reasons-text {
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--brand-secondary);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.separator-line {
    width: 1px;
    height: 80px;
    background-color: #CCCCCC;
    margin: 0 auto;
}

/* All Products Button */
.all-products-btn {
    background-color: var(--brand-danger);
    border-color: var(--brand-danger-hover);
    color: var(--brand-light);
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 700;
    padding: 14px 60px;
    border-radius: 30px;
    border: 1px solid var(--brand-danger-hover);
    transition: all 0.3s ease;
}

.all-products-btn:hover {
    background-color: var(--brand-danger-hover);
    border-color: var(--brand-danger-hover);
    color: var(--brand-light);
    transform: translateY(-2px);
}

/* Age Disclaimer */
.age-disclaimer {
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-dark);
    line-height: 1.5;
    margin: 0;
    max-width: 625px;
    text-align: center;
    margin: 0 auto;
}

/* Brand Partners Updates */
.brand-item {
    padding: 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    max-width: 200px;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-underline {
        width: 100%;
        max-width: 400px;
    }
    
    .reasons-title {
        font-size: 24px;
        letter-spacing: 0.1em;
    }
    
    .reasons-text {
        font-size: 16px;
    }
    
    .separator-line {
        display: none;
    }
    
    .age-disclaimer {
        text-align: center;
        margin: 0 auto;
    }
    
    .all-products-btn {
        font-size: 20px;
        padding: 12px 40px;
    }
}

/* ============================================================
   Group Header
   ============================================================ */
.group-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--brand-light);
  box-shadow: var(--group-shadow);
  height: 64px;
}

.group-header-inner {
  max-width: 640px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
}

.group-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.group-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--group-page-text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.group-header-btn:hover {
  background-color: #f3f4f6;
}

.group-header-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* ============================================================
   Group Body / Main Content
   ============================================================ */
.group-main-content {
  padding-top: 64px;
}

.group-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 0 0;
}

/* ============================================================
   Group List Section (Main Page)
   ============================================================ */
.group-list-section {
  background: var(--group-bg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 88px);
}

.group-list-title-wrap {
  padding: 0;
}

.group-list-title {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.333;
  color: var(--group-text);
  margin: 0;
}

.group-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   Group Card
   ============================================================ */
.group-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-light);
  border-radius: 14px;
  box-shadow: var(--group-shadow);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.group-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.group-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--group-icon-gradient);
  border-radius: 10px;
}

.group-icon-svg {
  width: 32px;
  height: 32px;
  color: var(--brand-light);
  stroke-width: 2.67;
}

.group-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-card-name {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--group-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-card-desc {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.429;
  color: var(--group-text-sub);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-card-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.group-arrow-svg {
  width: 20px;
  height: 20px;
  color: #99A1AF;
  stroke-width: 1.67;
}

/* ============================================================
   Pagination
   ============================================================ */
.group-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 24px;
}

.group-page-numbers {
  display: flex;
  gap: 4px;
}

.group-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-light);
  border: none;
  border-radius: 10px;
  box-shadow: var(--group-shadow);
  cursor: pointer;
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--group-page-text);
  transition: all 0.2s;
  padding: 0;
}

.group-page-btn:hover:not(:disabled):not(.active) {
  background: #f3f4f6;
}

.group-page-btn.active {
  background: var(--group-blue);
  color: var(--brand-light);
  box-shadow: none;
}

.group-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: var(--group-shadow);
}

.group-page-nav {
  box-shadow: var(--group-shadow);
}

.group-page-icon {
  width: 20px;
  height: 20px;
  color: #0A0A0A;
  stroke-width: 1.67;
}

.group-page-btn:disabled .group-page-icon {
  color: #0A0A0A;
}

/* ============================================================
   Group Detail Section
   ============================================================ */
.group-detail-section {
  background: var(--group-bg);
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  /* min-height: calc(100vh - 88px); */
  gap: 100px;
  justify-content: space-between;
}

.group-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--brand-light);
  border-radius: 16px;
  box-shadow: var(--group-shadow);
}

.group-detail-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: var(--group-icon-gradient);
  border-radius: 14px;
}

.group-detail-icon-svg {
  width: 48px;
  height: 48px;
  color: var(--brand-light);
  /* stroke-width: 4; */
}

.group-detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-detail-name {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.333;
  color: var(--group-text);
  margin: 0;
}

.group-detail-desc {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.429;
  color: var(--group-text-sub);
  margin: 0;
}

/* ============================================================
   Group Menu Cards
   ============================================================ */
.group-menu-container {
  display: flex;
  gap: 0;
  width: 100%;
}

.group-menu-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  background: var(--brand-light);
  border-radius: 16px;
  box-shadow: var(--group-shadow);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.group-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.group-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.group-menu-icon-notice {
  background: var(--group-notice-bg);
}

.group-menu-icon-news {
  background: var(--group-news-bg);
}

.group-menu-icon-svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.67;
}

.group-menu-icon-notice .group-menu-icon-svg {
  color: var(--group-notice-icon);
}

.group-menu-icon-news .group-menu-icon-svg {
  color: var(--group-news-icon);
}

.group-menu-title {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--group-text);
  margin: 0;
  text-align: center;
}

/* ============================================================
   Group Banner Footer
   ============================================================ */
.group-banner-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  background: var(--group-banner-gradient);
  border-radius: 16px;
}

.group-banner-text {
  font-family: 'Arimo', 'Noto Sans KR', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.556;
  color: var(--brand-light);
  margin: 0;
}

/* ============================================================
   Group Banner Swiper
   ============================================================ */
.group-banner-swiper-wrapper {
  /* border-radius: 16px; */
  overflow: hidden;
}

.group-banner-swiper {
  width: 100%;
  /* border-radius: 16px; */
}

.group-banner-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.group-banner-img {
  width: 100%;
  /* height: 200px; */
  /* object-fit: cover; */
  display: block;
}

.group-banner-link {
  display: block;
  width: 100%;
}

.group-banner-swiper .swiper-button-prev,
.group-banner-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s;
}

.group-banner-swiper .swiper-button-prev:hover,
.group-banner-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.5);
}

.group-banner-swiper .swiper-button-prev::after,
.group-banner-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}

.group-banner-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.group-banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
}

/* ============================================================
   Group Banner List (LIST 모드)
   ============================================================ */
.group-banner-list-wrapper {
  overflow: hidden;
}

.group-banner-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.group-banner-list-item {
  width: 100%;
  /* border-radius: 12px; */
  overflow: hidden;
}

.group-banner-list-item .group-banner-img {
  /* border-radius: 12px; */
}

/* ============================================================
   Offcanvas (shared)
   ============================================================ */
.offcanvas-title {
  font-size: 20px;
  font-weight: 500;
  color: #000;
}

.list-group-item {
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6 !important;
}

.list-group-item:last-child {
  border-bottom: none !important;
}

.list-group-item a {
  color: rgba(33, 37, 41, 0.75);
  font-size: 16px;
  transition: color 0.3s;
}

.list-group-item a:hover {
  color: #000;
}

/* ============================================================
   Mobile Responsive (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
  .group-header-inner {
    max-width: 100%;
  }

  .group-body {
    max-width: 100%;
    padding: 16px 16px 0;
  }

  .group-list-title {
    font-size: 20px;
  }

  .group-card-icon {
    width: 48px;
    height: 48px;
  }

  .group-icon-svg {
    width: 24px;
    height: 24px;
  }

  .group-card-name {
    font-size: 16px;
  }

  .group-card-desc {
    font-size: 13px;
  }

  .group-card-body {
    padding: 12px;
    gap: 12px;
  }

  .group-detail-section {
    gap: 24px;
  }

  .group-detail-header {
    padding: 16px;
    gap: 12px;
  }

  .group-detail-icon {
    width: 72px;
    height: 72px;
  }

  .group-detail-icon-svg {
    width: 36px;
    height: 36px;
    stroke-width: 3;
  }

  .group-detail-name {
    font-size: 20px;
  }

  .group-menu-container {
    flex-direction: column;
    gap: 12px;
  }

  .group-menu-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
    gap: 16px;
  }

  .group-menu-icon {
    width: 48px;
    height: 48px;
  }

  .group-menu-icon-svg {
    width: 24px;
    height: 24px;
  }

  .group-menu-title {
    font-size: 16px;
  }

  .group-banner-footer {
    height: 100px;
  }

  .group-banner-text {
    font-size: 16px;
  }

  .group-banner-img {
    /* height: 160px; */
  }

  .group-banner-swiper .swiper-button-prev,
  .group-banner-swiper .swiper-button-next {
    width: 28px;
    height: 28px;
  }

  .group-banner-swiper .swiper-button-prev::after,
  .group-banner-swiper .swiper-button-next::after {
    font-size: 12px;
  }

  .group-page-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}



/* header - margin */
.m-header {
  margin-top: 64px !important;
}