/* ----- BREADCRUMB ----- */
.store-detail .breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.store-detail .breadcrumb a {
    color: var(--text2);
    text-decoration: none;
}

.store-detail .breadcrumb a:hover {
    color: var(--accent);
}

.store-detail .breadcrumb span.current {
    color: var(--text);
}

/* ----- STORE BANNER ----- */
.store-detail .store-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 260px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.store-detail .store-hero-cover {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.store-detail .store-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0, rgba(255, 255, 255, .04) 2px, transparent 2px, transparent 14px);
}

.store-detail .store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55) 100%);
}

.store-detail .store-hero-badges {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 8px;
}

.store-detail .hero-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.store-detail .hero-badge.verified {
    background: #10b981;
    color: #fff;
}

/* ----- STORE PROFILE BAR ----- */
.store-detail .store-profile-bar {
    background: var(--surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0 28px 24px;
    position: relative;
    margin-bottom: 20px;
}

.store-detail .store-profile-top {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-top: 0;
    margin-top: -44px;
    flex-wrap: wrap;
}

.store-detail .store-logo-lg {
    width: 104px;
    height: 104px;
    border-radius: 16px;
    border: 4px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--surface);
}

.store-detail .store-profile-info {
    flex: 1;
    padding-bottom: 6px;
    min-width: 240px;
}

.store-detail .store-profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-detail .verified-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.store-detail .store-profile-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--text2);
}

.store-detail .store-profile-meta .divider {
    color: var(--border2);
}

.store-detail .store-profile-actions {
    display: flex;
    gap: 10px;
    padding-bottom: 6px;
    flex-wrap: wrap;
}

/* ----- TABS ----- */
.store-detail .store-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow);
    margin: 24px 0;
    overflow-x: auto;
}

.store-detail .store-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}

.store-detail .store-tab.active {
    background: var(--navy);
    color: #fff;
}

.store-detail .store-tab:hover:not(.active) {
    background: var(--surface2);
    color: var(--navy);
}

.store-detail .store-tab .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 6px;
}

.store-detail .store-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
}

/* ----- TAB CONTENT ----- */
.store-detail .tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.store-detail .tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- LAYOUT GRID ----- */
.store-detail .store-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.store-detail .store-layout.full-width {
    grid-template-columns: 1fr;
}

/* ----- SIDEBAR CARDS ----- */
.store-detail .side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 20px;
}

.store-detail .side-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-detail .contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.store-detail .contact-row:last-child {
    margin-bottom: 0;
}

.store-detail .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.store-detail .contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.store-detail .contact-label {
    font-size: 11.5px;
    color: var(--text3);
    margin-bottom: 2px;
}

.store-detail .contact-value {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

.store-detail .contact-value a {
    color: var(--text);
    text-decoration: none;
}

.store-detail .contact-value a:hover {
    color: var(--accent);
}

/* ----- SOCIAL ----- */
.store-detail .social-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.store-detail .social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--navy);
}

.store-detail .social-circle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ----- CATEGORIES ----- */
.store-detail .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 4px;
    text-decoration: none;
    color: var(--text2);
    font-size: 13.5px;
    border-radius: var(--radius);
    transition: all 0.2s;
    border: none;
    width: 100%;
    background-color: transparent;
}

.store-detail .category-link:hover {
    background: var(--surface2);
    color: var(--accent);
    padding-left: 10px;
}

.store-detail .category-link.active {
    background-color: var(--accent-light);
}

.store-detail .category-count {
    font-size: 12px;
    color: var(--text3);
    background: var(--surface2);
    padding: 2px 8px;
    border-radius: 10px;
}

.store-detail .category-link:hover .category-count {
    background: var(--accent-light);
    color: var(--accent);
}

/* ----- ABOUT CARD ----- */
.store-detail .about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 24px;
}

.store-detail .about-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.store-detail .about-card p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.75;
}

/* ----- PRODUCT FILTERS (for Order tab) ----- */
.search-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 7px #00000024;
    align-items: center;
    padding: 5px;
}

.search-wrapper {
    border: 1px solid #ddd;
    border-radius: 30px;
    align-items: center;
    display: flex;
    overflow: hidden;
    position: relative;
    width: 300px;
}

.search-wrapper>input {
    border: none;
    width: 100%;
    height: 30px;
    padding-left: 25px;
    outline: none;
}

.search-wrapper>svg {
    position: absolute;
    left: 5px;
}

.store-detail .product-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.store-detail .product-filter-btn {
    padding: 6px 16px;
    border: 1.5px solid var(--border2);
    border-radius: 20px;
    background: transparent;
    color: var(--text2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.store-detail .product-filter-btn:hover, .store-detail .product-filter-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.store-detail .filter-select {
    padding: 6px 14px;
    border: 1.5px solid var(--border2);
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text2);
    background: var(--surface);
    cursor: pointer;
    margin-left: auto;
}

/* ----- PRODUCT GRID ----- */
.store-detail .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.store-detail .product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: auto;
}

.store-detail .product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}

.store-detail .product-img {
    position: relative;
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    overflow: hidden;
    padding: 5px;
}

.store-detail .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-detail .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.store-detail .product-badge.new {
    background: #10b981;
}

.store-detail .product-badge.hot {
    background: #f59e0b;
}

.store-detail .product-badge.sale {
    background: #dc2626;
}

.store-detail .product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.store-detail .product-wishlist:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.store-detail .product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-detail .product-category {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.store-detail .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.4;
    flex: 1;
}

.store-detail .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.store-detail .product-rating span {
    font-size: 12px;
    color: var(--text2);
}

.store-detail .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.store-detail .product-price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.store-detail .product-price .old {
    font-size: 13px;
    color: var(--text3);
    text-decoration: line-through;
}

.store-detail .product-price .discount {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.store-detail .add-to-cart {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-top: auto;
}

.store-detail .add-to-cart:hover {
    background: var(--accent);
}

.store-detail .add-to-cart.in-cart {
    background: #10b981;
}

/* ----- LOAD MORE ----- */
.store-detail .load-more-wrap {
    text-align: center;
    margin-top: 32px;
}

/* ----- REVIEWS ----- */
.store-detail .reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 24px;
}

.store-detail .rating-big {
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.store-detail .rating-big-num {
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.store-detail .rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.store-detail .rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.store-detail .rating-bar-row .label {
    width: 42px;
    color: var(--text2);
    flex-shrink: 0;
}

.store-detail .rating-bar-track {
    flex: 1;
    height: 7px;
    background: var(--surface3);
    border-radius: 4px;
    overflow: hidden;
}

.store-detail .rating-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}

.store-detail .rating-bar-row .count {
    width: 36px;
    text-align: right;
    color: var(--text3);
    flex-shrink: 0;
}

.store-detail .review-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
}

.store-detail .review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.store-detail .reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-detail .reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.store-detail .reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.store-detail .reviewer-date {
    font-size: 12px;
    color: var(--text3);
}

.store-detail .review-text {
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.65;
}

/* ----- REVIEW FORM ----- */
.store-detail .review-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-top: 24px;
}

.store-detail .review-form h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.store-detail .review-form .subtitle {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 18px;
}

.store-detail .review-form .rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.store-detail .review-form .rating-input label {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--border2);
}

.store-detail .review-form .rating-input label:hover, .store-detail .review-form .rating-input label.active {
    color: var(--gold);
}

.store-detail .review-form .form-group {
    margin-bottom: 16px;
}

.store-detail .review-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.store-detail .review-form .form-group input, .store-detail .review-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s;
}

.store-detail .review-form .form-group input:focus, .store-detail .review-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.store-detail .review-form .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.store-detail .review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.store-detail .review-form .submit-review {
    padding: 10px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.store-detail .review-form .submit-review:hover {
    background: var(--accent-dark);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
    .store-detail .store-layout {
        grid-template-columns: 1fr;
    }

    .store-detail .reviews-summary {
        grid-template-columns: 1fr;
    }

    .store-detail .rating-big {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 16px;
        padding-right: 0;
    }

    .store-detail .review-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .store-detail .store-hero {
        border-radius: 0px;
    }

    .store-detail .store-profile-top {
        margin-top: -36px;
    }

    .store-detail .store-logo-lg {
        width: 80px;
        height: 80px;
        font-size: 36px;
        border-width: 3px;
    }

    .store-detail .store-profile-name {
        font-size: 21px;
    }

    .store-detail .store-profile-bar {
        padding: 0 18px 20px;
        border-radius: 0px;
    }

    .store-detail .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-detail .store-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .store-detail .search-wrapper {
        width: 100%;
        border-radius: 0px;
        border: none;
        outline: none;
    }

    .store-detail .search-wrapper>input {
        outline: none;
    }

    .store-detail .product-filters {
        position: fixed;
        bottom: 0px;
        z-index: 85;
        background-color: #fff;
        left: 0px;
        width: 100%;
        margin: 0px;
        display: flex;
        padding: 0px;
        gap: 0px;
        border-top: 1px solid #ddd;
        box-shadow: 0px 0px 10px 3px #00000017;
    }

    .store-detail .filter-select {
        margin-left: 0;
        width: 100%;
    }
}


.store-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 540px) {
    .store-container {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0px;
        background-color: #fff;
    }

    .store-detail .store-profile-actions {
        width: 100%;
    }

    .store-detail .store-profile-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .store-detail .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .store-detail .store-tabs {
        gap: 2px;
        padding: 4px;
    }

    .store-detail .store-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .store-detail .product-img {
        height: 140px;
        font-size: 40px;
    }

    .store-detail .product-name {
        font-size: 13px;
    }

    .store-detail .product-price .current {
        font-size: 16px;
    }
}

/* FILTERS */
.store-detail .product-filters>button {
    display: none;
}

.filters-sidebar.open {
    left: 0%;
}

.filters-sidebar>.filters-sidebar-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 88;
    visibility: hidden;
    pointer-events: none;
    transition: all ease 0.3s;
}

.filters-sidebar.open>.filters-sidebar-overlay {
    pointer-events: all;
    visibility: visible;
    background-color: #00000059;
}

@media (max-width: 600px) {
    .store-detail .product-filters>button {
        display: flex;
        height: 50px;
        background-color: #fff;
        width: 50%;
        border: none;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        outline: none;
    }

    .store-detail .product-filters>.filter-select {
        width: 50%;
        height: 50px;
        border-top: none;
        border-bottom: none;
        border-right: none;
        border-left: 1px solid #ddd;
        border-radius: 0px;
        padding: 0px 10px;
        font-weight: bold;
        outline: none;
    }

    .filters-sidebar {
        position: fixed;
        left: 0px;
        top: 0px;
        z-index: 99999;
        background-color: #fff;
        overflow: hidden;
        height: 100%;
        transition: 0.2s all ease;
        left: -100%;
    }

    .filters-sidebar>.side-card {
        border-radius: 0px;
        z-index: 89;
        position: relative;
        overflow-y: auto;
        height: 100%;
    }
}