/* ==========================================================================
   AllChemists - Pages Consistent Layout CSS
   Matches front-page.php design language across all pages
   ========================================================================== */

/* ==========================================================================
   Page Hero Section (replaces inline styles on all pages)
   ========================================================================== */
.page-hero-section {
    background: linear-gradient(135deg, #0a1628 0%, #0e3175 60%, #2d8a1e 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 196, 42, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb */
.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s;
}

.page-breadcrumb a:hover {
    color: #4dc42a;
}

.page-breadcrumb span:last-child {
    color: #4dc42a;
    font-weight: 600;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

/* Search term highlight in hero */
.search-term-highlight {
    color: #4dc42a;
}

/* ==========================================================================
   Page Content Section (wraps all inner page content)
   ========================================================================== */
.page-content-section {
    padding: 60px 0;
    background: #ffffff;
}

/* ==========================================================================
   Page Article (page.php, template-fullwidth.php)
   ========================================================================== */
.page-content-wrapper,
.fullwidth-content-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.page-article,
.fullwidth-article {
    background: #ffffff;
}

.page-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
    color: #0e3175;
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-entry-content p {
    margin-bottom: 20px;
}

.page-entry-content a {
    color: #4dc42a;
    text-decoration: underline;
    transition: color 0.3s;
}

.page-entry-content a:hover {
    color: #3da821;
}

.page-entry-content ul,
.page-entry-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-entry-content li {
    margin-bottom: 8px;
    color: #555;
}

.page-entry-content blockquote {
    border-left: 4px solid #4dc42a;
    padding: 15px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #666;
}

.page-edit-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.page-edit-link .edit-link a {
    color: #4dc42a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* ==========================================================================
   Single Post (single.php)
   ========================================================================== */
.single-post-layout {
    max-width: 860px;
    margin: 0 auto;
}

.single-article {
    background: #ffffff;
}

.single-featured-image {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.meta-item svg {
    stroke: #4dc42a;
    flex-shrink: 0;
}

.meta-item a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-item a:hover {
    color: #4dc42a;
}

.single-entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 40px;
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
    color: #0e3175;
    margin-top: 35px;
    margin-bottom: 15px;
}

.single-entry-content p {
    margin-bottom: 20px;
}

.single-entry-content a {
    color: #4dc42a;
    text-decoration: underline;
}

.single-entry-content blockquote {
    border-left: 4px solid #4dc42a;
    padding: 15px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #666;
}

/* Post Tags */
.single-post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
}

.tags-label {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.post-tag {
    background: #f0f0f0;
    color: #555;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.post-tag:hover {
    background: #4dc42a;
    color: #ffffff;
    border-color: #4dc42a;
}

/* Post Navigation */
.single-post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.single-post-navigation .nav-previous,
.single-post-navigation .nav-next {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.single-post-navigation .nav-previous:hover,
.single-post-navigation .nav-next:hover {
    border-color: #4dc42a;
    background: #f0faf0;
}

.single-post-navigation .nav-next {
    text-align: right;
}

.single-post-navigation a {
    text-decoration: none;
    color: #333;
}

.single-post-navigation .nav-direction {
    display: block;
    font-size: 12px;
    color: #4dc42a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.single-post-navigation .nav-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0e3175;
    line-height: 1.4;
}

/* ==========================================================================
   Archive & Search - Posts Grid
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.post-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f8f9fa;
}

.post-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-category {
    margin-bottom: 12px;
}

.category-badge {
    background: #4dc42a;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.category-badge:hover {
    background: #3da821;
    color: #ffffff;
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: #4dc42a;
}

.post-card-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-dot {
    color: #ccc;
}

.post-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4dc42a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s;
    margin-top: auto;
}

.post-read-more:hover {
    gap: 10px;
    color: #3da821;
}

/* Archive Description */
.archive-description {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 10px;
    border-left: 4px solid #4dc42a;
    margin-bottom: 40px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* Pagination */
.archive-pagination {
    text-align: center;
    margin-top: 20px;
}

.archive-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #4dc42a;
    color: #ffffff;
    border-color: #4dc42a;
}

.archive-pagination .prev,
.archive-pagination .next {
    width: auto;
    padding: 0 18px;
}

/* ==========================================================================
   Search Results Count
   ========================================================================== */
.search-results-count {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4dc42a;
}

.search-results-count strong {
    color: #0e3175;
}

.search-results-count em {
    color: #4dc42a;
    font-style: normal;
    font-weight: 600;
}

/* ==========================================================================
   No Results Block
   ========================================================================== */
.no-results-block {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
}

.no-results-block svg {
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.no-results-block h2 {
    font-size: 28px;
    color: #0e3175;
    margin-bottom: 12px;
}

.no-results-block p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Search Again Form */
.search-again-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-again-form input[type="search"] {
    flex: 1;
    padding: 13px 20px;
    border: 2px solid #e2e2e2;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.search-again-form input[type="search"]:focus {
    border-color: #4dc42a;
}

.search-again-form button {
    padding: 13px 28px;
    background: #4dc42a;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-again-form button:hover {
    background: #3da821;
}

.search-suggestions {
    margin-top: 30px;
}

.search-suggestions h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    color: #666;
    line-height: 2.2;
    font-size: 14px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404-block {
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.error-404-number {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #0e3175 0%, #4dc42a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.error-404-title {
    font-size: 32px;
    color: #0e3175;
    margin-bottom: 15px;
}

.error-404-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-search {
    margin-bottom: 35px;
}

.error-404-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Outline variant for btn-view-all */
.btn-view-all.btn-outline {
    background: transparent;
    color: #0e3175;
    border: 2px solid #0e3175;
}

.btn-view-all.btn-outline:hover {
    background: #0e3175;
    color: #ffffff;
}

/* ==========================================================================
   About Page Specific
   ========================================================================== */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about-story-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: block;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: #f8f9fa;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #4dc42a;
    background: #ffffff;
}

.team-avatar {
    font-size: 60px;
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8e8e8;
    transition: border-color 0.3s;
}

.team-card:hover .team-avatar {
    border-color: #4dc42a;
}

.team-name {
    font-size: 18px;
    color: #0e3175;
    margin: 0 0 6px 0;
}

.team-role {
    color: #4dc42a;
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-bio {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* About Stats Section */
.about-stats-section {
    background: linear-gradient(135deg, #0a1628 0%, #0e3175 100%) !important;
}

.about-stats-section .section-title h2 {
    color: #ffffff;
}

.about-stats-section .section-title p {
    color: rgba(255, 255, 255, 0.75);
}

.about-stats-section .features-stats {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.about-stats-section .stat-number {
    color: #ffffff;
}

.about-stats-section .stat-label {
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */
.contact-info-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.contact-info-link {
    display: block;
    color: #4dc42a;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.3s;
    word-break: break-word;
}

.contact-info-link:hover {
    color: #3da821;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-top: 40px;
}

/* Contact Form Styles */
.allchemists-contact-form .form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.allchemists-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.allchemists-contact-form .required {
    color: #e74c3c;
}

.allchemists-contact-form input[type="text"],
.allchemists-contact-form input[type="email"],
.allchemists-contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: #fafafa;
}

.allchemists-contact-form input[type="text"]:focus,
.allchemists-contact-form input[type="email"]:focus,
.allchemists-contact-form textarea:focus {
    outline: none;
    border-color: #4dc42a;
    background: #ffffff;
}

.allchemists-contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* ==========================================================================
   Section Title (shared with front-page)
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0e3175;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.section-title p {
    color: #888;
    font-size: 16px;
    margin: 0;
}

/* View All Button (shared) */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: #4dc42a;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #4dc42a;
}

.btn-view-all:hover {
    background: #3da821;
    border-color: #3da821;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 196, 42, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 30px;
    }

    .page-hero-section {
        padding: 45px 0;
    }

    .page-content-section {
        padding: 40px 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    .allchemists-contact-form .form-row-2col {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }

    .error-404-number {
        font-size: 90px;
    }

    .error-404-links {
        flex-direction: column;
        align-items: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cta-buttons {
        flex-direction: column;
    }

    .search-again-form {
        flex-direction: column;
    }

    .search-again-form button {
        border-radius: 10px;
    }

    .search-again-form input[type="search"] {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .error-404-number {
        font-size: 70px;
    }
}

/* ==========================================================================
   Author Hero Avatar
   ========================================================================== */
.author-hero-avatar {
    margin-bottom: 16px;
}

.author-avatar-img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 3px solid #4dc42a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: block;
    margin: 0 auto;
}

/* Page Hero Subtitle / Description */
.page-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

/* ==========================================================================
   Shop by Pharmacy / Dokan Store Listing
   ========================================================================== */
.page-entry-content #dokan-store-listing-filter-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 28px !important;
    padding: 18px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e4edf6 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 26px rgba(14, 49, 117, 0.06) !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .left,
.page-entry-content #dokan-store-listing-filter-wrap .right {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .store-count {
    margin: 0 !important;
    padding: 8px 13px !important;
    background: #f7fbf6 !important;
    border: 1px solid #dff1da !important;
    border-radius: 999px !important;
    color: #245a1d !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .right .item {
    margin: 0 !important;
}

.page-entry-content #dokan-store-listing-filter-wrap label {
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.page-entry-content #dokan-store-listing-filter-wrap select {
    min-height: 42px !important;
    padding: 9px 36px 9px 14px !important;
    background: #ffffff !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 10px !important;
    color: #25364a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .dokan-store-list-filter-button,
.page-entry-content #dokan-store-listing-filter-form-wrap #apply-filter-btn {
    min-height: 42px !important;
    padding: 10px 18px 10px 38px !important;
    background: #4dc42a !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 18px rgba(77, 196, 42, 0.22) !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .dokan-icons {
    left: 16px !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .toggle-view {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: auto !important;
    padding: 4px !important;
    background: #f1f5f9 !important;
    border-radius: 999px !important;
    line-height: 1 !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .toggle-view .dashicons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    color: #64748b !important;
    font-size: 18px !important;
}

.page-entry-content #dokan-store-listing-filter-wrap .toggle-view .dashicons.active {
    background: #ffffff !important;
    color: #0e3175 !important;
    box-shadow: 0 4px 12px rgba(14, 49, 117, 0.12) !important;
}

.page-entry-content #dokan-store-listing-filter-form-wrap {
    margin: -12px 0 28px !important;
    padding: 18px !important;
    background: #ffffff !important;
    border: 1px solid #e4edf6 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 26px rgba(14, 49, 117, 0.06) !important;
}

.page-entry-content #dokan-store-listing-filter-form-wrap::before {
    content: none !important;
}

.page-entry-content #dokan-store-listing-filter-form-wrap .store-search-input {
    min-height: 46px !important;
    padding: 12px 15px !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 10px !important;
    color: #25364a !important;
    font-size: 14px !important;
}

.page-entry-content #dokan-store-listing-filter-form-wrap .apply-filter {
    gap: 10px !important;
    margin-top: 14px !important;
}

.page-entry-content #dokan-seller-listing-wrap {
    margin-top: 0 !important;
}

.page-entry-content #dokan-seller-listing-wrap ul.dokan-seller-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-entry-content #dokan-seller-listing-wrap ul.dokan-seller-wrap > a {
    display: contents !important;
}

.page-entry-content #dokan-seller-listing-wrap .dokan-single-seller {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    cursor: pointer;
}

.page-entry-content #dokan-seller-listing-wrap .store-wrapper {
    height: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e4edf6 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(14, 49, 117, 0.07) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.page-entry-content #dokan-seller-listing-wrap .store-wrapper:hover {
    transform: translateY(-4px) !important;
    border-color: #cfe6c9 !important;
    box-shadow: 0 16px 36px rgba(14, 49, 117, 0.12) !important;
}

.page-entry-content #dokan-seller-listing-wrap.grid-view .store-header,
.page-entry-content #dokan-seller-listing-wrap.grid-view .store-banner {
    height: 150px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #eaf7e7 0%, #eef5ff 100%) !important;
}

.page-entry-content #dokan-seller-listing-wrap .store-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.page-entry-content #dokan-seller-listing-wrap.grid-view .store-content {
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 178px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #334155 !important;
}

.page-entry-content #dokan-seller-listing-wrap.grid-view .store-content .store-data-container {
    padding: 22px 20px 16px !important;
}

.page-entry-content #dokan-seller-listing-wrap .featured-label,
.page-entry-content #dokan-seller-listing-wrap .dokan-store-is-open-close-status {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 26px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.page-entry-content #dokan-seller-listing-wrap .featured-label {
    background: #eaf1ff !important;
    color: #0e3175 !important;
}

.page-entry-content #dokan-seller-listing-wrap .dokan-store-is-open-status {
    background: #dff4dc !important;
    color: #1f6f18 !important;
}

.page-entry-content #dokan-seller-listing-wrap .dokan-store-is-closed-status {
    background: #f8d2d7 !important;
    color: #9b111e !important;
}

.page-entry-content #dokan-seller-listing-wrap .store-data h2 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}

.page-entry-content #dokan-seller-listing-wrap.grid-view .store-content .store-data h2 a,
.page-entry-content #dokan-seller-listing-wrap .store-data h2 a {
    color: #0e3175 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

.page-entry-content #dokan-seller-listing-wrap .store-address,
.page-entry-content #dokan-seller-listing-wrap .store-phone {
    margin: 0 0 8px !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.page-entry-content #dokan-seller-listing-wrap .dokan-seller-rating {
    margin: 0 0 10px !important;
}

.page-entry-content #dokan-seller-listing-wrap .dokan-seller-rating .dashicons {
    color: #f59e0b !important;
}

.page-entry-content #dokan-seller-listing-wrap.grid-view .store-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 76px !important;
    padding: 14px 18px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e4edf6 !important;
}

.page-entry-content #dokan-seller-listing-wrap .seller-avatar img {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 14px rgba(14, 49, 117, 0.14) !important;
}

.page-entry-content #dokan-seller-listing-wrap .store-footer .dokan-btn-round {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: #4dc42a !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(77, 196, 42, 0.22) !important;
}

.page-entry-content #dokan-seller-listing-wrap.list-view ul.dokan-seller-wrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.page-entry-content .pagination-container,
.page-entry-content .pagination-wrap {
    margin-top: 30px !important;
    text-align: center !important;
}

.page-entry-content .pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-entry-content .pagination a,
.page-entry-content .pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 10px !important;
    color: #0e3175 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.page-entry-content .pagination .current {
    background: #4dc42a !important;
    border-color: #4dc42a !important;
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    .page-entry-content #dokan-seller-listing-wrap ul.dokan-seller-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .page-entry-content #dokan-store-listing-filter-wrap {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .page-entry-content #dokan-store-listing-filter-wrap .left,
    .page-entry-content #dokan-store-listing-filter-wrap .right {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .page-entry-content #dokan-seller-listing-wrap ul.dokan-seller-wrap {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   My Account Login / Register
   ========================================================================== */
.woocommerce-account:not(.logged-in) .page-content-section {
    background: #f7fafc;
}

.woocommerce-account:not(.logged-in) .page-content-wrapper,
.woocommerce-account:not(.logged-in) .page-article,
.woocommerce-account:not(.logged-in) .page-entry-content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.ac-account-auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.ac-account-auth-single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.ac-auth-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4edf6;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(14, 49, 117, 0.08);
}

.ac-auth-card-header {
    padding: 30px 32px 22px;
    background: linear-gradient(135deg, #f7fbf6 0%, #eef5ff 100%);
    border-bottom: 1px solid #e4edf6;
}

.ac-auth-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 11px;
    background: #ffffff;
    border: 1px solid #dff1da;
    border-radius: 999px;
    color: #245a1d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.ac-auth-card h2 {
    margin: 0 0 8px !important;
    color: #0e3175 !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.ac-auth-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.ac-auth-card form {
    padding: 28px 32px 32px !important;
    margin: 0 !important;
    border: 0 !important;
}

.ac-auth-card .form-row,
.ac-auth-card .woocommerce-form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 17px !important;
    padding: 0 !important;
}

.ac-auth-card label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.ac-auth-card .required {
    color: #c1121f;
}

.ac-auth-card input[type="text"],
.ac-auth-card input[type="email"],
.ac-auth-card input[type="password"],
.ac-auth-card input[type="tel"],
.ac-auth-card input[type="number"],
.ac-auth-card select,
.ac-auth-card textarea {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 11px !important;
    color: #25364a !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
}

.ac-auth-card textarea {
    min-height: 110px !important;
    resize: vertical;
}

.ac-auth-card input:focus,
.ac-auth-card select:focus,
.ac-auth-card textarea:focus {
    border-color: #4dc42a !important;
    box-shadow: 0 0 0 3px rgba(77, 196, 42, 0.16) !important;
}

.ac-auth-card input::placeholder,
.ac-auth-card textarea::placeholder {
    color: #94a3b8;
}

.ac-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 20px;
    flex-wrap: wrap;
}

.ac-auth-row .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.ac-auth-card input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4dc42a;
}

.ac-auth-link,
.woocommerce-account .lost_password a {
    color: #0e3175 !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.ac-auth-link:hover,
.woocommerce-account .lost_password a:hover {
    color: #4dc42a !important;
}

.ac-auth-note,
.ac-auth-card .woocommerce-privacy-policy-text,
.ac-auth-card .woocommerce-privacy-policy-text p {
    margin: 0 0 18px !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.ac-auth-card .woocommerce-privacy-policy-text a {
    color: #0e3175 !important;
    font-weight: 800;
}

.ac-auth-submit,
.woocommerce-account:not(.logged-in) .woocommerce-button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 13px 22px !important;
    background: #4dc42a !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(77, 196, 42, 0.25) !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ac-auth-submit:hover,
.woocommerce-account:not(.logged-in) .woocommerce-button.button:hover {
    background: #3da821 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(77, 196, 42, 0.32) !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-error,
.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-info {
    max-width: 1180px;
    margin: 0 auto 22px !important;
    border-radius: 12px !important;
}

@media (max-width: 900px) {
    .ac-account-auth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ac-auth-card-header,
    .ac-auth-card form {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .ac-auth-card h2 {
        font-size: 24px !important;
    }

    .ac-auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
