/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Product Details Content Wrapper */
.product_content_wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Big Title Styles */
.bigtitle {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 40px 0 20px;
    padding: 0 40px;
    text-align: left;
    border-bottom: 2px solid #ff6600;
    display: inline-block;
    padding-bottom: 10px;
}

/* Product Details Info Section */
.product_d_info {
    max-width: 1440px;
    margin: 0 auto 60px;
    padding: 0 40px;
    background-color: #ffffff;
}

.product_d_info .row {
    margin: 0;
    padding: 0;
}

.product_d_inner {
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.product_info_content {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ensure tab-content doesn't restrict centering */
.tab-content {
    width: 100%;
    text-align: center;
}

/* Ensure all parent containers allow centering */
.product_d_inner,
.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Product Images Styling */
.product_info_content img.img-fluid,
.product_info_content img.img-spacing {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
    text-align: center;
}

/* Ensure images are centered regardless of container */
.product_info_content img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Add spacing between images */
.img-spacing {
    margin-bottom: 15px !important;
}

/* Table Styles for 반품교환/배송/결제 */
.tb_gosi {
    max-width: 1440px;
    margin: 0 auto 30px;
    padding: 0 40px;
    width: 100%;
    border-collapse: collapse;
}

.tb_gosi td {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    text-align: left;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product_d_info,
    .tb_gosi,
    .bigtitle {
        padding: 0 20px;
    }

    .bigtitle {
        font-size: 22px;
        margin: 30px 0 15px;
    }
}

@media (max-width: 768px) {
    .product_d_info,
    .tb_gosi,
    .bigtitle {
        padding: 0 15px;
    }

    .bigtitle {
        font-size: 20px;
        margin: 25px 0 15px;
        padding-bottom: 8px;
    }

    .product_info_content {
        padding: 15px 0;
    }

    .product_info_content img.img-fluid {
        margin: 8px 0;
    }

    .tb_gosi td {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product_d_info,
    .tb_gosi,
    .bigtitle {
        padding: 0 10px;
    }

    .bigtitle {
        font-size: 18px;
        margin: 20px 0 10px;
        padding-bottom: 6px;
    }

    .product_info_content {
        padding: 10px 0;
    }

    .product_info_content img.img-fluid {
        margin: 5px 0;
    }

    .tb_gosi td {
        padding: 12px;
        font-size: 13px;
    }
}
.top-height{
  height: 90px;
}
@media (max-width: 768px) {
    .top-height {
      height: 70px;
    }
  }

/* Review Request Card Styles */
.review-request-card1 {
    background-color: #f5f5f5;
    border: 1px solid #e9ecef;
    padding: 24px;
    width: 100%;
    transition: all 0.3s ease;
}


/* Request Text Styles */
.request-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

/* Container List Styles */
.container-list {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Borderless Select Styles */
.borderless-select {
    width: 100%;
    padding: 10px 35px 10px 15px; /* 增加右侧内边距，确保箭头有足够空间 */
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #ffffff;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 更醒目的向下箭头 */
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27 fill=%27%23ff6600%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z%27 clip-rule=%27evenodd%27/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px; /* 增大箭头尺寸 */
    /* 确保箭头不被覆盖 */
    background-clip: padding-box;
}

.borderless-select:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.borderless-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Product Area Styles */
.product_area {
    width: 100%;
}

/* Row and Column Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.row.mb-10 {
    margin-bottom: 10px;
}

.col-lg-13 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 8px;
}

/* Container List Specific Styles */
.container-list .row {
    justify-content: center;
}

.container-list .col-lg-13 {
    flex: 0 0 auto;
    width: 200px;
    max-width: none;
    text-align: center;
}

/* Borderless Select inside Container List */
.container-list .borderless-select {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Default col-lg-13 on mobile */
    .col-lg-13 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Container List specific responsive styles */
    .container-list .col-lg-13 {
        flex: 0 0 50%;
        max-width: 50%;
        width: auto;
    }

    .container-list .borderless-select {
        max-width: 100%;
    }

    .review-request-card1 {
        padding: 16px;
        margin-bottom: 15px;
    }

    .request-text {
        font-size: 14px;
    }

    .container-list {
        padding: 12px;
        margin-bottom: 15px;
    }

    .borderless-select {
        padding: 8px 12px;
        font-size: 13px;
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1003; /* 确保header和子菜单在最上层 */
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /* 确保header创建自己的堆叠上下文 */
    transform: translateZ(0);
    will-change: transform;
}

/* Transparent header for mainindex */
.header-transparent {
    background-color: transparent;
    color: white;
    box-shadow: none;
}

/* Change header to white background and black text on scroll */
.header-transparent.scrolled {
    background-color: white;
    color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header links color transition */
.header-transparent .logo,
.header-transparent .nav-link,
.header-transparent .icon-link {
    color: #D2B48C;
    transition: color 0.3s ease;
}

.header-transparent.scrolled .logo,
.header-transparent.scrolled .nav-link,
.header-transparent.scrolled .icon-link {
    color: black;
}

/* Header bars color transition */
.header-transparent .hamburger {
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-transparent .bar {
    background-color: #D2B48C;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-transparent.scrolled .hamburger {
    background-color: transparent;
}

.header-transparent.scrolled .bar {
    background-color: black;
}

.header-transparent .hamburger.active {
    background-color: transparent;
}

.header-transparent.scrolled .hamburger.active {
    background-color: transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    position: relative;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
    margin-right: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
}

/* mobile Menu Section */
.menu-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* For desktop layout, keep menu in center */
}

/* Desktop layout - ensure proper order */
@media (min-width: 769px) {
    .menu-section {
        order: 2;
    }

    .search-section {
        order: 3;
    }
}

/* Navigation Menu pc */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}
@media (max-width: 768px) {
    .nav-menu {
        display: block;
    }
}
@media (min-width: 769px) {
    .nav-menu {
        display: none;
    }

    /* Hide mobile menu container on desktop screens */
    .mobile-menu-container {
        display: none;
    }
}

/* Show mobile menu container only on mobile screens */
@media (max-width: 768px) {
    .mobile-menu-container {
        display: flex;
    }
}

/* Ensure 2 columns with 5px gap for all screens ≤768px, override any existing styles */
@media (max-width: 768px) {
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
        align-items: stretch !important; /* Ensure items in same row share height */
    }
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Category Link */
.category-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.menu-category:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu .nav-link {
    padding: 10px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.submenu .nav-link:hover {
    background-color: #f5f5f5;
}

.submenu .nav-link::after {
    display: none;
}

/* Global Submenu Styles */
.global-submenu {
    position: absolute;
    top: 100%; /* 直接位于header下方 */
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 1003; /* 确保子菜单在最上层 */
    padding: 20px 0;
    margin-top: -2px; /* 负边距，确保子菜单与header紧密连接 */
}

/* Show global submenu */
.global-submenu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu content styles */
.global-submenu .submenu-content {
    display: none;
}

/* Active submenu content */
.global-submenu .submenu-content.active {
    display: block;
}

.submenu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: white;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.submenu-item {
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.submenu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ff6600;
}

.submenu-item a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.submenu-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.submenu-item a:hover::before {
    left: 100%;
}

.submenu-item a:hover {
    background-color: #fff;
    color: #ff6600;
    transform: none;
    box-shadow: inset 0 0 0 1px #ff6600;
    text-decoration: none;
}

/* Responsive adjustments for global submenu */
@media (max-width: 1200px) {
    .submenu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .submenu-container {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .submenu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    /* Hide global submenu on mobile */
    .global-submenu {
        display: none;
    }
}

/* Navigation Menu pc */
.nav-menu-pc {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    position: relative;
}
@media (min-width: 769px) {
    .nav-menu-pc {
        display: flex;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .nav-menu-pc {
        display: none;
    }
}

.nav-menu-pc li {
    position: relative;
}
.nav-menu-pc li a{
    padding-left: 10px;
    padding-right: 10px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Category Link */
.category-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.menu-category:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu .nav-link {
    padding: 10px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.submenu .nav-link:hover {
    background-color: #f5f5f5;
}

.submenu .nav-link::after {
    display: none;
}

/* pc Menu Section */

/* Search Section */
.search-section {
    flex-shrink: 0;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Quick Menu Styles */
.quick-menu-container {
    position: relative;
    display: inline-block;
    margin-left: 0;
    width: auto;
}

.quick-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.quick-menu-trigger svg {
    width: 18px;
    height: 18px;
}

.quick-menu-trigger:hover {
    color: #333;
}

.quick-menu-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Quick Dropdown Menu */
.quick-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1005;
    overflow: hidden;
}

.quick-menu-container:hover .quick-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quick Dropdown Menu Items */
.quick-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.quick-dropdown-menu li {
    margin: 0;
}

.quick-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.quick-dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #ff6600;
    transform: translateX(5px);
}

.quick-dropdown-menu i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #666;
    transition: color 0.3s ease;
}

.quick-dropdown-menu a:hover i {
    color: #ff6600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-menu-container {
        margin-left: 10px;
    }

    .quick-menu-text {
        display: none;
    }

    .quick-dropdown {
        min-width: 160px;
    }

    .quick-dropdown-menu a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Mobile Navigation Icons - Remove gap for symmetry */
@media (max-width: 768px) {
    .nav-icons {
        gap: 0;
    }

    /* Adjust navbar padding for better symmetry */
    .navbar {
        padding: 15px 15px;
        justify-content: space-between;
    }

    /* Ensure equal spacing around logo */
    .logo-section {
        margin: 0;
    }

    /* Ensure hamburger and search icons have equal spacing */
    .hamburger {
        margin: 0;
        padding: 0;
    }

    .search-section {
        margin: 0;
        padding: 0;
    }

    .nav-icons {
        margin: 0;
        padding: 0;
    }

    /* Ensure search icon has same size as hamburger */
    .search-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.icon-link {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.icon-link:hover {
    color: #666;
}

/* Search Box Container */
.search-box-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background-color: white;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 15px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Search Box Container - Full Width */
@media (max-width: 768px) {
    .search-box-container {
        width: 100%;
        max-width: 100vw;
        right: 0;
    }
}

/* Search Box Visible State */
.search-box-container.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}



/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    background: white;
}

/* Search Input */
.search-input {
    flex: 1;
    padding: 15px 25px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-input:focus {
    border-color: #ff6600;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

/* Search Button */
.search-btn {
    right: 70px;
    color: #666;
    font-size: 20px;
}

.search-btn:hover {
    color: #ff6600;
}

/* Close Search Button */
.close-search-btn {
    right: 25px;
    color: #666;
    font-size: 20px;
}

.close-search-btn:hover {
    color: #333;
}

/* Search Box Form - Prevent deformation when form is added */
.search-box form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Search Input */
.search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
    /* Ensure input fits properly in form */
    width: 100%;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #333;
    background-color: white;
}

/* Search Button */
.search-btn {
    position: absolute;
    right: 60px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    /* Ensure button doesn't interfere with layout */
    padding: 0;
    margin: 0;
}

.search-btn:hover {
    color: #333;
}

/* Close Search Button */
.close-search-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    /* Ensure button doesn't interfere with layout */
    padding: 0;
    margin: 0;
}

.close-search-btn:hover {
    color: #333;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    align-items: center;
    justify-content: center;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    position: absolute;
    left: 8px;
    transition: all 0.3s ease;
    background-color: #333;
}

/* Three-bar hamburger style */
.bar:nth-child(1) {
    top: 12px;
}

.bar:nth-child(2) {
    top: 19px;
}

.bar:nth-child(3) {
    top: 26px;
}

/* Hero Section */
.hero {
    height: 700px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Slider Items */
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1.5s ease, opacity 1.5s ease;
    transform-origin: center;
    transform: rotateX(90deg) translateZ(0);
    opacity: 0;
    z-index: 0;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transform: translateZ(0); /* 硬件加速 */
}

/* Slider Images */
.slider-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    backface-visibility: hidden;
    transform: translateZ(0); /* 硬件加速 */
}

/* Active states for 3D flip transition */
.slider-item.active {
    transform: rotateX(0deg) translateZ(0);
    opacity: 1;
    z-index: 2;
    animation: flipIn3D 1.5s ease;
}

/* Transition animations for 3D flip effect */
.slider-item:not(.active) {
    transform: rotateX(-90deg) translateZ(0);
    opacity: 0;
    z-index: 1;
    animation: flipOut3D 1.5s ease;
}

/* Keyframe animations for 3D flip transition */
@keyframes flipIn3D {
    0% {
        /* Start from bottom, rotated 90 degrees, fully transparent */
        transform: rotateX(90deg) translateZ(0);
        opacity: 0;
        z-index: 1;
    }
    100% {
        /* End at center, fully opaque, no rotation */
        transform: rotateX(0deg) translateZ(0);
        opacity: 1;
        z-index: 2;
    }
}

@keyframes flipOut3D {
    0% {
        /* Start at center, fully opaque, on top */
        transform: rotateX(0deg) translateZ(0);
        opacity: 1;
        z-index: 2;
    }
    100% {
        /* End at top, rotated -90 degrees, fully transparent */
        transform: rotateX(-90deg) translateZ(0);
        opacity: 0;
        z-index: 1;
    }
}



/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h3 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 15px 40px;
    border: 2px solid white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: white;
    color: #333;
}

.btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 56px;
    }

    .hero-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 24px;
        left: 8px;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 24px;
        left: 8px;
    }

    /* Show only search icon on mobile, hide other icons */
    .search-section {
        display: flex;
    }

    .search-section .nav-icons {
        gap: 0;
    }

    /* Hide all icons except search icon */
    .search-section .nav-icons .icon-link:not(.search-icon) {
        display: none;
    }

    /* Mobile menu styles - Two-column layout */
    .menu-section {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: left 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        z-index: 1001; /* Ensure it's above other elements */
        overflow-y: auto;
    }

    .menu-section.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: left;
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
        height: 100%;
    }

    .nav-menu > li {
        margin-bottom: 0;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        justify-content: space-between;
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Mobile Menu Container - Column layout with title at top */
    .mobile-menu-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* Menu Content - Two-column layout */
    .menu-content {
        display: flex;
        flex: 1;
        overflow: hidden;
        /* Let flexbox handle the height */
    }

    /* Left side - Main categories */
    .main-categories {
        width: 30%;
        height: 100%; /* Full height to match subcategories */
        background-color: #f5f5f5;
        overflow-y: auto;
        /* Remove gray border to connect with subcategories */
        padding-bottom: 70px; /* Add bottom padding to prevent footer overlap */
    }

    /* Menu Heading - Frame Title */
    .menu-heading {
        padding: 15px 20px;
        background-color: #f5f5f5;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        display: block;
        order: -1;
    }

    .main-categories .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-categories .nav-menu > li {
        margin-bottom: 0;
        border-bottom: 1px solid #e0e0e0;
        /* Set exact height of 50px for main categories */
        height: 50px;
        display: flex;
        align-items: center;
    }

    .main-categories .nav-link {
        padding: 15px 20px; /* Adjust padding for 50px height */
        font-size: 14px;
        color: #333;
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        background-color: #f5f5f5;
        transition: all 0.3s ease;
        /* Ensure full height of parent li */
        height: 100%;
    }

    .main-categories .nav-menu > li.active .nav-link {
        background-color: white;
        color: #e1251b;
        /* Remove red right border */
        border-right: none;
        /* Match subcategories background perfectly */
        margin-right: 0;
        padding-right: 20px;
        position: relative;
        z-index: 10;
    }

    .main-categories .nav-link:hover {
        background-color: white;
        color: #e1251b;
        /* Remove red right border */
        border-right: none;
        margin-right: 0;
        padding-right: 20px;
        position: relative;
        z-index: 10;
    }

    /* Right side - Subcategories */
    .subcategories {
        width: 70%;
        height: 100%; /* Match main categories height */
        background-color: white;
        overflow-y: auto;
        /* Remove any potential visual separators */
    }

    .subcategory-content {
        display: none;
        padding: 20px 20px 180px; /* Add bottom padding to prevent footer overlap */
    }

    .subcategory-content.active {
        display: block;
    }

    .subcategory-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .subcategory-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }
    .subcategory-header h4 {
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        color: red;
    }

    /* Subcategory Grid - 2 columns for all screens ≤768px */
    .subcategory-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        align-items: stretch; /* Ensure items in same row share the same height */
    }

    .subcategory-item {
        text-align: center;
        cursor: pointer;
        height: 100%; /* Ensure item fills grid area */
    }

    .subcategory-link {
        display: block;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
        /* Button-like styling */
        padding: 5px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: white;
        text-align: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        height: 100%; /* Ensure link fills item height */
        display: flex; /* Allow vertical centering */
        align-items: center;
        justify-content: center;
    }

    .subcategory-link2 {
        display: block;
        text-decoration: none;
        color: #ff6600;
        transition: all 0.3s ease;
        /* Button-like styling */
        padding: 5px;
        border: 1px solid #ff6600;
        border-radius: 4px;
        background-color: white;
        text-align: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        height: 100%; /* Ensure link fills item height */
        display: flex; /* Allow vertical centering */
        align-items: center;
        justify-content: center;
    }

    .subcategory-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-color: #d0d0d0;
    }

    .subcategory-info,
    .subcategory-info1 {
        margin: 0;
    }

    .subcategory-info span {
        display: block;
        font-size: 12px;
        color: #333;
        font-weight: 500;
    }
    .subcategory-info1 span {
        display: block;
        font-size: 12px;
        color: #333;
        padding:10px;
        font-weight: 500;
    }

    /* Mobile Category Link */
    .category-link i {
        transition: transform 0.3s ease;
    }

    .menu-category.active .category-link i {
        transform: rotate(180deg);
    }

    /* Hero Section */
    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h3 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 12px;
    }

    /* Make slider controls responsive on mobile */
    .slider-controls {
        padding: 0 10px;
    }

    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Reference Images Section */
.reference-images {
    padding: 80px 0;
    background-color: #f9f6f2;
    text-align: center;
}

.text-content {
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-content h2 {
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.text-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
}

.reference-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 0 15px;
}

.reference-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.reference-item:hover img {
    transform: scale(1.02);
}

/* Product Overlay at Bottom of Image */
.product-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
    color: white;
    z-index: 2;
}

.product-overlay h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.view-product-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 25px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    transition: width 0.5s ease;
    z-index: -1;
}

.view-product-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.view-product-btn:hover {
    color: black;
}

.view-product-btn:hover::before {
    width: 100%;
}

.view-product-btn:hover i {
    transform: translateX(3px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .reference-item {
        padding: 0 10px;
    }

    .text-content h2 {
        font-size: 24px;
    }

    .text-content p {
        font-size: 13px;
    }

    .product-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .product-overlay h3 {
        font-size: 13px;
    }

    .view-product-btn {
        padding: 7px 20px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .reference-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reference-item {
        padding: 0 5px;
    }

    .product-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .product-overlay h3 {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .view-product-btn {
        padding: 5px 15px;
        font-size: 10px;
        gap: 5px;
    }

    .view-product-btn i {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .reference-images {
        padding: 60px 0;
    }

    .text-content {
        margin-bottom: 30px;
    }

    .text-content h2 {
        font-size: 20px;
    }

    .product-overlay {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .product-overlay h3 {
        font-size: 11px;
    }

    .view-product-btn {
        padding: 4px 12px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 11px;
    }

    .nav-icons {
        gap: 15px;
    }

    .icon-link {
        font-size: 16px;
    }
}

/* Mobile Responsive Margin */
@media (max-width: 1024px) {
    .reference-images .container {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Product Display Section */
.product-display {
    padding: 10px 0;
    background-color: white;
    max-width: 1440px;
    margin: 0 auto;
}

/* Remove all text decoration from anchor tags */
a {
    text-decoration: none;
    color: inherit;
}

/* Product Display Title - Korean + English Bilingual Style */
.product-display h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 50px 0;
    padding: 20px 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Noto Sans KR', 'Arial', sans-serif;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* English subtitle style */
.product-display h2::after {
    content: attr(data-en);
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #7f8c8d;
    margin-top: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #7f8c8d;
    background-clip: text;
}

/* Modern decorative frame */
.product-display h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #3498db;
    border-radius: 50px;
    opacity: 0.3;
    z-index: -1;
    animation: framePulse 3s ease-in-out infinite;
}

/* Frame animation */
@keyframes framePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Responsive adjustments for bilingual title */
@media (max-width: 1200px) {
    .product-display h2 {
        font-size: 32px;
    }
    .product-display h2::after {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .product-display h2 {
        font-size: 28px;
        padding: 15px 20px;
    }
    .product-display h2::after {
        font-size: 13px;
        letter-spacing: 2px;
    }
    .product-display h2::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
}

@media (max-width: 576px) {
    .product-display h2 {
        font-size: 24px;
        padding: 12px 15px;
    }
    .product-display h2::after {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    .product-display h2::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 30px;
    }
}

/* More Button Styles */
.more-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 0 15px;
}

.more-button {
    background-color: #d4af37; /* Beige/gold color */
    color: #000;
    border: none;
    border-radius: 50px; /* Rounded shape */
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 1px;
}

.more-button:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.more-button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.more-button:hover i {
    transform: translateX(3px);
}

/* Responsive More Button */
@media (max-width: 768px) {
    .more-button {
        padding: 12px 40px;
        font-size: 14px;
    }

    .more-button-container {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .more-button {
        padding: 10px 30px;
        font-size: 13px;
    }

    .more-button-container {
        margin-top: 25px;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 0;
    max-width: 100%;
    padding: 0 15px;
    width: 100%;
}

/* Remove text decoration from product grid anchor tags */
.product-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Item */
.product-item {
    background-color: white;
    position: relative;
    padding: 10px;
    margin: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Product Image */
.product-image {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* 1:1 aspect ratio */
    aspect-ratio: 1/1;
    position: relative;
    background: white;
    /* No border before hover */
    border: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Add pseudo-elements for border animation */
.product-image::before,
.product-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

/* Horizontal border lines */
.product-image::before {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    animation: borderHorizontal 0.5s ease forwards;
    animation-play-state: paused;
}

/* Vertical border lines */
.product-image::after {
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    animation: borderVertical 0.5s ease forwards;
    animation-play-state: paused;
}

/* Border animation from center to corners */
@keyframes borderHorizontal {
    0% {
        border-top-width: 2px;
        border-top-color: transparent;
        /* Start from center */
        clip-path: inset(0 50% 0 50%);
    }
    50% {
        border-top-color: #ff6600;
        border-bottom-color: #ff6600;
        /* Expand horizontally */
        clip-path: inset(0 0 0 0);
    }
    100% {
        border-top-width: 2px;
        border-top-color: #ff6600;
        border-bottom-width: 2px;
        border-bottom-color: #ff6600;
        /* Full width */
        clip-path: inset(0 0 0 0);
    }
}

@keyframes borderVertical {
    0% {
        border-left-width: 2px;
        border-left-color: transparent;
        border-right-width: 2px;
        border-right-color: transparent;
        /* Start from center */
        clip-path: inset(50% 0 50% 0);
    }
    50% {
        border-left-color: #ff6600;
        border-right-color: #ff6600;
        /* Expand vertically */
        clip-path: inset(0 0 0 0);
    }
    100% {
        border-left-width: 2px;
        border-left-color: #ff6600;
        border-right-width: 2px;
        border-right-color: #ff6600;
        /* Full height */
        clip-path: inset(0 0 0 0);
    }
}

/* Reverse animation for border disappearing */
@keyframes borderHorizontalReverse {
    0% {
        border-top-width: 2px;
        border-top-color: #ff6600;
        border-bottom-width: 2px;
        border-bottom-color: #ff6600;
        /* Full width */
        clip-path: inset(0 0 0 0);
    }
    50% {
        border-top-color: #ff6600;
        border-bottom-color: #ff6600;
        /* Shrink horizontally */
        clip-path: inset(0 50% 0 50%);
    }
    100% {
        border-top-width: 2px;
        border-top-color: transparent;
        border-bottom-width: 2px;
        border-bottom-color: transparent;
        /* End at center */
        clip-path: inset(0 50% 0 50%);
    }
}

@keyframes borderVerticalReverse {
    0% {
        border-left-width: 2px;
        border-left-color: #ff6600;
        border-right-width: 2px;
        border-right-color: #ff6600;
        /* Full height */
        clip-path: inset(0 0 0 0);
    }
    50% {
        border-left-color: #ff6600;
        border-right-color: #ff6600;
        /* Shrink vertically */
        clip-path: inset(50% 0 50% 0);
    }
    100% {
        border-left-width: 2px;
        border-left-color: transparent;
        border-right-width: 2px;
        border-right-color: transparent;
        /* End at center */
        clip-path: inset(50% 0 50% 0);
    }
}

/* Trigger animation on hover */
.product-item:hover .product-image::before {
    animation: borderHorizontal 0.5s ease forwards;
    animation-play-state: running;
}

.product-item:hover .product-image::after {
    animation: borderVertical 0.5s ease forwards;
    animation-play-state: running;
}

/* Trigger reverse animation when mouse leaves */
.product-item:not(:hover) .product-image::before {
    animation: borderHorizontalReverse 0.5s ease forwards;
    animation-play-state: running;
}

.product-item:not(:hover) .product-image::after {
    animation: borderVerticalReverse 0.5s ease forwards;
    animation-play-state: running;
}

/* Ensure no border when not hovering */
.product-item .product-image {
    box-shadow: none;
    transition: all 0.3s ease;
}

/* No box-shadow on hover */
.product-item:hover .product-image {
    box-shadow: none;
}

/* Product image */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    /* Ensure no scaling on hover */
    transition: none;
}

/* Remove hover effect for product image */

/* Hover effect for product item */
.product-item:hover {
    /* Add subtle shadow on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 0;
    font-family: Arial, sans-serif;
    box-shadow: none;
}

/* Product Info */
.product-info {
    text-align: center;
    padding: 15px 0 0 0;
    background-color: white;
}

/* Product Title */
.product-title {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
    text-align: center;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Current Price */
.current-price {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Original Price (Discounted) */
.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* Sale Badge Style */
.add-to-cart-btn {
    background-color: #ff6600;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px auto 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
    letter-spacing: 0.5px;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.add-to-cart-btn:hover {
    background-color: #ff4500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.5);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .add-to-cart-btn {
        font-size: 11px;
        padding: 5px 10px;
        margin: 6px auto 0;
    }
}

@media (max-width: 576px) {
    .add-to-cart-btn {
        font-size: 10px;
        padding: 4px 8px;
        margin: 5px auto 0;
    }
}

/* Footer Styles */
.footer {
    background-color: #e8e8e8;
    color: black;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo {
    font-size: 24px;
    font-weight: bold;
    color: black;
    text-decoration: none;
    letter-spacing: 1px;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Product Grid */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .product-title {
        font-size: 12px;
    }

    .current-price {
        font-size: 13px;
    }

    .original-price {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0;
    }

    .product-display {
        padding: 40px 0;
    }

    .product-info {
        padding: 8px;
    }

    .product-title {
        font-size: 11px;
        min-height: 30px;
    }

    .product-price {
        margin-bottom: 8px;
    }

    .current-price {
        font-size: 12px;
    }

    /* Sale badge adjustments for very small screens */
    .add-to-cart-btn {
        font-size: 9px;
        padding: 3px 6px;
        margin: 4px auto 0;
        width: auto;
        height: auto;
    }
}

@media (max-width: 360px) {
    .product-grid {
        gap: 3px;
    }

    .product-info {
        padding: 6px;
    }

    /* Further adjustments for very small screens */
    .add-to-cart-btn {
        font-size: 8px;
        padding: 2px 5px;
        margin: 3px auto 0;
    }
}

/* Bottom Menu Styles */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    /* Hide by default */
    display: none;
}

.menu-item {
    flex: 1;
    text-align: center;
}

.menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: color 0.3s ease;
}

.menu-link i {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
}

.menu-link span {
    display: block;
    font-size: 11px;
}

.menu-link:hover {
    color: #333;
}

/* Mobile Responsive - Show only below 768px */
@media (max-width: 768px) {
    .bottom-menu {
        display: flex;
    }

    /* Add padding to the bottom of the page to prevent content from being hidden behind the menu */
    body {
        padding-bottom: 70px;
    }
}

/* Mobile Header Layout - Logo centered, hamburger left, search right */
@media (max-width: 768px) {
    /* Adjust navbar layout */
    .navbar {
        justify-content: space-between;
        align-items: center;
    }

    /* Position elements correctly */
    .hamburger {
        order: 1;
        flex: none;
        margin: 0;
    }

    .logo-section {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        flex: none;
    }

    .search-section {
        order: 3;
        flex: none;
        margin: 0;
    }

    .menu-section {
        order: 4;
    }
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    padding: 30px 0 50px;
    margin-top: 30px;
}

.load-more-btn {
    background-color: transparent;
    color: #333333;
    border: 1px solid #333333;
    border-radius: 0;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    outline: none;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Noto Sans KR', serif;
}

.load-more-btn:hover:not(:disabled) {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Count Circle Styles */
.count-circle {
    display: inline-block;
    background-color: #333333;
    color: white;
    border-radius: 0;
    padding: 8px 15px;
    margin-right: 10px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Spinner Styles */
.spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1px solid #333333;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.load-more-btn:hover .spinner {
    border: 1px solid #ffffff;
    border-top-color: transparent;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No More Products Message */
.no-more-products {
    display: none;
    padding: 30px 20px;
    font-size: 14px;
    color: #666666;
    text-align: center;
    background-color: transparent;
    border: none;
    margin: 0;
    font-family: 'Noto Sans KR', serif;
    letter-spacing: 0.5px;
}

/* Load Error Message */
.load-error {
    display: none;
    padding: 25px 20px;
    background-color: transparent;
    color: #666666;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin: 20px auto;
    max-width: 400px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    font-family: 'Noto Sans KR', serif;
    letter-spacing: 0.5px;
}

.load-error span {
    font-size: 13px;
}

/* Retry Button */
.retry-btn {
    background-color: transparent;
    color: #333333;
    border: 1px solid #333333;
    border-radius: 0;
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', serif;
}

.retry-btn:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Notification Styles */


/* Chat Button Styles */
.chat-button {
    position: fixed;
    bottom: 135px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-button:hover {
    background-color: #ff4500;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: #666;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Adjust position for mobile devices */
@media (max-width: 768px) {
    .chat-button {
        bottom: 140px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        display: none;
    }

    .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Jewelry Carousel Section */
.jewelry-carousel-section {
    width: 100%;
    padding: 60px 0;
    background-color: white;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    max-width: none;
}

.carousel-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.jewelry-item {
    flex: 0 0 calc(12.5% - 17.5px);
    max-width: calc(12.5% - 17.5px);
    position: relative;
    overflow: hidden;
}

.jewelry-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 50%; /* Circular shape */
    display: flex;
    align-items: center;
    justify-content: center;
}

.jewelry-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.jewelry-image-wrapper:hover img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    color: #333;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background-color: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: scale(1.1);
}

.carousel-arrow i {
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 1440px) {
    .jewelry-item {
        flex: 0 0 calc(20% - 16px);
        max-width: calc(20% - 16px);
    }
}

@media (max-width: 768px) {
    .jewelry-item {
        flex: 0 0 calc(33.333% - 13.333px);
        max-width: calc(33.333% - 13.333px);
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-container h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }
}
