/* Assistant Page Styles */

.assistant-container {
    max-width: 800px;
    margin: 0 auto;
    /*padding: 2rem 1rem;*/
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* Header */
.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.assistant-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-dark);
}

.assistant-title i {
    color: #fd7e14;
}

.assistant-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assistant-action-link {
    font-weight: 600;
    color: var(--bs-dark);
    text-decoration: underline;
    font-size: 0.9rem;
}

.assistant-action-link:hover {
    color: var(--bs-primary);
}

.assistant-action-icon {
    color: var(--bs-gray);
    font-size: 1.2rem;
}

.assistant-action-icon:hover {
    color: var(--bs-dark);
}

.assistant-close-btn {
    color: var(--bs-dark);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 0.25rem;
    line-height: 1;
    margin-left: 0.5rem;
}

.assistant-close-btn:hover {
    color: var(--bs-primary);
}

/* Greeting */
.assistant-greeting {
    margin-bottom: 0.68rem;
}

.assistant-greeting h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.25rem;
}

.assistant-greeting h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin: 0;
}

/* Chat Messages */
.assistant-chat {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.0rem;
    max-height: 400px;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

.ai-message {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: var(--bs-dark);
}

.user-message {
    background-color: var(--bs-dark);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: white;
    margin-left: auto;
}

.chat-message p {
    margin: 0;
    line-height: 1.5;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--bs-gray);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Carousel */
.assistant-carousel {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.assistant-carousel .product-card {
    margin: 0 0.5rem;
}

.assistant-carousel .card-img-top img {
    transition: transform 0.3s ease;
}

.assistant-carousel .product-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Suggestions */
.assistant-suggestions {
    margin-bottom: 1.5rem;
}

.suggestions-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--bs-gray);
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.suggestion-btn {
    background-color: transparent;
    border: 1px solid var(--bs-dark);
    border-radius: 24px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--bs-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suggestion-btn:hover {
    background-color: var(--bs-dark);
    color: white;
}

.suggestion-btn.highlight {
    border-color: #fd7e14;
}

.suggestion-btn.highlight:hover {
    background-color: #fd7e14;
    border-color: #fd7e14;
}

/* Beta Notice */
.assistant-beta-notice {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

.assistant-beta-notice p {
    margin: 0;
    font-size: 0.850rem;
    color: var(--bs-dark);
}

.assistant-beta-notice a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--bs-dark);
}

.assistant-beta-notice a:hover {
    color: var(--bs-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.assistant-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 28px 0 0 28px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 52px;
}

.assistant-input:focus {
    outline: none;
    border-color: var(--bs-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-right: none;
}

.assistant-input::placeholder {
    color: #999;
}

.btn-send {
    width: 52px;
    height: 52px;
    border-radius: 0 28px 28px 0;
    background-color: #ff8c0059 !important;
    color: white;
    border: 1px solid #e0e0e0;
    border-left: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.btn-send:hover {
    background-color: var(--bs-primary) !important;
}

.btn-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* AI Content */
.ai-content {
    line-height: 1.6;
}

.ai-content p {
    margin: 0 0 0.5rem;
}

.ai-content p:last-child {
    margin-bottom: 0;
}

.ai-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
}

.ai-content ul,
.ai-content ol {
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding: 0;
}

/* Product Carousel (AI-generated) */
.ai-content section.carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    margin: 1rem 0;
    padding: 0 1.75rem;
}

.ai-content .carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0;
}

.ai-content .carousel-track::-webkit-scrollbar {
    display: none;
}

/* Slide cards - max 3 visible at desktop */
.ai-content .carousel-track .carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Slide image */
.ai-content .carousel-slide .slide-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
}

.ai-content .carousel-slide .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-content .carousel-slide:hover .slide-image img {
    transform: scale(1.05);
}

/* Slide info - name and price */
.ai-content .carousel-slide .slide-info {
    padding: 0.5rem 0.625rem;
}

.ai-content .carousel-slide .slide-code,
.ai-content .carousel-slide .slide-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bs-dark, #333);
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.ai-content .carousel-slide .slide-code {
    font-weight: 600;
}

.ai-content .carousel-slide .slide-code-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-content .carousel-slide .slide-copy-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #999;
    font-size: 0.75rem;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.ai-content .carousel-slide .slide-copy-btn:hover {
    color: #fd7e14;
}

.ai-content .carousel-slide .slide-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fd7e14;
    margin: 0;
}

/* Navigation buttons - matching home page style */
.ai-content section.carousel .carousel-btn {
    position: absolute;
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e3e9ef;
    border-radius: 50%;
    background-color: #fff;
    font-size: 0.81rem;
    line-height: 2.625rem;
    text-align: center;
    z-index: 10;
    cursor: pointer;
    color: var(--bs-dark, #333);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ai-content section.carousel .carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.ai-content section.carousel .carousel-btn.prev {
    left: 0;
}

.ai-content section.carousel .carousel-btn.next {
    right: 0;
}

/* Carousel dots */
.ai-content .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.75rem;
}

.ai-content .carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.ai-content .carousel-dots .dot.active,
.ai-content .carousel-dots .dot[aria-selected="true"] {
    background: var(--bs-dark, #333);
}

/* Carousel Responsive */
@media (min-width: 480px) {
    .ai-content .carousel-track .carousel-slide {
        flex: 0 0 calc(50% - 0.375rem);
    }
}

@media (min-width: 768px) {
    .ai-content .carousel-track .carousel-slide {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .assistant-container {
        padding: 1rem;
    }

    .assistant-greeting h1,
    .assistant-greeting h2 {
        font-size: 1.5rem;
    }

    .suggestions-grid {
        flex-direction: column;
    }

    .suggestion-btn {
        width: 100%;
        justify-content: center;
    }

    .assistant-chat {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .assistant-greeting h1,
    .assistant-greeting h2 {
        font-size: 1.25rem;
    }

    .chat-message {
        max-width: 95%;
    }
}

/* Tool Indicator */
.tool-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: #f0f0f0;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0;
}

.tool-indicator i,
.tool-indicator .ci-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Streaming Message */
.chat-message.streaming p::after {
    content: '?';
    animation: blink 1s step-end infinite;
    color: #666;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===================================
   Assistant Login Page Styles
   =================================== */

.assistant-login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 100px);
    padding: 3rem 1rem;
    background-color: #fafafa;
}

.assistant-login-card {
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
    margin: 0 auto;
}

.assistant-login-card .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 1.5rem;
}

/* Auth Options */
.auth-options {
    margin-bottom: 1.5rem;
}

.auth-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.auth-description a {
    color: var(--bs-dark);
    font-weight: 600;
    text-decoration: underline;
}

.auth-description a:hover {
    color: var(--bs-primary);
}

/* Form Sections */
.login-form-section,
.register-form-section {
    padding-top: 1rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin: 0;
}

.btn-close-form {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.btn-close-form:hover {
    color: var(--bs-dark);
}

/* Form Elements */
.assistant-login-card .form-label {
    font-weight: 500;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.assistant-login-card .form-label .required {
    color: #dc3545;
}

.assistant-login-card .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.assistant-login-card .form-control:focus {
    border-color: var(--bs-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.assistant-login-card .form-control::placeholder {
    color: #999;
}

/* Form Hints */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.password-rules {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.password-rules span {
    color: #888;
}

/* Form Section Subtitle */
.form-section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* Forgot Password Link */
.forgot-password-link {
    color: var(--bs-dark);
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Buttons */
.assistant-login-card .btn-primary {
    background-color: #000;
    border-color: #000;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.assistant-login-card .btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

.assistant-login-card .btn-dark {
    background-color: #000;
    border-color: #000;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.assistant-login-card .btn-dark:hover {
    background-color: #333;
    border-color: #333;
}

/* Social Divider */
.social-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.social-divider span {
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-login-buttons .socialButton {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.social-login-buttons .socialButton:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    transform: scale(1.05);
}

.social-login-buttons .socialButton.google {
    border: 1px solid #ddd;
}

.social-login-buttons .socialButton.facebook {
    background: #1877f2;
}

.social-login-buttons .socialButton.facebook .socialLogo {
    filter: brightness(0) invert(1);
}

.social-login-buttons .socialLogo {
    width: 28px;
    height: 28px;
}

/* Form Check */
.assistant-login-card .form-check {
    margin-bottom: 0.5rem;
}

.assistant-login-card .form-check-label {
    font-size: 0.85rem;
    color: #666;
}

.assistant-login-card .form-check-label a {
    color: var(--bs-dark);
    font-weight: 600;
}

/* Close Assistant Button */
.close-assistant {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.btn-close-assistant {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    font-size: 1.25rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-close-assistant:hover {
    background-color: #f0f0f0;
    color: var(--bs-dark);
}
.assistant-input-area {
    border-radius: 25px;
    position: sticky;
    bottom: 0;
    padding: 16px;
    overflow: visible; /* permite que o gradiente vaze */
    background: radial-gradient(circle at left bottom, rgba(255, 140, 0, 0.35), transparent 40%), radial-gradient(circle at left center, rgba(0, 123, 255, 0.10), transparent 45%), linear-gradient(to top, #ffffff 70%, rgba(255, 255, 255, 0.95) 85%, rgba(255, 255, 255, 0));
}

/* Responsive */
@media (max-width: 768px) {
    .assistant-login-container {
        padding: 1rem;
    }

    .assistant-login-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .assistant-login-card {
        padding: 1.5rem;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .assistant-login-container {
        padding: 0;
        background-color: #fff;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-close-form {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

/* ===================================
Product Carousel Styles
=================================== */

:root {
--slide-gap: 16px;
--item-width-mobile: calc(100% - var(--slide-gap));
--item-width-desktop: calc(33.333% - var(--slide-gap));
}
.carousel { position: relative; overflow: hidden; width: 100%; }
.carousel-track {
display: grid;
grid-auto-flow: column;
grid-auto-columns: var(--item-width-mobile);
gap: var(--slide-gap);
scroll-snap-type: x mandatory;
overflow-x: auto;
padding: 8px;
scroll-behavior: smooth;
}
@media (min-width: 992px) {
.carousel-track {
    grid-auto-columns: var(--item-width-desktop);
}
}
.slide {
list-style: none;
scroll-snap-align: start;
background: #fff;
border-radius: 16px;
box-shadow: 0 4px 14px rgba(0,0,0,0.08);
padding: 12px;
}
.product-card { display: grid; gap: 8px; }
.product-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #f4f4f5; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-title { font: 600 1rem/1.3 system-ui, -apple-system, Segoe UI, Roboto; margin: 4px 0; }
.product-price { color: #0f766e; font-weight: 700; }
.product-meta { color: #52525b; font-size: .875rem; }
.thumbs { display: flex; gap: 6px; margin-top: 6px; }
.thumbs button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.carousel-btn {
position: absolute; top: 50%; transform: translateY(-50%);
background: #111827; color: #fff; border: 0; width: 36px; height: 36px;
border-radius: 999px; opacity: .9; cursor: pointer;
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.dot {
width: 8px; height: 8px; border-radius: 999px; background: #d1d5db; border: 0; cursor: pointer;
}
.dot[aria-selected="true"] { background: #111827; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================================
   Assistant Product Modal
   =================================== */
#modalProduct .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.ap-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.ap-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ap-thumbs {
    margin-top: 0.5rem;
}

.ap-thumbs-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

.ap-thumbs-row::-webkit-scrollbar {
    display: none;
}

.ap-thumb-item {
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border: 2px solid #e3e9ef;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    text-decoration: none !important;
}

.ap-thumb-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ap-thumb-item:hover img,
.ap-thumb-item.active img {
    opacity: 1;
}

.ap-thumb-item.active {
    border-color: #000;
}

.ap-thumb-item:hover {
    border-color: #c9d5e0;
}

/* Colors */
#apColors {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.ap-color-col {
    flex: 0 0 auto;
    text-align: center;
}

.ap-color-item {
    display: block;
    width: 64px;
    height: 64px;
    border: 2px solid #e3e9ef;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    text-decoration: none !important;
}

.ap-color-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ap-color-item:hover img,
.ap-color-item.active img {
    opacity: 1;
}

.ap-color-item.active {
    border-color: #000;
}

.ap-color-item:hover {
    border-color: #c9d5e0;
}

.ap-color-label {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 4px;
    color: #333;
}

/* Sizes - matching product page btn btn-outline rounded-0 style */
#apSizes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.ap-size-col {
    flex: 0 0 auto;
}

.ap-size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 38px;
    text-align: center;
    border: 1px solid #000000;
    border-radius: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

.ap-size-btn.active {
    background: #000;
    color: #fff;
}

.ap-size-btn:hover:not(.active) {
    background: #f0f0f0;
    color: #000;
}

@media (max-width: 767px) {
    #modalProduct .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    #modalProduct .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .ap-main-image {
        aspect-ratio: 4 / 3;
    }
}
