Aplicoop desde el repo de kidekoop

This commit is contained in:
snt 2026-02-11 15:32:11 +01:00
parent 69917d1ec2
commit 7cff89e418
93 changed files with 313992 additions and 0 deletions

View file

@ -0,0 +1,85 @@
/* filepath: website_sale_aplicoop/static/src/css/components/alerts.css */
/**
* Alert and notification component styles
*/
.group-order-alert {
background-color: #e7f3ff;
border-left: 4px solid var(--primary-color);
color: #004085;
padding: 1rem;
border-radius: 0.375rem;
}
.group-order-alert.info {
background-color: #d1ecf1;
border-left-color: #17a2b8;
color: #0c5460;
}
.group-order-alert.warning {
background-color: #fff3cd;
border-left-color: #ffc107;
color: #856404;
}
.alert-warning {
background-color: #fef3c7;
border-color: #fcd34d;
color: #92400e;
margin-bottom: 2rem;
border-radius: 0.5rem;
padding: 1.25rem;
}
.alert-warning i {
margin-right: 0.75rem;
font-size: 1.1rem;
}
.alert-warning strong {
font-weight: 700;
}
#delivery-info-alert {
margin-top: 1rem;
border-left: 4px solid #0dcaf0;
}
#delivery-info-alert .fa-truck {
margin-right: 0.5rem;
color: #0dcaf0;
}
/* Toast Notification Animation */
.toast-notification {
position: fixed;
bottom: 30px;
right: 30px;
background-color: #28a745;
color: white;
padding: 1rem 1.5rem;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 500;
z-index: 9999;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.3s ease, transform 0.3s ease;
max-width: 400px;
word-break: break-word;
}
.toast-notification.show {
opacity: 1;
transform: translateY(0);
}
.toast-notification i {
font-size: 1.2rem;
min-width: 20px;
}

View file

@ -0,0 +1,103 @@
/* filepath: website_sale_aplicoop/static/src/css/components/buttons.css */
/**
* Button and action component styles
*/
.btn-add-to-cart {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: white;
}
.btn-add-to-cart:focus {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
}
.btn-add-to-cart:hover {
background-color: var(--primary-dark);
border-color: var(--primary-dark);
}
.btn-checkout {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
border: none;
color: white;
font-weight: 600;
}
.btn-checkout:focus {
outline: 3px solid #667eea;
outline-offset: 2px;
}
.btn-checkout:hover {
background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
color: white;
}
.btn-primary,
.btn-success {
font-weight: 600;
}
.btn-primary:disabled,
.btn-success:disabled {
opacity: 0.65;
}
/* Checkout action buttons */
.checkout-actions {
margin-top: 2rem;
}
.checkout-actions .btn {
font-size: 1.1rem;
font-weight: 600;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.checkout-actions .btn-success {
background-color: var(--success-color);
border-color: var(--success-color);
}
.checkout-actions .btn-success:hover {
background-color: #218838;
border-color: #218838;
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
transform: translateY(-2px);
}
.checkout-actions .btn-outline-secondary {
color: #ebeef0;
border-color: #cad2d8;
}
.checkout-actions .btn-outline-secondary:hover {
color: white;
background-color: #6c757d;
border-color: #6c757d;
box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}
.checkout-actions .btn i {
margin-right: 0.5rem;
}
.save-order-btn,
.save-order-btn-styled,
.checkout-btn-lg {
white-space: nowrap;
font-size: 1.1rem;
padding: 0.6rem 1.2rem;
}
.save-icon-size {
font-size: 1.2rem;
}

View file

@ -0,0 +1,236 @@
/* filepath: website_sale_aplicoop/static/src/css/components/cart.css */
/**
* Shopping cart component styles
*/
.sticky-cart {
top: 20px;
}
.cart-header {
background-color: var(--primary-color);
color: white;
padding: 0.25rem;
border-radius: 0.25rem 0.25rem 0 0;
}
.cart-header h5 {
color: white;
margin: 0;
}
.cart-header .btn {
color: white;
}
.cart-items {
max-height: 400px;
overflow-y: auto;
}
#cart-items-container {
padding: 0.2rem 0.4rem;
}
#cart-items-container .list-group {
margin-bottom: 0;
}
#cart-items-container p.text-muted {
margin: 0.4rem 0;
}
.list-group-item {
padding: 0.4rem 0.6rem;
border-bottom: 1px solid #e0e0e0;
}
.list-group-item.d-flex {
gap: 0.5rem;
flex-direction: column;
}
.list-group-item h6 {
margin: 0;
margin-bottom: 0.2rem;
font-weight: 600;
word-break: break-word;
font-size: 0.875rem;
line-height: 1.3;
}
.list-group-item small {
display: block;
font-size: 0.75rem;
color: #6c757d;
}
.list-group-item .d-flex {
min-width: auto;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.list-group-item .remove-from-cart {
flex-shrink: 0;
min-width: 24px;
min-height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.15rem 0.25rem;
font-size: 0.7rem;
cursor: pointer;
background-color: #dc3545;
color: #ffffff;
border: 1px solid #dc3545;
border-radius: 3px;
transition: all 0.2s ease;
}
.list-group-item .remove-from-cart:hover {
background-color: #bb2d3b;
border-color: #bb2d3b;
transform: scale(1.05);
}
.list-group-item .remove-from-cart i {
font-size: 0.85rem;
color: #ffffff;
}
.list-group-item strong {
min-width: 60px;
text-align: right;
white-space: nowrap;
font-size: 0.875rem;
color: #667eea;
}
.list-group-item.d-flex > div:first-child {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
}
.list-group-item.d-flex > div:first-child h6 {
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}
.cart-total {
padding: 1rem;
background-color: #f8f9fa;
font-size: 1.5rem;
font-weight: 700;
border-top: 2px solid var(--primary-color);
text-align: right;
color: var(--primary-color);
}
.cart-item-remove {
cursor: pointer;
color: #dc3545;
font-size: 0.7rem;
}
.cart-item-remove:hover {
text-decoration: underline;
}
/* Cart header buttons styling */
#save-cart-btn,
#reload-cart-btn {
font-weight: 600;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-right: 0.25rem;
color: white;
}
#save-cart-btn {
background-color: #007bff;
border-color: #0056b3;
}
#save-cart-btn:hover {
background-color: #0056b3;
border-color: #004085;
box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}
#save-cart-btn:active {
transform: scale(0.95);
box-shadow: 0 2px 4px rgba(0, 86, 179, 0.3);
}
#reload-cart-btn {
background-color: #17a2b8;
border-color: #117a8b;
}
#reload-cart-btn:hover {
background-color: #117a8b;
border-color: #0c5460;
box-shadow: 0 4px 8px rgba(17, 122, 139, 0.3);
}
#reload-cart-btn:active {
transform: scale(0.95);
box-shadow: 0 2px 4px rgba(17, 122, 139, 0.3);
}
.card-header .btn-group {
flex-shrink: 0;
}
#cart-title {
font-size: 1.2rem;
}
.cart-btn-group-nowrap,
.cart-btn-group {
flex-wrap: nowrap;
}
.cart-header-btn {
padding: 0.25rem;
}
.cart-icon-size {
font-size: 0.9rem;
}
.cart-body-text {
font-size: 1.1rem;
}
.cart-body-lg {
font-size: 1.1rem;
}
.cart-title-lg {
font-size: 1.5rem;
}
.cart-title-sm {
font-size: 1.1rem;
}
.cart-btn-compact {
padding: 0.1rem;
min-width: auto;
font-size: 0.5rem;
line-height: 0.5;
height: auto;
}
.cart-sticky-position {
top: 20px;
}

View file

@ -0,0 +1,99 @@
/* filepath: website_sale_aplicoop/static/src/css/components/forms.css */
/**
* Form and input component styles
*/
label {
font-weight: 600;
color: #2d3748;
}
.form-control,
.form-select {
border-color: #cbd5e0;
font-size: 1rem;
}
.form-control:focus,
.form-select:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
input[type="number"],
input[type="text"],
select {
background-color: #ffffff;
color: #212529;
border: 1px solid #ced4da;
}
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
outline: 2px solid #667eea;
outline-offset: 0;
border-color: var(--primary-color);
}
.form-check {
display: flex;
align-items: center;
padding: 1rem 1.25rem;
margin-left: 0;
}
.form-check-input {
margin-right: 0.75rem;
flex-shrink: 0;
}
/* Compact search and filter inputs */
#realtime-search-input,
#realtime-category-select {
font-size: 0.95rem;
padding: 0.375rem 0.75rem;
height: auto;
}
#realtimeSearch-filters .form-control,
#realtimeSearch-filters .form-select {
padding: 0.375rem 0.75rem;
font-size: 0.95rem;
}
.form-check-label {
margin: 0;
}
#home-delivery-checkbox {
width: 1.5rem;
height: 1.5rem;
cursor: pointer;
border: 2px solid #0d6efd;
border-radius: 0.25rem;
margin-right: 0.75rem;
}
#home-delivery-checkbox:checked {
background-color: #0d6efd;
border-color: #0d6efd;
}
#home-delivery-checkbox:focus {
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-check-label[for="home-delivery-checkbox"] {
font-size: 1.1rem;
font-weight: 600;
color: #212529;
cursor: pointer;
display: flex;
align-items: center;
}
.help-text-sm {
font-size: 0.85rem;
}

View file

@ -0,0 +1,329 @@
/* filepath: website_sale_aplicoop/static/src/css/components/order-card.css */
/**
* Order card (Eskaera) component styles
*/
.eskaera-order-card-link {
text-decoration: none;
color: inherit;
display: block;
width: 100%;
}
.eskaera-order-card {
position: relative;
background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
border: 1px solid rgba(90, 103, 216, 0.12);
border-radius: 0.75rem;
box-shadow: 0 6px 18px rgba(28, 37, 80, 0.06);
transition: transform 320ms cubic-bezier(.2, .9, .2, 1), box-shadow 320ms, border-color 320ms, background 320ms;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 290px;
height: 100%;
cursor: pointer;
animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes slideInUp {
0% {
opacity: 0;
transform: translateY(30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.eskaera-order-card::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
height: 6px;
background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}
.eskaera-order-card-link:hover .eskaera-order-card {
transform: translateY(-8px) scale(1.01);
box-shadow: 0 20px 50px rgba(90, 103, 216, 0.15), 0 0 30px rgba(90, 103, 216, 0.1);
border: 1px solid rgba(90, 103, 216, 0.25);
background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}
.eskaera-order-card-link:hover .eskaera-order-card::before {
animation: shimmer 0.6s ease-in-out;
}
@keyframes shimmer {
0% {
left: 0;
}
50% {
left: 100%;
}
100% {
left: 0;
}
}
.eskaera-order-card .card-body {
padding: 0.6rem 0.8rem 0 0.8rem;
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.eskaera-order-card .card-title {
font-size: 0.95rem;
font-weight: 700;
color: #1f2937;
margin: 0;
line-height: 1.15;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.order-desc-text {
font-size: 0.8rem;
color: #6b7280;
margin: 0;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.order-desc-sm {
font-size: 0.875rem;
line-height: 1.4;
}
.order-desc-md {
font-size: 0.95rem;
line-height: 1.5;
}
.eskaera-order-card .btn {
margin-top: auto;
margin-left: auto;
margin-right: auto;
margin-bottom: 0.6rem;
padding: 0.6rem 1.2rem;
font-weight: 600;
border-radius: 6px;
border: none !important;
font-size: 0.85rem;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
background: linear-gradient(135deg, #5a67d8, #4c57bd) !important;
color: white !important;
box-shadow: 0 4px 12px rgba(90, 103, 216, 0.2) !important;
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none !important;
position: relative;
overflow: hidden;
text-align: center;
width: auto;
}
.eskaera-order-card .btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transform: translate(-50%, -50%);
transition: width 0.5s, height 0.5s;
}
.eskaera-order-card .btn:active::before {
width: 300px;
height: 300px;
}
.eskaera-order-card .btn:hover {
box-shadow: 0 8px 24px rgba(90, 103, 216, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
transform: translateY(-3px) scale(1.03);
background: linear-gradient(135deg, #4c57bd, #3d4898) !important;
}
/* Center button within card body */
.eskaera-order-card .card-body > .btn {
margin-left: auto;
margin-right: auto;
}
/* Order card header spacing */
.order-card-header-spacing {
margin-top: 0.9rem;
}
/* Order thumbnail small */
.order-thumbnail-sm {
width: 90px;
height: 90px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
border: 2px solid rgba(90, 103, 216, 0.1);
}
/* Order thumbnail medium */
.order-thumbnail-md {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Order thumbnail checkout */
.order-thumbnail-checkout,
.checkout-thumbnail {
width: 90px;
height: 90px;
object-fit: cover;
border-radius: 6px;
flex-shrink: 0;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.card-header-top {
display: flex;
gap: 0.6rem;
align-items: flex-start;
margin-bottom: 0.3rem;
height: 100px;
overflow: hidden;
}
.card-header-top > div:last-child {
text-align: left;
flex: 1;
}
.card-header-top .card-title {
margin: 0;
}
.card-badges .badge {
display: inline-flex;
align-items: center;
gap: 0.2rem;
}
.card-meta-compact {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0;
margin: 0.2rem auto 0 auto;
padding: 0.6rem 0.8rem;
border-top: 1px solid rgba(90, 103, 216, 0.08);
background: rgba(245, 247, 255, 0.4);
border-radius: 0 0 0.75rem 0.75rem;
width: 100%;
}
.card-meta-compact .card-meta-list {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
/* Meta table styles for clean date display */
.meta-table {
width: auto;
border-collapse: collapse;
font-size: 0.8rem;
margin: 0 auto;
text-align: left;
min-height: 160px;
display: table;
}
.meta-table tbody {
display: table-row-group;
}
.meta-row {
display: table-row;
font-size: 0.8rem;
margin-bottom: 0;
}
.meta-label-cell {
display: table-cell;
padding: 0.25rem 0.6rem 0.25rem 0;
font-weight: 600;
color: #374151;
text-align: right;
vertical-align: top;
white-space: nowrap;
}
.meta-label-cell span {
display: inline-block;
}
.meta-value-cell {
display: table-cell;
padding: 0.25rem 0;
color: #6b7280;
text-align: left;
vertical-align: middle;
}
.meta-value-cell .badge {
display: inline-block;
vertical-align: middle;
font-size: 0.7rem;
padding: 0.2rem 0.5rem;
}
.meta-label {
font-weight: 600;
color: #374151;
min-width: 85px;
}
.meta-value {
color: #6b7280;
flex: 1;
}
.order-badge-position {
position: absolute;
top: 1.25rem;
right: 1.25rem;
z-index: 10;
display: flex;
}
.order-badge-custom {
font-weight: 700;
padding: 0.5rem 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
display: flex !important;
align-items: center;
gap: 0.5rem;
}

View file

@ -0,0 +1,144 @@
/* filepath: website_sale_aplicoop/static/src/css/components/product-card.css */
/**
* Product card component styles
*/
.product-card {
background-color: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
height: 100%;
overflow: hidden;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.product-card:focus-within {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
}
.product-card .product-image {
height: 150px;
object-fit: cover;
}
.product-img-cover {
max-height: 160px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(40, 39, 39, 0.9);
}
.product-card .card-body {
display: flex;
flex-direction: column;
height: 100%;
flex-grow: 1;
padding: 0.75rem;
position: relative;
background: linear-gradient(135deg, rgba(0, 123, 255, 0.12) 0%, rgba(0, 123, 255, 0.08) 100%);
transition: all 0.3s ease;
}
.product-card:hover .card-body {
background: linear-gradient(135deg, rgba(108, 117, 125, 0.10) 0%, rgba(108, 117, 125, 0.08) 100%);
}
.product-card .card-title {
flex-grow: 1;
margin: 0;
margin-bottom: 0.2rem;
min-height: auto;
display: block;
word-wrap: break-word;
overflow-wrap: break-word;
font-size: 1.2rem !important;
line-height: 1;
text-align: center;
font-weight: 600;
color: #2d3748;
}
.product-card .card-text {
margin-bottom: 0.15rem;
text-align: center;
}
.product-card .card-text strong {
display: block;
margin-bottom: 0.15rem;
font-size: 1.2rem;
color: #667eea;
}
.product-card .product-supplier {
text-align: center;
color: #4a5568;
font-weight: 400;
margin-bottom: 0.15rem;
font-size: 0.9rem !important;
}
.product-tags {
text-align: center;
display: flex;
flex-wrap: wrap;
gap: 0.2rem;
justify-content: center;
font-weight: 400;
font-size: 1.4rem !important;
margin: 0;
padding: 0;
}
.badge-km {
background-color: var(--primary-color) !important;
color: white !important;
font-weight: 600 !important;
padding: 0.2rem !important;
font-size: 0.6rem !important;
border-radius: 0.2rem;
display: inline-block;
border: 1px solid;
white-space: nowrap;
margin-right: 0.1rem;
margin-bottom: 0.1rem;
}
.card-body p.card-text {
text-align: center;
margin-bottom: 0.8rem;
min-height: 2rem;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--primary-color);
color: white;
}
.card-body p.card-text strong {
display: inline;
font-size: 1.4rem !important;
color: var(--primary-color);
margin-bottom: 0;
white-space: nowrap;
}
.product-img-fixed {
object-fit: cover;
height: 100px;
}
.product-img-placeholder {
height: 100px;
}

View file

@ -0,0 +1,405 @@
/* filepath: website_sale_aplicoop/static/src/css/components/quantity-control.css */
/**
* Quantity control (+ - input) component styles
*/
/* Formulario agregar al carrito */
.add-to-cart-form {
width: 100%;
gap: 0;
padding: 0.5rem;
margin-top: 0.25rem;
background-color: #f8f9fa;
border-radius: 4px;
display: flex;
border: 1px solid #e9ecef;
align-content: center;
justify-content: center;
}
.add-to-cart-form .input-group {
width: 100%;
gap: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 36px;
}
.add-to-cart-form .product-qty {
flex: 1 1 auto;
text-align: center;
font-weight: 700;
font-size: 1rem;
padding: 0.3rem;
min-width: 32px;
max-width: 70px;
border: 2px solid #dee2e6;
border-radius: 0;
background-color: #ffffff;
transition: all 0.2s ease;
-moz-appearance: textfield;
height: 36px;
line-height: 30px;
}
.add-to-cart-form .product-qty::-webkit-outer-spin-button,
.add-to-cart-form .product-qty::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.add-to-cart-form .product-qty:focus {
outline: none;
border-color: var(--primary-color, #007bff);
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
background-color: #ffffff;
}
/* Contenedor de control de cantidad */
.qty-control {
display: flex;
align-items: center;
justify-content: center;
gap: 0;
padding: 0;
width: 100%;
height: 44px;
}
/* Botones de cantidad + y - */
.qty-control .qty-decrease,
.qty-control .qty-increase {
min-width: 36px;
width: 36px;
height: 36px;
padding: 0;
gap: 0;
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #dee2e6;
background-color: #ffffff;
color: #495057;
transition: all 0.2s ease;
cursor: pointer;
flex-shrink: 0;
}
.qty-control .qty-decrease:hover,
.qty-control .qty-increase:hover {
border-color: var(--primary-color, #007bff);
color: var(--primary-color, #007bff);
background-color: #f8f9fa;
}
.qty-control .qty-decrease:active,
.qty-control .qty-increase:active {
background-color: #e9ecef;
}
.add-to-cart-form .add-to-cart-btn {
white-space: nowrap;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
margin: 0;
font-size: 0.8rem;
height: 36px;
width: 36px;
min-width: 36px;
max-width: 36px;
min-height: 36px;
max-height: 36px;
flex-shrink: 0;
border: none;
background-color: #7c3aed !important;
color: #ffffff !important;
cursor: pointer;
transition: all 0.2s ease;
}
.add-to-cart-form .add-to-cart-btn:hover {
background-color: #6d28d9 !important;
transform: scale(1.05);
}
.add-to-cart-form .add-to-cart-btn:active {
background-color: #5b21b6 !important;
transform: scale(0.98);
}
.add-to-cart-form .add-to-cart-btn i {
font-size: 1rem;
}
/* Pantallas muy grandes: 1600px+ (6 columnas) */
@media (min-width: 1600px) {
.add-to-cart-form {
padding: 0.35rem;
gap: 0.08rem;
}
.add-to-cart-form .input-group {
height: 32px;
gap: 0.06rem;
}
.add-to-cart-form .product-qty {
font-size: 1rem;
min-width: 28px;
max-width: 60px;
height: 32px;
padding: 0.2rem;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 32px;
height: 32px;
font-size: 0.9rem;
}
.add-to-cart-form .add-to-cart-btn {
height: 32px;
width: 32px;
min-width: 32px;
max-width: 32px;
font-size: 0.75rem;
}
}
/* Pantallas grandes: 1400-1599px (5 columnas) */
@media (max-width: 1599px) and (min-width: 1400px) {
.add-to-cart-form {
padding: 0.36rem;
gap: 0.07rem;
}
.add-to-cart-form .input-group {
height: 32px;
gap: 0.05rem;
}
.add-to-cart-form .product-qty {
font-size: 1rem;
min-width: 28px;
max-width: 62px;
height: 32px;
padding: 0.2rem;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 32px;
height: 32px;
font-size: 0.9rem;
}
.add-to-cart-form .add-to-cart-btn {
height: 32px;
width: 32px;
min-width: 32px;
font-size: 0.75rem;
}
}
/* Pantallas medianas: 1200-1399px (4 columnas) */
@media (max-width: 1399px) and (min-width: 1200px) {
.add-to-cart-form {
padding: 0.34rem;
gap: 0.06rem;
}
.add-to-cart-form .input-group {
height: 32px;
gap: 0.05rem;
}
.add-to-cart-form .product-qty {
font-size: 0.95rem;
min-width: 28px;
max-width: 60px;
height: 32px;
padding: 0.2rem;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 32px;
height: 32px;
font-size: 0.88rem;
}
.add-to-cart-form .add-to-cart-btn {
height: 32px;
width: 32px;
min-width: 32px;
font-size: 0.74rem;
}
}
/* Pantallas tablet grandes: 992-1199px (3 columnas) */
@media (max-width: 1199px) and (min-width: 992px) {
.add-to-cart-form {
padding: 0.32rem;
gap: 0.04rem;
}
.add-to-cart-form .input-group {
height: 32px;
gap: 0.04rem;
}
.add-to-cart-form .product-qty {
font-size: 0.9rem;
min-width: 28px;
max-width: 58px;
height: 32px;
padding: 0.2rem;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 32px;
height: 32px;
font-size: 0.85rem;
border-width: 1px;
}
.add-to-cart-form .add-to-cart-btn {
height: 32px;
width: 32px;
min-width: 32px;
font-size: 0.72rem;
}
}
/* Pantallas tablet: 768-991px (2-3 columnas) */
@media (max-width: 991px) and (min-width: 768px) {
.add-to-cart-form {
padding: 0.42rem;
gap: 0.03rem;
}
.add-to-cart-form .input-group {
height: 36px;
gap: 0.04rem;
}
.add-to-cart-form .product-qty {
font-size: 1rem;
min-width: 32px;
max-width: 68px;
height: 36px;
padding: 0.3rem;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 36px;
height: 36px;
font-size: 0.95rem;
border-width: 1px;
}
.add-to-cart-form .add-to-cart-btn {
height: 36px;
width: 36px;
min-width: 36px;
font-size: 0.82rem;
}
}
/* Móvil grande: 576-767px (2 columnas) */
@media (max-width: 767px) and (min-width: 576px) {
.add-to-cart-form {
padding: 0.35rem;
gap: 0.1rem;
}
.add-to-cart-form .input-group {
height: 34px;
gap: 0.08rem;
}
.add-to-cart-form .product-qty {
font-size: 0.9rem;
min-width: 30px;
max-width: 64px;
height: 34px;
padding: 0.25rem;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 34px;
height: 34px;
font-size: 0.9rem;
border-width: 1px;
}
.add-to-cart-form .add-to-cart-btn {
height: 34px;
width: 34px;
min-width: 34px;
font-size: 0.8rem;
}
}
/* Móvil pequeño: < 576px (1 columna) */
@media (max-width: 575px) {
.add-to-cart-form {
padding: 0.3rem;
gap: 0.08rem;
flex-wrap: wrap;
width: 100%;
}
.add-to-cart-form .input-group {
height: 32px;
gap: 0.06rem;
flex: 1 1 100%;
}
.add-to-cart-form .product-qty {
font-size: 0.8rem;
min-width: 28px;
max-width: 60px;
height: 32px;
padding: 0.2rem;
line-height: 28px;
}
.qty-control .qty-decrease,
.qty-control .qty-increase {
width: 32px;
height: 32px;
font-size: 0.8rem;
border-width: 1px;
min-width: 32px;
}
.qty-control {
width: auto;
gap: 0;
}
.add-to-cart-form .add-to-cart-btn {
height: 32px;
width: 32px;
min-width: 32px;
max-width: 32px;
font-size: 0.75rem;
flex: 0 0 auto;
}
.add-to-cart-form .add-to-cart-btn i {
font-size: 0.8rem;
}
}

View file

@ -0,0 +1,73 @@
/*
* Copyright 2025 Criptomart
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
*/
/**
* Tag Filter Badges Component
*
* Styles for interactive tag filter badges in the product search/filter bar.
* Badges toggle between secondary (unselected) and primary (selected) states.
*/
/* Container for all tag filter badges */
.tag-filter-badges {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 0;
}
/* Individual tag filter badge button */
.tag-filter-badge {
cursor: pointer;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 500;
white-space: nowrap;
transition: all 0.2s ease-in-out;
user-select: none;
display: inline-block;
border: 1px solid;
color: #ffffff !important;
}
/* Tags sin color definido en Odoo: usar color secundario del tema */
.tag-filter-badge.tag-use-theme-color {
background-color: var(--bs-secondary, #6c757d);
border-color: var(--bs-secondary, #6c757d);
}
/* Product card tags (badge-km) sin color definido: usar color del tema */
.badge-km.tag-use-theme-color {
background-color: var(--bs-secondary, #6c757d);
border-color: var(--bs-secondary, #6c757d);
color: #ffffff !important;
}
.tag-filter-badge:hover {
transform: translateY(-2px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
filter: brightness(0.9);
}
/* Counter text inside badge */
.tag-filter-badge .tag-count {
font-weight: 600;
margin-left: 0.25rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.tag-filter-badges {
gap: 0.375rem;
}
.tag-filter-badge {
padding: 0.375rem 0.625rem;
font-size: 0.8125rem;
}
}