/* relcom-public.css */
.relcom-input-error {
    border: 1px solid #ff4757 !important;
    background-color: #fff5f5 !important;
}

.relcom-store-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.relcom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.relcom-grid-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.relcom-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.relcom-product-image-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f9f9f9;
    overflow: hidden;
}

.relcom-product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relcom-hover-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    padding: 10px;
    transition: bottom 0.3s;
}

.relcom-grid-item:hover .relcom-hover-overlay {
    bottom: 0;
}

.relcom-badge-oos {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.relcom-product-details {
    padding: 15px;
    text-align: center;
}

.relcom-product-title {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
    font-weight: 600;
}

.relcom-price-regular {
    color: #555;
    font-weight: bold;
}

.relcom-price-sale {
    color: #ff4757;
    font-weight: bold;
    margin-left: 8px;
}

.relcom-price-call {
    color: #2ed573;
    font-weight: bold;
}

.relcom-colorbtn {
    background: rgba(132, 53, 137) !important;
    color: #fff !important;
}

.relcom-colorbtn:hover {
    background: #000 !important;
    color: #fff !important;
}

del.relcom-price-regular {
    color: #999;
    font-weight: normal;
}

/* Buttons */
.relcom-btn {
    display: inline-block;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
}

.relcom-btn:hover {
    background: #555;
}

.relcom-btn-quickview {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.relcom-btn-block {
    display: block;
    width: 100%;
}

.relcom-btn-primary {
    background: #1e90ff;
}

.relcom-btn-success {
    background: #2ed573;
    color: #fff;
}

.relcom-btn-outline {
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

/* Specific Cart Button Styles */
#relcom-btn-checkout {
    background: rgba(132, 53, 137) !important;
    color: #fff !important;
    border: none !important;
}

#relcom-btn-checkout:hover {
    background: #000 !important;
    color: #fff !important;
}

#relcom-btn-continue {
    background: rgb(103, 190, 217) !important;
    color: #000 !important;
    border: none !important;
}

#relcom-btn-continue:hover {
    opacity: 0.9;
    color: #000;
}

/* Modals */
.relcom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relcom-modal.relcom-hidden {
    display: none;
}

.relcom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.relcom-modal-content {
    background: #fff;
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    padding: 30px;
}

.relcom-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #f0f0f0;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* Quick View Inner */
.relcom-quickview-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.relcom-quickview-gallery {
    flex: 1;
    min-width: 300px;
}

.relcom-quickview-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.relcom-qv-title {
    margin: 0;
    font-size: 24px;
}

.relcom-qv-meta {
    display: flex;
    gap: 10px;
}

.relcom-category-badge,
.relcom-brand-badge {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.relcom-qv-price {
    font-size: 20px;
}

.relcom-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    max-width: 120px;
}

.relcom-qty-wrap input {
    width: 50px;
    text-align: center;
    border: none;
    pointer-events: none;
    padding: 10px 0;
    margin: 0;
}

.relcom-qty-wrap button {
    width: 35px;
    border: none;
    background: #f9f9f9;
    padding: 10px;
    cursor: pointer;
}

.relcom-qv-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Swiper Fix */
.relcom-gallery-swiper {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.relcom-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Cart Modal */
.relcom-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.relcom-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.relcom-cart-header h3 {
    margin: 0;
}

.relcom-cart-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.relcom-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.relcom-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.relcom-cart-totals {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.relcom-cart-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}

.relcom-cart-item-title {
    font-weight: 600;
}

.relcom-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.relcom-cart-rm {
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
}

.relcom-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#relcom-checkout-form-wrap input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.relcom-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Thank You */
.relcom-thankyou-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.relcom-wa-btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    margin: 20px 0;
}

.relcom-text-red {
    color: #ff4757;
    font-weight: bold;
}

@media(max-width: 1024px) {
    .relcom-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media(max-width: 768px) {
    .relcom-quickview-inner {
        flex-direction: column;
    }

    .relcom-gallery-swiper {
        height: 300px;
    }

    .relcom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media(max-width: 480px) {
    .relcom-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}