/**
 * Shopify Storefront Styles
 */

/* Container */
.sf-widget-container {
    position: relative;
}

/* Views */
.sf-view {
    display: none;
}

.sf-view.active {
    animation: sfFadeIn 0.3s ease;
    display: block;
}

@keyframes sfFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.sf-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    padding: 15px 0;
}

.sf-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.sf-breadcrumb a:hover {
    text-decoration: underline;
}

.sf-breadcrumb-sep {
    color: #999;
    margin: 0 10px;
}

/* Back Button */
.sf-back-button {
    background-color: #f5f5f5;
    border: 0;
    border-radius: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    color: #333;
    cursor: pointer;
    font-family: Oswald;
    font-size: 15px;
    line-height: 1;
    padding: 15px 40px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sf-back-button:hover {
    background: #333;
    color: #fff;
}

/* Grids */
.sf-collections-grid,
.sf-products-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

/* Collection Card */
.sf-collection-card,
.sf-product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sf-collection-card:hover,
.sf-product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Card Images */
.elementor .sf-collection-image img {
    height: 100%;
}

.sf-collection-image,
.sf-product-image {
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 10px;
    overflow: hidden;
}

.sf-collection-image img,
.sf-product-image img {
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    width: 100%;
}

.sf-collection-card:hover .sf-collection-image img,
.sf-product-card:hover .sf-product-image img {
    transform: scale(1.05);
}

/* Card Info */
.sf-collection-info,
.sf-product-info {
    padding: 15px;
}

.sf-collection-title,
.sf-product-title {
    margin: 0 0 8px 0;
    text-align: inherit;
}



.sf-product-price {
    margin: 0;
}

.sf-out-of-stock {
    background: #dc3545;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    margin-top: 8px;
    padding: 3px 8px;
}

/* Products Title */
.sf-products-title {
    color: #333;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
}

/* Product Detail */
.sf-product-detail {
    align-items: start;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
}

.sf-product-gallery {
    position: sticky;
    top: 20px;
}

.sf-main-image {
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.sf-main-image img {
    display: block;
    height: auto;
    width: 100%;
}

.sf-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-thumbnail {
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    height: 70px;
    object-fit: cover;
    transition: border-color 0.2s ease;
    width: 70px;
}

.sf-thumbnail:hover,
.sf-thumbnail.active {
    border-color: #333;
}

.sf-product-info-detail {
    padding: 0;
}

.sf-product-title-lg {
    color: #333;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.sf-product-vendor {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.sf-product-price-lg {
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sf-product-options {
    margin-bottom: 20px;
}

.sf-option-group {
    margin-bottom: 15px;
}

.sf-option-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sf-option-select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    padding: 10px 12px;
    width: 100%;
}

.sf-option-select:focus {
    border-color: #333;
    outline: none;
}

.sf-product-description {
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}

.sf-product-description p {
    margin: 0 0 15px 0;
}

.sf-product-description ul,
.sf-product-description ol {
    margin: 0 0 15px 20px;
}

.sf-quantity-selector {
    margin-bottom: 20px;
}

.sf-quantity-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.sf-quantity-controls {
    align-items: center;
    border: 1px #ddd solid;
    display: flex;
    gap: 0;
    max-width: 150px;
}

.sf-quantity-controls .sf-quantity-btn {
    align-items: center;
    background: #fff;
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    height: 40px;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
}

.sf-quantity-controls .sf-quantity-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.sf-quantity-controls .sf-quantity-btn:active {
    background: #e0e0e0;
}

.sf-quantity-minus {
    border-radius: 4px 0 0 4px;
}

.sf-quantity-plus {
    border-radius: 0 4px 4px 0;
}

.sf-quantity-input {
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    text-align: center;
    width: 60px;
}

/* Hide default number input arrows */
.sf-quantity-input::-webkit-outer-spin-button,
.sf-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sf-quantity-input[type=number] {
    -moz-appearance: textfield;
    border: none;
}

.sf-product-view .sf-buy-button {
    background: #333;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 35px;
    text-decoration: none;
    transition: background 0.2s ease;
    width: 100%;
}

.sf-buy-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.sf-buy-button.is-adding,
.sf-buy-button.is-adding:hover {
    cursor: not-allowed !important;
    opacity: 0.55 !important;
    pointer-events: none;
}

.sf-buy-button:hover {
    background: #555;
    color: #fff;
}

/* Loading State */
.sf-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    padding: 60px 20px;
    text-align: center;
}

.sf-loading-spinner {
    animation: sfSpinnerRotate 1s linear infinite;
    border: 4px solid #f0f0f0;
    border-radius: 50%;
    border-top: 4px solid #ff632c;
    height: 50px;
    width: 50px;
}

@keyframes sfSpinnerRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sf-loading-text {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* Preload Overlay */
.sf-preload-overlay {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1000;
}

.sf-preload-overlay .sf-loading {
    min-height: auto;
}

.sf-preload-overlay .sf-loading p {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
}

/* Error State */
.sf-error {
    background: #fff3f3;
    border-radius: 8px;
    color: #c62828;
    padding: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .sf-product-detail {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .sf-product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {

    .sf-collections-grid,
    .sf-products-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-product-title-lg {
        font-size: 1.4rem;
    }

    .sf-product-price-lg {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {

    .sf-collections-grid,
    .sf-products-grid {
        grid-template-columns: 1fr;
    }

    .sf-collection-info,
    .sf-product-info {
        padding: 12px;
    }

    .sf-collection-title,
    .sf-product-title {
        font-size: 1rem;
    }
}

/* Questionnaire Styles */
.sf-section-header {
    margin-bottom: 40px;
    text-align: center;
}

.sf-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sf-section-content {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
}

.sf-question {
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 1rem;
    margin: 30px auto;
    margin-bottom: 40px;
    max-width: 800px;
    padding: 40px 70px;
    text-align: center;
    text-align: center;
}

.sf-question-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.sf-question-buttons {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.sf-question-btn {
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sf-question-btn:hover {
    transform: scale(1.05);
}

.sf-back-to-q1 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .sf-section-title {
        font-size: 1.5rem;
    }

    .sf-question-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sf-question {
        padding: 20px;
    }
    
    .sf-product-description ul, 
    .sf-product-description ol {
        padding-left: 10px;
    }
}

/* Disable cart drawer interactions when LLC modal is open */
body.llc-modal-active .swp-cart-container,
body.llc-modal-active .swp-cart-inner,
body.llc-modal-active .swp-cart,
body.llc-modal-active .wps-cart,
body.llc-modal-active [class*="swp-cart"],
body.llc-modal-active [class*="wps-cart"] {
    pointer-events: none !important;
}

/* LLC Modal Styles */
.llc-modal-overlay {
    align-items: center;
    animation: llcFadeIn 0.3s ease;
    background-color: rgba(24, 27, 27, 0.85);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2147483647;
}

.llc-modal-overlay.active {
    display: flex;
}

@keyframes llcFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.llc-modal-container {
    animation: llcSlideIn 0.3s ease;
    background: white;
    max-width: 600px;
    padding: 40px;
    text-align: center;
    width: 90%;
}

@keyframes llcSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.llc-modal-container h2 {
    color: #000;
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.llc-modal-container p {
    color: #000;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.llc-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 40px auto 0;
    width: 90%;
}

.llc-modal-button {
    width: 100%;
    padding: 16px 4px;
    font-weight: bold;
    border-radius: 32px;
    border: none;
    background-color: #ff632c;
    color: white;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: auto !important;
    min-height: 0;
    line-height: 1.3;
    overflow: visible;
    white-space: normal !important;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.llc-modal-button:hover {
    background-color: black;
}

.llc-modal-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.llc-loading-spinner {
    display: inline-block;
    height: 20px;
    margin-left: 10px;
    width: 20px;
}

.llc-loading-spinner svg {
    animation: llcSpin 1s linear infinite;
}

@keyframes llcSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.llc-button-text {
    display: block;
    max-width: 100%;
}

.llc-button-text.hidden {
    display: none;
}

.llc-button-subtext {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 4px;
    opacity: 0.9;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ============================================
   Cart Drawer Addon Styles
   ============================================ */

.sf-cart-addons-wrapper {
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    order: 100;
    padding: 15px;
}

.sf-cart-addons {
    width: 100%;
}

.sf-cart-addons-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.sf-cart-addons-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

.sf-cart-addon-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-align: center;
}

.sf-addon-dtf {
    color: #000;
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 8px;
}

.sf-addon-image {
    align-items: center;
    display: flex;
    height: 70px;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    width: 100%;
}

.sf-addon-image img {
    object-fit: contain;
    width: 100%;
}

.sf-addon-title {
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5rem;
    margin: 8px 0;
    overflow: hidden;
}

.swp-cart .sf-cart-addons-title,
.swp-cart .sf-addon-title,
.wps-cart .sf-cart-addons-title,
.wps-cart .sf-addon-title {
    font-family: inherit;
    font-style: normal;
}

.sf-addon-price {
    color: #000;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sf-addon-add-btn {
    background: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    margin-top: auto;
    padding: 8px 12px;
    transition: background 0.2s ease;
    width: 100%;
}

.sf-addon-add-btn:hover {
    background: #555;
}

.sf-addon-add-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-addons :is(button, [type="button"], [type="submit"]),
body:not(.elementor-editor-active) .wps-cart .sf-cart-addons :is(button, [type="button"], [type="submit"]) {
    letter-spacing: normal !important;
    text-transform: none !important;
}

body:not(.elementor-editor-active) .swp-cart .sf-addon-add-btn,
body:not(.elementor-editor-active) .wps-cart .sf-addon-add-btn {
    appearance: none;
    background: #333 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-top: auto;
    padding: 8px 12px !important;
    transition: background 0.2s ease;
    width: 100%;
}

body:not(.elementor-editor-active) .swp-cart .sf-addon-add-btn:hover,
body:not(.elementor-editor-active) .wps-cart .sf-addon-add-btn:hover {
    background: #555 !important;
}

body:not(.elementor-editor-active) .swp-cart .sf-addon-add-btn:disabled,
body:not(.elementor-editor-active) .wps-cart .sf-addon-add-btn:disabled {
    background: #999 !important;
    cursor: not-allowed;
}

.sf-cart-addons.sf-addon-cols-1 .sf-cart-addon-card {
    display: grid;
    gap: 4px 12px;
    grid-template-columns: 70px minmax(0, 1fr) 35px;
    grid-template-rows: auto auto auto;
    text-align: left;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-dtf {
    font-size: 12px;
    grid-column: 2;
    grid-row: 1;
    line-height: 1.2;
    margin: 0;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-image {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-title {
    font-size: 16px;
    grid-column: 2;
    grid-row: 2;
    line-height: 1.3;
    margin: 0;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-price {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn {
    align-items: center;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    font-size: 0;
    grid-column: 3;
    grid-row: 1 / span 3;
    height: 35px;
    justify-content: center;
    margin-top: 0;
    min-width: 35px;
    padding: 0;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    width: 35px;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn::before {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn.is-loading::before {
    animation: sfAddonSpin 0.8s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    box-sizing: border-box;
    content: '';
    display: block;
    height: 16px;
    width: 16px;
}

.sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn:hover {
    background-color: #222;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn,
body:not(.elementor-editor-active) .wps-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn {
    align-items: center;
    background-color: #000 !important;
    border-radius: 50% !important;
    display: flex;
    flex-shrink: 0;
    font-size: 0 !important;
    grid-column: 3;
    grid-row: 1 / span 3;
    height: 35px;
    justify-content: center;
    margin-top: 0;
    min-width: 35px;
    padding: 0 !important;
    text-decoration: none !important;
    transition: 0.2s ease-in-out;
    width: 35px;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn::before,
body:not(.elementor-editor-active) .wps-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn::before {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn.is-loading::before,
body:not(.elementor-editor-active) .wps-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn.is-loading::before {
    animation: sfAddonSpin 0.8s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    box-sizing: border-box;
    content: '';
    display: block;
    height: 16px;
    width: 16px;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn:hover,
body:not(.elementor-editor-active) .wps-cart .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn:hover {
    background-color: #222 !important;
}

.sf-cart-addons-loading {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.sf-loading-spinner {
    animation: sfAddonSpin 0.8s linear infinite;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    border-top-color: #333;
    height: 24px;
    width: 24px;
}

@keyframes sfAddonSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile adjustments for cart addons */
@media (max-width: 480px) {
    .sf-cart-addons.sf-addon-cols-1 .sf-cart-addon-card {
        gap: 4px 10px;
        grid-template-columns: 60px minmax(0, 1fr) 32px;
        padding: 8px;
    }

    .sf-cart-addons.sf-addon-cols-1 .sf-addon-image {
        height: 60px;
        width: 60px;
    }

    .sf-cart-addons.sf-addon-cols-1 .sf-addon-title {
        font-size: 14px;
    }

    .sf-cart-addons.sf-addon-cols-1 .sf-addon-add-btn {
        height: 32px;
        min-width: 32px;
        width: 32px;
    }
}

/* ShopWP Cart overrides */
.swp-cart-is-empty .sf-cart-addons-wrapper,
.swp-cart-attrs-footer {
    display: none;
}

/* Editor preview helpers */
.sf-editor-preview-panel {
    margin-top: 30px;
    border: 2px dashed #0073aa;
    padding: 15px;
    background: #f9f9f9;
}

.sf-preview-disabled {
    pointer-events: none;
}

.sf-llc-modal-preview-overlay {
    position: relative;
    display: block;
    background: rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.sf-llc-modal-preview-container {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}
