/* ===========================================
   STYLE.CSS - Global Styles
   (Variables, reset, fonts moved to base.css)
   (Utility classes moved to utilities.css)
   =========================================== */

/* Main Button Style - Gradient Button */
.main_button {
    min-width: 200px;
    text-align: center;
    border: none;
    font-size: 1.2em;
    line-height: 58px;
    border-radius: var(--radius-large);
    transition: var(--transition-gradient);
    font-family: 'Sequel85';
    margin-top: var(--radius-large);
    padding-bottom: 4px;
    color: white;
    background: var(--main-gradient);
    background-size: 200% auto;
    cursor: pointer;
}

.main_button:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}

/* Load More Section */
.load_more_section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-xl) auto 80px auto;
    padding: var(--spacing-md);
    width: 100%;
}
.submit_button {
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
}

/* Carousel styles - used across multiple pages */
.horizontal_carousel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    max-height: 800px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding-left: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    cursor: grab;
}

.horizontal_carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal_carousel.center_align {
    justify-content: center;
}

.carousel_image {
    height: 100%;
    max-height: 800px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-large);
    flex-shrink: 0;
    cursor: pointer;
}

.carousel_image.small_radius {
    border-radius: var(--radius-small);
}

.carousel_padding_container {
    padding: 40px;
    height: 800px;
    width: 100%;
    box-sizing: border-box;
}

.carousel_padding_container.max_height_override {
    max-height: 800px;
    overflow-y: visible;
}

/* Carousel container variations */
.carousel_container_flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel_container_flex::-webkit-scrollbar {
    display: none;
}

/* Individual carousel image styles */
.carousel_item_image {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-small-medium);
    flex-shrink: 0;
}

/* Fallback carousel styles */
.fallback_carousel_item {
    width: 300px;
    height: 400px;
}

/* Combined image display */
.combined_image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-large);
}

/* Landing page carousel specific */
.landing_carousel_item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing_carousel_item.loaded {
    opacity: 1;
}

/* Modal styles */
.fullscreen_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    cursor: pointer;
}

/* Filter Panel styles */
.filter_panel {
    position: fixed;
    top: 0;
    right: -540px;
    width: 540px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 5px rgba(0,0,0,0.1);
    z-index: var(--z-filter-panel);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter_panel.open {
    right: 0;
}

.filter_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: var(--z-filter-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.filter_overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Filter content styles */
.new_filter_category_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    margin-bottom: 20px;
}

.filter_measurement_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter_measurement_item label {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    width: 200px;
    text-align: left;
    line-height: normal;
}

.filter_measurement_basic, .filter_measurement_expanded {
    margin-bottom: 20px;
}


.clear_button {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-medium);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
}
.clear_icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--gray); /* ← 여기서 색 지정 */
    -webkit-mask: url('/static/src/img/icon_type=clear.svg') center/20px 20px no-repeat;
    mask: url('/static/src/img/icon_type=clear.svg') center/20px 20px no-repeat;
    background-image: none; /* 기존 background-image 제거 */
}

.clear_button:hover {
    background: var(--main-gradient);
}


.filter_composition_basic {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter_composition_expanded {
    display: none; /* Not used anymore - items append to basic container */
}


/* Hide checkboxes in filter panel */
.filter_panel .tag_item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    border: none;
    pointer-events: none;
}

.filter_panel .tag_item input[type="checkbox"]:checked + label {
    background-color: var(--black);
    color: white;
}

/* Push content left when filter panel is open - ONLY for 1920px+ screens */
@media screen and (min-width: 1920px) {
    body.filter-open {
        margin-right: 540px !important;
        transition: margin-right 0.3s ease-in-out;
    }

    body.filter-open .content:not(.narrow),
    body.filter-open .header,
    body.filter-open .subheader {
        margin-right: 0;
        width: calc(100vw - 540px);
        transition: width 0.3s ease-in-out;
    }

    body.filter-open .grid_container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        max-height: none;
        overflow: visible;
        grid-gap: 1.5em;
    }

    body.filter-open .grid_item {
        aspect-ratio: 3/4;
        margin-bottom: 0;
        width: 100%;
        height: auto;
        min-height: 300px;
    }
}

/* Default grid behavior for all screen sizes */
body:not(.filter-open) .grid_item {
    aspect-ratio: 3/4;
    width: 100%;
}

/* Filter panel layout classes */
.filter_panel_content {
    padding: 16px 30px;
}

.filter_panel_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter_panel_title {
    font-family: 'Sequel85', sans-serif;
    font-size: 1.5em;
    margin: 0;
}

.filter_panel_close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--black);
}

.filter_panel_footer {
    position: sticky;
    text-align: center;
    bottom: 0;
    background: white;
    padding: 0 40px;
}
.filter_panel_footer .main_button {
    margin: 16px 0;
}

.filter_panel .subheader {
    padding: 0 0 10px 0;
    margin: 0px;
}

/* Measurement input styles */
.filter_measurement_range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter_measurement_input::placeholder {
    color: var(--gray);
}

.filter_measurement_input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    margin: 0 16px 0 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    line-height: 2em;
    background-color: var(--lightgray);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 2rem;
    outline: none;
    border: none;
    text-align: center;
    autocomplete: off;
}

.filter_measurement_clear {
    margin-left: 8px;
}

/* Measurement box positioning */
.measurement_box_centered {
    transform: translate(-50%, -50%);
}

/* Size region styles - using add.css styles for consistency */

.filter_size_basic, .filter_size_expanded {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.filter_panel .grid_container_size {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.filter_panel .size_key_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* .filter_panel .size_region defined below (line 579) with full styling */

.filter_size_values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size_values_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Composition set transparent style */
.composition_set_transparent {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Carousel cursor states */
.carousel_grabbing {
    cursor: grabbing !important;
}

/* Shared color picker */
.color_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.color_option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.color_option:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.color_option.selected {
    background-color: transparent;
}

.color_circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    transition: all 0.2s ease;
    position: relative;
}

.color_circle.color_white {
    border: 1px solid var(--lightgray);
}

.color_option:hover .color_circle {
    transform: scale(1.05);
}

.color_option.selected .color_circle {
    border: none;
    box-shadow:
        0 0 0 0.5px #667eea,
        0 0 0 1.5px #6b7aef,
        0 0 0 2.5px #6f7bf5,
        0 0 0 3.5px #726ffa,
        0 0 0 4.5px #764ba2;
}

.color_label {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: var(--black);
}

/* Shared rounded dropdown controls used by add/filter/plan pages */
.size_region {
    width: 80px;
    height: 60px;
    background-color: var(--lightgray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
    margin-right: 20px;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    padding: 0 14px;
    box-sizing: content-box;
    line-height: 60px;
    position: relative;
}

.size_region_dropdown {
    display: none;
    position: absolute;
    background-color: white;
    width: 80px;
    height: 60px;
    z-index: var(--z-modal);
    border-radius: 0 !important;
}

.size_region_dropdown .size_region {
    border-radius: 0 !important;
}

.size_region_dropdown .size_region:first-child {
    border-radius: 2rem 2rem 0 0 !important;
}

.size_region_dropdown .size_region:last-child {
    border-radius: 0 0 2rem 2rem !important;
}

.size_region_dropdown.show {
    display: block;
}

.season_dropdown,
.purchase_year_dropdown {
    display: none;
    position: absolute;
    background-color: white;
    width: auto;
    min-width: 100px;
    margin-top: 0;
    z-index: var(--z-modal);
    border-radius: 0 !important;
    white-space: nowrap;
}

.season_dropdown .size_region,
.purchase_year_dropdown .size_region {
    border-radius: 0 !important;
    width: 100%;
    margin: 0;
    white-space: nowrap;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    display: block;
    font-size: 1.2em;
    height: 60px;
    line-height: 60px;
}

.season_selected {
    width: auto !important;
    min-width: 100px !important;
    padding: 0 20px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.season_dropdown .size_region:first-child,
.purchase_year_dropdown .size_region:first-child {
    border-radius: 2rem 2rem 0 0 !important;
}

.season_dropdown .size_region:last-child,
.purchase_year_dropdown .size_region:last-child {
    border-radius: 0 0 2rem 2rem !important;
}

.season_dropdown.show,
.purchase_year_dropdown.show {
    display: block;
}

.filter_panel .size_region_dropdown {
    margin-top: 60px;
}

/* .size_values_container defined above (line 563) */

.size_option_label {
    min-width: auto;
    padding: 0 12px;
}

/* Load more button styles */
.filter_panel .load_more_section {
    margin: 10px 0;
    padding: 0;
    text-align: center;
}

.load_more_button {
    display: inline-block;
    width: 70px;
    height: 30px;
    border-radius: var(--radius-medium);
    background-size: contain;
    background-color: var(--lightgray);
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load_more_button:hover {
    background: var(--main-gradient);
}

.load_more_icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: var(--white);
    background-image: url('/static/src/img/icon_type=expand.svg');
}

.load_more_icon.collapsed {
    background-image: url('/static/src/img/icon_type=collapse.svg');
}

.collapse_icon {
    background-image: url('/static/src/img/icon_type=collapse.svg');
}

.filter_expanded {
    display: none;
}

.no_items_message {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Mobile responsive for filter panel sizing - NO content pushing under 1920px */
@media screen and (max-width: 1919px) and (min-width: 1200px) {
    .filter_panel {
        width: 500px;
        right: -500px;
    }
}

@media screen and (max-width: 620px) {
    .filter_panel {
        width: 100vw;
        right: -100vw;
    }
    .filter_panel_content {
        padding: 20px;
    }
    .new_filter_category_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modal_image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-large);
}

/* Fallback image styles */
.fallback_image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-large);
}

/* Color backgrounds for missing images */
.color_bg_red { background-color: #ff6b6b; }
.color_bg_teal { background-color: #4ecdc4; }
.color_bg_blue { background-color: #45b7d1; }
.color_bg_brown { background-color: #8b4513; }

/* Preview styles */
.preview_relative {
    position: relative;
}

.preview_image_cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body {
    overscroll-behavior: none;
    margin: 0;
    display: block;
    font-family: 'Poppins', 'Pretendard-Regular', 'sans-serif';
    color: var(--black);
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */

    padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

::-moz-selection {
    background: var(--purple);
    color: #fff;
 }
 ::selection {
    background: var(--purple);
    color: #fff;
 }

button {
    border: none;
    font-size: 1em;
    transition: var(--transition-fast);
    font-family: 'Poppins', 'Pretendard-Regular', 'sans-serif';
    color: var(--black);
}
button:hover {
    background-color: var(--black);
    color: white;
}
button .active {
    background-color: var(--black);
    color: white;
}

input[type="radio"]{
    /* perfectly removes the remnant of radio bullet */
    position: fixed;
    opacity: 0;
    visibility: hidden;
    height: 0;
    width: 0;
    border: none;
    font-size: 1em;
    transition: var(--transition-fast);
    font-family: 'Poppins', 'Pretendard-Regular', 'sans-serif';
}
input[type="radio"]:checked + label{
    background-color: var(--black);
    color: white;
}
label {
    display: inline-block;
    text-align: center;
    width: 100%;
    min-width: 58px;
    font-family: 'Poppins';
    font-size: 1.2em;
    line-height: 58px;
    border: solid 1px var(--lightgray);
    border-radius: var(--radius-pill);
    margin: 0;
    padding: 0 14px;
    transition: all .2s ease-out;
    white-space: nowrap;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#bg {
    width: 100%;
    height: 100%;
    z-index: -10;
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: 300% 300%;
    
    background-image: linear-gradient(
          -45deg, 
          rgb(255, 255, 255) 0%, 
          rgb(165, 180, 255) 25%, 
          rgb(189, 189, 189) 51%, 
          rgb(192, 167, 235) 100%
    );  
    
    /*
    background-image: linear-gradient(
        -45deg, 
        rgb(127, 200, 255) 0%, 
        rgb(120, 149, 254) 25%, 
        rgb(116, 126, 230) 50%, 
        rgb(105, 86, 175) 100%
    );  
    */
    animation: AnimateBG 20s ease infinite;
    
}
  
@keyframes AnimateBG { 
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.overlay {
    position: fixed;
    z-index: -9;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom left, rgba(255, 255, 255, 0.85), rgb(200, 200, 200));
    mix-blend-mode: overlay;
}

video {
    width: 100%;
    height: 100%;
    z-index: -10;
    object-fit: cover;
    top: 0;
    left: 0;
    position: absolute;

}

.header {
    position: relative;
    z-index: var(--z-medium);
    padding: 20;
}
.header h1 {
    font-family: 'Sequel45';
    transition: var(--transition-normal);
}

.toggler {
    display: none;
}
.hamburger {
    display: none;
}

ul {
    float: right;
    position: absolute;
    right: 0;
    top: 0;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    float: left;
}

.header ul a {
    z-index: var(--z-base);
    text-decoration: none;
    padding: 14 16;
    margin: 8 0;
    font-size: 1.2em;
    text-align: center;
    display: inline-block;
    font-family: var(--menu-link), sans-serif;
    text-transform: lowercase;
    transition: var(--transition-normal);
}

.header a:hover, .header h1:hover {
    background: -webkit-linear-gradient(120deg, #58abb8, rgb(138, 115, 222));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu_selected {
    background: -webkit-linear-gradient(120deg, #58abb8, rgb(138, 115, 222));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.menu_unselected {
    color: var(--black);
}

/*
.header a:hover:not(){
    background-color: rgba(0, 0, 0, 0.616);
    letter-spacing: 6px;
}
*/




.logo {
    display: inline-block;
    position: relative;
    z-index: var(--z-base);
    font-weight: 600;
    letter-spacing: -1px;
}
.logo a{
    text-decoration: none;

}
h1 {
    font-family: var(--header-bold), sans-serif;
    font-size: 2em;
    color: var(--black);
    margin: 0;
}


.intro {
    margin-top: 50px;
    text-align: center;
}
.intro span {
    vertical-align: middle;
    display: block;
    z-index: var(--z-base);
    /* display: flex; */
    justify-content: center;
    font-size: 4em;
    font-family: var(--header-bold);
    /* text-transform: uppercase; */
    letter-spacing: -1px;

    /* background: -webkit-linear-gradient(30deg, rgba(24, 154, 124, 0.7), rgba(69, 32, 204, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}
.intro .main {
    /*color: var(--white);
    -webkit-text-stroke: 2px var(--black);
    */
}
.intro .sub {
    font-family: var(--header-normal);
    font-size: 2em;
}


/* search button */
.search {
    float: center;
    position: relative;
    flex_wrap: wrap;
    align-items: stretch;
    width: 60%;
    margin: auto;
    display: block;
    padding-top: 60;
}

.search_input {
    display: block;
    width: 100%;
    padding: .375rem 1.5rem;
    font-size: 1.7rem;
    font-family: 'Sequel45';
    line-height: 1.5;
    color: var(--black);
    background-color: rgba(141, 141, 141, 0.15);
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 2rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    outline: none;
}

.content {
    position: absolute;
    padding: 20px 40px 40px 40px;
    margin-bottom: 60px;
    width: 100%;
}
.narrow {
    position: relative;
    display: block;
    margin: auto;
    max-width: 800px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.subheader {
    padding: 30px 15px 10px 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subheader.center_align {
    justify-content: center;
}

.subheader h1 {
    font-family: var(--header-normal), sans-serif;
    text-transform: lowercase;
    color: var(--black);
    letter-spacing: -1;
    margin: 0;
}

/* Sort Controls */
.sort_controls {
    display: flex;
    gap: 8px;
}

.sort_toggle_btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.1em;
    font-family: 'LeferiPointOblique', sans-serif;
    color: var(--grey);
    transition: all 0.2s ease;
}

.sort_toggle_btn:hover {
    font-family: 'LeferiPointBlackOblique';
    letter-spacing: -0.4;
    background: rgba(255, 255, 255, 0.8);
    color: var(--grey);
}

.sort_toggle_btn.active {
    letter-spacing: -0.4;
    font-family: 'LeferiPointBlackOblique';
}

.sort_toggle_btn .sort_icon {
    font-size: 0.6em;
    transition: transform 0.2s ease;
}

.sort_toggle_btn.asc .sort_icon {
    transform: rotate(180deg);
}

/* Sort Expand Button - hidden by default on desktop */
.subheader .text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort_expand_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.sort_expand_btn:hover {
    background: transparent;
}

.sort_expand_btn .expand_icon {
    font-size: 1.1em;
    color: var(--black);
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.subheader.sort_expanded .sort_expand_btn .expand_icon {
    transform: rotate(180deg);
}

/* Brand Group Header */
.brand_group_header {
    grid-column: 1 / -1;
    padding: 20px 15px 0 15px;
    margin-top: 10px;
    margin-bottom: -0.5em;
    height: fit-content;
    align-self: start;
}

.brand_group_header:first-child {
    margin-top: 0;
    padding-top: 0;
}

.brand_group_header h2 {
    font-family: var(--header-normal), sans-serif;
    text-transform: lowercase;
    font-size: 1.6em;
    color: var(--black);
    margin: 0;
}

/* Mobile: stack subheader content vertically */
@media screen and (max-width: 620px) {
    .subheader {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    /* Show expand button on mobile */
    .sort_expand_btn {
        display: flex;
    }

    /* Hide sort controls by default on mobile */
    .sort_controls {
        display: none;
        width: 100%;
        padding-top: 10px;
    }

    /* Show sort controls when expanded */
    .subheader.sort_expanded .sort_controls {
        display: flex;
    }
}

/* responsive image grid */
.grid_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    grid-auto-rows: min-content;
    justify-content: space-evenly;
    grid-gap: 1.5em;
}

.grid_item {
    border-radius: var(--radius-large);
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* 가로:세로 = 3:4 비율 고정 */
    z-index: var(--z-base);
    overflow: hidden;
}

.grid_item_link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.grid_item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    align-self: flex-start;
    transition: var(--transition-slow);
    background-color: var(--white);
}

/* 단일 이미지는 zoom 효과 유지 */
.grid_item.single_image:hover img {
    transform: scale(1.1);
}

/* 다중 이미지는 zoom 효과 제거 (이미지 교체 효과만) */
.grid_item.has_multiple_images {
    position: relative;
    overflow: hidden;
}

.grid_item.has_multiple_images img {
    width: 100%;
    height: 100%;
    inset: 0;
    position: absolute;
    object-fit: cover;
    transition:
        opacity 0.35s ease-out,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.grid_item.has_multiple_images img:hover {
    transform: none;
}
/* 1, 2번째 이미지를 위한 기본 스타일 */
.grid_item.has_multiple_images .first_image {
    z-index: var(--z-base);
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grid_item.has_multiple_images .second_image {
    opacity: 0;
    transform: scale(1.02);
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
/* hover 시 */
.grid_item.has_multiple_images:hover .first_image {
    opacity: 0;
    transform: scale(1.05);
}
.grid_item.has_multiple_images:hover .second_image {
    opacity: 1;
    transform: scale(1.1);
    filter: none;
}

.row {
    display: flex;
    flex_wrap: wrap;
    padding: 0 4px;
}

/* login */
.content_login {
    position: relative;
    display: block;
    margin: auto;
    max-width: 440px;
    margin-top: 60px;
    margin-bottom: 10px;
    padding: 20px 40px 30px 40px;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, .5);
}
.login_form .group {
    display: block;
    margin-bottom: 10px;
}
.login_form .group label {
    display: inline-block;
    text-align: left;
    width: 100%;
    font-family: 'Sequel45';
    font-size: 1.2em;
    line-height: 58px;
    border: none;
    margin: 0;
    padding: 0;
    transition: all .2s ease-out;
}
.login_form .group .input {
    border: none;
    border-radius: var(--radius-large);
    display: block;
    font-family: 'Sequel45';
    font-size: 1.1em;
    color: var(--black);
    width: 100%;
    padding: 15 20;
}
.login_form .group .button {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 1.2em;
    line-height: 58px;
    border-radius: var(--radius-large);
    transition: var(--transition-gradient);
    font-family: 'Sequel85';
    margin-top: 30px;
    color: white;
    background-image: linear-gradient(to right, #4777e6d8 0%, #8d54e9bb  51%, #4776E6  100%);
    background-size: 200% auto;
}
.login_form .group .button:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1200px) {
    .intro {
        margin-top: 30px;
    }
    .grid_container {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media screen and (max-width: 960px) {
    .grid_container {
        grid-template-rows: 1fr 1fr 1fr;
        grid-gap: 1.2em;
    }
    h1 {
        font-size: 1.8em;
    }
    .header ul a {
        font-size: 1em;
        padding: 14 12;
    }
    .search {
        padding-top: 30px;
        width: 80%;
    }
    .search input {
        font-size: 1.5em;
    }
    .intro span {
        font-size: 3em;
    }
    .intro .sub {
        font-size: 1.8em;
    }
    .content {
        padding: 20px;
    }
    .subheader {
        padding: 10px 15px;
    }
    .load_more_section {
        margin: 40px auto;
        padding: 10px;
    }
}

@media screen and (max-width: 620px) {
    .content {
        padding: 10px 20px 20px 20px;
    }
    .grid_container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }
    .grid_item {
        border-radius: var(--radius-medium);
        aspect-ratio: 3/4;
        width: 100%;
    }

    /* Fix multi-image items on mobile - disable absolute positioning */
    .grid_item.has_multiple_images img {
        position: static;
        inset: unset;
    }
    .grid_item.has_multiple_images .second_image {
        display: none;
    }

    .header {
        padding: 5 20;
    }
    .logo h1 {
        font-size: 1.2em;
        vertical-align: bottom;
    }
    h1 {
        font-size: 1.5em;
    }
    .intro {
        margin-top: 20px;
    }
    .intro span {
        font-size: 2.5em;
    }
    .intro .sub {
        font-size: 1.5em;
    }
    
    .search {
        padding-top: 20px;
        width: 90%;
    }
    .search input {
        font-size: 1em;
    }
    .recently_added {
        padding: 30px;
    }

    .toggler{
        /* ALWAYS KEEPING THE TOGGLER OR THE CHECKBOX ON TOP OF EVERYTHING :  */
          z-index: var(--z-medium-low);
          height: 50px;
          width: 50px;
          position: absolute;
          top: 0;
          right: 0;
          cursor: pointer;
          opacity: 0;
          display: inline-block;
          margin: 0;
        }
      
    .hamburger{
        position: absolute;
        top: 8px;
        right: 8px;
        height: 28px;
        width: 28px;
        margin: 0;
        
        /* FOR DISPLAYING EVERY ELEMENT IN THE CENTER : */
        
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
      /* CREATING THE MIDDLE LINE OF THE HAMBURGER : */
      
    .hamburger > div{
        position: relative;
        top: 0;
        right: 0;
        background: var(--black);
        height: 3px;
        width: 70%;
        transition: all  0.4s ease;
    }
    
    /* CREATING THE TOP AND BOTTOM LINES : 
    TOP AT -10PX ABOVE THE MIDDLE ONE AND BOTTOM ONE IS 10PX BELOW THE MIDDLE: */
    
    .hamburger > div::before,
    .hamburger > div::after{
        content: '';
        position: absolute;
        top: -6px;
        background: var(--black);
        width: 100%;
        height: 3px;
        transition: all  0.4s ease;
    }
    
    .hamburger > div::after{
        top: 6px;
    }
    
    /* IF THE TOGGLER IS IN ITS CHECKED STATE, THEN SETTING THE BACKGROUND OF THE MIDDLE LAYER TO COMPLETE BLACK AND OPAQUE :  */
    
    .toggler:checked + .hamburger > div{
        background: rgba(255,255,255,0);
    }
    
    .toggler:checked + .hamburger > div::before{
        top: 0;
        transform: rotate(45deg);
        background: var(--black);
        z-index: var(--z-medium-high);
    }
    
    /* AND ROTATING THE TOP AND BOTTOM LINES :  */
    
    .toggler:checked + .hamburger > div::after{
        top: 0;
        transform: rotate(135deg);
        background: var(--black);
        z-index: var(--z-medium-high);
    }
    
    
    /* MAIN MENU WITH THE WHITE BACKGROUND AND THE TEXT :  */
    
    .menu{
        background: rgba(255, 255, 255, 0.642);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);        
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        width: 0%;
        margin: 0;
        z-index: var(--z-low);
        border-radius: var(--radius-small-medium);
    /* APPLYING TRANSITION TO THE MENU :  */
    
        transition: all 0s ease;
    }
    
    /* IF THE TOGGLER IS CHECKED, THEN INCREASE THE WIDTH OF THE MENU TO 30% , CREATING A SMOOTH EFFECT :  */
    .toggler:checked ~ .menu{
        width: 40%;
    }
    .header ul a {
        font-size: 1em;
        padding: 6 12;
        margin: 0;
    }
    
    /* STYLING THE LIST :  */

    .menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        padding-right: 10px;

    /* HIDDEN INITIALLY  :  */

        visibility: hidden;
    }

    .menu > li{
        list-style: none;
        padding: 0.3rem;
        width: 100%;
    }

    /* WHEN THE TOGGLER IS CHECKED, CHANGE THE VISIBILITY TO VISIBLE :  */

    .toggler:checked ~ .menu{
        transition: visibility 0.4s ease;
        transition-delay: 0.1s;
        visibility: visible;
    }

    .toggler:checked ~ .menu > li > a:hover{
        color: orange;
    }

}


@media screen and (max-width: 400px) {
    .content {
        padding: 10px var(--spacing-md);
    }
    label {
        border-radius: var(--radius-large);
        font-size: 1em;
        padding: 0 20px;
        line-height: 46px;
    }
    .intro {
        margin-top: 10px;
    }
    .intro span {
        font-size: 2em;
    }
    .intro .sub {
        font-size: 1.2em;
        margin-top: -6px;
    }
    .subheader {
        padding: 10px 0 0 10px;
    }
    .subheader h1 {
        margin: 0.2em 0 0 0;
        font-size: 1.3em;
        letter-spacing: -0.5;
    }
    .sort_expand_btn {
        margin-top: 0.3em;
    }
    .main_button {
        font-size: 1em;
        min-width: 180px;
        line-height: 46px;
        margin-top: 10px;
    }
    .sort_controls {
        margin-bottom: 16px;
    }
    .brand_group_header {
        margin-bottom: -0.75em;
        padding: 10px 10px 0 10px;
        margin-top: 5px;
    }
    .brand_group_header h2 {
        font-size: 1.2em;
    }
    .search {
        width: 100%;
    }
    /* Hide search results subheader on mobile */
    .subheader.search-results {
        display: none;
    }
    body:not(.filter-open) .grid_container {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid_container {
        grid-gap: 1em;
        grid-template-rows: none;
        grid-auto-rows: min-content;
    }
    .grid_item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
