/* ===============================
   Base / Reset
   =============================== */
html,
body {
  padding: 0;
  height: 100%;
}

/* ===============================
   Typography
   =============================== */
@font-face {
  font-family: "Franklin Gothic Book";
  src: url("/wp-content/themes/storefront-child/assets/fonts/FranklinGothicBook.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

body,
button,
input,
select,
textarea,
p {
  font-family: "Franklin Gothic Book", Arial, sans-serif;
  font-size: 14px;
  color: #000;
  letter-spacing: 0.06em;
  line-height: 1.25em;
}

h1 {
  font-weight: 900;
  font-size: 1.5rem;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
}

ul.products li.product .woocommerce-loop-product__title {
  font-weight: 900;
  font-size: 1.5rem;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0;
	padding: 0;
	margin: 2px;
}

strong {
  font-weight: 600;
	font-family: Helvetica, Arial, sans-serif;
}
p.uwa_auction_reserve_not_met strong{
	 font-weight: 500;
}

.woocommerce-tabs .panel h2:first-of-type {
  font-size: 1.41575em;
}

@media (max-width: 991px) {
.woocommerce-MyAccount-content h2 {
	font-size: 1.5em !important;
	 font-weight: 500;
	padding: 20px 0 0 0 
	}
}

/* ===============================
   Links
   =============================== */
a {
	color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===============================
   Buttons (scoped) & Forms
   =============================== */
.site .btn,
.site a.button,
.site .wp-block-button__link,
.site .woocommerce a.button,
.site .woocommerce button.button,
.site .woocommerce input.button,
.site .woocommerce #respond input#submit,
.site .woocommerce .checkout-button,
.site .woocommerce .place-order .button,
.site .woocommerce button.alt,
.site .woocommerce a.button.alt,
.site .uwa_auction_bid_button,
.site .uwa_auction_buy_now_button,
.site .uwa_private_send,
.site .uwa_watchlist_button,
.site .uwa_bid_button,
.site [class*="uwa_"] .button,
.site [class*="auction"] .button {
  background-color: #000;
  color: #fff;
  font-weight: 500;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

/* Exclude header/menu toggles explicitly */
.nak-burger,
.menu-toggle,
.hamburger,
.nav-toggle,
.mobile-nav-toggle,
.nak-overlay__close {
  background: transparent;
  color: inherit;
}

/* Hover / focus */
.site a.button:hover,
.site .woocommerce a.button:hover,
.site .woocommerce button.button:hover,
.site .woocommerce input.button:hover,
.site .woocommerce #respond input#submit:hover,
.site .woocommerce .button:hover,
.site .woocommerce .checkout-button:hover,
.site .woocommerce .place-order .button:hover,
.site .woocommerce a.button.alt:hover,
.site .woocommerce button.button.alt:hover {
  background-color: #9999ff;
  color: #000;
}

.site a.button:focus,
.site .woocommerce a.button:focus,
.site .woocommerce button.button:focus {
  outline: 2px solid rgba(153, 153, 255, 0.9);
  outline-offset: 2px;
  box-shadow: none;
}

/* Disabled */
.site .woocommerce .button:disabled,
.site .woocommerce .button.disabled,
.site button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Optional: “alt” style reversed */
.site .woocommerce a.button.alt,
.site .woocommerce button.button.alt,
.site .woocommerce input.button.alt,
.site .woocommerce #respond input#submit.alt {
  background-color: #9999ff;
  color: #000;
}

/* UWA corner rounding in sidebar */
.right-sidebar form#uwa_auction_form_direct button#placebidbutton_direct,
.right-sidebar .uwa_auction_form .bid_button {
  border-radius: 5px;
}

form {
	padding-left: 35%;
}

/* Undo global form padding on My Account (login/register) page */
body.woocommerce-account .woocommerce form,
body.woocommerce-account form.woocommerce-form,
body.woocommerce-account .u-columns form,
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
  padding-left: 0 !important;
  margin-left: 0 !important; /* in case margin was used anywhere */
}


/* ===============================
   Header & Footer
   =============================== */
.site-header {
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.secondary-navigation {
  display: none;
}

.nak-row--top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  padding-bottom: 20px;
}

.nak-brand__logo img {
  height: auto;
}

img.custom-logo {
  padding: 10px;
}

@media (max-width: 991px) {
  img.custom-logo {
    padding: 0 30px 0 0;
  }
}

.nak-brand__tagline {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.nak-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nak-menu > li > a {
  display: block;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: inherit;
}

.nak-menu > li.current-menu-item > a,
.nak-menu > li.current_page_item > a,
.nak-menu > li > a:hover,
.nak-menu > li > a:focus {
  text-decoration: none;
}

/* Bottom row: cart (desktop) */
.nak-row--bottom {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 20px;
}

.nak-bottom__right {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nak-cartbtn__count {
  color: blue;
  padding-right: 10px;
}

.nak-cartbtn__subtotal {
  color: green;
}

/* Mobile menu */
.nak-mobile-controls {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

@media (max-width: 991px) {
  .nak-mobile-controls {
    position: absolute;
    top: 25px;
    right: 10px;
    display: flex;
  }

  .nak-row--top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nak-nav--primary {
    display: none;
  }

  /* Hide search/cart on mobile (confirm this is desired) */
  .nak-row--bottom,
  .nak-search--desktop,
  .nak-cart--desktop,
  .nak-search-form,
  .widget_product_search,
  .site-search,
  .storefront-header .site-search,
  .woocommerce-product-search {
    display: none;
  }
	
	.home.blog .site-header, .home.page:not(.page-template-template-homepage) .site-header, .home.post-type-archive-product .site-header {
		margin-bottom: 0;
	}
	
	.nak-row--top {
		padding: 0
	}
	
	
}

.nak-burger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  height: 50px;
}

.nak-burger__bar {
  width: 50px;
  height: 6px;
  background: #000;
  display: block;
}

.nak-burger__bar + .nak-burger__bar {
  margin-top: 8px;
}

.nak-overlay[hidden] {
  display: none;
}

.nak-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.nak-overlay__inner {
  position: relative;
  max-width: 800px;
  padding: 60px;
  font-size: 5vw;
  text-align: center;
}

.nak-overlay__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.nak-menu--overlay {
  display: block;
}

.nak-menu--overlay > li > a {
  display: block;
  padding: 0 8px 10% 8px;
  border-radius: 0.5rem;
}

.nak-no-scroll {
  overflow: hidden;
}

@media (min-width: 992px) {
  .nak-mobile-controls,
  .nak-overlay {
    display: none !important;
  }

  .nak-row--bottom {
    display: flex;
  }
}



/* Banner unter dem Menü */


/* Yellow banner */
.nak-wc-banner {
  background: #000;
  height: 35px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
	margin-bottom: 40px
}

/* Track for scrolling text */
.nak-wc-banner__inner {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Marquee text */
.nak-wc-banner__inner p {
	color: #fff;
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  padding-left: 100%; /* ensures start fully off-screen */
  animation: nakMarquee 25s linear infinite;
}

/* Animation: right → left */
@keyframes nakMarquee {
  0% {
    transform: translateX(0); /* starts completely outside the screen */
  }
  100% {
    transform: translateX(-100%); /* moves text completely out on the left */
  }
}




/* Footer (sticky) */
#page.hfeed.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content.site-content {
  flex: 1 0 auto;
}

#colophon.site-footer {
  margin-top: auto;
}

.widget_nav_menu ul li::before {
  content: none;
}

.widget_nav_menu ul li {
  padding-left: 0;
}

.footer_uwa_copyright {
  display: none;
}

/* Handheld footer bar */
@media (max-width: 991px) {
  .storefront-handheld-footer-bar,
  .storefront-handheld-footer-bar ul {
    display: flex !important;
    align-items: stretch;
    justify-content: space-around;
    width: 100%;
  }

  .storefront-handheld-footer-bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .storefront-handheld-footer-bar li {
    flex: 1 1 0;
    text-align: center;
  }

  .storefront-handheld-footer-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 6px 8px;
    text-decoration: none;
  }

  .storefront-handheld-footer-bar .title {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
  }
}

@media (min-width: 992px) {
  .storefront-handheld-footer-bar {
    display: none !important;
  }
}

/* ---- Navigation ---- */
.storefront-breadcrumb {
  display: none;
}


/* ===============================
   Content Pages
   =============================== */
body.page .entry-content p {
  padding-left: 35%;
}

body.single-product .entry-content p,
.woocommerce-result-count,
.entry-content .woocommerce p {
  padding: 0;
}



/*Exlude*/
body.single-product .entry-content p, .woocommerce-result-count {
  padding-left: 0 !important; /* reset for product pages result count */
}

.woocommerce-result-count {
  display: none;
}

.entry-content .woocommerce p { 
padding: 0; /* reset for product pages */
}


@media (max-width: 991px) {
  .entry-content p, body.page .entry-content p {
    padding-left: 0;
  }
}


/* Remove the 35% left padding on WooCommerce My Account pages */
body.woocommerce-account .entry-content p,
body.woocommerce-account .woocommerce p {
  padding-left: 0 !important;
}

body.woocommerce-account .entry-content,
body.woocommerce-account .woocommerce,
body.woocommerce-account form {
  padding-left: 0 !important;
}



/* ===============================
   Width / Containers
   =============================== */
body.single-product .col-full {
  max-width: none;
  width: 100%;
  padding-left: 10vw;
  padding-right: 10vw;
  box-sizing: border-box;
}

body.single-product .content-area,
body.single-product .site-main,
body.single-product div.product {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  body.single-product .col-full {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.col-full {
  max-width: 100%;
  padding-left: 10vw;
  padding-right: 10vw;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .col-full {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ===============================
   Shop Overview / Grid
   =============================== */
.woocommerce ul.products.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 980px) {
  .woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products.columns-3 {
    grid-template-columns: 1fr;
  }
}

ul.products,
.wc-block-grid__products {
  margin: 0 auto !important;
}

ul.products li.product img {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
}

p.woocommerce-result-count {
  margin: 0 0 30px;
}


/* Remove clearfix pseudo-elements */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
  display: none;
}

/* Neutralize legacy floats + prep for badge positioning */
.woocommerce ul.products li.product {
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  position: relative;
  overflow: hidden;
}

/* Auction status badge — single source of truth */
.woocommerce ul.products li.product .product_type_auction {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  color: #6263ff;
  font-size: 0.75rem;
  font-weight: 200;
  padding: 0 2px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  z-index: 5;
}

.woocommerce ul.products li.product .product_type_auction:hover,
.woocommerce ul.products li.product .product_type_auction:focus {
  background: none;
  color: #000;
  border: none;
  box-shadow: none;
  text-decoration: none;
}

/* Align "You are Winning Loosing" in single and archive*/
li.product .uwa_imgtext {
    top: 0 !important;

    z-index: 20 !important; /* Appear above image */  
}



.uwa_imgtext {
	  display: flex !important;
    justify-content: flex-end !important;
    top: 10px;
	right: 0px;
    z-index: 20;
}

span.uwa_winning,
span.uwa_losing {
	position: relative;
    font-size: 0.75rem;
    font-weight: 200;
    padding: 20px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 3;
    z-index: 5;
}




/* ===============================
   Product Single
   =============================== */
.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  height: auto;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li,
.storefront-full-width-content.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
  margin-right: 2px;
}

/* Center product gallery image on tablets and smaller screens */
@media (max-width: 1024px) {
  .single-product div.product .woocommerce-product-gallery {
    float: none !important;
    margin: 0 auto !important;
		padding: 0 0 30px 0;
    display: flex !important;
    justify-content: center !important;
  }

  .single-product div.product .woocommerce-product-gallery__wrapper,
  .single-product div.product .woocommerce-product-gallery__image {
    text-align: center !important;
    margin: 0 auto !important;
  }

  .single-product div.product .woocommerce-product-gallery__image img {
    margin: 0 auto !important;
    display: inline-block !important;
  }
}


/* Gallery trigger button */
.woocommerce div.product div.images {
  position: relative;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 15px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
  text-decoration: none;
  opacity: 0.9;
  z-index: 10;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover {
  background: rgba(0, 0, 0, 0.9);
  opacity: 1;
}

.single-product div.product .product_meta a {
  font-weight: 400;
}

.single-product div.product.product-type-auction p.price{
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
	letter-spacing: 0.02;
}


.price {
  padding: 5px 0 30px;
  color: #6263ff !important;
}

.uwa_auction_product_countdown {
  box-shadow: none;
  background-color: #9999ff !important;
}

.product-type-auction .woocommerce-product-details__short-description,
.uwa-timezone {
  border-bottom: 1px solid #000;
}

/* Info banners */
.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
  background-color: #000;
  color: #fff;
}

/* Hide category/tags under product details */
.single-product .product_meta,
.wwn-watchlist {
  display: none !important;
}

/* UWA bid form: single-column */
.single-product form#uwa_auction_form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.single-product form#uwa_auction_form .quantity.buttons_added {
  width: 100%;
  margin: 0;
}

.single-product form#uwa_auction_form .quantity.buttons_added input[type="number"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.single-product form#uwa_auction_form .bid_button.button,
.single-product form#uwa_auction_form #placebidbutton {
  width: 100% !important;
  display: block;
  float: none !important;
  margin: 0;
}

@media (min-width: 768px) {
  .single-product form#uwa_auction_form {
    display: flex;
    flex-direction: column;
  }
}

.single-product.woocommerce div.product #auction-product-type form.cart div.quantity {
  width: 100%;
}


.storefront-full-width-content.single-product div.product .summary{
	margin-bottom: 0
}


/* Tabs Beschreibung + Bids + Private Message */
@media (min-width: 768px) {
.storefront-full-width-content .woocommerce-tabs .panel{
	padding-left: 9%;
}
	}

/* 1. Hide the tab navigation bar (the buttons) */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: none;
}

/* 2. Show all tab panels as normal stacked content */
.woocommerce div.product .woocommerce-tabs .panel {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

/* 3. Make sure the panel titles (h2) are visible */
.woocommerce div.product .woocommerce-tabs .panel > h2 {
  display: block;
text-align: left !important;
    margin-left: 0 !important;}


/* Hide the UWA Private Message tab entirely */
#tab-title-uwa_auction_priate_msg_tab,
#tab-uwa_auction_private_msg_tab {
    display: none !important;
}


td.started {
  padding-left: 0;
}


.shipping-fields-wrapper.hidden {
    display: none !important;
}

@media (min-width: 768px) {
	.storefront-full-width-content .woocommerce-tabs .panel {
		margin-bottom: 15px;
	}
}

/*You won*/

/* --- Replace the winner box after the auction has ended --- */
/* Only target the blue box when it contains a Pay Now button */
.uwa_auction_product_ajax_change:has(a.button) {
    position: relative;
}

/* Hide the original texts + Pay Now button */
.uwa_auction_product_ajax_change:has(a.button) p,
.uwa_auction_product_ajax_change:has(a.button) a.button {
    display: none !important;
}

/* Inject your custom message */
.uwa_auction_product_ajax_change:has(a.button)::before {
    content: "Congratulations! You have won!\A\ANAK will contact you within the next day and you will receive an invoice for your purchase.";
    display: block;
    white-space: pre-line; /* makes the \A work as line breaks */
    font-size: 14px;
    line-height: 1.4;
}


/* Hide "Pay Now" button for auction winner on single product page */
.single-product .summary.entry-summary a.uwa_pay_now {
    display: none !important;
}


.ua-winner-message {
	background-color: #77a464;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 20px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  z-index: 5;
}

.ua-winner-message p {
		color: #fff;
}

