/* Premium desktop polish for Marta (OkayCMS).
   Mobile is NOT affected: all rules are wrapped in desktop media queries. */

/* Desktop: make homepage category cards the same height */
@media (min-width: 992px) {
  .ShowCategoriesAtHome__list {
    align-items: stretch;
  }
  .ShowCategoriesAtHome__item {
    display: flex;
  }
  .ShowCategoriesAtHome__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 92px;
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  :root {
    --sg-radius: 18px;
    --sg-radius-sm: 14px;
    --sg-border: rgba(15, 23, 42, 0.10);
    --sg-shadow: 0 14px 34px rgba(2, 6, 23, 0.10);
    --sg-shadow-sm: 0 10px 22px rgba(2, 6, 23, 0.08);
    --sg-bg: #f4f6fa;
    --sg-card: #ffffff;
    --sg-text: #0f172a;
    --sg-muted: rgba(15, 23, 42, 0.72);
  }

  /* Fixed width on large screens */
  body {
    font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--sg-bg);
    color: var(--sg-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .container {
    max-width: 1320px;
  }

  /* Header: full-width thematic background (desktop only) */
  .header_top {
    position: relative;
    background-image: url("../images/header-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .header_top::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        /* центральне світло */
        radial-gradient(
            ellipse at 50% -20%,
            rgba(255,255,255,0.55) 0%,
            rgba(255,255,255,0.25) 18%,
            rgba(20,35,55,0.6) 55%,
            rgba(10,18,30,1) 100%
        ),

        /* ТОВСТІ промені */
        repeating-conic-gradient(
            from 180deg at 50% -20%,
            rgba(255,255,255,0.12) 0deg,
            rgba(255,255,255,0.12) 25deg,
            transparent 25deg,
            transparent 65deg
        );

    opacity: 0.9;
}
  .header_top > .container,
  .header_top > .container > .row {
    position: relative;
    z-index: 1;
  }
  .header_top .row {
    align-items: center;
  }

  /* Main navigation: a bit cleaner */
  .main_nav {
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
  }

  /* “Premium cards” for blocks */
  .block,
  .main_banner,
  .search,
  .breadcrumb,
  .sidebar .categories,
  .sidebar_bottom .img-wrapper a,
  .fn_selected_features,
  .fn_features {
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow-sm);
  }

  /* Keep layout spacing comfortable */
  .block {
    padding: 18px;
  }
  .search {
    padding: 14px;
  }
  .breadcrumb {
    padding: 10px 14px;
  }

  /* Sidebar lists: softer */
  .sidebar .categories {
    overflow: hidden;
  }
  .sidebar .categories a {
    transition: background 0.15s ease;
  }
  .sidebar .categories a:hover {
    background: rgba(2, 6, 23, 0.04);
  }

  /* Banner/slider container: centered + premium frame */
  .main_banner,
  .swiper-outer {
    border-radius: var(--sg-radius);
    overflow: hidden;
  }

  /* Product cards */
  .preview {
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow);
  }
  .preview_image {
    border-top-left-radius: var(--sg-radius);
    border-top-right-radius: var(--sg-radius);
  }
  .preview_details {
    padding: 14px 14px 16px;
  }
  .preview_details .product_name {
    font-weight: 700;
    line-height: 1.25;
  }
  .preview_details .price_container {
    margin-top: 10px;
  }

  /* Buttons */
  .button,
  button,
  input[type="submit"],
  .search_button {
    border-radius: 12px;
  }

  /* Inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    border-radius: 12px;
  }

  /* A bit more “breathing room” in the main grid */
  .content {
    gap: 18px;
  }

  /* Slightly calmer typography in long blocks */
  .content, .sidebar {
    color: var(--sg-text);
  }
  .content p,
  .sidebar p {
    color: var(--sg-muted);
  }
}

/* Wider-than-default screens: keep fixed look (don’t stretch) */
@media (min-width: 1600px) {
  .container {
    /* +20% wider desktop layout on large screens only */
    max-width: 1632px;
  }
}

/* === DESKTOP HEADER HEIGHT + BG (custom) === */
@media (min-width: 992px) {
    .nav-menu a { font-size: 18px !important; }

  /* Increase header height (header top background area) */
  .header_top {
    position: relative;
    /* Reduced desktop hero height (background area) */
    min-height: 420px;
    padding-top: 20px;
    padding-bottom: 20px;

    /* Background image is applied on ::before and constrained to site container width.
       Set a solid desktop-only backdrop so the area outside the image isn't white. */
    background: #000 !important;
    overflow: hidden;
  }

  /* Constrained background (desktop only). Does NOT affect .top_line */
  .header_top::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Match site content field width (same logic as .container: 15px gutters) */
    width: calc(100% - 30px);
    max-width: 1320px;
    background-image: url("../images/header-bg-home.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
  }



  /* Keep inner elements above any overlays (if any are added later) */
  .header_top .container, .header_top .row {
    position: relative;
    z-index: 1;
  }
}

/* Keep header background width in sync with the widened desktop container */
@media (min-width: 1600px) {
  .header_top::before {
    max-width: 1632px;
  }
}

/* === DESKTOP ONLY: "My account" pill button (do not affect mobile) === */
@media (min-width: 992px) {
    .nav-menu a { font-size: 18px !important; }

  /* Target only the desktop trigger (it has .mobile-hidden) */
  .account_wrap .account_switch.mobile-hidden {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    float: right; /* keep in the same desktop position */
    height: 50px;
    padding: 0 30px;
    line-height: 50px;
    background: #ff9d00;
    border: 0;
    border-radius: 21px;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
  }

  .account_wrap .account_switch.mobile-hidden span {
    margin-left: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }

  /* Make the caret white (dropdown triangle) */
  .account_wrap .account_switch.mobile-hidden span::after {
    border-color: #fff transparent transparent transparent;
  }

  /* Replace the sprite icon with a clean white SVG (so it matches the screenshot) */
  .account_wrap .account_switch.mobile-hidden .account_icon {
    width: 18px;
    height: 18px;
    background: none;
  }

  .account_wrap .account_switch.mobile-hidden .account_icon::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5S14.76 2 12 2 7 4.24 7 7s2.24 5 5 5Zm0 2c-4.42 0-8 2.24-8 5v3h16v-3c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5S14.76 2 12 2 7 4.24 7 7s2.24 5 5 5Zm0 2c-4.42 0-8 2.24-8 5v3h16v-3c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") no-repeat center / contain;
  }
}


/* Enable Google Map interaction inside modal on desktop only */
@media (min-width: 992px){
  .contact-map-iframe{
    pointer-events: auto !important;
  }
}

/* === Desktop header pills: Catalog + Cart (desktop only) === */
@media (min-width: 992px) {
    .nav-menu a { font-size: 18px !important; }


  /* Taller desktop menu bar (match screenshot) */
  .top_line{ padding: 0px 0 !important; }

  /* === Desktop main menu bar styling (as in screenshot) === */
  .main_nav{
    position: relative !important;
    margin-bottom: 0 !important;
    background: #3b3b3b !important;
    border-top: 3px solid #ff9d00 !important;
    border-bottom: 3px solid #e7e7e7 !important;
  }

  /* Keep the whole bar height consistent */
  .main_nav .container{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Make the right-side column a flex row: center menu, keep cart on the right */
  .main_nav .col-md-8.col-xl-9{
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .main_nav .menu{
    flex: 1 1 auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Menu links: white, vertically centered */
  .main_nav .menu_header_1_link,
  .main_nav .menu a{
    color: #ffffff !important;
    line-height: 62px !important;
  }

  .main_nav .menu_header_1_link:hover,
  .main_nav .menu a:hover{
    color: #ffffff !important;
    opacity: .92 !important;
  }


  /* === Desktop only tweaks requested === */

  /* Bigger top menu text (do not affect mobile) */
  .main_nav .menu_header_1_link{
    font-size: 18px !important;
    text-transform: none !important;
    height: 62px !important;
    padding: 0 18px !important;
    font-weight: 600 !important;
  }

  .main_nav .menu_header_1{
    justify-content: center !important;
    gap: 38px !important;
  }

  /* More space between last menu item (e.g. Contact) and the Cart pill */
  /* (Handled by flex layout above) */

  /* Catalog button */
  .main_nav .categories_heading.mobile-hidden{
    background: #f7931e !important;
    color: #ffffff !important;
    border-radius: 40px !important;
    /* Make the Catalog pill the same height as the desktop menu bar/cart pill */
    height: 62px !important;
    padding: 0 32px !important;
    font-size: 20px !important;
    font-weight: 600 !important;

    /* make the orange field stretch by column width */
    width: 100% !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    line-height: 1.1 !important;
  }

  /* Replace catalog sprite with clean hamburger (desktop only) */
  .main_nav .categories_heading.mobile-hidden .catmenu_i{
    background: none !important;
    width: 20px !important;
    height: 14px !important;
    margin: 0 !important;
    position: relative !important;
    flex: 0 0 auto !important;
  }

  .main_nav .categories_heading.mobile-hidden .catmenu_i::before,
  .main_nav .categories_heading.mobile-hidden .catmenu_i::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
  }

  .main_nav .categories_heading.mobile-hidden .catmenu_i::before{ top: 0; }
  .main_nav .categories_heading.mobile-hidden .catmenu_i::after{ bottom: 0; }

  .main_nav .categories_heading.mobile-hidden .catmenu_i{
    box-shadow: 0 6px 0 0 #ffffff; /* middle bar */
  }

  /* Vertically center catalog column within the menu bar (desktop only) */
  .main_nav .row{
    align-items: center !important;
  }

  .main_nav .categories_heading.mobile-hidden span{
    color: #ffffff !important;
  }

  /* Cart button */
  /*
    Keep the cart block compact and fixed-width so big totals
    don't stretch the header. Make it match the provided screenshot:
    - rotated cart icon
    - black counter bubble over the icon
    - title + total on 2 lines
  */
  .main_nav #cart_informer{
    float: none !important;
    flex: 0 0 auto !important;
  }

  .main_nav #cart_informer .cart_info{
    position: relative !important;
    display: block !important;

    /* fixed field */
    width: 170px !important;
    height: 62px !important;
    box-sizing: border-box !important;

    background: #f7931e !important;
    border-radius: 40px !important;

    /* space for the icon */
    padding: 14px 13px 0 70px !important;

    color: #ffffff !important;
    text-decoration: none !important;
    line-height: 18px !important;
  }

  /* rotated icon */
  .main_nav #cart_informer .cart_info:before{
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    width: 38px !important;
    height: 38px !important;
    transform: translateY(-50%) rotate(-18deg) !important;
    background: url(../images/cart_icon.svg) no-repeat center center !important;
    background-size: contain !important;
  }

  .main_nav #cart_informer .cart_info *{
    color: #ffffff !important;
  }

  .main_nav #cart_informer .cart_title{
    display: block !important;
    font-weight: 600 !important;
  }

  .main_nav #cart_informer .cart_total{
    display: block !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  /* black counter bubble */
  .main_nav #cart_informer .cart_counter{
    position: absolute !important;
    top: 1px !important;
    left: 33px !important;
    width: 27px !important;
    height: 27px !important;
    line-height: 27px !important;
    border-radius: 100% !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: center !important;
    font-size: 13px !important;
    z-index: 2 !important;
  }
}

/* === DESKTOP ONLY: Catalog button (alignment + font) === */
@media (min-width: 992px) {
    .nav-menu a { font-size: 18px !important; }

  /* Left-align icon + “Catalog” inside the orange catalog pill */
  .main_nav .categories_heading.mobile-hidden {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 18px;
  }

  /* Catalog text: Chronica Pro Medium + Title Case (no uppercase transform) */
  .main_nav .categories_heading.mobile-hidden span[data-language="index_categories"] {
    font-family: "Manrope", "Chronica Pro", serif;
    text-transform: none;
  }



/* === DESKTOP ONLY: Hero alignment (logo + texts + My account) === */
@media (min-width: 992px) {
  .header_top .row{
    align-items: flex-start;
  }
  .header_top .logo_wrap{
    padding-top: 10px;
  }
  .header_top .account_wrap{
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
  }
}
}

/* Desktop category list hover highlight (only desktop; mobile untouched) */
@media (min-width: 992px) {
  .categories_nav {
    padding: 0;
  }
  .categories_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .categories_nav .level_1 > li {
    margin: 0 0 1px 0;
  }

  .categories_nav .level_1.categories_menu > li > .category_link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 65px; /* equal height */
    padding: 18px 18px 18px 42px; /* room for left accent */
    border: 1px solid rgba(2, 6, 23, 0.10);
    border-radius: 16px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .categories_nav .level_1.categories_menu > li > .category_link span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* keep card height consistent */
    overflow: hidden;
    line-height: 1.2;
    font-weight: 700;
  }

  /* left orange “pill” */
  .categories_nav .level_1.categories_menu > li > .category_link::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 56px;
    border-radius: 999px;
    background: #ff8a00;
    opacity: 0;
    transition: opacity .15s ease;
  }

  .categories_nav .level_1.categories_menu > li > .category_link:hover,
  .categories_nav .level_1.categories_menu > li > .category_link:focus {
    border-color: rgba(255, 138, 0, 0.55);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
    outline: none;
  }

  .categories_nav .level_1.categories_menu > li > .category_link:hover::before,
  .categories_nav .level_1.categories_menu > li > .category_link:focus::before,
  .categories_nav .level_1.categories_menu > li > .category_link.selected::before {
    opacity: 1;
  }

  /* keep active category visible too */
  .categories_nav .level_1.categories_menu > li > .category_link.selected {
    border-color: rgba(255, 138, 0, 0.55);
  }
}

/* DESKTOP FIX – Catalog hamburger alignment */
@media (min-width: 992px) {
    .catalog_btn,
    .catalog-button,
    .menu_catalog {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        line-height: 1;
    }

    .catalog_btn span,
    .catalog-button span,
    .menu_catalog span {
        display: inline-block;
        vertical-align: middle;
    }

    .catalog_btn .hamburger,
    .catalog-button .hamburger,
    .menu_catalog .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .catalog_btn .hamburger span,
    .catalog-button .hamburger span,
    .menu_catalog .hamburger span {
        width: 18px;
        height: 2px;
        background: #fff;
        display: block;
    }

    /* Remove unwanted decorative lines */
    .catalog_btn:before,
    .catalog_btn:after,
    .catalog-button:before,
    .catalog-button:after,
    .menu_catalog:before,
    .menu_catalog:after {
        display: none !important;
        content: none !important;
    }
}


/* DESKTOP ONLY – News block: show full preview image (no crop) + stronger titles */
@media (min-width: 992px) {
  .news_thumb{
    display:block !important;
    width:100%;
    margin:0 0 12px;
    border-radius:12px;
    overflow:hidden;
    background:#f4f6f9;
    aspect-ratio: 16 / 9;
  }

  .news_thumb img{
    width:100%;
    height:100%;
    object-fit: contain !important;
  }

  .news_name{
    display:block;
    font-weight:700;
    font-size:18px;
    line-height:1.25;
    margin:0 0 6px;
  }
}


/* DESKTOP ONLY – animated hover for header menu links */
@media (min-width: 992px) {
  .main_nav .menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    transition: transform .18s ease, color .18s ease;
    will-change: transform;
  }

  .main_nav .menu a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
    opacity: .9;
  }

  .main_nav .menu a:hover,
  .main_nav .menu a:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
  }

  .main_nav .menu a:hover::after,
  .main_nav .menu a:focus-visible::after {
    transform: scaleX(1);
  }
}

/* Desktop-only: language switcher dropdown (fix <details> behavior) */
@media (min-width: 992px) {
    .lang_switcher > summary::-webkit-details-marker { display: none; }
    .lang_switcher > div { display: none; }
    .lang_switcher[open] > div { display: block; }
}


/* Desktop-only: icon near section headings (Hits / New items / Sales) */
.slidehead_icon{display:none;}
@media (min-width: 992px){
    .slidehead_icon{display:inline-block;width:18px;height:18px;margin-right:10px;vertical-align:middle;position:relative;top:-1px;}
}

/* === Rounded Buttons (shape only) === */
.button,
.btn,
button,
input[type="submit"],
input[type="button"] {
    border-radius: 100px !important;
    overflow: hidden !important;
}
/* === End Rounded Buttons === */

/* === Button Hover Text Color === */
.button:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    color: #000000 !important;
}
/* === End Button Hover Text Color === */

/* === Search Icon Vertical Center Fix === */
.search,
.search-form,
.header-search {
    position: relative;
}

.search .fa-search,
.search-form .fa-search,
.header-search .fa-search,
.search button,
.search-form button,
.header-search button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
/* === End Search Icon Fix === */

/* === ShowCategoriesAtHome: category cards like screenshot (rounded, clean, no extra colors) === */
@media (min-width: 992px) {
  .ShowCategoriesAtHome__list {
    gap: 18px;
  }

  .ShowCategoriesAtHome__item {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .ShowCategoriesAtHome__link {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    padding: 22px 20px !important;
    height: 100% !important;
    text-decoration: none !important;
  }

  .ShowCategoriesAtHome__image,
  .ShowCategoriesAtHome__no_image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 14px 0 !important;
  }

  .ShowCategoriesAtHome__image img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .ShowCategoriesAtHome__name {
    color: #111 !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
  }

  /* keep hover clean (no colored backgrounds) */
  .ShowCategoriesAtHome__link:hover,
  .ShowCategoriesAtHome__link:focus {
    background: #ffffff !important;
    box-shadow: none !important;
  }
}
/* === End ShowCategoriesAtHome cards === */

/* === ShowCategoriesAtHome: grid like screenshot (single rounded container + inner dividers) === */
@media (min-width: 992px) {
  /* outer container transparent / same as page background; cards stay untouched */
  .ShowCategoriesAtHome__list {
    gap: 0 !important;                 /* no spaces between cards */
    border-radius: 16px !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* remove per-card rounding */
  .ShowCategoriesAtHome__item,
  .ShowCategoriesAtHome__link {
    border-radius: 0 !important;
  }

  .ShowCategoriesAtHome__link {
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 22px 20px !important;
    height: 100% !important;
    display: block !important;
  }

  /* inner grid separators */
  .ShowCategoriesAtHome__item {
    border-right: 1px solid rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }

  /* assume 5 columns on desktop (as on your screenshot) */
  .ShowCategoriesAtHome__item:nth-child(5n) {
    border-right: none !important;
  }

  /* remove bottom border for last row (best-effort) */
  .ShowCategoriesAtHome__item:nth-last-child(-n+5) {
    border-bottom: none !important;
  }

  /* keep hover clean */
  .ShowCategoriesAtHome__link:hover,
  .ShowCategoriesAtHome__link:focus {
    background: #ffffff !important;
  }
}
/* === End ShowCategoriesAtHome grid === */

/* === Product cards (preview) like screenshot: rounded, clean, no extra colors === */
@media (min-width: 992px) {
  .preview.fn_product {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  .preview.fn_product .fn_transfer {
    background: transparent !important;
  }

  .preview.fn_product .preview_details {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* keep hover clean (no colored card background) */
  .preview.fn_product:hover,
  .preview.fn_product:focus-within {
    background: #ffffff !important;
    box-shadow: none !important;
  }
}
/* === End product cards === */

/* === Category page white background rounded like cards === */
@media (min-width: 992px) {
  .products,
  .products_list,
  .catalog_container,
  .fn_products {
    border-radius: 12px !important;
    overflow: hidden !important;
  }
}
/* === End category background fix === */

/* === Category products: round inner white image background === */
@media (min-width: 992px) {

  /* main product card */
  .preview.fn_product {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* image wrapper */
  .preview.fn_product .preview_image {
    display: block !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  /* fix square white background behind image */
  .preview.fn_product .preview_image picture,
  .preview.fn_product .preview_image img,
  .preview.fn_product .fn_img {
    border-radius: 12px 12px 0 0 !important;
  }

}
/* === End inner product background fix === */

/* === Desktop footer decorations === */
@media (min-width: 992px) {

  .sg-footer {
    position: relative;
    overflow: visible !important;
    z-index: 1;
  }

  /* Сайдинг зліва */
  .sg-footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: -560px;
    width: 900px;
    height: 560px;
    background-image: url("../images/footer.svg");
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
  }

/* Шестерня справа */
.sg-footer::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;                       /* початок від верха футера */
  width: 420px;
  height: 420px;
  background-image: url("../images/footer-gear.svg");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  transform: translateY(-100%); /* піднімає її над футером */
}

  /* контент сторінки поверх */
  main,
  .container,
  .wrapper,
  .content,
  .page-content {
    position: relative;
    z-index: 2;
  }

  /* футер поверх */
  .sg-footer > * {
    position: relative;
    z-index: 3;
  }

}
/* === End desktop footer decorations === */


/* Desktop-only: homepage product section frames transparent/grey (do not touch cards/mobile) */
@media (min-width: 992px){
  .homepage_products_block{
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
  }
}


/* FIX: remove white background around product cards in Hits / New items / Sale (desktop only) */
@media (min-width: 992px){
.products,
.products_list,
.products_slider,
.fn_products,
.slick-track,
.slick-list{
background: transparent !important;
}
}


/* FIX: transparent section header background in Hits / New items / Sale (desktop only) */
@media (min-width: 992px){
  .homepage_products_block > .h1,
  .homepage_products_block > .slidehead,
  .homepage_products_block > .h1.slidehead,
  .homepage_products_block > .h1 a,
  .homepage_products_block > .h1 span{
    background: transparent !important;
  }
}

/* FIX: equal product card heights in homepage sliders (desktop only) */
@media (min-width: 992px){
  .fn_products_slider .swiper-wrapper,
  .products_slider .swiper-wrapper{
    align-items: stretch !important;
  }

  .fn_products_slider .products_item.swiper-slide,
  .products_slider .products_item.swiper-slide{
    height: auto !important;
    display: flex !important;
  }

  .fn_products_slider .products_item.swiper-slide .preview.fn_product,
  .products_slider .products_item.swiper-slide .preview.fn_product{
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .fn_products_slider .products_item.swiper-slide .preview.fn_product .fn_transfer,
  .products_slider .products_item.swiper-slide .preview.fn_product .fn_transfer{
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .fn_products_slider .products_item.swiper-slide .preview.fn_product .preview_details,
  .products_slider .products_item.swiper-slide .preview.fn_product .preview_details{
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .fn_products_slider .products_item.swiper-slide .preview.fn_product .preview_form,
  .products_slider .products_item.swiper-slide .preview.fn_product .preview_form{
    margin-top: auto !important;
  }
}


/* Fix: remove white side stripes in product sliders (desktop only) */
@media (min-width: 992px){
  .fn_products_slider.products_slider.swiper-container,
  .products_slider.swiper-container{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Fix: align product slider blocks to left and right fields on desktop only */
@media (min-width: 992px){
.products_slider,
.products_slider.swiper-container,
.products_slider .swiper,
.products_slider .swiper-wrapper,
.products_block,
.home_products,
.main_products{
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
}



/* Fix: keep hovered category product card below top panel on desktop only */
@media (min-width: 992px){
.product,
.preview,
.fn_product{
    position: relative !important;
}
.product:hover,
.preview:hover,
.fn_product:hover{
    z-index: 2 !important;
    transform: none !important;
    top: auto !important;
    margin-top: 0 !important;
}
.products,
.products_list,
.category_products,
.catalog,
.catalog_content{
    overflow: visible !important;
}
}



/* Fix: align product blocks evenly to left and right edges on desktop only */
@media (min-width: 992px){
.products_slider,
.products_slider.swiper-container,
.products_slider .swiper-wrapper,
.swiper-products,
.products_block{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.products_slider .swiper-slide:first-child,
.products_slider .products_item:first-child{
    margin-left: 0 !important;
}
.products_slider .swiper-slide:last-child,
.products_slider .products_item:last-child{
    margin-right: 0 !important;
}
}



/* Fix: align info cards to container edges (desktop only) */
@media (min-width: 992px){
.partners_block,
.shipment_block,
.youtube_block,
.home_info,
.home_info .block,
.info_cards,
.info_cards .item{
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
}


/* Fix: stretch sidebar partner cards to full container width (desktop only) */
@media (min-width: 992px){
.sidebar_bottom .sidebar-partners .img-wrapper{
    display:block !important;
    width:100% !important;
}
.sidebar_bottom .sidebar-partners .img-wrapper > a{
    display:block !important;
    width:100% !important;
}
.sidebar_bottom .sidebar-partners .img-wrapper img{
    display:block !important;
    width:100% !important;
    height:auto !important;
}
}


/* === DESKTOP ONLY: per-page header backgrounds === */
@media (min-width: 992px) {
  body.page-home .header_top::before {
    background-image: url("../images/header-bg-home.jpg");
  }

  body.page-about .header_top::before {
    background-image: url("../images/header-bg-home.jpg");
  }

  body.page-articles .header_top::before {
    background-image: url("../images/header-bg-home.jpg");
  }

  body.page-discount .header_top::before {
    background-image: url("../images/header-bg-home.jpg");
  }

  body.page-contact .header_top::before {
    background-image: url("../images/header-bg-home.jpg");
  }
}


/* === DESKTOP ONLY: premium blog cards on /all-posts === */
@media (min-width: 992px) {
  body.page-articles .blog > [class*="col-"] {
    margin-bottom: 34px;
  }

  body.page-articles .blog_item {
    height: 100%;
    margin-bottom: 0;
    padding-bottom: 20px;
    border: 1px solid rgba(12, 24, 45, 0.08);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 34px rgba(9, 20, 38, 0.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }

  body.page-articles .blog_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(9, 20, 38, 0.14);
    border-color: rgba(12, 24, 45, 0.14);
  }

  body.page-articles .blog_top {
    display: block;
  }

  body.page-articles .blog_image,
  body.page-articles .blog_image__link {
    display: block;
    width: 100%;
    max-width: none;
    height: 260px;
  }

  body.page-articles .blog_image {
    flex: none;
  }

  body.page-articles .blog_image__link {
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.page-articles .blog_img,
  body.page-articles .blog_image__link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
  }

  body.page-articles .blog_item:hover .blog_img,
  body.page-articles .blog_item:hover .blog_image__link img {
    transform: scale(1.01);
  }

  body.page-articles .blog_header {
    padding: 22px 24px 0;
  }

  body.page-articles .blog_name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #0b1f39;
    text-transform: none;
  }

  body.page-articles .blog_name:hover {
    color: #b38752;
  }

  body.page-articles .blog_date {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #7d8794;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  body.page-articles .blog_annotation {
    padding: 14px 24px 0;
    max-height: none;
    font-size: 15px;
    line-height: 1.75;
    color: #49566a;
  }

  body.page-articles .blog_annotation p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }


  body.page-articles .block__description {
    background: #fff;
    border: 1px solid rgba(12, 24, 45, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(9, 20, 38, 0.08);
    padding: 26px 28px;
  }

  body.page-articles .blog_image .no_image {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
  }
}


/* DESKTOP ONLY – disable Catalog button interaction */
@media (min-width: 992px) {
  .main_nav .categories_heading.mobile-hidden,
  .main_nav .categories_heading.mobile-hidden *,
  .main_nav .categories_heading.mobile-hidden .catmenu_i,
  .main_nav .categories_heading.mobile-hidden span {
    cursor: default !important;
  }

  .main_nav .categories_heading.mobile-hidden {
    pointer-events: none !important;
  }

  .main_nav .categories_heading.mobile-hidden:hover,
  .main_nav .categories_heading.mobile-hidden:focus,
  .main_nav .categories_heading.mobile-hidden:active {
    background-color: var(--okay-basic-company) !important;
    box-shadow: none !important;
    transform: none !important;
  }
}


/* Desktop only: /all-posts blog card images without cropping */
@media (min-width: 992px) {
  body.page-articles .blog_image picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  body.page-articles .blog_img,
  body.page-articles .blog_image__link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #fff;
  }
}

/* /all-posts: premium uncropped blog previews on all devices */
body.page-articles .blog > [class*="col-"] {
  margin-bottom: 22px;
}

body.page-articles .blog_item {
  height: 100%;
  margin-bottom: 0;
  padding-bottom: 16px;
  border: 1px solid rgba(12, 24, 45, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(9, 20, 38, 0.07);
}

body.page-articles .blog_top {
  display: block;
  width: 100%;
}

body.page-articles .blog_image,
body.page-articles .blog_image__link {
  display: block;
  width: 100%;
  max-width: none;
}

body.page-articles .blog_image {
  flex: none;
}

body.page-articles .blog_image__link {
  position: relative;
  overflow: hidden;
  background: #fff;
}

body.page-articles .blog_image picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

body.page-articles .blog_img,
body.page-articles .blog_image__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

body.page-articles .blog_header {
  padding: 18px 20px 0;
}

body.page-articles .blog_name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #0b1f39;
  text-transform: none;
}

body.page-articles .blog_date {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #7d8794;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.page-articles .blog_annotation {
  padding: 14px 20px 0;
  max-height: none;
  font-size: 15px;
  line-height: 1.75;
  color: #49566a;
}

body.page-articles .blog_annotation p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-articles .blog_image .no_image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
}

@media (max-width: 575.98px) {
  body.page-articles .blog_image,
  body.page-articles .blog_image__link,
  body.page-articles .blog_image .no_image {
    height: 180px;
  }

  body.page-articles .blog_header {
    padding: 16px 16px 0;
  }

  body.page-articles .blog_name {
    font-size: 18px;
  }

  body.page-articles .blog_annotation {
    padding: 12px 16px 0;
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  body.page-articles .blog_image,
  body.page-articles .blog_image__link,
  body.page-articles .blog_image .no_image {
    height: 220px;
  }
}

@media (min-width: 992px) {
  body.page-articles .blog > [class*="col-"] {
    margin-bottom: 34px;
  }

  body.page-articles .blog_item {
    padding-bottom: 20px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(9, 20, 38, 0.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }

  body.page-articles .blog_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(9, 20, 38, 0.14);
    border-color: rgba(12, 24, 45, 0.14);
  }

  body.page-articles .blog_image,
  body.page-articles .blog_image__link,
  body.page-articles .blog_image .no_image {
    height: 260px;
  }

  body.page-articles .blog_header {
    padding: 22px 24px 0;
  }

  body.page-articles .blog_annotation {
    padding: 14px 24px 0;
  }
}


/* Premium product badges: Top sales / discount */
.preview .stickers {
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 3;
}

.preview .sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.preview .sticker--hit {
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.08);
}

.preview .sticker--discount {
  background: linear-gradient(135deg, ##E20303 0%, #2a2a2a 130%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}


/* Recommended articles as product cards */
.related_articles {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 24px;
}

.related_articles__item {
    display: flex;
    float: none;
}

.related_article_card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.related_article_card .fn_transfer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.related_article_card__image picture,
.related_article_card__image img,
.related_article_card .fn_img {
    width: 100%;
}

.related_article_card__image picture {
    height: 250px;
}

.related_article_card__meta {
    background: #ffffff !important;
}

.related_article_card__details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.related_article_card__title {
    min-height: 0 !important;
}

.related_article_card__annotation {
    flex: 1 1 auto;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related_article_card__footer {
    margin-top: auto;
}

.related_article_card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .related_articles {
        row-gap: 16px;
    }

    .related_article_card__image picture {
        height: 200px;
    }

    .related_article_card__annotation {
    flex: 1 1 auto;
        font-size: 13px;
        margin-bottom: 14px;
    }
}

/* =============================================
   Premium product page refresh (Apple / Tesla)
   ============================================= */

.fn_product.product {
  --pp-radius: 30px;
  --pp-radius-sm: 20px;
  --pp-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --pp-border: 1px solid rgba(15, 23, 42, 0.06);
  --pp-muted-bg: linear-gradient(180deg, #fbfbfc 0%, #f2f4f7 100%);
}

.fn_product.product > .fn_transfer.row {
  align-items: stretch;
}

.fn_product.product .product_gallery,
.fn_product.product .product_details,
.fn_product.product .tabs,
.fn_product.product .related.block,
.fn_product.product .related-articles-block {
  background: #fff;
  border: var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
}

.fn_product.product .product_gallery {
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--pp-muted-bg);
}

.fn_product.product .gallery-top {
  border-radius: calc(var(--pp-radius) - 8px);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.fn_product.product .gallery-top .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.fn_product.product .product_image picture {
  height: clamp(340px, 42vw, 560px);
}

.fn_product.product .product_img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fn_product.product .gallery-top .swiper-button-next,
.fn_product.product .gallery-top .swiper-button-prev {
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fn_product.product .gallery-top .swiper-button-next:after,
.fn_product.product .gallery-top .swiper-button-prev:after {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.fn_product.product .images {
  margin-bottom: 0;
}

.fn_product.product .images_item {
  opacity: 1;
}

.fn_product.product .images_item picture {
  height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.fn_product.product .images_item:hover picture,
.fn_product.product .gallery-thumbs .swiper-slide-thumb-active picture {
  transform: translateY(-2px);
  border-color: rgba(17,17,17,.18);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.fn_product.product .stickers_product-page {
  top: 18px;
  right: 18px;
  gap: 10px;
}

.fn_product.product .product_gallery .sticker,
.fn_product.product .product_gallery .fn_discount_label.sticker,
.fn_product.product .product_gallery .fn_discount_label .sticker {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.fn_product.product .product_gallery .sticker--hit {
  background: rgba(255,255,255,.92);
  color: #111;
  border: 1px solid rgba(17,17,17,.08);
}

.fn_product.product .product_gallery .sticker--discount,
.fn_product.product .product_gallery .fn_discount_label.sticker {
  background: linear-gradient(135deg, #111 0%, #2d2d2d 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.fn_product.product .product_details {
  padding: 28px 28px 24px;
  margin-bottom: 18px;
  height: 100%;
}

.fn_product.product .product_details .row {
  margin-bottom: 10px;
}

.fn_product.product .product_details .row:last-child {
  margin-bottom: 0;
}

.fn_product.product .available,
.fn_product.product .sku,
.fn_product.product .product_brand,
.fn_product.product .product_wish {
  font-size: 15px;
}

.fn_product.product .details_label {
  color: #7a8291;
}

.fn_product.product .in_stock,
.fn_product.product .no_stock {
  padding-left: 22px;
  font-weight: 600;
}

.fn_product.product .fn_variants {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fn_product.product .amount_wrap,
.fn_product.product .variant_select,
.fn_product.product .dropDownSelect2 {
  width: 100%;
}

.fn_product.product .amount {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.fn_product.product .input_amount {
  height: 48px;
  background: #fff;
}

.fn_product.product .price_wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 20px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.fn_product.product .product .price,
.fn_product.product .price {
  margin-right: 0;
  font-size: clamp(42px, 5vw, 58px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.fn_product.product .price .currency,
.fn_product.product .old_price .currency {
  font-size: .72em;
}

.fn_product.product .old_price {
  font-size: 18px;
  line-height: 1.2;
  color: #8b94a3;
}

.fn_product.product .button,
.fn_product.product .disable_button,
.fn_product.product .fast_order_button.button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.fn_product.product .button.fn_is_stock,
.fn_product.product .button.fn_is_preorder {
  background: linear-gradient(180deg, #171717 0%, #050505 100%);
  color: #fff;
  border-color: rgba(255,255,255,.08);
}

.fn_product.product .button.fn_is_stock:hover,
.fn_product.product .button.fn_is_preorder:hover,
.fn_product.product .fast_order_button.button:hover,
.fn_product.product .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.18);
}

.fn_product.product .fast_order_button.button {
  background: linear-gradient(180deg, #f59f0b 0%, #ff8400 100%);
  border-color: rgba(255, 132, 0, 0.34);
  color: #fff;
}

.fn_product.product .product_share {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.fn_product.product .tabs {
  padding: 26px;
  margin-top: 6px;
}

.fn_product.product .tabs__navigation {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.fn_product.product .tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: #f8fafc;
  transition: all .25s ease;
}

.fn_product.product .tabs__link.selected,
.fn_product.product .tabs__link:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.fn_product.product .product_description,
.fn_product.product #features {
  border-radius: 22px;
}

.fn_product.product + .related.block,
.fn_product.product + .related-articles-block {
  margin-top: 26px;
}

.related.block,
.related-articles-block {
  padding: 24px;
}

.related.block .slidehead,
.related-articles-block > .h1 {
  margin-bottom: 18px;
}

.related .products_item .preview {
  height: 100%;
}

.related .products_item .preview_image picture,
.related .products_item .preview_image .no_image {
  background: linear-gradient(180deg, #fbfbfc 0%, #f2f4f7 100%);
  border-radius: 24px 24px 0 0;
}

.related .products_item .preview .sticker--hit {
  background: rgba(255,255,255,.94);
}

.related .products_item .preview .sticker--discount {
  background: linear-gradient(135deg, #111 0%, #2d2d2d 100%);
}

@media (max-width: 1199px) {
  .fn_product.product .product_image picture {
    height: 420px;
  }
}

@media (max-width: 991px) {
  .fn_product.product .product_gallery,
  .fn_product.product .product_details,
  .fn_product.product .tabs,
  .related.block,
  .related-articles-block {
    border-radius: 24px;
  }

  .fn_product.product .product_details {
    margin-top: 0;
    padding: 22px 20px;
  }

  .fn_product.product .product_image picture {
    height: 360px;
  }

  .fn_product.product .price {
    font-size: 44px;
  }

  .fn_product.product .tabs {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .fn_product.product .h2 {
    margin-bottom: 14px;
  }

  .fn_product.product .product_gallery {
    padding: 12px;
    margin-bottom: 14px;
  }

  .fn_product.product .gallery-top .swiper-slide {
    padding: 10px;
  }

  .fn_product.product .product_image picture {
    height: 280px;
  }

  .fn_product.product .gallery-top .swiper-button-next,
  .fn_product.product .gallery-top .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .fn_product.product .images_item picture {
    height: 72px;
    border-radius: 14px;
  }

  .fn_product.product .price_wrap {
    padding: 18px 18px;
    border-radius: 20px;
  }

  .fn_product.product .price {
    font-size: 36px;
  }

  .fn_product.product .button,
  .fn_product.product .disable_button,
  .fn_product.product .fast_order_button.button {
    min-height: 54px;
    font-size: 15px;
  }

  .fn_product.product .tabs__link {
    width: 100%;
  }

  .related.block,
  .related-articles-block {
    padding: 18px;
  }
}

/* Remove date check icon only in Recommended articles */
.related_article_card__date{padding-left:12px !important;}
.related_article_card__date::before{display:none !important;content:none !important;}

/* Category product cards: keep cart/pre-order buttons aligned */
#fn_products_content .products_item{
  display:flex;
}
#fn_products_content .products_item .preview.fn_product{
  display:flex;
  width:100%;
  height:100%;
}
#fn_products_content .products_item .preview.fn_product .fn_transfer{
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
}
#fn_products_content .products_item .preview.fn_product .preview_details{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}
#fn_products_content .products_item .preview.fn_product .preview_form{
  margin-top:auto;
}
