/*-- 01. Google Font Import 
----------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

 .skip-to-content {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-color);
    color: #fff;
    padding: 10px 20px;
    z-index: 10000;
    border-radius: 0 0 5px 5px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--darker-main-color);
    outline-offset: 2px;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.checkbox-btn.selected {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--light-color);
}

.checkbox-btn:focus {
    outline: 3px solid var(--main-color);
    outline-offset: 2px;
}

.checkbox-btn:focus:not(:focus-visible) {
    outline: none;
}

.checkbox-btn:focus-visible {
    outline: 3px solid var(--main-color);
    outline-offset: 2px;
}

.alert-message {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.info-message {
    background-color: #ddeef5;
    border: 1px solid #0766ff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.alert-message p {
    margin: 0;
    color: #856404;
}

.info-message p {
    margin: 0;
    color: #150485;
}

.alert-message a {
    color: var(--main-color);
    font-weight: 700;
    text-decoration: underline;
}

.alert-message a:hover {
    color: var(--darker-main-color);
}

.alert-message.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-message.alert-danger p {
    color: #721c24;
}

.single-price-item.selected {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(96, 144, 174, 0.3);
}

.single-price-item .forfait-btn {
    width: 100%;
}

.product-category {
    margin-bottom: 40px;
}

.product-category p {
    text-align: center;
}

.category-title {
    font-size: 40px;
    line-height: 50px;
    color: var(--main-color);
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.category-title::before,
.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--main-color);
}

.category-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #797C7F;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card.selected {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(96, 144, 174, 0.3);
    position: relative;
}

.product-card.validation-error {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
    animation: shake 0.5s ease-in-out;
}

.product-card.validation-error select,
.product-card.validation-error input {
    border-color: #dc3545;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.product-card:focus {
    outline: 3px solid var(--main-color);
    outline-offset: 2px;
}

.product-card:focus:not(:focus-visible) {
    outline: none;
}

.product-card:focus-visible {
    outline: 3px solid var(--main-color);
    outline-offset: 2px;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--light-color);
    border: 1px solid var(--cta-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.product-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--cta-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    border: 1px solid var(--light-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-image {
        height: 250px;
    }
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dimensions-group {
    display: flex;
    justify-content: space-between;
}

.dimensions-group .div-1 {
    width: 60%;
}

.dimensions-group .div-2 {
    width: 38%;
}

.contact-section .subimit-form-wrap .dimensions-group input {
    border: 1px solid #ddd;
}

.product-header {
    min-height: 60px;
    margin-bottom: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .product-header {
        min-height: 0px;
    }
}

.product-title {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 0px;
    text-align: center;
}

.product-header h5 {
    margin-bottom: 0px;
}

.product-description {
    margin-bottom: 15px;
    flex-grow: 1;
}
.product-description p {
    font-size: 14px;
    line-height: 18px;
    color: #797C7F;
    text-align: center;
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.price-sale {
    font-size: 20px;
    font-weight: 700;
    color: var(--cta-color);
}

.product-options {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.product-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--light-bg, #f8f9fa);
    border-radius: 8px;
    margin-top: 5px;
}

.product-total .total-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.product-total .total-amount {
    font-weight: 700;
    color: var(--main-color);
    font-size: 16px;
}

.product-option label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.product-select,
.product-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fff;
}

.product-select.no-nice-select {
    padding-right: 35px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark-color);
    transition: border-color 0.3s ease;
}

.product-input.no-mb {
    margin-bottom: 0;
}

.product-select:focus,
.product-input:focus {
    outline: none;
    border-color: var(--main-color);
}

.product-input {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.step-navigation {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.prev-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.prev-btn::before {
    content: '←';
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.prev-btn:hover {
    color: var(--darker-main-color);
}

.prev-btn:hover::before {
    transform: translateX(-5px);
}

.next-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.next-btn::after {
    content: '→';
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.next-btn:hover {
    color: var(--darker-main-color);
}

.next-btn:hover::after {
    transform: translateX(5px);
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(-10px);
    }
}

.order-summary-box {
    background: linear-gradient(145deg, #f8fafb 0%, #eef3f6 100%);
    border: 1px solid var(--main-color);
    border-radius: 15px;
    padding: 25px;
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: 22px;
    color: var(--main-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cta-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-title i {
    font-size: 28px;
}

.summary-content::-webkit-scrollbar {
    width: 5px;
}

.summary-content::-webkit-scrollbar-track {
    background: rgba(96, 144, 174, 0.1);
    border-radius: 5px;
}

.summary-content::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.summary-item-name {
    color: var(--dark-color);
    flex: 1;
}

.summary-item-price {
    color: var(--main-color);
    font-weight: 600;
    white-space: nowrap;
}

.summary-empty {
    color: #999;
    font-style: italic;
    font-size: 14px;
    margin: 0;
}

.summary-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid var(--cta-color);
    padding-top: 20px;
}

.summary-subtotal .subtotal-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.summary-subtotal .subtotal-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.summary-taxes {
    padding: 10px 0;
}

.tax-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.tax-line:last-child {
    margin-bottom: 0;
}

.tax-label {
    font-size: 13px;
    color: #666;
}

.tax-amount {
    font-size: 14px;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.summary-total .total-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--cta-color);
}

.summary-total .total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--cta-color);
}

.summary-note {
    margin-top: 15px;
    padding: 12px;
    background: var(--light-color-2);
    border-radius: 8px;
    font-size: 12px;
    color: #565656;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

.summary-note i {
    font-size: 16px;
    color: var(--main-color);
    flex-shrink: 0;
    margin-top: 1px;
}

.summary-item-name small {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.postal-address-toolbar.form-demande {
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.postal-address-field {
    flex: 1 1 0%;
    min-width: 0;
}

.postal-address-field input#postal-code-input {
    width: 100%;
    box-sizing: border-box;
}

.postal-address-toolbar .postal-address-submit {
    margin-top: 0;
}

@media (max-width: 480px) {
    .postal-address-toolbar.form-demande {
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .order-summary-box {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .summary-content {
        max-height: none;
    }
}