/* 
 * WMSitesi - SEOClerks Clone Style 
 * Vanilla CSS
 */

:root {
    --primary-color: #00a2ff;
    --primary-hover: #008be6;
    --success-color: #43b968;
    --success-hover: #36a357;
    --text-color: #4a5568;
    --text-muted: #a0aec0;
    --bg-color: #f5f8fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Inter', sans-serif;
    --dark-bg: #2d3748;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3 {
    width: 25%;
    padding: 0 15px;
}

.col-md-9 {
    width: 75%;
    padding: 0 15px;
}

/* Header */
/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #34414e; /* SEOClerks dark slate gray */
    color: #a1b1bc;
    padding: 60px 0 20px 0;
    margin-top: 50px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    color: #8195a4;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border: 1px solid #4a5c6d;
    border-radius: 50%;
    color: #a1b1bc;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #fff;
    border-color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 13px;
}

.footer-links a:hover {
    color: #00a2ff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #4a5c6d;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    background: #2a3541;
    border: 1px solid #4a5c6d;
    padding: 10px 15px;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 250px;
}

.newsletter-form button {
    background: #00a2ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #0088d8;
}

.footer-copyright {
    color: #8195a4;
    font-size: 13px;
}


.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 26px;
    font-weight: 400;
    color: #00a2ff;
    text-decoration: none;
}
.logo .logo-text { font-weight: 300; }
.logo .logo-bold { font-weight: 700; color: #4a5568; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #4a5568;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover { background: #e2e8f0; }

.user-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #4a5568;
}

.btn-outline:hover {
    background-color: var(--white);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* Sub Header */
.sub-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-nav {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: space-between;
    overflow-x: auto;
}

.category-nav a {
    color: #718096;
    font-size: 13px;
    white-space: nowrap;
}

.category-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    padding: 30px;
    color: var(--white);
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.promo-content h2 {
    font-size: 24px;
    font-weight: 600;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.countdown {
    display: flex;
    gap: 10px;
}

.time-box {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 5px 10px;
    text-align: center;
}

.time-box span {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.time-box small {
    font-size: 10px;
    opacity: 0.8;
}

/* Controls Row */
.controls-row {
    margin: 30px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 35px 10px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.styled-select:hover {
    border-color: #c0c4cc;
}
.styled-select:focus {
    border-color: #00b0f0;
    box-shadow: 0 0 0 2px rgba(0, 176, 240, 0.1);
}

.view-toggles {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: #a0aec0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.view-btn.active, .view-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Services Layout */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s;
    position: relative;
    display: flex;
}

.service-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: -20px;
    background: #00a2ff;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 25px;
    transform: rotate(-45deg);
    z-index: 2;
    text-transform: uppercase;
}

/* List View (Default) */
.list-view .service-card {
    width: 100%;
    flex-direction: row;
    height: 160px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    box-shadow: none;
    margin-bottom: 15px;
    background: #fff;
}

.list-view .service-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-view .service-image {
    width: 260px;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.list-view .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.list-view .featured-badge {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #00b0f0;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 35px;
    transform: rotate(-45deg);
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.list-view .service-content {
    flex-grow: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Sc-Top */
.list-view .sc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.list-view .sc-info {
    flex-grow: 1;
    padding-right: 20px;
}
.list-view .service-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.list-view .service-title a {
    color: #176B87;
    text-decoration: none;
    font-weight: 600;
}
.list-view .service-title a:hover {
    text-decoration: underline;
}
.list-view .service-excerpt {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}
.list-view .service-price {
    color: #4cd394;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Divider */
.list-view .sc-divider {
    border-bottom: 1px solid #eee;
    margin: 12px 0;
}

/* Sc-Bottom */
.list-view .sc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-view .sc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.list-view .btn-like-new {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.list-view .btn-like-new:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}
.list-view .sc-likes {
    color: #4cd394;
    border: 1px solid #4cd394;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.list-view .btn-order-new {
    background: #4cd394;
    color: white;
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.list-view .btn-order-new:hover {
    background: #3eb57e;
    color: white;
}

.list-view .sc-seller {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.list-view .sc-seller-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.list-view .seller-avatar-new {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.list-view .seller-name-new {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.list-view .online-dot-new {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}
.list-view .sc-rating-new {
    color: #3498db;
    font-size: 13px;
    font-weight: 500;
}

/* Grid View */
.grid-view .service-card {
    width: calc(33.333% - 14px);
    flex-direction: column;
    height: auto;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.grid-view .service-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.grid-view .service-image { width: 100%; aspect-ratio: 16 / 9; height: auto; position: relative; overflow: hidden; }
.grid-view .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.grid-view .featured-badge {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #00b0f0;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 35px;
    transform: rotate(-45deg);
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.grid-view .service-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto auto;
    gap: 12px;
    padding: 15px;
    flex-grow: 1;
}

.grid-view .sc-top, .grid-view .sc-bottom {
    display: contents; 
}

/* Grid: Seller Info */
.grid-view .sc-seller {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    align-self: center;
}
.grid-view .sc-seller-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.grid-view .seller-avatar-new {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.grid-view .seller-name-new {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.grid-view .online-dot-new {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}
.grid-view .sc-rating-new {
    color: #3498db;
    font-size: 13px;
    font-weight: 500;
}

/* Grid: Price */
.grid-view .service-price {
    grid-column: 2;
    grid-row: 1;
    color: #4cd394;
    font-size: 20px;
    font-weight: bold;
    align-self: center;
}

/* Grid: Title */
.grid-view .sc-info {
    grid-column: 1 / -1;
    grid-row: 2;
}
.grid-view .service-title {
    margin: 5px 0 0 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-view .service-title a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
}
.grid-view .service-title a:hover {
    text-decoration: underline;
    color: #176B87;
}
.grid-view .service-excerpt {
    display: none;
}

/* Grid: Divider */
.grid-view .sc-divider {
    grid-column: 1 / -1;
    grid-row: 3;
    border-bottom: 1px solid #eee;
    margin: 2px 0;
}

/* Grid: Actions */
.grid-view .sc-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.grid-view .sc-likes {
    display: none;
}
.grid-view .btn-like-new {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.grid-view .btn-like-new:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}
.grid-view .btn-order-new {
    background: #4cd394;
    color: white;
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.grid-view .btn-order-new:hover {
    background: #3eb57e;
    color: white;
}

/* Common Card Elements */
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.mobile-service-header { display: none; }

.service-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 80%;
}

.service-title a {
    color: #2d3748;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

.service-excerpt {
    font-size: 13px;
    color: #718096;
    margin-bottom: auto;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

/* In Grid view, reverse footer items so buttons are on right, seller on left */
.grid-view .service-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 15px;
    margin-top: auto;
}

.grid-view .footer-actions {
    width: 100%;
    justify-content: space-between;
}

.footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-like {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #a0aec0;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-like:hover {
    color: #e53e3e;
    border-color: #e53e3e;
}

.btn-order {
    background-color: var(--success-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--success-color);
}

.btn-order:hover {
    background-color: var(--success-hover);
    text-decoration: none;
}

.seller-info {
    display: flex;
    align-items: center;
}

.seller-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.seller-details {
    display: flex;
    flex-direction: column;
}

.seller-name {
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-dot-small {
    width: 6px;
    height: 6px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: inline-block;
}

.rating-badge {
    font-size: 11px;
    color: #00a2ff;
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    background-color: transparent;
}

.sidebar-widget {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    background: #f7fafc;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    outline: none;
    font-size: 13px;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0 12px;
    color: #a0aec0;
    cursor: pointer;
}

.widget-title {
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-list {
    list-style: none;
}

.cat-links li {
    margin-bottom: 8px;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-links a {
    color: #4a5568;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.cat-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.cat-links i {
    font-size: 12px;
    color: #a0aec0;
}

.toggle-btn {
    padding: 2px 5px;
    cursor: pointer;
    color: #a0aec0;
    transition: 0.2s;
}

.toggle-btn:hover {
    color: var(--primary-color);
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a0aec0;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px #a0aec0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-filter {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.price-val {
    font-size: 13px;
    color: #4a5568;
}

.checkboxes li {
    margin-bottom: 10px;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
}

.checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
}

.checkboxes input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkboxes input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-view .service-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .col-md-3, .col-md-9 {
        width: 100%;
    }
    
    .row { flex-direction: column-reverse; }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .controls-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .list-view .service-card {
        flex-direction: column;
        height: auto;
    }
    .list-view .service-image {
        width: 100%;
        height: 180px;
    }
    .list-view .service-excerpt {
        display: none;
    }
    .list-view .sc-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .list-view .sc-seller {
        align-items: flex-start;
    }
}

.sub-cat-list { display: none; padding-left: 15px; margin-top: 8px; border-left: 1px dashed #e2e8f0; margin-left: 6px; }
.cat-item.open > .sub-cat-list { display: block; }
.cat-item.open > .cat-header .toggle-btn { transform: rotate(90deg); }
.toggle-btn { transition: 0.2s; cursor: pointer; }

/* =========================================
   SERVICE DETAIL PAGE (SEOClerks Clone)
========================================= */
.service-page-container { display: flex; gap: 30px; margin-top: 30px; margin-bottom: 50px; align-items: flex-start; }
.service-left-col { flex: 1; min-width: 0; }
.service-right-col { width: 320px; flex-shrink: 0; position: sticky; top: 20px; }
.service-title { font-size: 28px; color: #333; margin-bottom: 20px; font-weight: 600; }
.service-image-wrapper { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 15px; background: #f0f0f0; }
.service-main-image { width: 100%; height: auto; display: block; }
.full-screen-btn { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.service-action-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.action-left, .action-right { display: flex; align-items: center; gap: 10px; }
.btn-share { background: #fff; border: 1px solid #ddd; color: #666; padding: 0 15px; height: 38px; border-radius: 4px; cursor: pointer; font-size: 14px; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.rating-stars { color: #ffc107; font-size: 14px; margin-left: 10px; }
.thumbnail-preview img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.guarantee-text { font-size: 14px; color: #6c757d; margin-bottom: 25px; }
.guarantee-text i { color: #20c997; }
/* tab styles defined below in service page layout section */
.service-content-body { background: #fff; padding: 30px; border-radius: 4px; border: 1px solid #eee; }
.service-content-body h3 { margin-bottom: 20px; font-size: 20px; }
.description-text { font-size: 15px; line-height: 1.6; color: #444; }

/* Right Column */
.order-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; text-align: center; position: relative; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.featured-badge { position: absolute; top: 15px; left: -10px; background: #00a2ff; color: white; padding: 5px 30px; transform: rotate(-45deg); font-size: 10px; font-weight: bold; }
.price-display { color: #20c997; font-size: 32px; font-weight: bold; margin-bottom: 15px; }
.btn-order-now { background: #20c997; color: white; border: none; width: 100%; padding: 12px; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; }
.seller-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.seller-cover { height: 100px; background-color: #0056b3; position: relative; }
.seller-level-badge { position: absolute; top: 10px; right: 10px; background: #fff; color: #333; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.seller-avatar-wrapper { position: relative; width: 80px; height: 80px; margin: -40px auto 10px auto; }
.seller-avatar { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; background: #eee; object-fit: cover; }
.online-status { position: absolute; top: 10px; left: 10px; background: #20c997; color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.seller-name { text-align: center; font-size: 18px; margin-bottom: 5px; justify-content: center; }
.seller-joined { text-align: center; color: #888; font-size: 12px; margin-bottom: 20px; }
.seller-actions { display: flex; gap: 10px; padding: 0 20px; margin-bottom: 10px; }
.btn-follow, .btn-contact { flex: 1; padding: 8px; border-radius: 4px; border: 1px solid #00a2ff; background: #fff; color: #00a2ff; cursor: pointer; font-size: 13px; font-weight: bold; }
.btn-contact { background: #00a2ff; color: #fff; }
.btn-custom-order { display: block; width: calc(100% - 40px); margin: 0 auto 20px auto; background: #ffc107; color: #fff; border: none; padding: 10px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.seller-stats { border-top: 1px solid #eee; padding: 15px 20px; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.stat-row span { color: #666; }
.stat-row strong { color: #333; }

/* Service Page Layout */
.service-page-container { display: flex; gap: 30px; margin-top: 20px; align-items: flex-start; }
.service-left-col { flex: 0 0 calc(68% - 15px); max-width: calc(68% - 15px); background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.service-right-col { flex: 0 0 calc(32% - 15px); max-width: calc(32% - 15px); }
.service-title { font-size: 24px; color: #2c3e50; margin-bottom: 20px; font-weight: bold; line-height: 1.3; }
.service-image-wrapper { width: 100%; position: relative; margin-bottom: 20px; border-radius: 8px; overflow: hidden; background: #f8f9fa; border: 1px solid #eaeaea; }
.service-main-image { width: 100%; display: block; object-fit: contain; max-height: 450px; }
.full-screen-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white; padding: 5px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: 0.2s; }
.full-screen-btn:hover { background: rgba(0,0,0,0.8); }
.service-action-bar { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 25px; align-items: center; }
.action-left { display: flex; gap: 10px; align-items: center; }
.btn-wishlist, .btn-like { border: 1px solid #ddd; background: #fff; height: 38px; border-radius: 4px; cursor: pointer; color: #666; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: 0.2s; white-space: nowrap; flex-shrink: 0; font-size: 14px; vertical-align: middle; box-sizing: border-box; }
.btn-wishlist { width: 38px; padding: 0; }
.btn-like { padding: 0 14px; min-width: 70px; }
.btn-wishlist:hover { color: #e74c3c; border-color: #e74c3c; background: #fffaf9; }
.btn-like:hover { color: #20c997; border-color: #20c997; background: #f0fbf7; }
.rating-stars { color: #ffc107; font-size: 14px; margin-left: 5px; }
.guarantee-text { color: #20c997; font-weight: bold; font-size: 13px; }
.service-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 0; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.tab-btn { background: none; border: none; padding: 9px 22px; font-size: 13px; font-weight: 700; color: #718096; cursor: pointer; transition: all 0.2s; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.4px; }
.tab-btn:hover { color: #333; background: #f5f5f5; }
.tab-btn.active { background: #00a2ff; color: #fff; border-radius: 50px; }
.service-content-body h3 { font-size: 18px; margin-bottom: 15px; color: #2c3e50; }
.description-text { font-size: 15px; line-height: 1.7; color: #4a5568; }

@media (max-width: 992px) {
    .service-page-container { flex-direction: column; }
    .service-left-col, .service-right-col { flex: 0 0 100%; max-width: 100%; }
}

/* Mobile Optimizations */
.mobile-only { display: none !important; }
.desktop-only { display: block; }
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 20px; color: #4a5568; cursor: pointer; }

/* Custom Modals (Auth & Filter) */
.custom-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.custom-modal.show-modal { display: flex; }
.custom-modal-content { background-color: #fefefe; margin: auto; padding: 0; border: 1px solid #888; width: 90%; max-width: 400px; border-radius: 8px; position: relative; animation: animatetop 0.4s; }
@keyframes animatetop { from {top:-300px; opacity:0} to {top:0; opacity:1} }
.close-modal { color: #aaa; position: absolute; right: 15px; top: 10px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover, .close-modal:focus { color: black; text-decoration: none; cursor: pointer; }
body.no-scroll { overflow: hidden; }

/* Auth Modal Styles */
.auth-modal-content { padding: 30px; }
.auth-title { text-align: left; color: #2c3e50; font-size: 20px; margin-bottom: 25px; margin-top: 10px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-input-group { position: relative; }
.auth-input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #a0aec0; }
.auth-input-group input { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.auth-input-group input:focus { border-color: #00a2ff; }
.auth-input-group.auth-input-focused i { color: #00a2ff; }
.auth-submit-btn { background: #00a2ff; color: white; border: none; padding: 12px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 15px; margin-top: 5px; }
.auth-submit-btn:hover { background: #008be6; }
.auth-login-link { text-align: center; font-size: 14px; color: #4a5568; }
.auth-login-link a { color: #00a2ff; text-decoration: none; }
.auth-divider { text-align: center; margin: 10px 0; position: relative; }
.auth-divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #e2e8f0; z-index: 1; }
.auth-divider span { background: #fff; padding: 0 10px; color: #a0aec0; font-size: 12px; position: relative; z-index: 2; }
.auth-google-btn { background: #fff; border: 1px solid #e2e8f0; padding: 10px; border-radius: 4px; font-weight: 600; color: #4a5568; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.auth-google-btn img { width: 18px; }
.auth-google-btn:hover { background: #f8f9fa; }

/* Filter Modal Styles */
.filter-modal-content { max-width: 320px; border-radius: 0; height: 100vh; max-height: 100vh; position: absolute; left: 0; top: 0; animation: slideRight 0.3s; display: flex; flex-direction: column; width: 85%; margin: 0; }
@keyframes slideRight { from {left:-320px;} to {left:0;} }
.filter-modal-header { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.filter-modal-header h3 { margin: 0; font-size: 18px; }
.filter-modal-header .close-modal { position: static; }
.filter-modal-body { padding: 20px; overflow-y: auto; flex: 1; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-flex !important; }
    
    /* Header Mobile */
    .header-inner { flex-wrap: nowrap; padding: 10px 15px; }
    .mobile-menu-toggle { display: block; margin-right: 15px; font-size: 24px; color: #4a5568; }
    .logo { flex: 1; }
    .logo a { font-size: 22px; }
    
    /* Mobile Offcanvas Menu */
    .main-nav { display: none; position: fixed; top: 0; left: 0; width: 260px; height: 100vh; background: #fff; z-index: 10000; padding: 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
    .main-nav.mobile-active { display: block; animation: slideRight 0.3s; }
    .close-mobile-menu { position: absolute; top: 15px; right: 20px; background: transparent; border: none; font-size: 28px; color: #a0aec0; cursor: pointer; line-height: 1; }
    .main-nav ul { flex-direction: column; gap: 15px; margin-top: 30px; }
    
    /* Join Button Mobile */
    .join-btn-mobile { padding: 6px 15px; font-size: 13px; margin-left: 10px; }
    
    /* Sub Header Categories - Horizontal Scroll */
    .sub-header { padding: 0; }
    .category-nav { padding: 12px 15px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; gap: 15px; justify-content: flex-start; }
    .category-nav::-webkit-scrollbar { display: none; }
    
    /* View Toggles & Filter Mobile Button */
    .controls-row { flex-wrap: wrap; gap: 15px; }
    .sort-dropdown { width: 100%; order: 2; }
    .sort-dropdown select { width: 100%; padding: 12px 15px; font-size: 14px; }
    .view-toggles { width: 100%; order: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
    .filter-mobile-btn { margin-right: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e1e8ed; background: #fff; color: #a0aec0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
    .view-btn { width: 40px; height: 40px; font-size: 16px; }
    
    /* Sidebar */
    .col-md-3 { display: none; } /* Hide sidebar on mobile natively, will be in modal */
    .col-md-9 { width: 100%; }
    
    /* Mobile List View Styling (like Image) */
    .list-view .service-card { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 15px 0; border: none; border-bottom: 1px solid #f0f0f0; margin-bottom: 0; box-shadow: none; border-radius: 0; align-items: start; height: auto; width: 100%; }
    .list-view .service-content { display: contents; }
    .list-view .service-image { grid-column: 1; grid-row: 1; width: 110px; aspect-ratio: 16 / 9; height: auto; border-radius: 4px; flex-shrink: 0; overflow: hidden; margin: 0; }
    .list-view .featured-badge { display: none !important; }
    .list-view .sc-top { grid-column: 2; grid-row: 1; display: block !important; width: 100% !important; min-width: 0; }
    .list-view .sc-info { padding-right: 0 !important; width: 100% !important; display: block !important; }
    .list-view .service-price { display: none !important; }
    .list-view .service-title { font-size: 14px; margin-bottom: 3px; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; white-space: normal !important; line-height: 1.4; font-weight: 600; color: #444; width: 100% !important; text-align: left !important; }
    .list-view .sc-seller { display: none !important; }
    .list-view .sc-rating-new { display: inline-block; font-size: 12px; margin-top: 0; color: #3498db; font-weight: 600; }
    .list-view .sc-divider { display: none; }
    .list-view .sc-bottom { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; display: flex; width: 100%; justify-content: flex-start; flex-direction: row; align-items: center; }
    .list-view .sc-actions { gap: 10px; display: flex; align-items: center; width: 100%; }
    .list-view .btn-order-new { background: #4cd394; padding: 8px 15px; font-size: 13px; border-radius: 4px; color: white; font-weight: bold; margin-left: 0; text-transform: uppercase; }
    .list-view .btn-order-new i { display: none; } /* Hide cart icon */
    .list-view .order-price-display { display: inline !important; }
    .list-view .btn-like-new { width: 34px; height: 34px; border: 1px solid #e1e8ed; background: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #666; font-size: 13px; flex-shrink: 0; }
    .list-view .sc-likes { display: flex; padding: 6px 12px; font-size: 13px; border: 1px solid #4cd394; color: #4cd394; border-radius: 4px; font-weight: bold; background: #fff; align-items: center; gap: 5px; flex-shrink: 0; }

    /* Mobile Grid View Styling */
    .grid-view .service-card { width: 100%; margin-bottom: 20px; }
    .grid-view .service-image { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .grid-view .service-content { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 10px; padding: 15px; }
    .grid-view .sc-top, .grid-view .sc-bottom { display: contents; }
    .grid-view .sc-seller { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
    .grid-view .sc-seller-left { display: flex; align-items: center; gap: 8px; }
    .grid-view .service-price { grid-column: 2; grid-row: 1; font-size: 18px; align-self: flex-start; margin: 0; font-weight: bold; }
    .grid-view .sc-info { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 0; }
    .grid-view .service-title { text-align: center; font-size: 14px; margin: 5px 0; }
    .grid-view .sc-actions { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; margin-top: 5px; }
    .grid-view .sc-likes { display: none !important; }
    .grid-view .btn-order-new { width: auto; padding: 8px 20px; justify-content: center; }
    .grid-view .btn-like-new { width: 36px; height: 36px; border-radius: 4px; }
    .grid-view .sc-divider { display: none !important; }
    .grid-view .sc-divider { display: none !important; }

    /* Single Service Page Mobile SEOClerks Layout */
    .service-page-container { padding-left: 0; padding-right: 0; gap: 0; margin-top: 0; }
    
    .mobile-service-header { display: block; width: 100%; margin-bottom: 0; padding: 15px 15px 0 15px; background: #fff; }
    .desktop-only { display: none !important; }
    
    .mobile-service-title { font-size: 20px; font-weight: bold; color: #2d3748; margin-bottom: 10px; line-height: 1.3; }
    .mobile-stats-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
    .mobile-stats-row .rating-stars { color: #ffc107; font-size: 14px; }
    .mobile-stats-row .mobile-likes { color: #00a2ff; font-size: 13px; font-weight: bold; }
    
    .mobile-order-btn { width: 100%; padding: 12px; font-size: 15px; justify-content: center; margin-bottom: 15px; background: #4cd394; color: white; border-radius: 4px; border: none; font-weight: bold; text-transform: uppercase; }
    
    .service-left-col { padding: 0; border: none; border-radius: 0; box-shadow: none; background: #fff; margin-bottom: 0; }
    .service-image-wrapper { margin-bottom: 0; border-radius: 0; border: none; }
    
    .service-action-bar { border: none; padding: 15px; margin: 0; justify-content: flex-start; }
    .action-left { gap: 10px; }
    .btn-wishlist { width: 40px; height: 40px; border: 1px solid #e1e8ed; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #666; font-size: 16px; transition: 0.2s; flex-shrink: 0; }
    .btn-wishlist:hover { color: #e74c3c; border-color: #e74c3c; }
    .btn-like { background: #fff; color: #666; padding: 0 15px; height: 40px; border-radius: 4px; display: flex; align-items: center; gap: 8px; font-weight: bold; border: 1px solid #e1e8ed; transition: 0.2s; white-space: nowrap; flex-shrink: 0; }
    .btn-like:hover { color: #20c997; border-color: #20c997; }
    
    .service-tabs { flex-direction: column; border: none; gap: 4px; margin-bottom: 15px; padding: 15px 15px 5px 15px; border-bottom: none; }
    .tab-btn { width: 100%; padding: 13px 20px; border-radius: 50px; text-align: left; text-transform: uppercase; font-size: 13px; font-weight: 700; background: transparent; color: #718096; border: none; letter-spacing: 0.4px; }
    .tab-btn:hover { background: #f0f4f8; color: #333; }
    .tab-btn.active { background: #00a2ff; color: white; }
    
    .service-content-body { padding: 0 15px 30px 15px; border: none; border-bottom: 1px solid #eee; }
    
    /* Right Column Elements (Order Box & Seller Card) Full Width */
    .service-right-col { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; }
    
    .order-box { position: relative; overflow: hidden; width: 100% !important; border-radius: 0; border-left: none; border-right: none; box-shadow: none; margin: 15px 0 !important; padding: 25px 15px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
    .order-box .featured-badge { position: absolute; top: 15px; left: -30px; transform: rotate(-45deg); display: block; width: 120px; text-align: center; padding: 5px 0; margin-bottom: 0; border-radius: 0; font-size: 10px; }
    
    .seller-card { width: 100% !important; border-radius: 0; border-left: none; border-right: none; box-shadow: none; margin: 15px 0 25px 0 !important; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
    .seller-card .seller-name, .seller-card .seller-joined { text-align: center !important; justify-content: center !important; }
}

/* Breadcrumb Horizontal Scroll */
.breadcrumb-container {
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.breadcrumb-container::-webkit-scrollbar {
    display: none;
}
