/* ==========================================
   Clear PET Cups — Page-Specific Styles
   Page ID 26187 only
   ========================================== */

/* ==========================================
   PROBLEM 3 FIX: Release #primary from Astra's 68% width
   Root cause: @media(min-width:922px){#primary{width:68%}}
   ========================================== */
.page-id-26187 #content > .ast-container {
    display: block !important;
    width: calc(100% - 48px);
    max-width: 1240px !important;
    margin-left: auto;
    margin-right: auto;
}

.page-id-26187 #primary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.page-id-26187 .pet-cups-page,
.page-id-26187 .pet-cups-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* --- Base Typography & Spacing --- */
.pet-cups-page {
    font-family: inherit;
    line-height: 1.6;
    color: #334155;
}
.pet-cups-page section {
    padding: 60px 0;
}
.pet-cups-page h2 {
    color: #0b1e3b;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
}
.pet-cups-page h3 {
    color: #0b1e3b;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* --- Inner containers — reset Bootstrap constraints --- */
.pet-cups-page .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   PROBLEM 2 FIX: Product Grid — 5 columns CSS Grid
   Replaces Bootstrap col-lg-2dot4 (25%) with CSS Grid
   ========================================== */

/* Desktop 1200px+: 5 columns */
@media (min-width: 1200px) {
    .pet-cups-page .row:has(.pc-card) {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
        margin: 0;
    }
    .pet-cups-page .row:has(.pc-card) > * {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        float: none !important;
    }
}

/* Tablet 768-1199px: 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .pet-cups-page .row:has(.pc-card) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin: 0;
    }
    .pet-cups-page .row:has(.pc-card) > * {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        float: none !important;
    }
}

/* Mobile 480-767px: 2 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .pet-cups-page .row:has(.pc-card) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 0;
    }
    .pet-cups-page .row:has(.pc-card) > * {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        float: none !important;
    }
}

/* Small mobile <480px: 1 column */
@media (max-width: 479px) {
    .pet-cups-page .row:has(.pc-card) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0;
    }
    .pet-cups-page .row:has(.pc-card) > * {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        float: none !important;
    }
}

/* --- Keep old Bootstrap col-* for non-product layouts (hero, etc.) --- */
.pet-cups-page .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.pet-cups-page .row > * {
    padding: 0 10px;
    box-sizing: border-box;
}
.pet-cups-page .col-6      { flex: 0 0 50%;       max-width: 50%; }
.pet-cups-page .col-sm-4   { flex: 0 0 33.333%;   max-width: 33.333%; }
.pet-cups-page .col-sm-6   { flex: 0 0 50%;       max-width: 50%; }
.pet-cups-page .col-sm-12  { flex: 0 0 100%;      max-width: 100%; }
.pet-cups-page .col-md-3   { flex: 0 0 25%;       max-width: 25%; }
.pet-cups-page .col-md-4   { flex: 0 0 33.333%;   max-width: 33.333%; }
.pet-cups-page .col-md-8   { flex: 0 0 66.667%;   max-width: 66.667%; }
.pet-cups-page .col-md-10  { flex: 0 0 83.333%;   max-width: 83.333%; }

/* Remove old col-lg-2dot4 / col-lg-3 from product grids — :has(.pc-card) overrides them */

/* --- Quick Nav — flexbox, no \n separators --- */
.pet-cups-page .pc-nav-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pet-cups-page .pc-nav-btn {
    cursor: pointer;
}
.pet-cups-page .pc-nav-btn:hover,
.pet-cups-page .pc-nav-btn.active {
    background: #ff7b10 !important;
    color: #fff !important;
}

/* --- Product Cards --- */
.pet-cups-page .pc-card {
    transition: box-shadow .3s;
}
.pet-cups-page .pc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* --- Hero Section --- */
.pet-cups-page .pc-hero {
    width: 100%;
}
.pet-cups-page .pc-hero-title {
    /* Keep inline styles from HTML */
}
.pet-cups-page .pc-hero-text {
    max-width: 720px;
}

/* --- FAQ Accordion --- */
.pet-cups-page .pc-faq-question {
    cursor: pointer;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    transition: all .2s;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #0b1e3b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pet-cups-page .pc-faq-question[aria-expanded="true"] {
    border-color: #16529b !important;
    background: #f4f6f9 !important;
}
.pet-cups-page .pc-faq-question[aria-expanded="true"] .pc-accordion-arrow {
    transform: rotate(180deg);
    color: #16529b;
}
.pet-cups-page .pc-faq-question:hover {
    background: #f8fafc;
}
.pet-cups-page .pc-accordion-arrow {
    font-size: 12px;
    transition: transform .3s;
    color: #94a3b8;
}
.pet-cups-page .pc-faq-answer {
    padding: 12px 20px 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

/* Keep backward compatibility with old accordion classes */
.pet-cups-page .pc-accordion {
    cursor: pointer;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    transition: all .2s;
}
.pet-cups-page .pc-accordion.active {
    border-color: #16529b !important;
    background: #f4f6f9 !important;
}
.pet-cups-page .pc-accordion.active .pc-accordion-arrow {
    transform: rotate(180deg);
    color: #16529b;
}
.pet-cups-page .pc-accordion:not(.active):hover {
    background: #f8fafc;
}
.pet-cups-page .pc-accordion-header {
    font-size: 15px;
    font-weight: 600;
    color: #0b1e3b;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pet-cups-page .pc-accordion-panel {
    padding: 12px 20px 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

/* --- Tables — full width, no forced min-width --- */
.pet-cups-page .pc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}
.pet-cups-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pet-cups-page table thead th {
    background: #173f73;
    color: #fff;
    padding: 13px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.pet-cups-page table thead th:first-child {
    text-align: left;
}
.pet-cups-page table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #e2e8f0;
}
.pet-cups-page .sticky-left {
    position: sticky;
    left: 0;
    z-index: 2;
}

/* --- Lid Compatibility Table --- */
.pet-cups-page .pc-lid-table {
    width: 100%;
    border-collapse: collapse;
}
.pet-cups-page .pc-lid-table thead th {
    background: #173f73;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 12px;
    text-align: center;
}
.pet-cups-page .pc-lid-table thead th:first-child {
    text-align: left;
}
.pet-cups-page .pc-lid-table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.pet-cups-page .pc-lid-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #0b1e3b;
}

/* --- Matching PET Lids — 5-column grid --- */
@media (min-width: 1200px) {
    .pet-cups-page .pc-lid-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .pet-cups-page .pc-lid-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (min-width: 480px) and (max-width: 767px) {
    .pet-cups-page .pc-lid-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 479px) {
    .pet-cups-page .pc-lid-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Specification — Desktop/Mobile Display --- */
.pet-cups-page .pc-spec-desktop {
    display: block;
}
.pet-cups-page .pc-spec-mobile {
    display: none !important;
}
.pet-cups-page .pc-spec-card-group {
    margin-bottom: 20px;
}
.pet-cups-page .pc-spec-card-header {
    background: #fef7ee;
    padding: 8px 14px;
    font-weight: 700;
    color: #0b1e3b;
    font-size: 15px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
}
.pet-cups-page .pc-spec-card-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
}
.pet-cups-page .pc-spec-card-cap {
    color: #ff7b10;
    font-weight: 700;
}
.pet-cups-page .pc-spec-card-footer {
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    height: 4px;
    background: #f8fafc;
}

/* --- Why Choose Cards --- */
.pet-cups-page .pc-why-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

/* --- Custom Options List --- */
.pet-cups-page .pc-custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}
.pet-cups-page .pc-custom-list li {
    padding: 8px 0;
    color: #334155;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

/* ==========================================
   Responsive — Non-Grid Elements
   ========================================== */

/* ≤767px — mobile */
@media (max-width: 767px) {
    .pet-cups-page section { padding: 40px 0; }
    .pet-cups-page h2     { font-size: 22px !important; }
    .pet-cups-page h3     { font-size: 17px !important; }

    .pet-cups-page .pc-hero       { padding: 30px 0 24px !important; }
    .pet-cups-page .pc-hero-title { font-size: 24px !important; }
    .pet-cups-page .pc-hero-text  { font-size: 14px !important; }

    .pet-cups-page .col-6          { flex: 0 0 50%;       max-width: 50%; }
    .pet-cups-page .col-sm-4       { flex: 0 0 50%;       max-width: 50%; }
    .pet-cups-page .col-md-3       { flex: 0 0 50%;       max-width: 50%; }
    .pet-cups-page .col-md-4       { flex: 0 0 100%;      max-width: 100%; }
    .pet-cups-page .col-md-8       { flex: 0 0 100%;      max-width: 100%; }

    .pet-cups-page .pc-custom-list { grid-template-columns: 1fr; }

    .pet-cups-page .pc-spec-desktop { display: none !important; }
    .pet-cups-page .pc-spec-mobile  { display: block !important; }
}

/* ≤575px — single column */
@media (max-width: 575px) {
    .pet-cups-page .col-6          { flex: 0 0 100%; max-width: 100%; }
    .pet-cups-page .col-sm-4       { flex: 0 0 100%; max-width: 100%; }
    .pet-cups-page .col-md-3       { flex: 0 0 100%; max-width: 100%; }
}
