/* ============================================
   MARTFURY THEME - COMPLETE CSS
   ============================================ */

:root {
    --ps-primary-color: #EE4D2D;
    --ps-secondary-color: #FF6B4A;
    --ps-dark-color: #2d3436;
    --ps-light-color: #f5f5f5;
    --ps-border-color: #e0e0e0;
    --ps-text-color: #333;
    --ps-text-muted: #999;
}

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

html,
body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: var(--ps-text-color);
    line-height: 1.6;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.ps-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ps-header__top {
    padding: 15px 0;
    border-bottom: 1px solid var(--ps-border-color);
}

.ps-header__left {
    display: flex;
    align-items: center;
}

.ps-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ps-dark-color);
    text-decoration: none;
}

.ps-logo__text {
    background: linear-gradient(135deg, #EE4D2D, #FF6B4A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ps-header__center {
    flex: 1;
    margin: 0 40px;
}

.ps-form--search {
    display: flex;
    align-items: center;
    background: var(--ps-light-color);
    border-radius: 25px;
    padding: 8px 15px;
    gap: 10px;
}

.ps-form--search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
}

.ps-btn--search {
    background: var(--ps-primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ps-btn--search:hover {
    background: var(--ps-secondary-color);
    transform: scale(1.05);
}

.ps-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ps-header__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ps-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ps-header__link:hover {
    color: var(--ps-primary-color);
}

.ps-header__bottom {
    padding: 0;
}

.ps-navigation {
    display: flex;
    align-items: center;
}

.ps-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.ps-menu__link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--ps-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.ps-menu__link:hover {
    color: var(--ps-primary-color);
    border-bottom-color: var(--ps-primary-color);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.ps-page--vendor {
    background: #fff;
    min-height: 100vh;
}

.ps-section__wrapper {
    padding: 40px 0;
}

.ps-section__content {
    display: flex;
    gap: 30px;
}

.ps-layout__left {
    flex: 0 0 25%;
    min-width: 250px;
}

.ps-layout__right {
    flex: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.ps-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 0;
}

.ps-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ps-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.ps-store-list {
    margin-bottom: 40px;
}

.ps-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--ps-border-color);
    padding-bottom: 15px;
}

.ps-section__header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ps-dark-color);
}

.ps-section__search {
    margin-bottom: 30px;
}

/* ============================================
   STORE CARD (ps-block--store-2)
   ============================================ */

.ps-block--store-2 {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ps-block--store-2:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ps-block__content {
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.ps-block__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.ps-block__content>* {
    position: relative;
    z-index: 1;
}

.ps-block__content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-block__content .badge {
    width: fit-content;
    font-size: 12px;
    padding: 4px 12px;
}

.ps-block__author {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ps-block__author p {
    font-size: 14px;
    color: var(--ps-text-color);
    margin: 0;
    line-height: 1.4;
}

.ps-block__author small {
    display: block;
    color: var(--ps-text-muted);
    font-size: 13px;
}

.ps-block__user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ps-block__user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   SHOPPING/PRODUCT SECTION
   ============================================ */

.ps-shopping {
    background: white;
}

.ps-shopping__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ps-border-color);
}

.ps-shopping__header h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ps-text-color);
    margin: 0;
}

.ps-tabs {
    display: flex;
    gap: 10px;
}

.ps-tabs .btn {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ps-tabs .btn.active {
    background-color: var(--ps-primary-color);
    color: white;
    border-color: var(--ps-primary-color);
}

.ps-shopping__content {
    margin-bottom: 30px;
}

/* ============================================
   PRODUCT ITEM (ps-product)
   ============================================ */

.ps-product {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ps-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.ps-product__thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--ps-light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-product__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ps-product:hover .ps-product__thumbnail img {
    transform: scale(1.05);
}

.ps-product__thumbnail .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    z-index: 2;
}

.ps-product__container {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-product__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-text-color);
    margin: 0;
    line-height: 1.4;
    min-height: 40px;
}

.ps-product__vendor {
    font-size: 12px;
    color: var(--ps-text-muted);
    margin: 0;
}

.ps-product__vendor a {
    color: var(--ps-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ps-product__vendor a:hover {
    color: var(--ps-secondary-color);
    text-decoration: underline;
}

.ps-product__price {
    margin-top: auto;
}

.ps-product__price p {
    font-size: 18px;
    font-weight: 700;
    color: var(--ps-primary-color);
    margin: 0;
}

.ps-product__actions {
    display: grid;
    gap: 8px;
}

.ps-product__actions .btn {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

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

.ps-btn,
.btn-primary {
    background-color: var(--ps-primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.ps-btn:hover,
.btn-primary:hover {
    background-color: var(--ps-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

.ps-btn:active,
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--ps-text-color);
    border: 1px solid var(--ps-border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--ps-light-color);
    border-color: var(--ps-text-color);
}

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

.btn-light:hover {
    background-color: var(--ps-light-color);
}

/* ============================================
   PAGINATION
   ============================================ */

.ps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--ps-border-color);
    border-radius: 4px;
    color: var(--ps-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-link:hover {
    border-color: var(--ps-primary-color);
    color: var(--ps-primary-color);
}

.page-link.active,
.page-item.active .page-link {
    background-color: var(--ps-primary-color);
    color: white;
    border-color: var(--ps-primary-color);
}

/* ============================================
   SIDEBAR & FILTERS
   ============================================ */

.ps-filter {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.ps-filter__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--ps-light-color);
    cursor: pointer;
    font-weight: 600;
    color: var(--ps-text-color);
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.ps-filter__trigger:hover {
    background: #e8e8e8;
}

.ps-filter__content {
    padding: 20px;
    border-top: 1px solid var(--ps-border-color);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ps-text-color);
    font-size: 14px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ps-border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ps-primary-color);
    box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
    outline: none;
}

/* ============================================
   FOOTER
   ============================================ */

.ps-footer {
    background: #2d3436;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.ps-footer__top {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-footer__item {
    margin-bottom: 20px;
}

.ps-footer__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.ps-footer__description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.ps-footer__social {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.ps-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ps-social:hover {
    background: var(--ps-primary-color);
    transform: translateY(-3px);
}

.ps-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-footer__menu li {
    margin-bottom: 10px;
}

.ps-footer__menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ps-footer__menu a:hover {
    color: var(--ps-primary-color);
}

.ps-footer__contact {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.ps-footer__contact p {
    margin: 0 0 10px 0;
}

.ps-footer__bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.ps-footer__copyright,
.ps-footer__credit {
    margin: 0;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.col-12 {
    width: 100%;
}

.col-6 {
    width: calc(50% - 10px);
}

.col-sm-6 {
    width: calc(50% - 10px);
}

.col-md-6 {
    width: calc(50% - 10px);
}

.col-md-4 {
    width: calc(33.333% - 14px);
}

.col-lg-3 {
    width: calc(25% - 15px);
}

.col-lg-4 {
    width: calc(33.333% - 14px);
}

.col-lg-9 {
    width: calc(75% - 15px);
}

@media (max-width: 1200px) {
    .col-xl-3 {
        width: calc(33.333% - 14px);
    }

    .col-xl-4 {
        width: calc(33.333% - 14px);
    }

    .col-lg-4 {
        width: calc(33.333% - 14px);
    }

    .col-lg-3 {
        width: calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .col-lg-3 {
        width: calc(50% - 10px);
    }

    .col-lg-4 {
        width: calc(50% - 10px);
    }

    .col-lg-9 {
        width: 100%;
    }

    .col-md-4 {
        width: calc(50% - 10px);
    }

    .col-md-6 {
        width: calc(50% - 10px);
    }

    .ps-section__content {
        flex-direction: column;
    }

    .ps-layout__left {
        flex: 0 0 100%;
    }

    .ps-layout__right {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .col-sm-6 {
        width: calc(50% - 10px);
    }

    .col-md-6 {
        width: calc(50% - 10px);
    }

    .col-6 {
        width: calc(50% - 10px);
    }

    .ps-header__center {
        margin: 0 20px;
    }

    .ps-form--search {
        padding: 6px 12px;
    }

    .ps-form--search input {
        font-size: 13px;
    }

    .ps-menu {
        flex-wrap: wrap;
    }

    .ps-menu__link {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .col-12 {
        width: 100%;
    }

    .col-6 {
        width: 100%;
    }

    .col-sm-6 {
        width: 100%;
    }

    .col-md-4 {
        width: 100%;
    }

    .col-md-6 {
        width: 100%;
    }

    .col-lg-3 {
        width: 100%;
    }

    .col-lg-4 {
        width: 100%;
    }

    .col-lg-9 {
        width: 100%;
    }

    .ps-header__top {
        flex-direction: column;
        gap: 15px;
    }

    .ps-header__center {
        margin: 0;
        width: 100%;
    }

    .ps-header__right {
        width: 100%;
        justify-content: flex-start;
    }

    .ps-hero h1 {
        font-size: 24px;
    }

    .ps-section__content {
        gap: 15px;
    }

    .ps-block__content {
        height: 150px;
    }

    .ps-product__thumbnail {
        height: 150px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-5 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mt-3 {
    margin-top: 12px;
}

.pt-5 {
    padding-top: 20px;
}

.pb-5 {
    padding-bottom: 20px;
}

.pt-2 {
    padding-top: 8px;
}

.pb-2 {
    padding-bottom: 8px;
}

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

.text-md-end {
    text-align: right;
}

.text-light {
    color: rgba(255, 255, 255, 0.8);
}

.text-muted {
    color: var(--ps-text-muted);
}

.text-white {
    color: white;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-primary {
    color: var(--ps-primary-color);
}

.text-dark {
    color: var(--ps-dark-color);
}

.bg-light {
    background-color: var(--ps-light-color);
}

.bg-white {
    background-color: white;
}

.bg-dark {
    background-color: var(--ps-dark-color);
}

.bg-primary {
    background-color: var(--ps-primary-color);
}

.rounded {
    border-radius: 6px;
}

.rounded-circle {
    border-radius: 50%;
}

.overflow-hidden {
    overflow: hidden;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

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

.align-items-start {
    align-items: flex-start;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.w-fit {
    width: fit-content;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--ps-primary-color);
    color: white;
}

.badge-success {
    background-color: #27ae60;
    color: white;
}

.badge-danger {
    background-color: #e74c3c;
    color: white;
}

.badge-warning {
    background-color: #f39c12;
    color: white;
}

.badge-info {
    background-color: #3498db;
    color: white;
}

/* Alert Styling */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

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

.alert-warning {
    background-color: #fff3cd;
    border-color: #856404;
    color: #856404;
}

/* Form Styles */
.d-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Sticky Positioning */
.sticky-top {
    position: sticky;
    top: 20px;
}