/*
 * JC NOVA - Pie de página alegre v1.0.12
 * Diseño encapsulado para Modified Shop 3.3.
 * No requiere cambios fuera de templates/jc_nova.
 */
:root {
  --nova-red: #cf102d;
  --nova-red-dark: #aa0c24;
  --nova-ink: #202124;
  --nova-muted: #686b70;
  --nova-bg: #f4f4f2;
  --nova-card: #ffffff;
  --nova-line: #e6e4e1;
  --nova-yellow: #ffd633;
  --nova-shadow: 0 5px 18px rgba(30, 30, 30, .09);
}

html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
html { touch-action: pan-y; -webkit-overflow-scrolling: touch; }
body { min-width: 320px; min-height: 100%; touch-action: pan-y; overscroll-behavior-y: auto; background: var(--nova-bg); color: var(--nova-ink); font-family: Arial, Helvetica, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
img, picture, video, iframe { max-width: 100%; }
.layout_wrap { background: var(--nova-bg); }

.nova_topbar { display: none !important; }
.nova_topbar_inner { max-width: 1320px; margin: 0 auto; padding: 8px 20px; }
.nova_topbar i { margin-right: 7px; color: var(--nova-yellow); }
.nova_topbar span { padding: 0 9px; opacity: .65; }

.layout_header { position: fixed; top: 0 !important; left: 0; right: 0; width: 100%; margin: 0 !important; z-index: 1200; touch-action: pan-y; background: #fff; border-bottom: 1px solid var(--nova-line); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.layout_header_inner { max-width: 1320px; padding-top: 12px; padding-bottom: 12px; }
.flex_header_row { min-height: 58px; align-items: center; }
.col_logo { width: 205px; }
.col_logo a, .col_logo picture, .col_logo_checkout picture { display: block; width: 100%; height: 100%; }
.col_logo img { display: block; width: 190px; max-height: 62px; object-fit: contain; }
.col_search, .col_settings, .col_account, .col_wishlist, .col_cart, .col_menu { color: var(--nova-ink); }
#toggle_search, #toggle_settings, #toggle_account, #menu_short, .cart_short, .wishlist_short { border-radius: 999px; transition: .2s ease; }
#toggle_search:hover, #toggle_settings:hover, #toggle_account:hover, #menu_short:hover { color: var(--nova-red); background: #f8e9ec; }
.col_cart { color: var(--nova-red); }

.layout_categories { position: fixed; top: 82px; left: 0; right: 0; width: 100%; margin: 0 !important; z-index: 1100; display: block; touch-action: pan-x pan-y; background: #fff; border-bottom: 1px solid var(--nova-line); box-shadow: 0 3px 9px rgba(0,0,0,.045); }
.layout_categories + .layout_content { padding-top: 140px; }

/* Cuando Modified muestra su barra negra de administración (36 px),
   la cabecera de la tienda comienza justo debajo y nunca queda tapada. */
#admin + .layout_wrap .layout_header { top: 36px !important; }
#admin + .layout_wrap .layout_categories { top: 118px; }
.layout_categories_inner { max-width: 1320px; min-height: 58px; display: flex; align-items: stretch; padding-left: 20px; padding-right: 20px; }
.nova_menu_label { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 24px 0 0; color: var(--nova-red); font-weight: 900; font-size: 15px; letter-spacing: .4px; }
.menu_items { flex: 1 1 auto; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 2px; overflow-x: auto; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.menu_items::-webkit-scrollbar { display: none; }
.menu_items > li { flex: 0 0 auto; display: flex; align-items: stretch; }
.menu_items > li > a, .menu_items > li > span.nolink { display: flex; align-items: center; padding: 0 17px; border-bottom: 4px solid transparent; color: var(--nova-ink); font-weight: 800; font-size: 14px; white-space: nowrap; text-transform: uppercase; }
.menu_items > li > a:hover, .menu_items > li > span.nolink:hover { color: var(--nova-red); background: #fff5f6; }
.menu_items .active1 > a, .menu_items .activeparent1 > a, .menu_items .active1 > .nolink, .menu_items .activeparent1 > .nolink { color: var(--nova-red); border-bottom-color: var(--nova-red); background: #fff5f6; }
.mega_menu, .dropdown_menu { border: 0; border-radius: 0 0 14px 14px; box-shadow: var(--nova-shadow); }

.layout_content { background: var(--nova-bg); }
.content_big, .content_small { max-width: 1320px; }
.breadcrumb { color: var(--nova-muted); }
.subline, .box_products_head .title { color: var(--nova-ink); font-size: 28px; font-weight: 900; letter-spacing: -.7px; text-transform: none; }
.box_products_head { border: 0; }

.product_listing, .new_products_default .splide__list, .products_ctegory .splide__list { gap: 18px; }
.listingbox { height: 100%; padding: 0; overflow: hidden; background: var(--nova-card); border: 1px solid var(--nova-line); border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .2s ease, box-shadow .2s ease; }
.listingbox:hover { transform: translateY(-3px); box-shadow: var(--nova-shadow); }
.listingbox .lb_inner { height: 100%; padding: 0 0 18px; background: #fff; }
.lb_image { margin: 0 0 16px; background: #f1f0ed; }
.lb_image .prod_image { aspect-ratio: 16/10; }
.lb_image img { width: 100%; height: 100%; object-fit: cover; }
.lb_title, .lb_shipping, .lb_rating_icons, .lb_price, .lb_tax, .lb_expires_date, .lb_date { margin-left: 18px; margin-right: 18px; }
.lb_title { min-height: 48px; margin-bottom: 6px; }
.lb_title a { color: var(--nova-ink); font-size: 18px; line-height: 1.25; font-weight: 900; }
.lb_title a:hover { color: var(--nova-red); }
.lb_shipping, .lb_tax { color: var(--nova-muted); font-size: 11px; }
.lb_price { margin-top: 12px; color: var(--nova-red); }
.lb_price .value_price, .lb_price .standard_price, .lb_price .new_price { font-size: 24px; line-height: 1; font-weight: 900; }
.lb_new_flag, .lr_new_flag { top: 12px; left: 12px; right: auto; padding: 7px 11px; border-radius: 999px; background: var(--nova-yellow); color: #272100; font-size: 11px; font-weight: 900; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.lb_buttons { position: static; opacity: 1; transform: none; width: auto; margin: 15px 18px 0; padding: 0; background: transparent; display: flex; gap: 8px; }
.lb_buttons .cssButton { flex: 1 1 auto; }
.lb_buttons .cssButton button, .lb_buttons a.cssButton, .lr_buttons .cssButton button, .lr_buttons a.cssButton { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: var(--nova-red); color: #fff; font-size: 14px; font-weight: 900; box-shadow: none; }
.lb_buttons .cssButton:hover button, .lb_buttons a.cssButton:hover, .lr_buttons .cssButton:hover button, .lr_buttons a.cssButton:hover { background: var(--nova-red-dark); color: #fff; }

.listingrow { margin-bottom: 18px; overflow: hidden; background: #fff; border: 1px solid var(--nova-line); border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.lr_title a { color: var(--nova-ink); font-size: 20px; font-weight: 900; }
.lr_desc { color: var(--nova-muted); font-size: 14px; line-height: 1.45; }
.lr_price { color: var(--nova-red); font-size: 23px; font-weight: 900; }

.cssButton button, a.cssButton, input[type="submit"] { border-radius: 8px; font-weight: 800; }
.cssButtonColor2 button, .cssButtonColor2 { background: var(--nova-red); color: #fff; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea { border: 1px solid #d8d5d1; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--nova-red); box-shadow: 0 0 0 3px rgba(207,16,45,.12); outline: none; }

.layout_subfooter { position: relative; overflow: hidden; background: #fff4d2; color: var(--nova-ink); border-top: 5px solid var(--nova-yellow); }
.layout_subfooter::before, .layout_subfooter::after { content: ''; position: absolute; border-radius: 50%; background: var(--nova-yellow); opacity: .35; pointer-events: none; }
.layout_subfooter::before { width: 150px; height: 150px; left: -70px; top: -75px; }
.layout_subfooter::after { width: 95px; height: 95px; right: -35px; bottom: -45px; }
.sf_newsletter_heading { color: var(--nova-red); font-size: 23px; font-weight: 900; }
.sf_newsletter_text { color: #4e4434; }
.sf_newsletter_input input { min-height: 50px; border: 2px solid #ead58a; }
.sf_newsletter_button .cssButton, .sf_newsletter_button button { min-height: 50px; border: 0; background: var(--nova-red); color: #fff; }

.layout_footer { position: relative; overflow: hidden; background: linear-gradient(145deg, #cf102d 0%, #aa0c24 100%); color: #fff; border-top: 8px solid var(--nova-yellow); }
.layout_footer::after { content: ''; position: absolute; width: 210px; height: 210px; right: -90px; bottom: -95px; border: 24px solid rgba(255,214,51,.18); border-radius: 50%; pointer-events: none; }
.footer_item .content_box { height: 100%; padding: 18px; border-radius: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); }
.footer_item .content_box_header { color: #fff !important; font-size: 17px; font-weight: 900; }
.footer_item .content_box_header::after { content: ''; display: block; width: 34px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--nova-yellow); }
.footer_item .content_box_text, .footer_item ul.content_box_list li, .footer_item ul.content_box_list li a, .footer_item ul.content_box_list li a span { color: #fff !important; font-size: 14px; line-height: 1.55; }
.footer_item ul.content_box_list li a { padding: 6px 0 6px 17px; }
.footer_item ul.content_box_list li a::before { content: '›'; position: absolute; left: 0; color: var(--nova-yellow); font-size: 20px; font-weight: 900; }
.footer_item ul.content_box_list li a:hover, .footer_item ul.content_box_list li a:hover span { color: var(--nova-yellow) !important; }
.content_box_social a { color: #fff !important; }
.content_box_social a:hover { color: var(--nova-yellow) !important; transform: translateY(-2px); }
.content_box_payment > span { padding: 4px; background: #fff; }
.content_box_payment > span img { filter: none; opacity: 1; }
.mod_copyright, .mod_copyright a, .mod_copyright a:hover, .copyright, .copyright a, .parseTime { color: rgba(255,255,255,.9) !important; }
.mod_copyright { border-top: 1px solid rgba(255,255,255,.25); }

/* Notebooks y pantallas medianas */
@media (min-width: 986px) and (max-width: 1366px) {
  .layout_header_inner, .layout_categories_inner, .content_big, .content_small { max-width: 1180px; }
  .menu_items > li > a, .menu_items > li > span.nolink { padding-left: 12px; padding-right: 12px; font-size: 13px; }
  .nova_menu_label { padding-right: 16px; }
}

@media (max-width: 985px) {
  .layout_wrap, .layout_content, .content_big, .content_small { touch-action: pan-y; }
  .layout_header { top: 0 !important; }
  .layout_header_inner { padding: 8px 12px; }
  .flex_header_row { min-height: 50px; }
  .col_logo { width: auto; flex: 1 1 auto; }
  .col_logo img { width: 135px; max-height: 48px; }
  .col_filler, .col_wishlist { display: none; }
  .col_settings { display: block !important; }
  .col_cart, .col_account, .col_search, .col_settings, .col_menu { width: 43px; padding-left: 5px; }
  .layout_categories { top: 67px; }
  .layout_categories + .layout_content { padding-top: 119px; }
  #admin + .layout_wrap .layout_header { top: 36px !important; }
  #admin + .layout_wrap .layout_categories { top: 103px; }
  .layout_categories_inner { min-height: 52px; padding: 0; }
  .nova_menu_label { display: none; }
  .menu_items { padding: 0 8px; }
  .menu_items > li > a, .menu_items > li > span.nolink { min-height: 52px; padding: 0 13px; font-size: 13px; }
  .subline, .box_products_head .title { font-size: 23px; }
}

@media (max-width: 600px) {
  .layout_subfooter { padding: 42px 0; }
  .layout_footer { padding-top: 38px; }
  .footer_row { padding: 0 12px; }
  .footer_item { padding: 0; margin-bottom: 14px; }
  .footer_item .content_box { padding: 18px 20px; }
  .footer_item .content_box_header { font-size: 18px; }
  .content_big, .content_small { padding-left: 12px; padding-right: 12px; }
  .listingbox { border-radius: 12px; }
  .lb_title a { font-size: 17px; }
  .lb_price .value_price, .lb_price .standard_price, .lb_price .new_price { font-size: 22px; }
  .listingrow { display: grid; grid-template-columns: 115px 1fr; }
  .lr_image { width: 115px; }
  .lr_content, .lr_action { width: auto; padding: 12px; }
  .lr_action { grid-column: 2; padding-top: 0; }
}

/* Móviles habituales */
@media (max-width: 480px) {
  .layout_header_inner { padding-left: 8px; padding-right: 8px; }
  .col_logo { min-width: 0; }
  .col_logo img { width: 112px; height: 48px; object-fit: contain; object-position: left center; }
  .col_search { display: block !important; }
  .col_cart, .col_account, .col_search, .col_settings, .col_menu { width: 40px; padding-left: 2px; }
  #cart_short, #account_short, #settings_short, #menu_short, #search_short { transform: scale(.94); transform-origin: center; }
  .menu_items { padding-left: 6px; padding-right: 6px; }
  .menu_items > li > a, .menu_items > li > span.nolink { padding-left: 12px; padding-right: 12px; }
  .breadcrumb { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .product_listing { width: 100%; margin-left: 0; margin-right: 0; }
  .listingbox, .listingrow { max-width: 100%; }
  .lb_buttons { flex-wrap: wrap; }
  .lb_buttons .cssButton { min-width: 120px; }
  input, select, textarea, button { max-width: 100%; }
}

/* Móviles estrechos: conserva logo, carrito y menú sin cortes */
@media (max-width: 374px) {
  .layout_header_inner { padding-left: 5px; padding-right: 5px; }
  .col_logo img { width: 94px; height: 44px; }
  .col_search { display: block !important; }
  .col_cart, .col_account, .col_search, .col_settings, .col_menu { width: 38px; padding-left: 0; }
  #cart_short, #account_short, #settings_short, #menu_short, #search_short { transform: scale(.88); }
  .content_big, .content_small { padding-left: 9px; padding-right: 9px; }
  .listingrow { grid-template-columns: 96px minmax(0, 1fr); }
  .lr_image { width: 96px; }
  .lr_title a { font-size: 17px; }
}

/* Pantallas grandes */
@media (min-width: 1600px) {
  .layout_header_inner, .layout_categories_inner, .content_big, .content_small { max-width: 1440px; }
}
