/**
 * Public Styles for Product Glossary Catalog
 */

/* Container */
.pgc-glossary-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters Section */
.pgc-glossary-wrapper .pgc-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Search */
.pgc-glossary-wrapper .pgc-search {
    margin-bottom: 20px;
}

.pgc-glossary-wrapper .pgc-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.pgc-glossary-wrapper .pgc-search-input:focus {
    outline: none;
    border-color: #111;
}

/* Category Filter */
.pgc-glossary-wrapper .pgc-category-filter {
    margin-bottom: 20px;
}

.pgc-glossary-wrapper .pgc-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pgc-glossary-wrapper .pgc-category-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 18px;
    border: 2px solid #ddd !important;
    background: white !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333 !important;
    line-height: 1.4;
    min-width: 120px;
    text-align: left;
    font-family: inherit;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    -webkit-appearance: none;
    appearance: none;
}

.pgc-glossary-wrapper .pgc-category-btn:hover {
    border-color: #111 !important;
    background: #f0f0f0 !important;
    color: #111 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.pgc-glossary-wrapper .pgc-category-btn.active {
    background: #111 !important;
    color: white !important;
    border-color: #111 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.pgc-glossary-wrapper .pgc-cat-label {
    flex: 1;
}

.pgc-glossary-wrapper .pgc-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}

.pgc-glossary-wrapper .pgc-category-btn:hover .pgc-cat-count {
    background: rgba(0, 0, 0, 0.1);
}

.pgc-glossary-wrapper .pgc-category-btn.active .pgc-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Alphabet Filter - Single Row */
.pgc-glossary-wrapper .pgc-alphabet-filter {
    margin-bottom: 20px;
}

.pgc-glossary-wrapper .pgc-alphabet-letters {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    overflow: hidden;
}

.pgc-glossary-wrapper .pgc-letter {
    padding: 8px 0;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
    line-height: 1;
    color: #444;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.pgc-glossary-wrapper .pgc-letter:hover:not(.pgc-letter-disabled) {
    border-color: #111;
    background: #f0f0f0;
    color: #111;
}

.pgc-glossary-wrapper .pgc-letter-active {
    background: #111 !important;
    color: white !important;
    border-color: #111 !important;
}

.pgc-glossary-wrapper .pgc-letter-active:hover {
    background: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

.pgc-glossary-wrapper .pgc-letter-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    color: #999;
}

.pgc-glossary-wrapper .pgc-letter-all {
    background: #111;
    color: white;
    border-color: #111;
    flex: 1.5 1 0;
    font-size: 11px;
}

.pgc-glossary-wrapper .pgc-letter-all:hover {
    background: #333;
    border-color: #333;
}

/* Toolbar: View Toggle + Export */
.pgc-glossary-wrapper .pgc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.pgc-glossary-wrapper .pgc-view-toggle {
    display: flex;
    gap: 6px;
}

.pgc-glossary-wrapper .pgc-view-btn {
    padding: 10px 20px;
    border: 2px solid #222;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s;
    color: #222;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
}

.pgc-glossary-wrapper .pgc-view-btn:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.pgc-glossary-wrapper .pgc-view-btn.active {
    background: #111;
    color: white;
    border-color: #111;
}

.pgc-glossary-wrapper .pgc-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Export Button - Gold Accent */
.pgc-glossary-wrapper .pgc-export-all-btn {
    padding: 10px 22px;
    background: #b8860b;
    color: white;
    border: 2px solid #b8860b;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    font-family: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
}

.pgc-glossary-wrapper .pgc-export-all-btn:hover {
    background: #9a7209;
    border-color: #9a7209;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.pgc-glossary-wrapper .pgc-export-all-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* CBD Badge */
.pgc-glossary-wrapper .pgc-cbd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2d8a4e;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.4;
}

.pgc-glossary-wrapper .pgc-cbd-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pgc-glossary-wrapper .pgc-grid-content .pgc-cbd-badge {
    font-size: 11px;
    padding: 3px 10px;
}

.pgc-glossary-wrapper .pgc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Accordion / List View */
.pgc-glossary-wrapper .pgc-accordion {
    border-radius: 8px;
    overflow: hidden;
}

.pgc-glossary-wrapper .pgc-accordion-item {
    background: white;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pgc-glossary-wrapper .pgc-accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pgc-glossary-wrapper .pgc-accordion-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.pgc-glossary-wrapper .pgc-accordion-item.active .pgc-accordion-header {
    border-bottom: 1px solid #e8ecf1;
    background: linear-gradient(135deg, #f0f5fa 0%, #e8ecf1 100%);
}

.pgc-glossary-wrapper .pgc-accordion-header:hover {
    background: linear-gradient(135deg, #f0f5fa 0%, #e8ecf1 100%);
}

.pgc-glossary-wrapper .pgc-header-content {
    flex: 1;
}

.pgc-glossary-wrapper .pgc-accordion-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.pgc-glossary-wrapper .pgc-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pgc-glossary-wrapper .pgc-accordion-item .pgc-category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #333;
}

.pgc-glossary-wrapper .pgc-accordion-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    color: #333;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    flex-shrink: 0;
}

.pgc-glossary-wrapper .pgc-accordion-item.active .pgc-accordion-icon {
    transform: rotate(45deg);
    background: #111;
    color: white;
}

.pgc-glossary-wrapper .pgc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
}

.pgc-glossary-wrapper .pgc-accordion-item.active .pgc-accordion-content {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

.pgc-glossary-wrapper .pgc-product-content {
    padding: 25px;
}

.pgc-glossary-wrapper .pgc-product-image {
    margin-bottom: 20px;
}

.pgc-glossary-wrapper .pgc-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pgc-glossary-wrapper .pgc-product-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.pgc-glossary-wrapper .pgc-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.pgc-glossary-wrapper .pgc-product-actions > a,
.pgc-glossary-wrapper .pgc-product-actions > button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    width: 100% !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s;
}

.pgc-glossary-wrapper .pgc-product-actions > .pgc-btn-secondary {
    background: white !important;
    color: #111 !important;
    border: 2px solid #222 !important;
}

.pgc-glossary-wrapper .pgc-product-actions > .pgc-btn-secondary:hover {
    background: #111 !important;
    color: white !important;
    border-color: #111 !important;
}

.pgc-glossary-wrapper .pgc-product-actions > .pgc-btn:only-child,
.pgc-glossary-wrapper .pgc-product-actions > a:only-child {
    grid-column: 1 / -1;
}

.pgc-glossary-wrapper .pgc-btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.pgc-glossary-wrapper .pgc-btn-primary {
    background: #111;
    color: white !important;
    border: 2px solid #111;
}

.pgc-glossary-wrapper .pgc-btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white !important;
}

.pgc-glossary-wrapper .pgc-btn-secondary {
    background: white !important;
    color: #111 !important;
    border: 2px solid #222 !important;
    padding: 12px 24px !important;
}

.pgc-glossary-wrapper .pgc-btn-secondary:hover {
    background: #111 !important;
    color: white !important;
    border-color: #111 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pgc-glossary-wrapper .pgc-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.pgc-glossary-wrapper .pgc-additional-files {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pgc-glossary-wrapper .pgc-additional-files strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.pgc-glossary-wrapper .pgc-additional-files ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pgc-glossary-wrapper .pgc-additional-files ul li {
    padding: 6px 0;
}

.pgc-glossary-wrapper .pgc-additional-files ul li a {
    color: #111;
    text-decoration: none;
}

.pgc-glossary-wrapper .pgc-additional-files ul li a:hover {
    text-decoration: underline;
}

/* Grid View */
.pgc-glossary-wrapper .pgc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.pgc-glossary-wrapper .pgc-grid-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
}

.pgc-glossary-wrapper .pgc-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.pgc-glossary-wrapper .pgc-grid-image-wrap {
    position: relative;
}

.pgc-glossary-wrapper .pgc-grid-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #222 0%, #444 100%);
}

.pgc-glossary-wrapper .pgc-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pgc-glossary-wrapper .pgc-grid-item:hover .pgc-grid-image img {
    transform: scale(1.05);
}

.pgc-glossary-wrapper .pgc-grid-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pgc-glossary-wrapper .pgc-grid-content .pgc-product-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.pgc-glossary-wrapper .pgc-grid-content .pgc-product-categories {
    margin-bottom: 12px;
}

.pgc-glossary-wrapper .pgc-grid-content .pgc-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #333;
}

.pgc-glossary-wrapper .pgc-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.pgc-glossary-wrapper .pgc-grid-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    align-items: stretch;
}

.pgc-glossary-wrapper .pgc-grid-actions > a,
.pgc-glossary-wrapper .pgc-grid-actions > button {
    display: flex !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    float: none !important;
    background-image: none !important;
    vertical-align: middle !important;
}

.pgc-glossary-wrapper .pgc-grid-actions > a.pgc-btn-primary,
.pgc-glossary-wrapper .pgc-grid-actions > button.pgc-btn-primary {
    background-color: #111 !important;
    color: white !important;
    border: 2px solid #111 !important;
}

.pgc-glossary-wrapper .pgc-grid-actions > a.pgc-btn-secondary,
.pgc-glossary-wrapper .pgc-grid-actions > button.pgc-btn-secondary {
    background-color: white !important;
    color: #111 !important;
    border: 2px solid #222 !important;
}

.pgc-glossary-wrapper .pgc-grid-actions > a.pgc-btn-primary:hover,
.pgc-glossary-wrapper .pgc-grid-actions > button.pgc-btn-primary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
}

.pgc-glossary-wrapper .pgc-grid-actions > a.pgc-btn-secondary:hover,
.pgc-glossary-wrapper .pgc-grid-actions > button.pgc-btn-secondary:hover {
    background-color: #111 !important;
    color: white !important;
    border-color: #111 !important;
}

.pgc-glossary-wrapper .pgc-grid-actions > .pgc-ingredients-btn {
    background: #f5f5f5 !important;
    color: #222 !important;
    border: 2px solid #d0d0d0 !important;
}

.pgc-glossary-wrapper .pgc-grid-actions > .pgc-ingredients-btn:hover {
    background: #111 !important;
    color: white !important;
    border-color: #111 !important;
}

.pgc-glossary-wrapper .pgc-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.pgc-glossary-wrapper .pgc-grid-actions > .pgc-btn:only-child {
    grid-column: 1 / -1;
}

.pgc-glossary-wrapper .pgc-ingredients-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: inherit;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
}

.pgc-glossary-wrapper .pgc-ingredients-btn:hover {
    background: #111 !important;
    color: white !important;
    border-color: #111 !important;
    text-decoration: none !important;
}

.pgc-glossary-wrapper .pgc-product-actions .pgc-ingredients-btn {
    width: 100%;
}

/* Ingredients Modal */
.pgc-ingredients-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pgc-ingredients-modal {
    background: white;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pgcModalIn 0.25s ease-out;
}

.pgc-ingredients-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e8ecf1;
    flex-shrink: 0;
}

.pgc-ingredients-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.pgc-ingredients-modal-close,
div.pgc-ingredients-modal-close {
    background: rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    color: transparent !important;
    font-size: 0 !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
    overflow: hidden !important;
}

.pgc-ingredients-modal-close svg {
    display: block;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.pgc-ingredients-modal-close:hover,
div.pgc-ingredients-modal-close:hover {
    background: rgba(0, 0, 0, 0.65) !important;
}

.pgc-ingredients-modal-close::before,
.pgc-ingredients-modal-close::after {
    content: none !important;
    display: none !important;
}

.pgc-ingredients-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.pgc-ingredients-modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* Modal */
.pgc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pgc-modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pgcModalIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

@keyframes pgcModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pgc-modal-header {
    display: none;
}

#pgc-modal-overlay .pgc-modal-close,
.pgc-modal-overlay .pgc-modal-close,
button.pgc-modal-close,
#pgc-modal-close {
    position: absolute !important;
    z-index: 100001 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    top: 10px !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: all !important;
    text-decoration: none !important;
    text-shadow: none !important;
    background-image: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#pgc-modal-overlay .pgc-modal-close:hover,
#pgc-modal-overlay .pgc-modal-close:focus,
.pgc-modal-overlay .pgc-modal-close:hover,
button.pgc-modal-close:hover {
    background: rgba(0, 0, 0, 0.55) !important;
}

#pgc-modal-overlay .pgc-modal-close .pgc-close-x,
.pgc-modal-close svg {
    display: block;
    pointer-events: none;
    flex-shrink: 0;
}

#pgc-modal-overlay .pgc-modal-close::before,
#pgc-modal-overlay .pgc-modal-close::after,
.pgc-modal-close::before,
.pgc-modal-close::after {
    content: none !important;
    display: none !important;
}

.pgc-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    position: relative;
    z-index: 1;
}

.pgc-modal-loading {
    padding: 60px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.pgc-modal-loading .spinner {
    display: inline-block;
    margin-right: 8px;
}

.pgc-modal-product {}

.pgc-modal-image {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.pgc-modal-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.pgc-modal-info {
    padding: 30px;
}

.pgc-modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pgc-modal-title-row h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.pgc-modal-categories {
    margin-bottom: 16px;
}

.pgc-category-badge-modal {
    display: inline-block;
    padding: 4px 14px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.pgc-modal-description {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
}

.pgc-modal-full-content {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.pgc-modal-full-content p {
    margin-bottom: 12px;
}

.pgc-modal-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.pgc-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Pagination */
.pgc-glossary-wrapper .pgc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pgc-glossary-wrapper .pgc-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.pgc-glossary-wrapper .pgc-pagination-btn:hover:not(.pgc-pagination-active):not(:disabled) {
    border-color: #111;
    color: #111;
    background: #f0f0f0;
}

.pgc-glossary-wrapper .pgc-pagination-btn.pgc-pagination-active {
    background: #111;
    color: white;
    border-color: #111;
}

.pgc-glossary-wrapper .pgc-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pgc-glossary-wrapper .pgc-pagination-info {
    font-size: 13px;
    color: #888;
    margin: 0 8px;
}

.pgc-glossary-wrapper .pgc-pagination-ellipsis {
    color: #999;
    font-size: 14px;
    padding: 0 4px;
}

/* No Products */
.pgc-glossary-wrapper .pgc-no-products {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pgc-glossary-wrapper .pgc-no-products p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Loading */
.pgc-glossary-wrapper .pgc-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.pgc-glossary-wrapper .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #111;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .pgc-glossary-wrapper .pgc-filters {
        padding: 15px;
    }

    .pgc-glossary-wrapper .pgc-alphabet-letters {
        gap: 1px;
    }

    .pgc-glossary-wrapper .pgc-letter {
        padding: 6px 0;
        font-size: 9px;
        border-radius: 3px;
    }

    .pgc-glossary-wrapper .pgc-letter-all {
        font-size: 9px;
    }

    .pgc-glossary-wrapper .pgc-category-btn {
        min-width: 0;
        flex: 1 1 calc(50% - 5px);
        font-size: 13px;
        padding: 8px 10px 8px 14px;
    }

    .pgc-glossary-wrapper .pgc-cat-count {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .pgc-glossary-wrapper .pgc-toolbar {
        flex-wrap: wrap;
    }

    .pgc-glossary-wrapper .pgc-view-toggle {
        flex: 1;
    }

    .pgc-glossary-wrapper .pgc-view-btn {
        flex: 1;
        justify-content: center;
    }

    .pgc-glossary-wrapper .pgc-export-all-btn {
        width: 100%;
        justify-content: center;
    }

    .pgc-glossary-wrapper .pgc-accordion-header {
        padding: 15px;
    }

    .pgc-glossary-wrapper .pgc-accordion-header h3 {
        font-size: 16px;
    }

    .pgc-glossary-wrapper .pgc-product-content {
        padding: 15px;
    }

    .pgc-glossary-wrapper .pgc-grid {
        grid-template-columns: 1fr;
    }

    .pgc-glossary-wrapper .pgc-product-actions {
        grid-template-columns: 1fr 1fr;
    }

    .pgc-glossary-wrapper .pgc-grid-actions {
        grid-template-columns: 1fr 1fr;
    }

    .pgc-modal {
        max-height: 95vh;
        margin: 10px;
    }

    .pgc-modal-image img {
        height: 200px;
    }

    .pgc-modal-info {
        padding: 20px;
    }

    .pgc-modal-title-row h2 {
        font-size: 20px;
    }

    .pgc-ingredients-modal {
        max-width: 95%;
        max-height: 70vh;
    }
}
