/**
 * Responsive 1300px Breakpoint Styles
 * Adds support for wider screens (1400px max-width)
 */

/* Container widths for wider screens */
@media screen and (min-width: 1001px) {
  
  /* Main container */
  #main_inner {
    max-width: 1300px;
    width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* Header elements */
  #header_inner {
    max-width: 1300px;
    min-width: 1300px;
  }
  
  header .headerInner {
    max-width: 1300px;
  }
  
  #header_bottom {
    max-width: 1300px;
    min-width: 1180px;
  }
  
  /* Cookie notice */
  .CookieNotice {
    max-width: 1280px;
  }
  
  /* CMS overlay */
  #cms_overlay {
    width: 1280px;
  }
  
}

/* Adjust header advantages positioning for wider screens */
@media screen and (min-width: 1001px) {
  #header_advantages {
    margin-left: 250px;
    display: flex !important;
    gap: 0 !important;
  }
  
  #header_advantages a {
    margin-right: 3px !important;
    padding-right: 3px !important;
  }
  
  #header_advantages a:last-child {
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
  
  #header_inner_navigation_left {
    margin: 0 0 0 300px;
  }
  
  #header_cart {
    width: 320px;
  }
  
  #search {
    width: 350px;
  }
  
  #live_search {
    width: 350px;
  }
  
  #search input[type="text"] {
    width: 280px;
  }
  
  .fl-autocomplete {
    width: 310px !important;
    max-width: 310px !important;
  }
}

/* Footer adjustments */
@media screen and (min-width: 1001px) {
  #footer_inner {
    max-width: 1300px;
    margin: 0 auto;
  }
  
  #bottom_inner {
    max-width: 1300px;
    margin: 0 auto;
  }
}

/* Product grid adjustments for wider screens */
@media screen and (min-width: 1001px) {
  /* Main categories - styling only, keep same border width */
  #left_nav .top_nav {
    border-left-color: #14294b !important;
    background-color: #e5e5e5 !important;
  }
  
  #left_nav .top_nav a {
    color: #14294b !important;
  }
  
  /* Subcategories - lighter text */
  #left_nav .second_nav a {
    color: #666 !important;
  }
  
  #left_nav .second_nav li:hover a {
    color: #14294b !important;
  }
  
  /* Expand subpage container for 1300px layout (default is 800px) */
  /* Left sidebar is ~175px, add more gap between categories and products */
  #left_nav {
    margin-right: 20px !important;
  }
  
  #subpage_container {
    max-width: calc(100% - 205px) !important;
    min-width: calc(100% - 205px) !important;
    width: calc(100% - 205px) !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Ensure content aligns flush to the right edge */
  #content {
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Allow more products per row on wider screens */
  .prod_main {
    width: 23%;
    margin: 0 1%;
  }
  
  /* Product listing container - fill available width */
  .prod_listing,
  #prod_listing {
    width: 100% !important;
    margin-right: 0 !important;
  }
  
  /* Classic view products - align to fill space */
  .prod_single {
    width: 100% !important;
    margin-right: 0 !important;
  }
  
  /* Category navigation */
  .topsellernav {
    width: 31%;
    margin: 10px 1%;
  }
  
  .teaser-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    clear: both !important;
  }

  /* Brand category boxes - base styles */
  .teaser-categories .brand_start_nav,
  .brand_start_nav,
  div.brand_start_nav,
  div[id^="stc_"].brand_start_nav,
  #subpage_container .brand_start_nav,
  div[id^="stc_"],
  #stc_1_of_1, #stc_1_of_2, #stc_2_of_2,
  #stc_1_of_3, #stc_2_of_3, #stc_3_of_3,
  #stc_1_of_4, #stc_2_of_4, #stc_3_of_4, #stc_4_of_4,
  #stc_1_of_5, #stc_2_of_5, #stc_3_of_5, #stc_4_of_5, #stc_5_of_5,
  #stc_1_of_6, #stc_2_of_6, #stc_3_of_6, #stc_4_of_6, #stc_5_of_6, #stc_6_of_6,
  #stc_1_of_7, #stc_2_of_7, #stc_3_of_7, #stc_4_of_7, #stc_5_of_7, #stc_6_of_7, #stc_7_of_7,
  #stc_1_of_8, #stc_2_of_8, #stc_3_of_8, #stc_4_of_8, #stc_5_of_8, #stc_6_of_8, #stc_7_of_8, #stc_8_of_8,
  #stc_1_of_9, #stc_2_of_9, #stc_3_of_9, #stc_4_of_9, #stc_5_of_9, #stc_6_of_9, #stc_7_of_9, #stc_8_of_9, #stc_9_of_9,
  #stc_1_of_10, #stc_2_of_10, #stc_3_of_10, #stc_4_of_10, #stc_5_of_10, #stc_6_of_10, #stc_7_of_10, #stc_8_of_10, #stc_9_of_10, #stc_10_of_10 {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f5f5f5 !important;
    height: 250px !important;
    margin: 3px !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  .teaser-categories .brand_start_nav.even,
  #teaser .brand_start_nav.even,
  .teaser-categories .brand_start_nav.even,
  .brand_start_nav.even,
  div[id^="stc_"].even {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    min-width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }

  .teaser-categories .brand_start_nav.odd,
  #teaser .brand_start_nav.odd,
  .teaser-categories .brand_start_nav.odd,
  .brand_start_nav.odd,
  div[id^="stc_"].odd {
    flex: 0 0 calc(33.333% - 6px) !important;
    width: calc(33.333% - 6px) !important;
    min-width: calc(33.333% - 6px) !important;
    max-width: calc(33.333% - 6px) !important;
  }

  .teaser-categories .brand_start_nav.wide,
  #teaser .brand_start_nav.wide,
  .teaser-categories .brand_start_nav.wide,
  .brand_start_nav.wide,
  div[id^="stc_"].wide {
    flex: 0 0 calc(66.666% - 6px) !important;
    width: calc(66.666% - 6px) !important;
    min-width: calc(66.666% - 6px) !important;
    max-width: calc(66.666% - 6px) !important;
  }
  
  .brand_start_nav:hover,
  div[id^="stc_"]:hover {
    opacity: 0.9 !important;
  }
  
  .brand_start_topcat,
  div[id^="stc_"] .brand_start_topcat {
    display: flex !important;
    align-items: flex-end !important;
    height: 100% !important;
    text-decoration: none !important;
  }
  
  .brand_start_topcat span,
  div[id^="stc_"] .brand_start_topcat span {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 12px 5px !important;
    position: relative !important;
  }
  
  /* Gallery view - ensure it fills content area and aligns right */
  #content {
    width: 100% !important;
    margin-right: 0 !important;
  }
}

/* Brand overview adjustments */
@media screen and (min-width: 1001px) {
  .overview_brand {
    margin: 0 20px 15px 20px;
  }
  
  .overview_brand img {
    max-height: 70px;
  }
}

/* Homepage start page adjustments for 1300px */
@media screen and (min-width: 1001px) {
  /* Gender category images - bigger to fill 1300px */
  .start_gender {
    width: 280px !important;
    max-width: 280px !important;
    max-height: 600px !important;
    margin: 0 18px 0 0 !important;
  }
  
  #start_kinder.start_gender {
    margin-right: 0 !important;
  }
  
  .start_gender a {
    max-height: 600px;
  }
  
  /* Gender category images - bigger to fill 1300px */
  .start_gender {
    width: 280px !important;
    max-width: 280px !important;
    max-height: 600px !important;
    margin: 0 18px 0 0 !important;
  }
  
  #start_kinder.start_gender {
    margin-right: 0 !important;
  }
  
  .start_gender a {
    max-height: 600px;
  }
  
  /* Brand sidebar on the right - bigger */
  #start_marken {
    width: 330px !important;
  }
  
  #start_marken a img {
    width: 158px !important;
    max-width: 158px !important;
  }
  
  /* Adjust spacing for brand links */
  #start_marken a {
    margin: 0 0 5px 0;
  }
  
  .spl_even {
    margin-left: 10px !important;
  }
  
  /* Motivate text banner */
  #start_motivate {
    font-size: 24px;
    font-size: clamp(22px, 2vw, 28px);
  }
  
  /* Topseller carousel */
  #start_topseller h4 {
    font-size: 18px;
  }
  
  .top_seller_carousel_wide {
    max-width: 100%;
  }
}

/* Navigation centering fix - applies to all screen sizes */
#header_bottom {
  text-align: center !important;
}

#header_bottom_navigation {
  display: inline-flex !important;
  justify-content: center !important;
  width: auto !important;
  margin: 0 auto !important;
}

#header_bottom_navigation a {
  float: none !important;
  display: inline-block !important;
}

/* Keep banner/video/slider separate from the category grid */
#header_video,
#teaser_img,
#teaser_text,
#teaser_text.homepage-topseller {
  width: 100% !important;
  clear: both !important;
}

.teaser-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  clear: both !important;
}

/* Brand category boxes - base styles */
.brand_start_nav,
div.brand_start_nav,
div[id^="stc_"].brand_start_nav,
.teaser-categories .brand_start_nav,
div[id^="stc_"],
#stc_1_of_1, #stc_1_of_2, #stc_2_of_2,
#stc_1_of_3, #stc_2_of_3, #stc_3_of_3,
#stc_1_of_4, #stc_2_of_4, #stc_3_of_4, #stc_4_of_4,
#stc_1_of_5, #stc_2_of_5, #stc_3_of_5, #stc_4_of_5, #stc_5_of_5,
#stc_1_of_6, #stc_2_of_6, #stc_3_of_6, #stc_4_of_6, #stc_5_of_6, #stc_6_of_6,
#stc_1_of_7, #stc_2_of_7, #stc_3_of_7, #stc_4_of_7, #stc_5_of_7, #stc_6_of_7, #stc_7_of_7,
#stc_1_of_8, #stc_2_of_8, #stc_3_of_8, #stc_4_of_8, #stc_5_of_8, #stc_6_of_8, #stc_7_of_8, #stc_8_of_8,
#stc_1_of_9, #stc_2_of_9, #stc_3_of_9, #stc_4_of_9, #stc_5_of_9, #stc_6_of_9, #stc_7_of_9, #stc_8_of_9, #stc_9_of_9,
#stc_1_of_10, #stc_2_of_10, #stc_3_of_10, #stc_4_of_10, #stc_5_of_10, #stc_6_of_10, #stc_7_of_10, #stc_8_of_10, #stc_9_of_10, #stc_10_of_10 {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #f5f5f5 !important;
  height: 250px !important;
  margin: 3px !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Two tiles per row */
.teaser-categories .brand_start_nav.even,
.brand_start_nav.even,
div[id^="stc_"].even {
  flex: 0 0 calc(50% - 6px) !important;
  width: calc(50% - 6px) !important;
  min-width: calc(50% - 6px) !important;
  max-width: calc(50% - 6px) !important;
}

/* Three tiles per row (middle row for odd totals like 5 or 7) */
.teaser-categories .brand_start_nav.odd,
.brand_start_nav.odd,
div[id^="stc_"].odd {
  flex: 0 0 calc(33.333% - 6px) !important;
  width: calc(33.333% - 6px) !important;
  min-width: calc(33.333% - 6px) !important;
  max-width: calc(33.333% - 6px) !important;
}

/* Wide tile for legacy 9/10-count layouts */
.teaser-categories .brand_start_nav.wide,
.brand_start_nav.wide,
div[id^="stc_"].wide {
  flex: 0 0 calc(66.666% - 6px) !important;
  width: calc(66.666% - 6px) !important;
  min-width: calc(66.666% - 6px) !important;
  max-width: calc(66.666% - 6px) !important;
}
