/* =========================================================
   GETCHELL FAMILY STORE (.ORG)
   RESPONSIVE OVERRIDES

   Load this AFTER style.css.
   This file intentionally overrides the older patchwork
   responsive rules without changing the desktop layout.
   ========================================================= */

/* =========================================================
   TABLET / NARROW DESKTOP
   ========================================================= */

@media (max-width: 1024px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-left,
    .main-nav {
        gap: 18px;
    }

    .nav-icons {
        gap: 14px;
    }

    .announcement-title {
        font-size: 42pt;
    }

    .site-footer {
        align-items: flex-start;
    }

    .footer-links {
        gap: 14px 18px;
    }

    .login-page {
        grid-template-columns:
            minmax(120px, 0.7fr)
            minmax(360px, 520px)
            minmax(120px, 0.7fr);

        gap: 24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .login-side img {
        width: 90%;
    }

    .catalog-collection-grid,
    .catalog-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   PHONE + TABLET LAYOUT
   ========================================================= */

@media (max-width: 900px) {

    /* ---------- announcement ---------- */

    .announcement {
        padding: 10px 14px 12px;
    }

    .announcement-small {
        font-size: 18px;
    }

    .announcement-title {
        font-size: clamp(24px, 5vw, 34px);
        line-height: 1.08;
    }

    .announcement-disclaimer {
        font-size: 11px;
        line-height: 1.25;
    }


    /* ---------- global header ---------- */

    .site-header {
        position: sticky;
        top: 0;
    }

    .nav-container {
        height: auto;
        min-height: 96px;

        padding: 12px 16px 11px;

        align-items: flex-start;
        gap: 10px;
    }

    .nav-left {
        flex: 1 1 auto;
        min-width: 0;

        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
    }

    .site-name {
        max-width: 100%;

        font-size: 15px;
        line-height: 1.2;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 14px;
        line-height: 1.2;
    }

    .nav-icons {
        flex: 0 0 auto;
        gap: 4px;
    }

    .icon-button {
        width: 40px;
        height: 40px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 8px;
        box-sizing: border-box;
    }

    .icon-button svg {
        width: 22px;
        height: 22px;
    }

    .cart-count {
        top: 1px;
        right: 0;
    }


    /* ---------- footer ---------- */

    .site-footer {
        padding: 24px 16px;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 18px;

        text-align: center;
    }

    .footer-left {
        line-height: 1.45;
    }

    .footer-links {
        width: 100%;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 11px;

        text-align: center;
    }

    .footer-links a {
        line-height: 1.35;
    }

    .disclaimer-bar {
        min-height: 0;

        padding: 12px 16px 18px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 8px;

        text-align: center;
    }

    .disclaimer-link,
    .legal-portal-link {
        position: static;
        inset: auto;
        transform: none;

        white-space: normal;
        line-height: 1.35;
    }

    .legal-portal-link {
        font-size: 12px;
    }



    /* ---------- mobile footer order ---------- */

.footer-shell {
    background-color: white;
    border-top: 1px solid #d9d9d9;

    padding: 24px 16px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 11px;

    text-align: center;
}

.footer-shell .site-footer,
.footer-shell .footer-links,
.footer-shell .disclaimer-bar {
    display: contents;
}

.footer-links a:nth-child(1) {
    order: 1;
}

.footer-links a:nth-child(2) {
    order: 2;
}

.footer-links a:nth-child(3) {
    order: 3;
}

.footer-links a:nth-child(4) {
    order: 4;
}

.legal-portal-link {
    order: 5;
}

.disclaimer-link {
    order: 6;
    margin-top: 8px;
}

.footer-left {
    order: 7;
    margin-top: 4px;
}



    /* ---------- home hero ---------- */

    .hero {
    min-height: 0;
    aspect-ratio: 4.13 / 1;

    background-size: 100% 100%;
    background-position: center;
}

    .hero-content h1 {
        margin: 0 0 22px;

        font-size: clamp(28px, 7vw, 38px);
        line-height: 1.1;
    }

    .hero-button {
        display: inline-flex;
        min-height: 46px;

        align-items: center;
        justify-content: center;

        padding: 12px 22px;
        box-sizing: border-box;
    }


    /* ---------- index2 / index3 joke strips ---------- */

    .home-joke {
        height: 118px;
        overflow: hidden;
    }

    .joke-text {
        margin: 0;
        padding: 62px 16px 0;

        font-size: clamp(17px, 4.3vw, 22px);
        line-height: 1.2;
        text-align: center;
    }


    .second-joke {
        padding: 17px 16px 22px;
        font-size: clamp(17px, 4.3vw, 22px);
        line-height: 1.2;
    }


    /* ---------- home product categories ---------- */

    .product-placeholder {
        padding: 38px 16px 42px;
    }

    .store-products-header {
        margin-bottom: 18px;
    }

    .store-products-header h2 {
        font-size: clamp(30px, 7vw, 38px);
    }

    .product-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px 12px;
    }

    .product-slide-arrow {
        width: 42px;
        height: 48px;

        font-size: 30px;
    }

    .product-slide-left {
        left: 6px;
    }

    .product-slide-right {
        right: 6px;
    }

    .product-card-name {
        font-size: 14px;
        line-height: 1.3;
    }


    /* ---------- email signup strip ---------- */

    .email-signup {
        padding: 30px 16px;

        flex-direction: column;
        align-items: stretch;

        gap: 20px;
    }

    .email-signup-copy,
    .email-signup-field {
        flex: none;
        width: 100%;
    }

    .email-signup-copy h2 {
        font-size: 23px;
    }

    .email-signup-field {
        min-height: 56px;
        height: 56px;

        padding-left: 20px;
    }

    .email-arrow {
        width: 56px;
    }


    /* =========================================================
       LOGIN + LOGIN ERROR
       ========================================================= */

    .login-page {
        min-height: 0;

        display: block;

        padding: 34px 16px 46px;
    }

    .login-side {
        display: none;
    }

    .login-center {
        width: min(100%, 520px);
        margin: 0 auto;
    }

    .login-box {
        padding: 30px 22px 32px;
    }

    .login-box h1 {
        margin-bottom: 26px;

        white-space: normal;

        font-size: 23px;
        line-height: 1.25;
    }

    .create-account-box {
        padding: 23px 22px 26px;
    }

    .bonk-title {
        font-size: 54px;
    }

    .bonk-subtitle {
        font-size: 14px;
        line-height: 1.35;
    }


    /* =========================================================
       CREATE ACCOUNT / CORRUPT PAGE
       ========================================================= */

    .corrupt-message-box {
        width: calc(100% - 28px);
        max-width: 700px;

        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);

        padding: 24px 18px;
    }

    .corrupt-rant {
        max-height: calc(100vh - 180px);
        max-height: calc(100dvh - 180px);

        padding-right: 7px;
        margin-bottom: 20px;
    }

    .corrupt-custom-message {
        font-size: 15px;
        line-height: 1.45;
    }

    .corrupt-back-button {
        min-height: 48px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 12px 14px;

        font-size: 13px;
        line-height: 1.25;
    }

    .zoom-easter-egg {
        left: auto;
        right: -38vw;

        width: 135vw;
        max-width: none;

        opacity: 0.42;
    }


    /* =========================================================
       EMAIL LIST / TERMINAL + GRAVEYARD
       ========================================================= */

    .error-page-content {
        width: calc(100% - 28px);
        padding-top: 38px;
    }

    .terminal-box {
        padding: 26px 20px 30px;

        border-width: 4px;

        box-shadow:
            6px 6px 0 rgba(0, 0, 0, 0.35);
    }

    .terminal-heading {
        font-size: 14px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .terminal-status {
        margin-bottom: 24px;

        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .terminal-message,
    .terminal-message p {
        font-size: 15px;
        line-height: 1.55;
    }

    .terminal-message {
        margin-bottom: 30px;
    }

    .terminal-message p {
        margin-bottom: 21px;
    }

    .terminal-back-button {
        min-height: 48px;
        padding: 13px 12px;

        font-size: 13px;
        line-height: 1.25;
    }

    .graveyard {
        width: 100%;

        margin-top: 55px;

        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 14px 10px;

        padding: 34px 10px 55px;
    }

    .graveyard-ground {
        width: 100vw;
        height: calc(100% - 20px);
    }

    .tombstone {
        min-height: 115px;
        padding: 25px 7px 12px;
    }


    /* =========================================================
       DISCLAIMER
       ========================================================= */

    .disclaimer-document {
        width: 100%;
        max-width: 950px;

        padding: 42px 20px 70px;
        box-sizing: border-box;
    }

    .disclaimer-document h1 {
        font-size: clamp(26px, 6vw, 31px);
        line-height: 1.15;
    }

    .disclaimer-document h2 {
        margin-top: 34px;

        font-size: 21px;
        line-height: 1.2;
    }

    .disclaimer-document p {
        font-size: 16px;
        line-height: 1.58;
    }


    /* =========================================================
       CART
       ========================================================= */

    .cart-page {
        min-height: 0;

        padding: 38px 16px 65px;
    }

    .cart-page-heading {
        margin-bottom: 28px;

        align-items: flex-start;
        flex-direction: column;

        gap: 16px;
    }

    .cart-page-heading h1 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.05;
    }

    .cart-page-subtitle {
        line-height: 1.4;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cart-summary {
        position: static;
        width: 100%;

        padding: 24px 20px;
    }

    .cart-item {
        grid-template-columns:
            100px
            minmax(0, 1fr);

        gap: 14px 16px;
        align-items: start;

        padding: 16px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-info h2 {
        font-size: 16px;
        line-height: 1.25;
    }

    .cart-quantity,
    .cart-item-right {
        grid-column: 2;
    }

    .cart-item-right {
        text-align: left;
    }

    .cart-remove-button {
        min-height: 34px;
        padding: 6px 0;
    }


    /* =========================================================
       CHECKOUT
       ========================================================= */

    .checkout-page {
        min-height: 0;

        padding: 38px 16px 70px;
    }

    .checkout-heading h1 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.05;
    }

    .checkout-heading p {
        line-height: 1.5;
    }

    .checkout-total-panel {
        padding: 28px 22px;
    }

    #checkout-total {
        font-size: clamp(36px, 10vw, 46px);
        overflow-wrap: anywhere;
    }

    .checkout-comparison-section {
        padding: 26px 18px 32px;
    }

    .checkout-comparison-heading h2 {
        font-size: 22px;
        line-height: 1.2;
    }

    .checkout-comparisons {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dream-card {
        padding: 24px 20px 26px;
    }

    .dream-card h3 {
        font-size: 22px;
    }

    .dream-achievement-banner {
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -24px;
    }


    /* =========================================================
       CATALOG
       ========================================================= */

    .catalog-page {
        min-height: 0;

        padding: 26px 14px 65px;
    }

    .catalog-page-inner {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .catalog-page-heading h1 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.05;
    }

    .catalog-category-jump {
        gap: 8px;
        margin-top: 20px;
    }

    .catalog-category-jump a {
        min-height: 42px;
        padding: 8px 12px;

        font-size: 13px;
    }

    .catalog-toolbar {
        margin-top: 18px;
        margin-bottom: 16px;
        padding-bottom: 18px;

        justify-content: flex-start;
    }

    .catalog-sort {
        width: 100%;
        min-width: 0;
    }

    .catalog-sort select {
        min-width: 0;
        flex: 1 1 auto;
    }

    .catalog-category-section {
        margin-top: 46px;
    }

    .catalog-category-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .catalog-category-heading h2 {
        font-size: clamp(26px, 7vw, 32px);
    }

    .catalog-category-count {
        padding-top: 5px;
    }

    .catalog-heading-left {
        gap: 8px 12px;
    }

    .catalog-collection-jump {
        gap: 7px;
    }

    .catalog-collection-jump a {
        min-height: 38px;

        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .catalog-collection-heading {
        align-items: flex-start;
        gap: 8px;
    }

    .catalog-collection-heading h3 {
        font-size: 18px;
    }

    .catalog-collection-grid,
    .catalog-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px 12px;
    }

    .catalog-product-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .catalog-product-price {
        font-size: 14px;
    }

    .catalog-add-to-cart-button,
    .add-to-cart-button {
        min-height: 44px;
    }


    /* ---------- search overlay ---------- */

    .site-search-overlay {
        padding: 8vh 12px 20px;
    }

    .site-search-panel {
        padding: 30px 18px 22px;
    }

    .site-search-heading {
        padding-right: 35px;
        font-size: 23px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 560px) {

    .nav-container {
        padding-left: 12px;
        padding-right: 10px;
    }

    .site-name {
        font-size: 14px;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .nav-icons {
        gap: 1px;
    }

    .icon-button {
        width: 37px;
        height: 37px;
        padding: 7px;
    }

    .announcement-title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .hero {
    min-height: 155px;
}

    .hero-content h1 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .product-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .product-slide-arrow {
        width: 38px;
        height: 46px;
    }

    .graveyard {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px 12px;
    }

    .tombstone {
        min-height: 130px;
        font-size: 12px;
    }

    .catalog-category-heading,
    .catalog-collection-heading {
        flex-direction: column;
    }

    .catalog-category-count,
    .catalog-collection-heading > span {
        padding-top: 0;
    }

.cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto auto auto;

    column-gap: 12px;
    row-gap: 4px;

    padding: 14px;

    align-items: start;
}

.cart-item-image {
    width: 84px;
    height: 84px;

    grid-column: 1;
    grid-row: 1 / span 3;
}

.cart-item-info {
    grid-column: 2;
    grid-row: 1;
}

.cart-quantity {
    grid-column: 2;
    grid-row: 2;

    margin: 0;
}

.cart-item-right {
    grid-column: 2;
    grid-row: 3;

    margin: 0;
    text-align: left;
}

    .cart-quantity button {
        width: 38px;
        height: 38px;
    }

    .cart-quantity-input {
        width: 48px;
        height: 38px;
    }

    .dream-stat strong {
        font-size: 32px;
    }

    .dream-kit-stat strong {
        font-size: 40px;
    }



}


/* =========================================================
   EXTRA-SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .site-name {
        font-size: 13px;
    }

    .main-nav {
        gap: 11px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .icon-button {
        width: 34px;
        height: 36px;
        padding: 6px;
    }

    .product-category-grid,
    .catalog-collection-grid,
    .catalog-product-grid {
        grid-template-columns: 1fr;
    }


    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .cart-quantity,
    .cart-item-right {
        grid-column: 1;
    }

}



@media (max-width: 560px) {

    .home-joke {
        position: relative;
        overflow: visible;
        z-index: 1001;
    }

    .joke-text {
    padding-top: 40px;
}

    .joke-arrow {
    top: -36px;
    z-index: 1002;
    pointer-events: none;
}

    .arrow-store {
        left: 32px;
        transform: translateX(-50%) scaleY(1.30);
        transform-origin: center bottom;
    }

    .arrow-home {
    left: 186px;
    transform: translateX(-50%) scaleY(1.75);
    transform-origin: center bottom;
}


.home-joke {
    height: 96px;
    border-bottom: none;
}

.second-joke {
    margin-top: -1px;
    padding: 8px 16px 12px;
    border: none;
    box-shadow: none;
}


}





