/* Main Stylesheet for Static Dormify Site - Updated to match dormify.com */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Teachers", -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #2c2c2c;
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-size: 14px;
}

.skip-to-main:focus {
    top: 6px;
}

/* Site Grid Layout */
.site-grid {
    display: flex;
    flex-direction: column;
    max-width: 1680px;
    margin: 0 auto;
}

/* Header Styles */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 999;
}

.header-inner {
    max-width: 1680px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 1rem;
}

.site-header__logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    font-family: "Teachers", sans-serif;
}

.site-header__logo img {
    height: 28px;
    width: auto;
    display: block;
}

.site-header__logo:hover {
    color: #111827;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
}

.main-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    font-family: "Teachers",Helvetica,Arial,sans-serif;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    text-transform: capitalize;
    letter-spacing: 0.025em;
}

.main-nav a:hover {
    color: #e60050;
    border: 2px solid transparent;
    border-bottom-color: #e60050;
    border-radius: unset;
}

.main-nav a.active {
    color: #e60050;
    font-weight: 500;
    border: 2px solid transparent;
    border-bottom-color: #e60050;
    border-radius: unset;
}

/* Main Content */
.site-main-section {
    flex: 1;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #f8f4ec;
}

/* Two-column hero banner layout for specific pages */
.hero-banner--two-column {
    justify-content: center;
    align-items: stretch;
    text-align: center;
    padding: 0;
    margin-bottom: 3.5rem;
    display: flex;
}

.hero-content {
    padding: 0 4.5%;
}

.hero-banner--two-column .hero-content {
    width: 36.3095238%;
    padding: 0 4.5%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#homepage .hero-content {
    padding: 0px 2.5%;
}

.hero-image {
    width: 100%;
}

.hero-banner--two-column .hero-image {
    width: 63.6904762%;
    display: flex;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-title {
    font-weight: 700;
    font-size: clamp(25px, 2.5vw, 42px);
    letter-spacing: -.84px;
    color: #303030;
    line-height: 1.3;
    margin-bottom: 1.75rem;
}

.hero-banner--two-column .hero-title {
    font-weight: 700;
    font-size: clamp(25px, 2.5vw, 42px);
    letter-spacing: -.84px;
    color: #303030;
    line-height: 1.3;
    margin-bottom: 1rem;
}

#homepage .hero-title {
    font-weight: 700;
    font-size: clamp(25px, 2.5vw, 42px);
    letter-spacing: -.84px;
    color: #303030;
    line-height: 1.3;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2.75rem;
    color: #555555;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.hero-banner--two-column .hero-description {
    font-size: clamp(12px, 1vw, 16px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

#homepage .hero-description {
    font-size: clamp(12px, 1vw, 16px);
    letter-spacing: -.32px;
}

#homepage .hero-description p {
    margin: 0;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-banner--two-column .hero-buttons {
    justify-content: center;
}

#homepage .hero-buttons {
    gap: clamp(15px, 1.36vw, 23px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: #1f2937;
    color: white;
    border-color: #1f2937;
}

.btn-primary:hover {
    background-color: #111827;
    border-color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: #1f2937;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #1f2937;
    color: #1f2937;
}

/* Dormify Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: .25rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: calc(24px + 1rem);
}

.button--secondary {
    background-color: #e60050;
    color: #ffffff;
    border-color: #e60050;
    border-radius: 88px;
}

.button--secondary:hover {
    background-color: transparent;
    color: #e60050;
    border-color: #e60050;
}

.button--secondary:hover .button__icon svg path {
    fill: #e60050;
}

.button--dark {
    background-color: #03121f;
    color: #ffffff;
    border-color: #03121f;
    border-radius: 88px;
}

.button--dark:hover {
    background-color: transparent;
    color: #03121f;
    border-color: #03121f;
}

.button--dark:hover .button__icon svg path {
    fill: #03121f;
}

.button--dark-mobile {
    /* Mobile specific styles for dark button */
}

#homepage .button-learn-more {
    background-color: transparent !important;
    color: #303030 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: 200px;
    text-underline-offset: 3px;
    line-height: 1.5;
    font-size: clamp(12px, 1vw, 16px);
    text-decoration: underline;
}

#homepage .button-learn-more:hover {
    background-color: transparent !important;
    color: #303030 !important;
    border: none !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

#homepage .button-explore-pbd {
    font-size: 0.8125rem !important;
}

.button--half {
    min-width: 200px;
}

.button--secondary-mobile {
    /* Mobile specific styles can be added here */
}

.button.liquid {
    /* Liquid layout styles */
    width: auto;
    flex: none;
}

.button__label {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.button:hover .button__icon {
    transform: translateX(12px);
}

.button__icon svg,
.button__icon img {
    width: 15px;
    height: 15px;
    transition: all 0.3s ease;
}

.button__icon svg path {
    fill: #ffffff;
    transition: fill 0.3s ease;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
    row-gap: 3.75rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

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

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Shop Dorm Essentials Section - Custom Gap */
#homepage .section--shop-essentials .grid-4 {
    gap: .773809524%;
    grid-template-columns: repeat(4, 1fr);
}

/* Shop Dorm Essentials Section - Section Title Margin */
#homepage .section--shop-essentials .section-title {
    margin: 0 0 32px 0;
}

@media (max-width: 1024px) {
    .grid {
        gap: 1.5rem;
        row-gap: 3.75rem;
    }
}

@media (max-width: 932px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        row-gap: 3.75rem;
    }

    .grid.grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
        row-gap: 3.75rem;
    }
}

/* Cards */
.card {
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1rem 0 0.5rem 0;
}

.card-title {
    font-size: clamp(12px, 1vw, 16px);
    letter-spacing: -.64px;
    font-weight: 500;
    line-height: 1.58;
    color: #303030;
    margin: 0;
}

.card-title a {
    color: #303030;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.card-title a svg,
.card-title a img {
    width: 24px;
    height: 18px;
    margin-left: 0.375rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.card-title a:hover svg,
.card-title a:hover img {
    transform: translateX(8px);
}

.section--trending-styles .card-title {
    font-size: clamp(16px, 1.6vw, 27px);
    font-weight: 500;
    letter-spacing: -.54px;
}

.card-description,
.card-content p {
    color: #666666;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: 6rem 1.5rem;
    text-align: left;
    background: transparent;
    &.section--shop-essentials {
    padding-top: 0;
    padding-bottom: 3.125rem;
    }
    &.section--trending-styles {
        padding-top: 3.125rem;
        .section-title {
            margin-top: 0;
            margin-bottom: 2rem;
        }
    }
}

/* Essentials page specific section spacing */
#essentials-page .section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 4rem;
    color: #303030;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Homepage-specific section title styling */
#homepage .section-title.text-center {
    font-weight: 700;
    font-size: clamp(25px, 2.5vw, 42px);
    letter-spacing: -.84px;
    color: #303030;
    line-height: 1.3;
}

/* Homepage trending styles section background */
#homepage .section--trending-styles {
    background-color: #EBF5F8 !important;
}

/* Homepage about dormify section padding */
#homepage .section--about-dormify {
    padding-bottom: 4rem;
    padding-top: 4rem;
}

/* Homepage about dormify section title padding */
#homepage .section--about-dormify .section-title {
    padding-top: 0;
    padding-bottom: 0.75rem;
    margin: 0;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-center p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: #f9fafb;
    color: #6b7280;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    color: #1f2937;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #1f2937;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
/* Desktop - ensure hamburger is hidden and nav is visible */
@media (min-width: 933px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-nav {
        position: static !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
    z-index: 999999;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #374151;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    color: #303030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-toggle.active .mobile-menu-close {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 932px) {

    .site-grid {
        min-height: auto;
    }

    /* Mobile menu backdrop */
    .mobile-menu-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999997 !important;
        pointer-events: none;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-inner {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        height: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 80px 0 0 0 !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
        transition: left 0.3s ease !important;
        z-index: 999998 !important;
        overflow-y: auto !important;
        visibility: hidden !important;
    }

    .main-nav.active {
        left: 0 !important;
        visibility: visible !important;
        background: #ffffff !important;
    }

    .main-nav a {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid #f3f4f6;
        border-right: none;
        border-left: none;
        border-top: none;
        width: 100%;
        text-align: left;
        display: block;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover {
        background-color: #f9fafb;
        border-bottom-color: #f3f4f6;
    }

    .main-nav a.active {
        color: inherit !important;
        font-weight: inherit !important;
        border: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        background-color: transparent !important;
    }

    /* Hero Banner Mobile Styles */
    .hero-banner {
        padding: 2.5rem 1rem;
    }

    .hero-banner--two-column {
        flex-direction: column;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    #homepage .hero-banner--two-column {
        padding: 0 0 2rem 0;
    }

    .hero-banner--two-column .hero-content {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }

    #homepage .hero-banner--two-column .hero-content {
        order: 2;
    }

    .hero-banner--two-column .hero-image {
        width: 100%;
        height: 100%;
    }

    #homepage .hero-banner--two-column .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* College Spirit Shop Mobile Specific Styles */
    #spirit-page .hero-banner--two-column .hero-content {
        text-align: center;
        padding: 1rem 0;
    }

    #spirit-page .hero-title {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 1rem;
    }

    #spirit-page .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    #spirit-page .hero-buttons .button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    #spirit-page .hero-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    .grid {
        gap: 1.5rem;
        row-gap: 3.75rem;
    }

    .grid-2, .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .card-content {
        padding: 1rem 0 0.5rem 0;
    }

    .footer-content {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional enhancements for better visual appeal */

.card .btn {
    width: 100%;
    justify-self: center;
}

/* Focus states for accessibility */
.btn:focus,
.main-nav a:focus,
.site-header__logo:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Improved link styling */
a {
    transition: all 0.2s ease;
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Shopify Footer Styles - Match dormify.com */
#site-footer.site-footer {
    background-color: #ffffff;
    margin-top: auto;
}

.site-footer__copyright-legal {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__copyright {
    color: #303030;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.site-footer__legal a {
    color: #303030;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.site-footer__legal a:hover {
    color: #333333;
    text-decoration: underline;
}

/* Pipe separators */
.site-footer__legal > *:not(:last-child)::after {
    content: none;
}

/* Tools/Inspo page specific styles */
#inspo-page .card-title {
    font-size: clamp(16px, 1.6vw, 27px);
    font-weight: 500;
    letter-spacing: -.54px;
    color: #303030;
}

#inspo-page .section {
    padding: 3.125rem 7.73809524%;
}

/* Mobile responsive footer */
@media (max-width: 932px) {
    .site-footer__copyright-legal {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 1.5rem 2rem;
    }

    .site-footer__copyright {
        order: 2;
        margin-top: 0.5rem;
    }

    .site-footer__legal {
        order: 1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.8125rem;
    }

    .site-footer__legal a {
        white-space: nowrap;
    }

    .site-footer__legal > *:not(:last-child)::after {
        display: none;
    }

    /* College Spirit Shop mobile hero image */
    #spirit-page .hero-banner--two-column {
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    #spirit-page .hero-banner {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    #spirit-page .hero-image {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2;
    }

    #spirit-page .hero-image img {
        width: 100% !important;
        height: 250px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        padding: 0;
        display: block;
    }

    #spirit-page .hero-content {
        order: 1;
        width: 100% !important;
        padding: 1rem 1.5rem 1.5rem !important;
        max-width: 100% !important;
        min-height: auto !important;
    }

    #spirit-page .site-main-section {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        flex: none !important;
    }

    /* Shop Rooms mobile styles - matching college spirit shop */
    #rooms-page .hero-banner--two-column {
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    #rooms-page .hero-banner {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    #rooms-page .hero-image {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2;
    }

    #rooms-page .hero-image img {
        width: 100% !important;
        height: 250px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        padding: 0;
        display: block;
    }

    #rooms-page .hero-content {
        order: 1;
        width: 100% !important;
        padding: 1rem 1.5rem 1.5rem !important;
        max-width: 100% !important;
        min-height: auto !important;
    }

    #rooms-page .site-main-section {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        flex: none !important;
    }

    /* Visualizer page mobile styles */
    #visualizer-page .hero-image {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #visualizer-page .hero-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
        display: block;
    }

    /* Bestsellers page mobile styles - matching college spirit shop */
    #bestsellers-page .hero-banner--two-column {
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    #bestsellers-page .hero-banner {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    #bestsellers-page .hero-image {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2;
    }

    #bestsellers-page .hero-image img {
        width: 100% !important;
        height: 250px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        padding: 0;
        display: block;
    }

    #bestsellers-page .hero-content {
        order: 1;
        width: 100% !important;
        padding: 1rem 1.5rem 1.5rem !important;
        max-width: 100% !important;
        min-height: auto !important;
    }

    #bestsellers-page .site-main-section {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        flex: none !important;
    }

    /* Checklist page mobile styles - matching college spirit shop */
    #checklist-page .hero-banner--two-column {
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    #checklist-page .hero-banner {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    #checklist-page .hero-image {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2;
    }

    #checklist-page .hero-image img {
        width: 100% !important;
        height: 250px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        padding: 0;
        display: block;
    }

    #checklist-page .hero-content {
        order: 1;
        width: 100% !important;
        padding: 1rem 1.5rem 1.5rem !important;
        max-width: 100% !important;
        min-height: auto !important;
    }

    #checklist-page .site-main-section {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        flex: none !important;
    }

    /* Tools/Inspo page mobile styles */
    #inspo-page .hero-banner {
        min-height: auto !important;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        background-color: #f8f4ec !important;
    }

    #inspo-page .hero-content {
        max-width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }

    #inspo-page .hero-title {
        font-size: clamp(28px, 6vw, 36px) !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }

    #inspo-page .hero-description {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.6 !important;
    }

    #inspo-page .hero-buttons .button {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    #inspo-page .section {
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
    }

    #inspo-page .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    #inspo-page .grid.grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        row-gap: 2rem !important;
    }

    #inspo-page .card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    #inspo-page .card-image {
        width: 100% !important;
        height: auto !important;
    }

    #inspo-page .card-content {
        padding: 1rem 0 !important;
        text-align: left !important;
    }

    #inspo-page .card-title {
        font-size: clamp(18px, 4vw, 22px) !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
    }

    #inspo-page .card-content p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: #666666 !important;
        margin: 0 !important;
    }

    /* Essentials page mobile styles */
    #essentials-page .grid-3 {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    #essentials-page .card {
        margin-bottom: 1rem !important;
    }

    #essentials-page .card-image {
        width: 100% !important;
        height: auto !important;
    }

    #essentials-page .card-content {
        padding: 1rem 0 !important;
        text-align: left !important;
    }

    #essentials-page .card-title {
        font-size: clamp(14px, 3.5vw, 16px) !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }

    #essentials-page .card-title a {
        color: #000 !important;
        text-decoration: none !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #essentials-page .card-title .icon {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    #essentials-page .section {
        padding: 2rem 1rem !important;
    }
}

/* Email Capture Overlay */
.email-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.email-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F9F4EC;
    border-radius: 8px;
    width: 400px;
    height: 440px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.email-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s ease;
}

.email-overlay-close:hover {
    background: #f0f0f0;
    color: #333;
}

.email-overlay-inner {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.email-overlay-title {
    font-size: 1.625rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #000000;
    line-height: 1.3;
    font-family: inherit;
}

.email-overlay-form {
    margin-bottom: 1.5rem;
}

.email-input-group {
    margin-bottom: 1rem;
}

.email-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.email-input:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
}

.email-disclaimer {
    font-size: 0.8125rem;
    color: #000000;
    line-height: 1.4;
    margin: 0;
}

/* Error styling for email overlay */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.email-input.error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Remove fieldset borders */
.email-overlay-form fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

/* Email overlay button styling */
.email-overlay-form .button {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 6px;
}

.email-overlay-form .button .button__label {
    flex: none;
}

.email-overlay-form .button .button__icon {
    margin-left: 0.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.email-overlay-links {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 1.25rem;
}

.email-overlay-links a {
    color: #000000;
    text-decoration: none;
}

.email-overlay-links a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.email-overlay-copyright {
    margin-top: 1rem;
}

.email-overlay-copyright p {
    font-size: 0.75rem;
    color: #000000;
    margin: 0;
    text-align: center;
}

/* Mobile styles for email overlay */
@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        row-gap: 3.75rem;
    }

    #homepage .section--shop-essentials .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        column-gap: .625rem;
        row-gap: 1.25rem;
    }

    #homepage .section--shop-essentials {
        padding: 0 8px 20px 8px;
    }

    #homepage .section--shop-essentials .card-title {
        font-size: 16px;
    }

    #homepage .section--shop-essentials h2 {
        font-size: 28px;
    }

    #homepage .section--shop-essentials .section-title {
        font-size: 28px;
    }

    #homepage .section--trending-styles .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        row-gap: 3.75rem;
    }

    #homepage .section--trending-styles {
        padding: 25px 7.2%;
    }

    #homepage .section--about-dormify {
        padding: 40px 7.2%;
    }

    #homepage .button-learn-more {
        font-size: 16px;
        letter-spacing: -.32px;
    }

    .button__label {
        font-size: 16px;
        letter-spacing: -.32px;
    }

    .hero-description {
        font-size: 16px !important;
        line-height: 1.5 !important;
        letter-spacing: -.32px !important;
    }

    #homepage .hero-description {
        font-size: 16px !important;
        line-height: 1.5 !important;
        letter-spacing: -.32px !important;
    }

    .email-overlay-content {
        width: 90vw;
        max-width: 397px;
        height: auto;
        max-height: 90vh;
        min-height: 320px;
        border-radius: 8px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .email-overlay-inner {
        padding: 1.5rem;
    }

    .email-overlay-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .email-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .email-overlay-content {
        width: 95vw;
        max-width: 397px;
        max-height: 85vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .email-overlay-inner {
        padding: 1.25rem;
    }

    .email-overlay-title {
        font-size: 1.125rem;
    }
}