@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Global Search Grid Styles */

:root {
    --gsg-red: #d32f2f;
    --gsg-text: #333;
    --gsg-border: #e0e0e0;
    --gsg-bg-card: #ffffff;
    --gsg-bg-page: #f9f9f9;
    --gsg-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --gsg-font: 'Outfit', sans-serif;
}

.gsg-search-container, 
.gsg-search-form-wrapper, 
.gsg-results-section {
    font-family: var(--gsg-font);
}


.gsg-search-form-wrapper {
    /*max-width: 500px;*/
    /*margin: 40px auto;*/
    position: relative;
}

.pill-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    padding: 2px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pill-group:focus-within {
    border-color: #A61D24;
    box-shadow: 0 4px 12px rgba(166, 29, 36, 0.1);
}

button.gsg-search-submit-btn{
    background-color : #ffff !important;
}

.gsg-search-submit-btn {
    background: transparent;
    border: none;
    padding: 10px 5px;
    cursor: pointer;
    color: #4b5563;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.gsg-search-icon {
  color: #808080; /* Standard Gray */
  /* Or use stroke specifically if 'currentColor' is not inheriting correctly */
  stroke: #808080; 
}


.gsg-pill-separator {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 12px;
}

.gsg-search-input {
    border: none !important;
    background: transparent !important;
    flex-grow: 1;
    line-height: 0.0em !important;
    padding: 12px 5px !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1f2937;
}

/* Mobile: Show only icon */
@media (max-width: 767px) {
    .gsg-search-form-wrapper {
        max-width: 45px;
        margin: 20px auto;
    }

    .pill-group {
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .gsg-pill-separator,
    .gsg-search-input {
        display: none !important;
    }

    .gsg-search-submit-btn {
        width: 45px;
        height: 45px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
}

.gsg-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    margin-top: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.gsg-search-suggestions a {
    display: block;
    padding: 14px 25px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
    font-size: 15px;
}

.gsg-search-suggestions a:last-child {
    border-bottom: none;
}

.gsg-search-suggestions a:hover {
    background: #fdf2f2;
    color: #A61D24;
    padding-left: 30px;
}

.gsg-results-section {
    margin-bottom: 50px;
}

.gsg-results-heading {
    text-align: center;
    color: #A61D24;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 28px;
    line-height: 1.2;
    font-family: 'Outfit';
}

@media (max-width: 767px) {
    .gsg-results-heading {
        font-size: 22px;
        margin-bottom: 20px;
        font-family: 'Outfit';
    }
}

.gsg-view-all {
    display: inline-block;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gsg-text);
    text-decoration: underline;
    vertical-align: middle;
    transition: color 0.3s;
}

.gsg-view-all:hover {
    color: var(--gsg-red);
}


.gsg-grid {
    display: grid;
    gap: 20px;
}

.gsg-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/*.gsg-product-card {*/
/*    background: #fff;*/
/*    border: 1px solid #e2e8f0;*/
/*    border-radius: 18px;*/
/*    padding: 24px 15px;*/
/*    text-align: center;*/
/*    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*}*/

/*.gsg-product-card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);*/
/*}*/

/*.gsg-product-card .gsg-card-image {*/
/*    background: transparent;*/
/*    height: auto;*/
/*    margin-bottom: 20px;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/

/*.product-img {*/
/*    max-height: 220px;*/
/*    width: auto;*/
/*    object-fit: contain;*/
/*}*/

/*.gsg-product-card .gsg-card-title {*/
/*    font-size: 18px;*/
/*    font-weight: 800;*/
/*    color: #1a1a1a;*/
/*    margin: 0 0 20px 0;*/
/*    line-height: 1.2;*/
/*    font-family: 'Outfit';*/
/*}*/

/*.gsg-product-card .gsg-card-actions {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 8px;*/
/*    flex-wrap: nowrap;*/
/*    margin-top: 10px;*/
/*}*/

/*.product-btn {*/
/*    font-size: 10px !important;*/
/*    font-weight: 700;*/
/*    text-transform: capitalize;*/
/*    padding: 8px 12px !important;*/
/*    border: 1px solid #1a1a1a !important;*/
/*    color: #1a1a1a !important;*/
/*    border-radius: 50px !important;*/
/*    white-space: nowrap;*/
/*    text-decoration: none;*/
/*    transition: all 0.3s;*/
/*}*/

/*.product-btn:hover {*/
/*    background: #1a1a1a !important;*/
/*    color: #fff !important;*/
/*}*/

/* Red Pill Button Aesthetic - High Impact */
.gsg-product-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 4px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 4px;
}

.gsg-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gsg-product-card .gsg-card-image {
    width: 100%;
    margin-bottom: 15px;
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.gsg-product-card .gsg-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gsg-product-card .gsg-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #1a1a1a;
    font-family: var(--gsg-font);
    line-height: 1.2;
}

/* Button Actions Container */
.gsg-product-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 5px;
    padding-bottom: 10px;
    width: 100%;
}

/* Base flex for equal widths */
.product-btn,
.inquiry-btn-container {
    flex: 1;
    display: flex;
}

/* Red Pill Button Styles */
.product-btn {
    align-items: center;
    justify-content: center;
    background-color: #E31E24 !important;
    color: #ffffff !important;
    padding: 14px 10px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    font-family: var(--gsg-font), sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.product-btn:hover {
    background-color: #C51626 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* YITH Buttons matching the exact same red style */
.inquiry-btn-container a,
.inquiry-btn-container button,
.inquiry-btn-container .add-request-quote-button, 
.inquiry-btn-container .ywraq-button {
    width: 100% !important;
    background-color: #E31E24 !important;
    color: #ffffff !important;
    padding: 14px 10px !important;
    border-radius: 999px !important;
    border: none !important;
    font-weight: 800 !important;
    font-family: var(--gsg-font), sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.inquiry-btn-container a:hover,
.inquiry-btn-container button:hover,
.inquiry-btn-container .add-request-quote-button:hover {
    background-color: #C51626 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Mobile: Stack buttons if space is tight */
@media (max-width: 480px) {
    .gsg-product-actions {
        flex-direction: column;
    }
}

.gsg-placeholder {
    width: 100%;
    height: 180px;
    background: #eee;
}

.gsg-blog-card,
.gsg-news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gsg-blog-card:hover,
.gsg-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.gsg-blog-card .gsg-card-image,
.gsg-news-card .gsg-card-image {
    padding: 10px;
}

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

.gsg-blog-card .gsg-card-content,
.gsg-news-card .gsg-card-content {
    padding: 15px 20px 25px;
    text-align: left;
}

.gsg-card-title.red-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #A61D24 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3;
    font-family: 'Outfit';
}

.gsg-card-title.red-title a {
    color: inherit;
    text-decoration: none;
      font-family: 'Outfit';
      font-weight: 500;
}

.gsg-card-excerpt {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 500;
}

.gsg-card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0px;
    padding-bottom: 15px;
}

.gsg-btn-outline {
    border: 1px solid #111;
    background: transparent;
    color: #111;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.gsg-btn-outline:hover {
    background: #111;
    color: #fff;
}

.gsg-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.gsg-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.gsg-pagination li a,
.gsg-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--gsg-border);
    background: #fff;
    color: var(--gsg-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.gsg-pagination li span.current {
    background: var(--gsg-red);
    color: #fff;
    border-color: var(--gsg-red);
}

.gsg-pagination li a:hover {
    background: #f0f0f0;
}

.gsg-no-results {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 20px;
}

/* View More Styles */

.gsg-view-more-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.gsg-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #D72323;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
    font-size: 14px;
    gap: 8px;
}

.gsg-view-more:hover {
    opacity: 0.9;
}

.gsg-view-more::after {
    content: "\2192";
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    margin-left: 8px;
}

/* Responsive Grid & Layout */
@media (max-width: 1024px) {
    .gsg-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gsg-results-section {
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .gsg-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gsg-results-section {
        margin-bottom: 40px;
    }

    .pill-suggestions {
        position: fixed;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 15px;
    }
}