.form-control-pc, .form-select{
    padding: 4px 8px;
    height: 30px;
    font-size: 15px;
}
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.object-fit-cover {
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
    }
}


.card-title{
    font-size: 13px;
}


/* Search bar */
.apple-search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.apple-search-bar {
    position: relative;
    width: 100%;
}

.apple-search-input {
    width: 100%;
    padding: 3px 10px;
    border: none;
    border-radius: 25px;
    background-color: #e9ecef;
    font-size: 14px;
    color: #495057;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.apple-search-input:focus {
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    text-align: left;
}

.apple-search-input::placeholder {
    color: #6c757d;
}

.search-icon {
    position: absolute;
    left: 39%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.apple-search-input:focus + .search-icon {
    color: #495057;
}
.apple-search-input:focus + .search-icon {
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .apple-search-container{
        margin-top: 0.25rem;
        margin-bottom: 2rem;
    }
    .apple-search-input {
        padding: 2px 16px;
        font-size: 16px;
    }
    
    .search-icon {
        left: 25%;
        font-size: 16px;
    }
    .boton-buy-now{
        font-size: 10px;
    }
    .bi-bag-fill{
        font-size: 10px;
    }
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* número de líneas */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  
.badges-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8\4px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 500;
    border: 1.5px solid;
}

.badge-local {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.badge-local svg {
    width: 12px;
    height: 10px;
    fill: #4caf50;
    padding: 0;
}

.badge-quality {
    background-color: #fff4e6;
    border-color: #ff9800;
    color: #e65100;
}



.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .badge-local, .badge-quality{
        font-size: 8px;
    }
    .badge-local svg {
        width: 8px;
        height: 10px;
        fill: #4caf50;
    }
    .badge {
        padding: 3px 4px;
    }
}


/*Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: none;
    padding: 24px 24px 0 24px;
}

.modal-body {
    padding: 16px 24px 24px 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #191919;
}

.btn-close {
    opacity: 0.5;
    font-size: 14px;
}

.btn-close:hover {
    opacity: 1;
}

.subtitle {
    color: #191919;
    font-size: 14px;
    margin-bottom: 20px;
}

.subtitle a {
    color: #191919;
    text-decoration: underline;
    font-weight: 500;
}

.subtitle a:hover {
    color: #3665f3;
}

.form-control {
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    color: #707070;
}

.form-control:focus {
    border-color: #191919;
    box-shadow: none;
}

.btn-continue {
    background-color: #3665f3;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 75%;
    margin-top: 16px;
}

.btn-continue:hover {
    background-color: #2d54c7;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #707070;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #c7c7c7;
}

.divider span {
    padding: 0 16px;
    white-space: nowrap;
}

.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-social {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 3px 16px;
    border: 1px solid #c7c7c7;
    border-radius: 24px;
    background-color: white;
    font-size: 20px;
    font-weight: 500;
    color: #3665F3;
    transition: all 0.2s ease;
}
.btn-social-anchor{
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-social:hover {
    background-color: #f7f7f7;
    border-color: #191919;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.google-icon {
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.apple-icon {
    color: #000;
}

.facebook-icon {
    color: #1877f2;
}

.stay-signed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: #191919;
}

.stay-signed .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    border-color: #c7c7c7;
}

.stay-signed .form-check-input:checked {
    background-color: #191919;
    border-color: #191919;
}

.info-icon {
    color: #707070;
    cursor: pointer;
    font-size: 16px;
}

/* Guest checkout section */
.guest-section {
    padding-left: 32px;
    border-left: 1px solid #c7c7c7;
}

.guest-title {
    font-size: 18px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 12px;
}

.guest-text {
    font-size: 14px;
    color: #191919;
    margin-bottom: 16px;
    line-height: 1.5;
}

.guest-link {
    color: #191919;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

.guest-link:hover {
    color: #3665f3;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        border-radius: 0;
        min-height: 100%;
    }

    .guest-section {
        padding-left: 0;
        padding-top: 24px;
        margin-top: 24px;
        border-left: none;
        border-top: 1px solid #c7c7c7;
    }

    .social-buttons {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
    }

    .modal-title {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 600px;
    }
}
