/* 비주얼 슬라이드 (Swiper) */
.hero-swiper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}
.hero-slide {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: #fff;
}
@media (min-width: 768px) {
    .hero-slide { height: 380px; padding: 0 3.5rem; }
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* 퀵 메뉴 카드 */
.quick-menu-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}
.quick-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: var(--theme-color);
}

/* 원형 카테고리 */
.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}
.category-circle-item:hover { transform: translateY(-2px); }
.category-circle-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    font-size: 1.3rem;
    color: var(--theme-color);
}
@media (min-width: 768px) {
    .category-circle-img { width: 70px; height: 70px; font-size: 1.5rem; }
}

/* 2. 상품 카드 및 정사각형 이미지 박스 수정 */
.product-card-sm {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
    height: 100%;
    transition: all 0.2s ease;
}
.product-card-sm:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--theme-color);
}
.badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--theme-color);
    color: #fff;
    font-size: 0.9rem;
    padding: 7px 12px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}
/* 상품 이미지를 정사각형으로 깔끔하게 처리 */
.product-card-sm .img-box {
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 완벽한 정사각형 비율 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    padding: 12px; /* 이미지 주변 적절한 여백 */
}
.product-card-sm img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지 비율 손상 없이 전체가 잘 보이도록 설정 */
    transition: transform 0.3s ease;
}
.product-card-sm:hover img { transform: scale(1.06); }

/* 최근 주문 리스트 */
.recent-order-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #eee;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 5px;
}
.recent-order-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.recent-order-img-box {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}
.recent-order-img-box img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}