/* Add your custom CSS here */

/* Category Navigation */
.fp-category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px auto 40px;
    padding: 20px;
    background: #f9f7f5;
    border-radius: 8px;
    max-width: 80%;
    flex-wrap: wrap;
}

.fp-nav-link {
    font-family: 'Dax Pro', Arial, sans-serif;
    font-size: 16px;
    color: #927B6D;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid #927B6D;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.fp-nav-link:hover {
    background-color: #927B6D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(146, 123, 109, 0.2);
}

.fp-nav-link:active {
    transform: translateY(0);
}

/* Smooth scroll for category anchors */
html {
    scroll-behavior: smooth;
}

.fp-container {
    scroll-margin-top: 20px;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .fp-category-nav {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        padding: 15px;
    }

    .fp-nav-link {
        width: 100%;
        text-align: center;
    }
}

.fp-product-table {
    width: 80%; /* Set table width to 80% of the screen */
    max-width: none; /* Ensure the table doesn't exceed screen width */
    margin: 0 auto !important; /* Center the table */
    border-collapse: collapse;
    table-layout: auto; /* Ensure the table width is consistent */
    font-family: 'Dax Pro', Arial, sans-serif;
}

.fp-product-table th, .fp-product-table td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.fp-product-table th {
    border-bottom: 2px solid #ddd; /* Only border at the bottom */
    border-top: none;
    text-transform: uppercase;
    font-weight: normal;
    color: #aaa;
    letter-spacing: 1px;
    font-size: 16px;
}

.fp-product-table td {
    border-bottom: 1px solid #ddd; /* Border only at the bottom */
    border-left: none; /* Remove internal borders */
    border-right: none; /* Remove internal borders */
    font-size: 14px;
}

.fp-product-table th:first-child,
.fp-product-table th:last-child,
.fp-product-table td:first-child,
.fp-product-table td:last-child {
    border-left: none; /* Remove border on the sides */
    border-right: none; /* Remove border on the sides */
}

.fp-product-table th:first-child,
.fp-product-table th:last-child {
    border-top: none;
    font-size: 15px;
    font-weight: 600;
}

.fp-product-table td:first-child a {
    color: #927B6D; /* Product name color */
    text-decoration: none;
}

.fp-item-name {
    color: #927B6D;
}

.fp-add-to-cart {
    background-color: #927B6D; /* Button color */
    color: white;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 2px;
    font-family: 'Dax Pro', Arial, sans-serif;
}

.fp-add-to-cart:hover {
    background-color: #806b5f;
}

.fp-add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#fp-fast-payment-cart {
    margin-top: 20px;
    background-color: #927B6D;
    color: white;
    padding: 15px;
    text-align: left;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 90%; /* Adjust width to prevent horizontal overflow on small screens */
    max-width: 400px; /* Ensure it does not exceed a maximum width */
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    font-family: 'Dax Pro', Arial, sans-serif;
    transition: background-color 0.3s ease;
}

#fp-fast-payment-cart:hover {
    background-color: #806b5f;
}

#fp-fast-payment-cart .fp-cart-info {
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

#fp-fast-payment-cart .fp-cart-link {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

#fp-fast-payment-cart a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

body #fp-fast-payment-cart span {
    color: white !important;
}

.fp-shipping-info {
    font-size: 10px;
    color: #ccc;
}

#fp-cart-button {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

#fp-cart-button:hover {
    background-color: #806b5f;
}

/* Style for variation radio buttons */
.fp-variation-radio {
    margin-right: 2px;
}

.fp-label-sizing {
    font-size: 13px !important;
}

.fp-variation-radio:disabled + label {
    text-decoration: line-through;
    color: #ccc;
}

/* Style for variation dropdown */
.fp-variation-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Dax Pro', Arial, sans-serif;
    color: #666;
    background-color: white;
    border: 1px solid #666;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 36px;
}

.fp-variation-select option:disabled {
    color: #ccc;
}

/* Style for add-to-cart popup message */
.fp-add-to-cart-popup {
    position: fixed;
    top: 40px;
    right: 20px;
    background-color: #927B6D; /* Popup color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 16px;
    font-family: 'Dax Pro', Arial, sans-serif;
}

.fp-quantity {
    width: 60px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    padding: 8px 8px !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
    border: 1px solid #666 !important;
    border-radius: 5px !important;
}

/* Prevent horizontal scrolling for plugin elements */
.fp-container {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Set consistent column widths for all tables */
.fp-product-table colgroup col {
    width: auto;
}

.fp-product-table colgroup col:nth-child(1) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(2) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(3) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(4) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(5) {
    width: 20%;
    text-align: right;
}

.fp-sticky-cart {
    z-index: 10000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fp-product-table {
        width: 100% !important; /* Set table width to 100% on small screens */
        display: block; /* Ensure table behaves as a block element */
    }

    .fp-product-table thead {
        display: flex; /* Hide table header */
        justify-content: center;
    }

    .fp-product-table tbody,
    .fp-product-table tr {
        display: block; /* Set tbody and tr to block */
        margin-bottom: 15px; /* Add space between rows */
    }

    .fp-product-table tr:first-child td {
        border-top-style: none !important;
    }

    .fp-product-table td {
        display: block; /* Set td to block */
        width: calc(100% - 20px); /* Full width for td with padding */
        border: none;
        padding: 10px 10px; /* Padding for td */
        text-align: left; /* Align text to left */
        margin-left: 10px; /* Indent the cells a bit */
    }

    .fp-product-table tbody tr::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: #ddd;
        margin-top: 10px; /* Margin above the line */
    }

    .fp-item-name {
        font-weight: bold;
        font-size: 16px;
        color: #927B6D; /* Product name color */
        margin-bottom: 10px; /* Margin below the product name */
    }

    .fp-add-to-cart {
        width: 100%; /* Full width for add to cart button */
        margin-top: 10px; /* Margin at the top */
    }

    #fp-fast-payment-cart {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        border-radius: 0;
        max-width: 100%; /* Ensure it does not exceed screen width */
    }
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -35px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 4px solid #fff !important;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 1.5s ease-in-out infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}

.fp-sticky-cart.loading {
    opacity: 0.8;
}
