/* Shalmionline Marketplace - Frontend Styles */

:root {
    --shalmio-navy: #1a2a4a;
    --shalmio-gold: #d4a574;
    --shalmio-cream: #f5f0e8;
    --shalmio-text: #333;
    --shalmio-border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--shalmio-text);
    line-height: 1.6;
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */

.shalmio-registration-container,
.shalmio-login-container,
.shalmio-become-seller-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.shalmio-registration-box,
.shalmio-login-box,
.shalmio-become-seller-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--shalmio-gold);
}

.shalmio-registration-box h2,
.shalmio-login-box h2,
.shalmio-become-seller-box h2 {
    margin-bottom: 25px;
    color: var(--shalmio-navy);
    font-size: 24px;
}

/* ============================================
   FORMS
   ============================================ */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--shalmio-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--shalmio-border);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--shalmio-gold);
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */

.shalmio-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.shalmio-btn-primary {
    background: var(--shalmio-gold);
    color: var(--shalmio-navy);
}

.shalmio-btn-primary:hover {
    background: #c4956e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.shalmio-btn-secondary {
    background: var(--shalmio-navy);
    color: white;
}

.shalmio-btn-secondary:hover {
    background: #0d1929;
}

.shalmio-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* ============================================
   ALERTS
   ============================================ */

.shalmio-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.shalmio-alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.shalmio-alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.shalmio-alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* ============================================
   SELLER DASHBOARD
   ============================================ */

.shalmio-seller-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shalmio-seller-dashboard h2 {
    color: var(--shalmio-navy);
    margin-bottom: 25px;
    font-size: 28px;
}

.shalmio-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--shalmio-border);
    overflow-x: auto;
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--shalmio-text);
    transition: all 0.3s;
    font-size: 14px;
}

.tab-button:hover {
    color: var(--shalmio-gold);
}

.tab-button.active {
    color: var(--shalmio-gold);
    border-bottom-color: var(--shalmio-gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--shalmio-navy);
    margin-bottom: 20px;
    font-size: 20px;
}

/* ============================================
   PRODUCTS TABLE
   ============================================ */

.shalmio-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.shalmio-products-table thead {
    background: var(--shalmio-cream);
}

.shalmio-products-table th,
.shalmio-products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--shalmio-border);
}

.shalmio-products-table th {
    font-weight: 600;
    color: var(--shalmio-navy);
}

.shalmio-products-table tr:hover {
    background: #f9f9f9;
}

.status {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-publish {
    background: #d4edda;
    color: #155724;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   SHOPS LISTING
   ============================================ */

.shalmio-shops-listing {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.shalmio-shops-listing h2 {
    color: var(--shalmio-navy);
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.shop-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.shop-image {
    height: 200px;
    overflow: hidden;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.shop-card:hover .shop-image img {
    transform: scale(1.05);
}

.shop-info {
    padding: 20px;
}

.shop-info h3 {
    color: var(--shalmio-navy);
    margin-bottom: 10px;
    font-size: 18px;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: var(--shalmio-gold);
    font-size: 16px;
}

.rating-text {
    font-size: 12px;
    color: #666;
}

/* ============================================
   PRODUCTS LISTING
   ============================================ */

.shalmio-products-listing {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.shalmio-products-listing h2 {
    color: var(--shalmio-navy);
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.products-filter {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.products-filter label {
    font-weight: 600;
    color: var(--shalmio-navy);
}

.products-filter select {
    padding: 10px 15px;
    border: 1px solid var(--shalmio-border);
    border-radius: 5px;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    color: var(--shalmio-navy);
    margin-bottom: 8px;
    font-size: 16px;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--shalmio-gold);
    margin-bottom: 12px;
}

/* ============================================
   LINKS
   ============================================ */

.shalmio-registration-link,
.shalmio-login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.shalmio-registration-link a,
.shalmio-login-link a {
    color: var(--shalmio-gold);
    text-decoration: none;
    font-weight: 600;
}

.shalmio-registration-link a:hover,
.shalmio-login-link a:hover {
    text-decoration: underline;
}

/* ============================================
   COPY INPUT
   ============================================ */

.shalmio-copy-input {
    padding: 10px;
    border: 1px solid var(--shalmio-border);
    border-radius: 5px;
    width: 300px;
    font-size: 13px;
}

.shalmio-copy-btn {
    padding: 8px 16px;
    background: var(--shalmio-gold);
    color: var(--shalmio-navy);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.shalmio-copy-btn:hover {
    background: #c4956e;
}

/* ============================================
   SHOP INFO
   ============================================ */

.shop-info {
    background: var(--shalmio-cream);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--shalmio-gold);
}

.shop-info p {
    margin-bottom: 12px;
    font-size: 14px;
}

.shop-info strong {
    color: var(--shalmio-navy);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .shalmio-registration-container,
    .shalmio-login-container,
    .shalmio-become-seller-container {
        margin: 20px;
    }

    .shalmio-registration-box,
    .shalmio-login-box,
    .shalmio-become-seller-box {
        padding: 20px;
    }

    .shalmio-dashboard-tabs {
        flex-wrap: wrap;
    }

    .shops-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .shalmio-copy-input {
        width: 100%;
    }
}
