/* Mcpotar WhatsApp Sales Kit - Public Styles */

/* Products Grid */
.mws-products-wrapper {
    margin: 20px 0;
}

.mws-products {
    list-style: none;
    margin: 0 -15px;
    padding: 0;
    display: grid;
    gap: 30px;
}

.mws-products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.mws-products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.mws-products.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .mws-products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .mws-products { grid-template-columns: 1fr !important; }
}

.mws-product {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.mws-product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mws-product-image img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.mws-product-title {
    font-size: 16px;
    margin: 0 0 10px;
    font-weight: 600;
}

.mws-product-price {
    font-size: 18px;
    color: #77a464;
    margin: 10px 0;
}

.mws-product-price del {
    color: #999;
    margin-right: 5px;
}

.mws-product-price ins {
    text-decoration: none;
    font-weight: bold;
}

/* Buttons */
.mws-add-to-cart.button,
.button.alt {
    background-color: #a46497;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
    width: 100%;
}

.mws-add-to-cart.button:hover,
.button.alt:hover {
    background-color: #935386;
}

/* Cart Widget */
.mws-cart-widget {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

.mws-cart-icon {
    background: #a46497;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.mws-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Cart Page */
.mws-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.mws-cart-table th,
.mws-cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.mws-cart-table thead th {
    font-weight: 600;
    border-bottom: 2px solid #e5e5e5;
}

.product-thumbnail img {
    width: 80px;
    height: auto;
}

.product-remove button {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.mws-quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
}

.mws-cart-totals {
    max-width: 400px;
    margin-left: auto;
    background: #f7f7f7;
    padding: 20px;
}

.mws-cart-totals h2 {
    margin-top: 0;
}

.mws-cart-totals table {
    width: 100%;
    margin-bottom: 20px;
}

.mws-cart-totals th,
.mws-cart-totals td {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.mws-proceed-to-checkout a {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Checkout Page */
.mws-checkout-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .mws-checkout-columns {
        grid-template-columns: 1fr;
    }
}

.mws-checkout-billing h3,
.mws-checkout-review h3 {
    margin-top: 0;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.mws-checkout-review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mws-checkout-review-table th,
.mws-checkout-review-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.mws-checkout-notice {
    background: #f0f8ff;
    border-left: 4px solid #a46497;
    padding: 15px;
    margin-bottom: 20px;
}

#mws-place-order {
    font-size: 16px;
    padding: 15px 30px;
}

/* Single Product */
.mws-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .mws-single-product {
        grid-template-columns: 1fr;
    }
}

.mws-product-gallery img {
    width: 100%;
    height: auto;
}

.mws-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mws-gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.mws-gallery-thumbnails img:hover {
    border-color: #a46497;
}

.mws-product-summary .mws-product-title {
    font-size: 28px;
    margin: 0 0 20px;
}

.mws-product-summary .mws-product-price {
    font-size: 24px;
    margin: 20px 0;
}

.mws-quantity {
    margin-bottom: 20px;
}

.mws-quantity label {
    display: inline-block;
    margin-right: 10px;
}

.mws-quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
}

.mws-product-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666;
}


/* Embed Modal */
.mws-embed-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.mws-embed-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    position: relative;
}

.mws-embed-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.mws-embed-modal-close:hover {
    color: #000;
}

#mws-embed-code {
    width: 100%;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 15px 0;
    resize: vertical;
}

.mws-copy-embed {
    width: 100%;
    margin-top: 10px;
}

.mws-embed-product {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 13px;
    margin-top: 10px;
    display: inline-block;
}

.mws-embed-product:hover {
    color: #333;
}

.mws-embed-product .dashicons {
    font-size: 16px;
    vertical-align: middle;
}


/* Success Message */
.mws-success-message {
    display: none;
    background: #46b450;
    color: #fff;
    padding: 10px 15px;
    border-radius: 3px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}


/* Product Tabs */
.mws-product-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.mws-tab-button {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    bottom: -2px;
}

.mws-tab-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mws-tab-button:hover {
    color: #a46497;
    background: #f9f9f9;
}

.mws-tab-button.active {
    color: #a46497;
    border-bottom-color: #a46497;
    background: #fff;
}

.mws-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mws-no-products-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.mws-no-products-message p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.mws-no-products-message strong {
    font-size: 20px;
    color: #333;
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .mws-product-tabs {
        justify-content: center;
    }
    
    .mws-tab-button {
        flex: 1;
        justify-content: center;
        min-width: 100px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .mws-tab-button .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .mws-product-tabs {
        gap: 5px;
    }
    
    .mws-tab-button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Paynow Payment Styles */
.mws-payment-methods {
    margin: 20px 0;
}

.mws-payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.mws-payment-method:hover {
    border-color: #0066cc;
}

.mws-payment-method.selected {
    border-color: #0066cc;
    background: #f0f8ff;
}

.mws-payment-method input[type="radio"] {
    margin-right: 15px;
}

.mws-payment-method strong {
    display: block;
    margin-bottom: 5px;
}

.mws-payment-method p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.mws-checkout-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mws-checkout-buttons .button {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.mws-btn-paynow {
    background: #0066cc !important;
    color: white !important;
}

.mws-btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
}

.mws-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.mws-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mws-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mws-loading {
    text-align: center;
    padding: 20px;
}

.mws-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

@media (max-width: 768px) {
    .mws-checkout-buttons {
        flex-direction: column;
    }
    
    .mws-checkout-buttons .button {
        width: 100%;
    }
}

/* Music Preview Styles */
.mws-music-preview {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.mws-music-preview h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.mws-music-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.mws-music-meta span {
    font-size: 14px;
    color: #666;
}

.mws-music-meta strong {
    color: #333;
}

.mws-music-players {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mws-player {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.mws-player h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.mws-player iframe {
    width: 100%;
    border-radius: 4px;
}

.mws-preview-note {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

.mws-preview-note em {
    font-style: normal;
}

/* Music indicator on product cards */
.mws-music-indicator {
    display: inline-block;
    margin-left: 5px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .mws-music-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .mws-music-preview {
        padding: 15px;
    }
}

/* Product Search Form */
.mws-product-search-form {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    max-width: 500px;
}

.mws-product-search-form .search-field {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 16px;
}

.mws-product-search-form .search-submit {
    background: #a46497;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mws-product-search-form .search-submit:hover {
    background: #935386;
}

.mws-product-search-form .search-submit .dashicons {
    font-size: 20px;
    vertical-align: middle;
}

.mws-clear-search-button {
    display: flex;
    align-items: center;
    padding: 0 15px;
    text-decoration: none;
    color: #a46497;
    background: #f9f9f9;
    border-left: 1px solid #ddd;
    font-size: 14px;
}

.mws-clear-search-button .dashicons {
    font-size: 16px;
    margin-right: 5px;
}

/* Product Navigation */
.mws-product-navigation {
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.mws-back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #a46497;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.mws-back-to-shop:hover {
    background: #935386;
    transform: translateX(-5px);
}

.mws-back-to-shop .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Related Products */
.mws-related-products {
    margin: 40px 0;
    padding: 30px 0;
    background: #f9f9f9;
    border-radius: 8px;
}

.mws-related-products h2 {
    text-align: center;
    margin: 0 0 30px;
    font-size: 28px;
    color: #333;
}

.mws-related-products .mws-products {
    padding: 0 20px;
}

@media (max-width: 768px) {
    .mws-related-products h2 {
        font-size: 24px;
    }
    
    .mws-back-to-shop {
        width: 100%;
        justify-content: center;
    }
}
