
/*Theme Name: Kodelr Notion*/
/*Theme URI: https://kodelr.com/*/
/*Author: Kodelr*/
/*Author URI: https://kodelr.com/*/
/*Description: Tema minimalista limpio inspirado en el diseño moderno, enfocado en contenido y simplicidad.*/
/*Version: 2.0*/
/*License: GNU General Public License v2 or later*/
/*License URI: https://www.gnu.org/licenses/gpl-2.0.html*/
/*Text Domain: kodelr*/
/*Tags: minimal, clean, modern, white, content-focused*/


/* ===========================
   TOGGLES PARA POLÍTICAS DE COOKIES/PRIVACIDAD/TÉRMINOS
   =========================== */

/* Estilos específicos para details/summary toggles basados en asd.css */
details summary::marker,
details summary::-webkit-details-marker {
    display: none;
    content: "";
}

details summary {
    display: block;
    cursor: pointer;
    background-color: rgba(239,239,239,0.5);
    margin: 5px 0;
    padding: 5px 10px;
    align-items: center;
    justify-items: stretch;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

details summary:hover {
    background-color: rgba(239,239,239,0.7);
}

details summary div {
    display: flex;
    grid-gap: 15px;
    align-items: center;
    justify-content: space-between;
}

details summary div h3 {
    grid-area: heading;
    border-bottom: 0;
}

details summary div:after {
    grid-area: chevron;
    cursor: pointer;
    content: "▼";
    transform: rotate(0);
    transition: all .5s ease;
    text-align: center;
    font-size: 14px;
    color: #666;
}

details[open] {
    padding-bottom: 1px;
}

details[open] summary div:after {
    transform: rotate(180deg);
}

details {
    background-color: rgba(239,239,239,0.25);
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}


details .cookies-per-purpose {
    border: 1px solid #dadada;
    grid-gap: 1px;
    background-color: #dadada;
    margin-bottom: 10px;
    display: grid;
    border-radius: 4px;
    overflow: hidden;
}

details .cookies-per-purpose div {
    background-color: white;
    padding: 15px;
}

/* Responsive para los toggles */
@media only screen and (min-width: 600px) {
    details .cookies-per-purpose {
        grid-column: span 2;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template: "purpose purpose purpose" "header1 header2 header3" auto;
    }

    details .cookies-per-purpose .purpose {
        grid-area: purpose;
    }

    details .cookies-per-purpose div:nth-child(3n+2),
    details .cookies-per-purpose div:nth-child(3n+3),
    details .cookies-per-purpose div:nth-child(3n+4) {
        background-color: #f7f7f7;
    }
}

@media only screen and (max-width: 600px) {
    details .cookies-per-purpose {
        grid-template-columns: 100px 1fr;
    }

    details .cookies-per-purpose .purpose {
        grid-column: span 2;
    }

    details .cookies-per-purpose div:nth-child(even) {
        background-color: #f7f7f7;
    }
}



/* Personalizar */
.intl-tel-input {
    position: relative;
    display: inline-block;
    width: stretch !important;
}

.intl-tel-input.separate-dial-code .selected-dial-code {
    display: table-cell;
    vertical-align: middle;
    padding-left: 28px;
    padding-right: 28px !important;
}

input.input-text.iti-initialized {
    padding-left: 115px !important;
}


/* ===========================
   WOOCOMMERCE
   =========================== */

a.added_to_cart.wc-forward {
    width: 100%;
}

section.woocommerce-order-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

input[type="checkbox" i] {
	height:20px;
	width: 20px;
	vertical-align: middle;
}

input[type="radio" i] {
	height:20px;
	width: 20px;
	vertical-align: middle;
}

[class*=" woo-wallet-icon-"], [class^=woo-wallet-icon-] {
    font-weight: 600;
}

/* table.shop_table.woocommerce-checkout-review-order-table .product-name {
    display: flex;
} */
	
/* Payment Methods */
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: rgb(225 225 225 / 50%);
    border-radius: 5px;
}

#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 1em;
    margin: 1em 0;
    font-size: .92em;
    border-radius: 2px;
    line-height: 1.5;
    background-color: #ffffff;
    color: #515151;
}

#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
    content: "";
    display: block;
    border: 1em solid #ffffff;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
    position: absolute;
    top: -.75em;
    left: 0;
    margin: -1em 0 0 2em;
}

.woocommerce a.remove {
    display: block;
    font-size: 1.5em;
    height: 1em;
    width: 1em;
    text-align: center;
    line-height: 0.8;
    border-radius: 100%;
    color: var(--wc-red) !important;
    text-decoration: none;
    font-weight: 700;
    border: 0;
}

.intl-tel-input .country-list {
    width: 100%;
}

.intl-tel-input.allow-dropdown .flag-container, .intl-tel-input.separate-dial-code .flag-container {
    width: 100%;
}

/*mas estilos de woocoommerce*/

.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 1em;
    box-shadow: none;
    border-radius: 10px 10px 0px 0px;
}

.woocommerce ul#shipping_method li input {
    margin: 0px .4375em 2px 0;
    vertical-align: middle;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    padding: 0px 0px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0px 1px 1px rgb(0 0 0 / 8%);
}



/*
.woocommerce-billing-fields__field-wrapper {
    border: 1px solid rgb(234, 237, 244);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
}
*/
.woocommerce form .form-row .input-text{
	border: 2px solid #ced4da;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
    border: 2px solid #ced4da;
}

.woocommerce-product-gallery__image {
    border-radius: 6px;
}

.woocommerce div.product form.cart .variations select {
    height: 35px;
    padding: 5px 10px;
	    border: 1px solid #ced4da;
    border-radius: 3px;
}

/* WooCommerce Buttons */





.input-text {
		height: 30px;
	}

.woocommerce table.cart td.actions .input-text, .woocommerce-page #content table.cart td.actions .input-text, .woocommerce-page table.cart td.actions .input-text {
    width: auto;
}


@media (max-width: 768px) {
    .woocommerce #content table.cart .product-thumbnail, .woocommerce table.cart .product-thumbnail, .woocommerce-page #content table.cart .product-thumbnail, .woocommerce-page table.cart .product-thumbnail {
        display: flex;
        justify-content: center;
    }
td.product-thumbnail:before {
    display: none;
}

#add_payment_method table.cart img, .woocommerce-cart table.cart img, .woocommerce-checkout table.cart img {
    width: 150px;
    box-shadow: none;
    border-radius: 10px;
}
}



/* WooCommerce Layout */
.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
  float: left;
  width: 100%;
}

.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    float: right;
    width: 100%;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions .button {
  margin: 0 0 0 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin-left: 0px;
    margin-bottom: 15px;
    display: flex;
    column-gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation{
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content{
	width: 100%;
}

/* ===========================

   =========================== */

.boton-carrito-flotante {
    text-align: center;
    bottom: 20px;
    position: sticky;
    width: 100%;
    z-index: 99;
}

/* Enlace del carrito */
a.cart-contents {
    background: #f5f8f7;
	  padding: 10px;
	border: 1px solid #ddd;
	border-radius:20px;
		  font-weight: 600;
  text-decoration: none;
	color: #37352f;
}


/* Contador burbuja */
.boton-carrito-flotante .cart-count {
  background: #e63946;
  color: #fff;
  line-height: 0.6;
  border-radius: 50%;
  padding: 6px 7px;
  display: inline-block;
  margin-right: 5px;
}

/* ===========================
   TIPOGRAFÍA
   =========================== */
/* Enlaces en el contenido */
a:-webkit-any-link {
    color: #37352f;
    text-underline-offset: 3px;
}

.button {
  display: inline-block;
  padding: 4px 10px;
  background: #37352f !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.button:hover {
  background: #555148 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}



* { margin: 0; }
body { font: 16px/1.7 -apple-system, 'Segoe UI', sans-serif; color: #37352f; max-width: 720px; margin: 0 auto; padding: 60px 24px 0; }
h1 { font-size: 2.5em; font-weight: 700; margin-bottom: .3em; line-height: 1.2 }
h1:empty::before { content: 'Untitled'; color: #c7c5c1 }
h2 { font-size: 1.5em; font-weight: 600; margin: 1.4em 0 .4em }
p { margin-bottom: .8em; color: #37352f }
blockquote { border-left: 3px solid #37352f; padding-left: 14px; margin: .8em 0; color: #6b6b6b }
code { background: #f1f1ef; padding: 2px 5px; border-radius: 3px; font-size: .9em }
hr { border: none; border-top: 1px solid #e8e7e4; margin: 1.6em 0 }
ul, ol { padding-left: 1.6em; margin-bottom: .8em }
li { margin-bottom: .2em }
.tag { display: inline-block; background: #f1f1ef; padding: 2px 8px; border-radius: 3px; font-size: .85em; margin-right: 4px }
img {border: 1px solid #e8e7e4; border-radius: 6px;}
footer { margin: 80px 0px 80px; padding-top: 24px; border-top: 1px solid #e8e7e4; text-align: center; }
footer .copyright { margin-bottom: 12px }
footer .links a { margin:0px 8px;  text-decoration: none; transition: color .2s; font-size: 0.9em; }
footer .links a:hover { color: #6b6b6b; text-decoration: underline;}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 0.8em 0 1.2em 0;
  font-size: 0.9em;
  color: #9b9a97;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #6b6b6b;
  text-decoration: underline;
}

.breadcrumb span {
  color: #c7c5c1;
}


pre {
    background: #f1f1ef;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    color: #37352f;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    white-space: pre-wrap;
}



/* ===========================
   QUICK ADD MODAL
   =========================== */

/* Modal base styles */
.quick-add-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal__wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  max-width: 510px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Botón de cerrar */
.modal__button-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal__button-close:hover {
  color: #000;
}

.close-icon {
  font-size: 24px;
  line-height: 1;
}

/* Contenido del modal */
.modal__content {
  padding: 0;
}

/* Quick Add specific styles */
.product-quickadd {
  padding: 20px;
}

.entry-summary__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  padding-top: 30px;
}

.product-quickadd .product-thumbnail {
  flex-shrink: 0;
  width: 70px;
}

.product-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-summary {
  flex: 1;
}

.product-quickadd .product_title {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.product-quickadd .product_title a {
  color: #37352f;
  text-decoration: none;
}

.product-quickadd .product_title a:hover {
  text-decoration: underline;
}

.product-price {
  margin-bottom: 0;
}

.product-price .price {
  font-size: 16px;
  font-weight: 600;
  color: #37352f;
  margin: 0;
}

/* Form styles en el modal */
.product-quickadd .cart {
  margin-top: 15px;
}

.product-quickadd .variations {
  margin-bottom: 15px;
}

.product-quickadd .variations td,
.product-quickadd .variations th {
  padding: 8px 0;
  border: none;
  text-align: left;
}

.product-quickadd .variations th {
  font-weight: 500;
  color: #37352f;
  width: 80px;
}

.product-quickadd .variations select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(55, 53, 47, 0.2);
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.product-quickadd .quantity {
  display: inline-block;
  margin-right: 10px;
  vertical-align: top;
}

.product-quickadd .quantity input {
  width: 60px;
  padding: 10px 8px;
  border: 1px solid rgba(55, 53, 47, 0.2);
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.product-quickadd .single_add_to_cart_button {
  background: #37352f;
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  text-transform: none;
}

.product-quickadd .single_add_to_cart_button:hover {
  background: #2d2a26;
}

.product-quickadd .single_add_to_cart_button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 767px) {
  /* Comportamiento mobile como Ecomus - slide up desde abajo */
  .modal__container {
    padding: 8px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    transform: translate(-50%, 100%);
    transition: 0.4s ease-in-out;
    opacity: 0;
    top: auto;
    bottom: 0;
    left: 50%;
  }
  
  .quick-add-modal.modal--open .modal__container {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  
  .modal__wrapper {
    max-width: none;
    width: 100%;
    max-height: 100%;
    border-radius: 8px 8px 0 0;
  }
  
  .product-quickadd {
    padding: 15px;
    max-height: 87vh;
    overflow-y: scroll;

  }
  
  .entry-summary__header {
    padding-top: 20px;
  }
  
  .product-quickadd .product_title {
    font-size: 16px;
  }
}

/* Estados del modal */
.quick-add-modal.modal--open {
  display: block;
}

/* Modal above panel para mobile */
.modal-above-panel__quickadd {
  z-index: 99999 !important;
}

.modal-above-panel__quickadd .quick-add-modal {
  z-index: 100000 !important;
}

/* Animación de apertura - Desktop */
@media (min-width: 768px) {
  .modal--open .modal__wrapper {
    animation: modalFadeIn 0.3s ease-out;
  }

  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: scale(0.9) translateY(-50px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
}

.quick-add-modal.modal--open .woocommerce div.product div.summary {
    width: 100% !important;
}

.product-quickadd .quantity input {
    padding: 0px !important;
}

dl.variation p {
    margin: 0;
}