:root {
    --primary-color: #A30909;
    --secondary-color: #6b8cbc;
    --accent-color: #ff6b6b;
    --bs-btn-color: #A30909 !important;
    --bs-btn-border-color: #A30909 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #A30909 !important;
    --bs-btn-hover-border-color: #A30909 !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #A30909 !important;
    --bs-btn-active-border-color: #A30909 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #A30909 !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #A30909 !important;
    --bs-gradient: none;
}

body {
    background-color: #f6f6f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);}
.btn:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.customizer-container {
    background-color: white;
}

.viewer-container {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: #f6f6f6;
}

.coaster-svg {
    width: 100% !important;
    height: 450px !important;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.options-container {
    padding: 25px;
    overflow: auto;
}

.option-section {
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 20px;
}

.option-section:last-child {
    border-bottom: none;
}

.option-title {
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    font-size: 1rem;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0px;
    cursor: pointer;
    outline: 2px solid transparent;
    transition: all 0.2s;
    border: 3px solid #fff;
}

.color-option.active {
    outline-color: var(--primary-color);
    padding: 5px;
}

.pattern-option {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.2s;
    overflow: hidden;
}

.pattern-option.active {
    border-color: var(--primary-color);
}

.pattern-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

.btn-add-to-cart:hover, .btn-add-to-cart:active, .btn-add-to-cart:visited {
    background-color: var(--primary-color) !important;
}

.preview-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.preview-controls button {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-option {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
    width: 100%;
}

.size-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
}

.font-option {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.font-option.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.font-option.serif {
    font-family: 'Times New Roman', serif;
}

.font-option.sans {
    font-family: 'Arial', sans-serif;
}

.font-option.script {
    font-family: 'Brush Script MT', cursive;
}

.coaster-preview {
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .viewer-container {
        height: auto;
        margin-bottom: 30px;
    }
    .options-container {
        padding: 15px;
        max-width: 520px;
        margin: 0 auto;
        border-radius: 10px;
        z-index: 99999;
        position: relative;
    }
}
@media (max-width: 767px) {
    .customizer-container {
        background-color: transparent;
    }
    .coaster-svg {
        height: 300px !important;
    }
    .viewer-container {
        min-height: 300px;
        margin-bottom: 0;
    }
    .options-container {
        max-width: 90%;
        background: #ffff;
        margin-bottom: 5%;
    }
}