/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

:root {
  --wp--preset--font-family--body: "lora", serif;
  --wp--preset--font-family--heading: "lora", serif;
  --wp--preset--font-family--lora: "lora", serif;
  --wp--preset--font-family--typewriter: "secret-service-typewriter", serif;
  --wp--preset--font-family--atrament: "atrament-web", sans;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* Layout basics */
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 0px;
}

/* Three columns */
.nav-section {
  display: flex;
  align-items: center;
}

.nav-left,
.nav-right {
  width: 33.3333%;
}

.nav-center {
  width: 60%;
}

/* Medium breakpoint: center becomes 1/3, search visible */
@media (min-width: 768px) {
  .nav-center {
    width: 33.3333%;
  }

  .search-wrapper {
    display: block;
    width: 100%;
  }
}

/* Left section spacing */
.nav-left {
  padding: 0.75rem; /* p-3 */
}

/* Right section spacing */
.nav-cart {
  padding: 0.75rem;
}

/* Icon buttons (menu + cart) */
.icon-button {
  display: flex;
  height: 2.5rem;  /* h-10 */
  width: 2.5rem;   /* w-10 */
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid #e5e5e5; /* border-neutral-200 */
  color: #000;
  background-color: transparent;
  cursor: pointer;
  transition: color 150ms ease-in-out,
              background-color 150ms ease-in-out,
              border-color 150ms ease-in-out;
}

/* SVG icon sizing */
.icon-svg {
  height: 1rem; /* h-4 */
  width: auto;
}

/* Cart hover scale */
.cart-button .cart-icon {
  transition: transform 150ms ease-in-out;
}

.cart-button:hover .cart-icon {
  transform: scale(1.1);
}

/* Center badge area */
.nav-center-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Gradient badge container */
.nav-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(
    to right,
    #facc15, /* yellow-400 */
    #eab308, /* yellow-500 */
    #f97316  /* orange-500 */
  );
  border-bottom-left-radius: 0.75rem; /* rounded-b-xl */
  border-bottom-right-radius: 0.75rem;
}

/* Badge title text */
.nav-badge-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem; 
  line-height: 1.25rem;  
  font-family: var(--wp--preset--font-family--typewriter);
}

/* Small breakpoint: bigger title text */
@media (min-width: 640px) {
  .nav-badge-title {
    font-size: 1.125rem; /* text-lg */
  }
}

/* Search area */
.search-wrapper {
  display: none; /* hidden by default, shown at md+ */
}

/* Form sizing: max-width 550px, responsive widths */
.search-form {
  position: relative;
  width: 100%;
  max-width: 550px;     /* w-max-[550px] equivalent */
}

@media (min-width: 1024px) {
  .search-form {
    width: 20rem;       /* lg:w-80 => 320px */
  }
}

@media (min-width: 1280px) {
  .search-form {
    width: 100%;        /* xl:w-full */
  }
}

/* Search input style */
.search-input {
  height: 2.5rem;           /* h-10 */
  width: 100%;
  border-radius: 0.5rem;    /* rounded-lg */
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  padding: 0.5rem 1rem;     /* py-2 px-4 */
  color: #000000;
  font-size: 1rem;          /* base */
}

.search-input::placeholder {
  color: #737373;           /* neutral-500 */
}

/* md:text-sm */
@media (min-width: 768px) {
  .search-input {
    font-size: 0.875rem;
  }
}

/* Right section content alignment */
.nav-right {
  justify-content: flex-end;
}

.wc-block-mini-cart__badge {
    font-weight: 400;
    height: 20px;
    width: 20px;
    background-color: #f97316;
    font-size: 14px;
}

.navigation-block {
	margin-top: 12px;
}

.nav-icons-row {
  max-height: 50px;
  gap: 5px;
}

/* Backdrop like Woo mini-cart */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  z-index: 99999 !important;
  padding: 0 !important;
}

/* Turn the nav overlay content into a right-side panel */
.wp-block-navigation__responsive-container-content {
  position: absolute !important;
  top: 0;
  right: 0;
  height: 100vh;
  width: 480px;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0,0,0,0.15);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .wp-block-navigation__responsive-container-content {
    width: 100%;
  }
}

.has-modal-open .wp-block-navigation__responsive-close {
    margin-right: 0px;
}

/* Remove the weird floating layout from default TT5 nav */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  margin: 0 !important;
}

/* Fix the close button position */
button[aria-label="Close menu"] {
  position: absolute !important;
  top: 1rem;
  right: 1rem;
  z-index: 100000;
}

.wc-block-components-product-button__button {
  display: inline-block;
  background: linear-gradient(to right, #facc15, #eab308, #f97316);            
  border-radius: 9999px;        
  color: white;                 
  font-weight: 500;
  padding: 10px 20px 10px 20px;
}

.added_to_cart {
  display: none !important;
}

.wp-block-navigation-item__label {
  font-family: var(--wp--preset--font-family--atrament);
  font-weight: 400;
  font-size: 18px;
}

.wp-block-woocommerce-mini-cart-title-label-block, .wp-block-woocommerce-mini-cart-title-items-counter-block {
  font-family: var(--wp--preset--font-family--atrament);
  font-weight: 700;
  font-size: 24px;
}

.sfao-footer {
  margin: 40px 0 40px 0 !important;
  border-top: 1px solid #e5e5e5 !important;
  padding-top: 20px !important;
}
