/*
 * Flora Beverages
 * Bespoke Bottle Customizer
 */


/* =========================================================
   GENERAL
========================================================= */

*,
*::before,
*::after {
    border-radius: 0 !important;
}

body {
    font-family: 'Jost', sans-serif;
}

/* =========================================================
   HEADER
========================================================= */

#header .header-body {
    background-color: #fff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
}

#header .header-nav .nav-link {
    color: #333 !important;
}

#header .header-nav .nav-link:hover,
#header .header-nav .nav-link.active {
    color: #d0b475 !important;
}

/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.download-btn {
    background-color: #3e3e3e;
    border-color: #3e3e3e;
    color: #fff;
    font-weight: 600;
    padding: 6px 16px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    background-color: #d0b475;
    border-color: #d0b475;
    color: #fff;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb a {
    color: #d0b475;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #b89e5e;
}

/* =========================================================
   BESPOKE SECTION
========================================================= */

.bespoke-section {
    background: #fff;
    padding: 80px 0;
    overflow: hidden;
}

/* =========================================================
   FORM CARD
========================================================= */

.bespoke-form-card {
    background: #fafafa;
    border: 1px solid #e7e7e7;
    padding: 38px;
    height: 100%;
}

.bespoke-title {
    color: #3e3e3e;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.bespoke-title span {
    color: #d0b475;
    display: block;
}

.bespoke-description {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* =========================================================
   FORM FIELDS
========================================================= */

.bespoke-field {
    margin-bottom: 22px;
}

.bespoke-field label {
    display: block;
    color: #3e3e3e;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 7px;
}

.bespoke-input {
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    padding: 13px 15px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: all 0.25s ease;
}

.bespoke-input:focus {
    border-color: #d0b475;
    box-shadow: 0 0 0 3px rgba(208, 180, 117, 0.12);
}

.bespoke-input::placeholder {
    color: #aaa;
}

/* =========================================================
   BOTTLE CHOICE
========================================================= */

.bottle-choice-container {
    display: flex;
    gap: 12px;
}

.bottle-choice {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.bottle-choice input {
    display: none;
}

.bottle-choice-box {
    display: block;
    border: 1px solid #ddd;
    background: #fff;
    padding: 15px;
    text-align: center;
    transition: all 0.25s ease;
}

.bottle-choice:hover .bottle-choice-box {
    border-color: #d0b475;
}

.bottle-choice input:checked + .bottle-choice-box {
    border-color: #d0b475;
    background: #f8f4eb;
    box-shadow: inset 0 0 0 1px #d0b475;
}

.bottle-choice-title {
    color: #3e3e3e;
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================================
   LOGO UPLOAD
========================================================= */

.logo-upload-box {
    position: relative;
    border: 1px dashed #cfcfcf;
    background: #fff;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.logo-upload-box:hover {
    border-color: #d0b475;
    background: #fdfbf7;
}

.logo-upload-box input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.logo-upload-content {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.logo-upload-content i {
    font-size: 1.8rem;
    color: #d0b475;
    margin-bottom: 8px;
}

.logo-upload-content span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

.logo-upload-content small {
    margin-top: 3px;
    color: #999;
    font-size: 0.75rem;
}

/* =========================================================
   UPLOADED LOGO INFORMATION
========================================================= */

.uploaded-logo-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e4e4e4;
    background: #fff;
    padding: 10px;
    margin-top: -8px;
    margin-bottom: 22px;
}

.uploaded-logo-info img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border: 1px solid #eee;
    background: #fff;
}

.uploaded-logo-info strong {
    display: block;
    color: #3e3e3e;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.remove-logo-btn {
    border: none;
    background: transparent;
    color: #b33;
    padding: 0;
    font-size: 0.75rem;
    cursor: pointer;
}

/* =========================================================
   CREATE BUTTON
========================================================= */

.bespoke-create-btn {
    width: 100%;
    border: none;
    background: #d0b475;
    color: #fff;
    padding: 15px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bespoke-create-btn i {
    margin-right: 8px;
}

.bespoke-create-btn:hover {
    background: #b89e5e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 180, 117, 0.25);
}

/* =========================================================
   RESET BUTTON
========================================================= */

.bespoke-reset-btn {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    padding: 12px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bespoke-reset-btn:hover {
    border-color: #d0b475;
    color: #d0b475;
}

/* =========================================================
   PREVIEW CARD
========================================================= */

.bespoke-preview-card {
    background: #fafafa;
    border: 1px solid #e7e7e7;
    height: 100%;
    padding: 30px;
}

.preview-header {
    text-align: center;
    margin-bottom: 20px;
}

.preview-label {
    display: inline-block;
    color: #d0b475;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.preview-header h2 {
    color: #3e3e3e;
    font-size: 1.7rem;
    margin: 0;
}

/* =========================================================
   BOTTLE PREVIEW AREA
========================================================= */

.bottle-preview-area {
    width: 100%;
    min-height: 520px;
    background:
        linear-gradient(
            135deg,
            #f7f7f7 25%,
            #eeeeee 25%,
            #eeeeee 50%,
            #f7f7f7 50%,
            #f7f7f7 75%,
            #eeeeee 75%
        );
    background-size: 30px 30px;
    border: 1px solid #e2e2e2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* =========================================================
   BOTTLE CANVAS
========================================================= */

.bottle-canvas {
    position: relative;
    width: 330px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.bottle-placeholder {
    width: 190px;
    height: 420px;
    border: 2px dashed #bbb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    padding: 20px;
}

.bottle-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #c5c5c5;
}

.bottle-placeholder span {
    font-size: 1rem;
    font-weight: 600;
}

.bottle-placeholder small {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #aaa;
}

/* =========================================================
   ACTUAL BOTTLE
========================================================= */

.bottle-image {
    position: relative;
    z-index: 1;

    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   ORIGINAL "YOUR LOGO" COVER
========================================================= */

/*.logo-cover {
    position: absolute;

    top: 43%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: #F5F5F5;

    z-index: 2;

    pointer-events: none;
}*/

/* 200 ml bottle - slightly wider cover */
.logo-cover.bottle1 {
    width: 115px;
    height: 100px;
}

/* 750 ml bottle - keep existing size */
.logo-cover.bottle2 {
    width: 115px;
    height: 65px;
}

/* =========================================================
   LOGO OVERLAY
========================================================= */

.logo-overlay {
    position: absolute;

    /*
     * These values will be calibrated when the
     * actual bottle images are provided.
     */

    top: 43%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 105px;
    height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    pointer-events: none;

    z-index: 3;
}

.logo-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================================================
   CUSTOMER INFO
========================================================= */

.preview-customer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 20px;
    background: #ddd;
}

.preview-customer-info > div {
    background: #fff;
    padding: 14px 16px;
}

.preview-customer-info span {
    display: block;
    color: #999;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.preview-customer-info strong {
    color: #3e3e3e;
    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   NOTE
========================================================= */

.preview-note {
    margin-top: 15px;
    color: #888;
    font-size: 0.75rem;
    line-height: 1.5;
}

.preview-note i {
    color: #d0b475;
    margin-right: 5px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .bespoke-section {
        padding: 50px 0;
    }

    .bespoke-form-card,
    .bespoke-preview-card {
        padding: 25px;
    }

}


@media (max-width: 576px) {

    .bespoke-title {
        font-size: 1.8rem;
    }

    .bottle-preview-area {
        min-height: 430px;
    }

    .bottle-canvas {
        width: 280px;
        height: 410px;
    }

    .bottle-placeholder {
        width: 160px;
        height: 350px;
    }

    .preview-customer-info {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   BESPOKE TOAST NOTIFICATION
========================================================= */

.bespoke-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;

    min-width: 300px;
    max-width: 420px;

    padding: 15px 20px;

    background: #ffffff;
    color: #333333;

    border-radius: 6px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);

    font-size: 15px;
    line-height: 1.5;

    display: flex;
    align-items: center;

    opacity: 0;
    transform: translateY(-20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* Show toast */

.bespoke-toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* Toast icon */

.bespoke-toast-icon {
    margin-right: 12px;
    font-size: 18px;
}


/* Success */

.bespoke-toast.success {
    border-left: 4px solid #28a745;
}


/* Error */

.bespoke-toast.error {
    border-left: 4px solid #dc3545;
}


/* Warning */

.bespoke-toast.warning {
    border-left: 4px solid #f0ad4e;
}


/* Mobile */

@media (max-width: 576px) {

    .bespoke-toast {

        top: 20px;
        left: 20px;
        right: 20px;

        min-width: auto;
        max-width: none;

    }

}