body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    padding-top: 2rem;
    min-height: 100%;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
.promo-message {
    margin-top: 8px;
    font-size: 0.9em;
    color: green;
  }
  
.search-container {
    width: 100%;
    max-width: 1200px; /* Increased from 600px for better desktop layout */
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.search-container.focused {
    justify-content: flex-start;
    padding-top: 4rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: min(800px, 90%);
    margin: 0 auto;
    transition: all 0.5s ease;
}

.search-input {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #2d3436;
    box-shadow: 0 4px 25px rgba(45, 52, 54, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-label {
    position: absolute;
    left: clamp(1rem, 3vw, 1.5rem);
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #adb5bd;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0 0.25rem;
    background: white;
}

.search-input:focus + .search-label,
.search-input:not(:placeholder-shown) + .search-label {
    top: 0;
    left: 0.75rem;
    font-size: 0.8rem;
    color: #2d3436;
    transform: translateY(-50%);
}

.results-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Increased from 160px */
    gap: 2rem; /* Increased from 1rem */
    width: 100%;
    max-width: 1400px; /* Added max-width for desktop */
    padding: 2rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results-container.visible {
    opacity: 1;
}

.results-container::-webkit-scrollbar {
    display: none;
}

.card {
    width: 100%;
    background: white;
    border-radius: 16px; /* Increased from 12px */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.3s ease forwards;
    aspect-ratio: 2/3;
    height: auto;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.card-type {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 2rem 0;
    box-sizing: border-box;
    padding: 1rem;
}

.modal {
    position: relative;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(100% - 2rem);
    margin: 1rem;
    overflow: auto;
}


.modal.active {
    transform: translateY(0);
    opacity: 1;
}

.modal h2 {
    margin: 0 0 0 0;
    font-size: 1.5rem;
    color: #2d3436;
    font-weight: 600;
}

.orientation-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.orientation-option {
    cursor: pointer;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.orientation-option:hover {
    border-color: #2d3436;
    transform: translateY(-2px);
}

.orientation-icon {
    border: 2px solid #2d3436;
    border-radius: 8px;
}

.portrait-icon {
    width: 40px;
    height: 60px;
}

.landscape-icon {
    width: 60px;
    height: 40px;
}

.orientation-label {
    font-weight: 500;
    color: #2d3436;
    margin-top: 0.5rem;
}

.orientation-count {
    font-size: 0.9rem;
    color: #adb5bd;
}

.directory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    padding: 2rem;
    overflow: auto;
    box-sizing: border-box;
    padding: 1rem;
}

.directory {
    background: white;
    width: 95%;
    max-width: 1600px;
    min-height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 2rem auto;
    width: 100%;
    max-width: calc(100% - 2rem);
    margin: 1rem;
    overflow: auto;
}

.directory.active {
    transform: translateY(0);
    opacity: 1;
}

.directory-sidebar {
    min-width: 280px; /* Changed from fixed width to min-width */
    max-width: 320px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-right: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.directory-sidebar h3 {
    margin: 0 0 1rem 0;
    color: #2d3436;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.directory-sidebar h3::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.directory-sidebar.collapsed h3::after {
    transform: rotate(-90deg);
}

.directory-sidebar.collapsed .language-list {
    display: none;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2d3436;
}

.language-item:hover {
    background: #e9ecef;
}

.language-item.active {
    background: #2d3436;
    color: white;
}

.directory-content-wrapper {
    display: grid;
    grid-template-columns: minmax(250px, 300px) 1fr;
    height: calc(90vh - 70px); /* Subtract header height */
}

.directory-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.directory-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.directory-header h2 {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-directory {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2d3436;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-directory:hover {
    background: #f1f3f5;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Increased minimum width for landscapes */
    gap: 1.5rem;
    padding: 1rem;
}

.image-item {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item[data-orientation="portrait"] {
    aspect-ratio: 2/3;
}

.image-item[data-orientation="landscape"] {
    aspect-ratio: 16/9;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

/* Add new responsive CSS rules */
@media (max-width: 768px) {
    .search-container {
        padding: 1rem;
        width: 95%;
    }

    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .card img {
        height: 210px;
    }

    .card-content {
        padding: 0.8rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .modal {
        width: 95%;
        padding: 1.5rem;
    }

    .orientation-options {
        gap: 1rem;
    }

    .orientation-option {
        padding: 1rem;
        min-width: 100px;
    }

    .directory-content-wrapper {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 60px);
    }

    .directory {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }

    .directory-sidebar {
        width: 100%;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 0.8rem;
        max-height: auto;
    }

    .language-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        max-height: 200px;
        overflow-y: auto;
        padding: 0.5rem;
        background: white;
        border-radius: 8px;
        margin-top: 0.5rem;
        transition: all 0.3s ease;
    }

    .language-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .directory-sidebar h3 {
        padding: 0.5rem;
        margin: 0;
        background: white;
        border-radius: 8px;
    }

    .directory-content {
        flex: 1;
        padding: 1rem;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .results-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
        margin-top: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .card {
        width: 100%;
        aspect-ratio: 2/3;
        height: auto;
    }

    .card img {
        height: 100%;
        min-height: unset;
        max-height: unset;
    }

    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .image-item {
        aspect-ratio: 2/3;
        height: auto;
    }

    .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 2/3;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 1rem;
        font-size: 1rem;
    }

    .search-label {
        font-size: 1rem;
    }

    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.6rem;
    }

    .card img {
        height: 180px;
    }

    .card-title {
        font-size: 0.8rem;
    }

    .card-type {
        font-size: 0.7rem;
    }

    .modal h2 {
        font-size: 1.2rem;
    }

    .orientation-option {
        min-width: 90px;
        padding: 0.8rem;
    }

    .portrait-icon {
        width: 30px;
        height: 45px;
    }

    .landscape-icon {
        width: 45px;
        height: 30px;
    }

    .orientation-label {
        font-size: 0.9rem;
    }

    .orientation-count {
        font-size: 0.8rem;
    }

    .directory-header h2 {
        font-size: 1.1rem;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .directory-content-wrapper {
        height: calc(100vh - 50px);
    }

    .directory-sidebar {
        padding: 0.75rem;
    }

    .language-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.expanded-modal {
    position: relative;
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.expanded-image-container {
    position: relative;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.expanded-image {
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Add responsive styles */
@media (max-width: 768px) {
    .expanded-image-container {
        max-width: 98vw;
        padding: 1rem;
    }

    .expanded-image {
        max-height: 70vh;
    }

    .select-poster-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

.select-poster-btn {
    position: relative;
    bottom: 0;
    background: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.select-poster-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.size-modal {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    margin: auto;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.size-modal h2 {
    margin-bottom: 2rem;
}

.reference-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.reference-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.size-option {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #2d3436;
    transform: translateY(-2px);
}

.size-option.active {
    background: #2d3436;
    color: white;
    border-color: #2d3436;
}

.size-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.size-dimensions {
    font-size: 0.9rem;
    color: #adb5bd;
}

.active .size-dimensions {
    color: #e9ecef;
}

.size-selection-modal {
    z-index: 1003; /* Higher than expanded-overlay */
}

/* Add responsive rules for reference images */
@media (max-width: 768px) {
    .reference-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .reference-container {
        max-width: 250px;
    }
}

/* Add smooth scrolling to the document */
html {
    scroll-behavior: smooth;
    height: 100%;
}

/* Fix PayPal button container */
#paypal-button-container {
    margin: 2rem auto;
    max-width: 300px;
}

/* Add spacing after the order summary */
.order-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Improve mobile responsiveness */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem 0;
    }
    
    .size-modal {
        padding: 1.5rem;
        width: 95%;
        max-height: calc(100vh - 2rem);
    }
    
    .order-summary {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .size-modal {
        padding: 1rem;
        border-radius: 12px;
        max-height: calc(100vh - 1rem);
    }
    
    #paypal-button-container {
        margin: 1.5rem auto;
    }
}

/* Desktop-specific media query */
@media (min-width: 1200px) {
    .search-input {
        font-size: 1.2rem;
        padding: 1.5rem 2rem;
    }

    .search-label {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .modal {
        max-width: 700px;
        padding: 3rem;
    }

    .orientation-options {
        gap: 3rem;
    }

    .orientation-option {
        padding: 2rem;
        min-width: 180px;
    }

    .portrait-icon {
        width: 50px;
        height: 75px;
    }

    .landscape-icon {
        width: 75px;
        height: 50px;
    }

    .size-modal {
        max-width: 800px;
    }

    .size-options {
        gap: 2rem;
        padding: 2rem 0;
    }

    .reference-container {
        max-width: 600px;
    }
}

/* Maintain existing mobile media queries but update breakpoints */
@media (max-width: 1199px) {
    /* Keep existing tablet/mobile styles */
}

#shipping-zip:focus {
    outline: none;
    border-color: #2d3436;
}

.shipping-price {
    font-weight: 600;
}
.address-form {
margin: 2rem 0;
padding: 2rem;
background: #f8f9fa;
border-radius: 16px;
text-align: left;
}

.form-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}

.form-group {
position: relative;
}

.form-group.full-width {
grid-column: 1 / -1;
}

.form-group input,
.form-group select {
width: 100%;
padding: 1rem 1.2rem;
border: 2px solid #e9ecef;
border-radius: 12px;
font-size: 1rem;
font-family: 'Inter', sans-serif;
background: white;
transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: #2d3436;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(45, 52, 54, 0.1);
}

.form-group label {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
padding: 0 0.5rem;
background: white;
font-size: 0.9rem;
color: #adb5bd;
pointer-events: none;
transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not(:placeholder-shown) ~ label {
top: 0;
transform: translateY(-50%);
font-size: 0.8rem;
color: #2d3436;
}

@media (max-width: 768px) {
.form-grid {
grid-template-columns: 1fr;
}

.address-form {
padding: 1.5rem;
}
}
.expanded-overlay {
cursor: pointer;
transition: opacity 0.3s ease;
}

.expanded-modal {
background: transparent;
max-width: 90vw;
max-height: 90vh;
padding: 0;
}

.expanded-image-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}

.expanded-image {
cursor: default;
transition: transform 0.3s ease;
}

/* Optional: Add hover effect */
.expanded-image:hover {
transform: scale(1.02);
}

/* Add these new mobile-specific styles after your existing media queries */

@media (max-width: 768px) {
/* Search container improvements */
.search-container {
padding: 1rem 0.75rem;
width: 100%;
max-width: 100%;
}

/* Search input improvements */
.search-box {
width: 92%;
}

.search-input {
padding: 0.9rem 1rem;
font-size: 1rem;
border-radius: 10px;
}

/* Results grid improvements */
.results-container {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
padding: 0.75rem;
margin-top: 1rem;
}

/* Card improvements */
.card {
border-radius: 10px;
}

.card img {
height: 200px;
border-radius: 10px 10px 0 0;
}

.card-content {
padding: 0.75rem;
}

/* Modal improvements */
.modal {
width: 92%;
padding: 1.25rem;
border-radius: 12px;
}

.modal h2 {
font-size: 1.2rem;
margin-bottom: 1rem;
}

/* Directory improvements */
.directory {
width: 100%;
height: 100%;
border-radius: 0;
margin: 0;
}

.directory-content-wrapper {
grid-template-columns: 1fr;
}

.directory-sidebar {
position: sticky;
top: 0;
z-index: 20;
max-height: auto;
background: white;
}

/* Language list improvements */
.language-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0.5rem;
max-height: 120px;
}

.language-item {
flex: 0 0 auto;
padding: 0.5rem 0.75rem;
font-size: 0.9rem;
background: #f8f9fa;
border-radius: 6px;
}

/* Images grid improvements */
.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
padding: 0.75rem;
}

/* Size modal improvements */
.size-modal {
width: 92%;
padding: 1.25rem;
}

.size-options {
grid-template-columns: 1fr;
gap: 0.75rem;
}

/* Form improvements */
.form-grid {
grid-template-columns: 1fr;
gap: 1rem;
}

.form-group input,
.form-group select {
padding: 0.9rem 1rem;
font-size: 0.95rem;
}

/* Expanded image view improvements */
.expanded-image {
max-width: 92vw;
max-height: 80vh;
}

/* Navigation improvements */
.close-directory {
width: 36px;
height: 36px;
font-size: 1.5rem;
}
}

/* Extra small devices */
@media (max-width: 380px) {
.results-container {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
padding: 0.5rem;
}

.card {
aspect-ratio: 2/3;
}

.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}

.image-item {
aspect-ratio: 2/3;
}

.card img {
height: 250px;
}

.images-grid {
grid-template-columns: 1fr;
gap: 1rem;
}

.image-item img {
height: 250px;
}

.search-input {
font-size: 0.9rem;
}

.card-title {
font-size: 0.95rem;
}
}

/* Add smoother touch interactions */
@media (hover: none) {
.card:hover,
.image-item:hover {
transform: none;
}

.search-input:focus {
transform: none;
}

.form-group input:focus,
.form-group select:focus {
transform: none;
}

/* Add active state for touch */
.card:active,
.image-item:active {
transform: scale(0.98);
}
}

/* Update search container and box styles for mobile */
@media (max-width: 768px) {
/* ...existing mobile styles... */

.search-container {
padding: 1rem 0.75rem;
width: 92%;
max-width: 100%;
}

.search-box {
width: 100%;
max-width: 400px; /* Limit width on mobile */
margin: 0 auto;
}

.search-input {
width: 100%;
padding: 0.9rem 1rem;
font-size: 1rem;
border-radius: 10px;
}
}

@media (max-width: 480px) {
/* ...existing mobile styles... */

.search-container {
width: 88%;
}

.search-box {
max-width: 320px; /* Even smaller for phones */
}
}

/* Update card and image styles to maintain aspect ratio */
.card {
/* ...existing card properties... */
aspect-ratio: 2/3;
height: auto;
width: 100%;
display: flex;
flex-direction: column;
}

.card img {
width: 100%;
height: 100%;
object-fit: cover;
aspect-ratio: 2/3;
}

.image-item {
/* ...existing image-item properties... */
aspect-ratio: 2/3;
height: auto;
width: 100%;
}

.image-item img {
width: 100%;
height: 100%;
object-fit: cover;
aspect-ratio: 2/3;
}

@media (max-width: 768px) {
.results-container {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
padding: 0.75rem;
}

.card {
aspect-ratio: 2/3;
height: auto;
}

.card img {
height: 100%;
min-height: unset;
max-height: unset;
}

.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
padding: 0.75rem;
}

.image-item {
aspect-ratio: 2/3;
height: auto;
}

.image-item img {
width: 100%;
height: 100%;
}
}

@media (max-width: 480px) {
.card img {
height: 100%; /* Remove fixed height */
}

.image-item img {
height: 100%; /* Remove fixed height */
}
}

/* Update the images-grid and image-item styles */
.images-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
padding: 1rem;
}

.image-item {
position: relative;
width: 100%;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Add aspect ratio classes */
.image-item.portrait {
aspect-ratio: 2/3;
}

.image-item.landscape {
aspect-ratio: 3/2;
}

.image-item img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Update mobile styles */
@media (max-width: 768px) {
.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}

/* Make landscape images full width on mobile */
.image-item.landscape {
grid-column: 1 / -1; /* Span full width */
max-width: 100%;
aspect-ratio: 3/2;
}

.image-item.portrait {
aspect-ratio: 2/3;
}
}

@media (max-width: 480px) {
.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
padding: 0.5rem;
}

/* Ensure landscape images maintain aspect ratio on smaller screens */
.image-item.landscape {
aspect-ratio: 3/2;
}
}

.site-title {
font-size: clamp(1.5rem, 4vw, 2.5rem);
font-weight: 600;
color: #2d3436;
margin: 1rem 0 2rem;
text-align: center;
font-family: 'Inter', sans-serif;
width: 100%;
padding: 0 1rem;
box-sizing: border-box;
}

/* Add responsive styles for the title */
@media (max-width: 768px) {
.site-title {
font-size: 2rem;
margin-bottom: 1.5rem;
}
}

@media (max-width: 480px) {
.site-title {
font-size: 1.75rem;
margin-bottom: 1rem;
}
}

/* Update media queries */
@media (max-width: 768px) {
.search-container {
padding: 1rem;
}

.search-box {
max-width: 95%;
}
}

@media (max-width: 480px) {
.search-container {
padding: 0.75rem;
}

.search-box {
max-width: 100%;
}

.search-input:focus {
transform: none;
}
}

/* Update search input and label styles */
.search-box {
position: relative;
width: 100%;
max-width: min(800px, 90%);
margin: 0 auto;
transition: all 0.5s ease;
}

.search-input {
width: 100%;
padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 3vw, 1.5rem);
font-size: clamp(0.9rem, 2vw, 1.1rem);
border: 2px solid #e9ecef;
border-radius: 12px;
background: white;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
font-family: 'Inter', sans-serif;
font-weight: 500;
box-sizing: border-box;
}

.search-label {
position: absolute;
left: clamp(1rem, 3vw, 1.5rem);
top: 50%;
transform: translateY(-50%);
font-size: clamp(0.9rem, 2vw, 1.1rem);
color: #adb5bd;
pointer-events: none;
transition: all 0.3s ease;
font-weight: 500;
padding: 0 0.25rem;
background: white;
}

.search-input:focus + .search-label,
.search-input:not(:placeholder-shown) + .search-label {
top: 0;
left: 0.75rem;
font-size: 0.8rem;
color: #2d3436;
transform: translateY(-50%);
}

/* Update mobile styles */
@media (max-width: 768px) {
.search-box {
margin-top: 1rem;
}

.search-input:focus + .search-label,
.search-input:not(:placeholder-shown) + .search-label {
background: white;
padding: 0 0.25rem;
left: 0.75rem;
top: 0;
}
}

@media (max-width: 480px) {
.search-input {
font-size: 1rem;
padding: 0.9rem 1rem;
}

.search-label {
font-size: 1rem;
}

.search-input:focus + .search-label,
.search-input:not(:placeholder-shown) + .search-label {
font-size: 0.75rem;
}
}

.promo-code-container {
margin: 1.5rem 0;
display: flex;
gap: 1rem;
align-items: flex-start;
}

.promo-code-container .form-group {
flex: 1;
}

.apply-promo-btn {
padding: 1rem 1.5rem;
background: #2d3436;
color: white;
border: none;
border-radius: 12px;
font-family: 'Inter', sans-serif;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
min-width: 100px;
box-shadow: 0 4px 12px rgba(45, 52, 54, 0.15);
}

.apply-promo-btn:hover {
background: #1e2527;
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(45, 52, 54, 0.2);
}

.apply-promo-btn:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(45, 52, 54, 0.15);
}

/* Add disabled state */
.apply-promo-btn:disabled {
background: #adb5bd;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

.promo-code-message {
margin-top: 0.5rem;
font-size: 0.9rem;
}

.promo-code-message.success {
color: #2ecc71;
}
.cart-preview {
width: 50px;
height: 75px;
object-fit: cover;
margin-right: 0.5rem;
border-radius: 4px;
vertical-align: middle;
}

.promo-code-message.error {
color: #e74c3c;
}
.cart-btn {
position: fixed;
top: 1rem;
right: 1rem;
background: #2d3436;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 8px;
cursor: pointer;
z-index: 5000;
}

/* Overlay */
.cart-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
z-index: 1004;
}

.cart-overlay.active {
display: flex;
}

/* Modal */
.cart-modal {
background: white;
padding: 2rem;
border-radius: 12px;
max-width: 400px;
width: 90%;
box-shadow: 0 8px 30px rgba(0,0,0,0.2);
position: relative;
}

.close-cart-btn {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
}

#cart-items {
list-style: none;
margin: 1rem 0;
padding: 0;
max-height: 300px;
overflow-y: auto;
}

#cart-items li {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}

.cart-summary p {
margin: 0.5rem 0;
font-weight: 600;
}

.checkout-btn {
background: #27ae60;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
cursor: pointer;
width: 100%;
margin-top: 1rem;
}
#paypal-button-container {
margin: 1.5rem auto;
max-width: 320px;
}

.checkout-summary {
background: #f8f9fa;
border-radius: 12px;
padding: 1.5rem;
margin: 1rem 0;
}

.checkout-summary h3 {
margin: 0 0 1rem 0;
font-size: 1.1rem;
color: #2d3436;
}

.summary-row {
display: flex;
justify-content: space-between;
padding: 0.5rem 0;
color: #2d3436;
}

.summary-row.discount {
color: #2ecc71;
}

.summary-row.total {
border-top: 2px solid #e9ecef;
margin-top: 0.5rem;
padding-top: 1rem;
font-weight: 600;
font-size: 1.1rem;
}

@media (max-width: 768px) {
.checkout-summary {
padding: 1rem;
margin: 0.75rem 0;
}

.summary-row {
padding: 0.35rem 0;
font-size: 0.95rem;
}
}

/* Update the image-item and images-grid styles */
.images-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Increased minimum width for landscapes */
gap: 1.5rem;
padding: 1rem;
}

.image-item {
position: relative;
width: 100%;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
cursor: pointer;
}
/* Update the hero section styles */
.hero-section {
width: 100%;
margin-bottom: 3rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
padding: 2rem;
box-sizing: border-box;
}
/* Add these styles after your existing hero-section styles */

.hero-section.movies-tv {
margin-bottom: 1rem; /* Reduced margin since we have search below */
padding-bottom: 0;
}

.hero-section.movies-tv .hero-image {
width: 75%;
max-width: 1400px;
border-radius: 16px;
}

.hero-section.movies-tv .hero-content {
margin-top: -1rem; /* Negative margin to bring content closer to image */
}

.hero-section.movies-tv .hero-content h1 {
font-size: clamp(2rem, 4vw, 3rem);
margin-bottom: 1rem;
}

/* Update responsive styles */
@media (max-width: 768px) {
.hero-section.movies-tv {
padding: 1rem;
margin-bottom: 0.5rem;
}

.hero-section.movies-tv .hero-image {
width: 85%;
}

.hero-section.movies-tv .hero-content h1 {
font-size: 1.75rem;
}
}

@media (max-width: 480px) {
.hero-section.movies-tv {
padding: 0.75rem;
}

.hero-section.movies-tv .hero-image {
width: 92%;
}

.hero-section.movies-tv .hero-content h1 {
font-size: 1.5rem;
}
}
.hero-image {
width: 60%;
max-width: 1200px;
height: auto;
border-radius: 16px;
}

.hero-content {
text-align: center;
max-width: 800px;
}

.hero-content h1 {
font-size: clamp(2.5rem, 5vw, 4rem);
margin: 0 0 1.5rem 0;
font-weight: 700;
color: #2d3436;
}

.shop-now-btn {
display: inline-block;
padding: 1rem 2.5rem;
font-size: 1.2rem;
font-weight: 600;
color: white;
background: #2d3436;
border-radius: 12px;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shop-now-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
background: #1e2527;
}

/* Add responsive styles */
@media (max-width: 768px) {
.hero-section {
padding: 1rem;
gap: 1.5rem;
margin-bottom: 2rem;
}

.hero-content h1 {
font-size: 2rem;
margin-bottom: 1rem;
}

.shop-now-btn {
padding: 0.875rem 2rem;
font-size: 1.1rem;
}
}

@media (max-width: 480px) {
.hero-section {
padding: 0.75rem;
gap: 1rem;
margin-bottom: 1.5rem;
}

.hero-content h1 {
font-size: 1.75rem;
}

.shop-now-btn {
padding: 0.75rem 1.75rem;
font-size: 1rem;
}
}
.image-item img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Add this JavaScript-controlled aspect ratio */
.image-item[data-orientation="portrait"] {
aspect-ratio: 2/3;
}

.image-item[data-orientation="landscape"] {
aspect-ratio: 16/9;
}

/* Update mobile styles */
@media (max-width: 768px) {
.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}

/* Make landscape images take full width on mobile */
.image-item[data-orientation="landscape"] {
grid-column: 1 / -1;
max-width: 100%;
}
}

/* Update expanded image container and image styles */
.expanded-image-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: 2rem;
box-sizing: border-box;
cursor: pointer;
}

.expanded-image {
max-height: 85vh;
max-width: 85vw;
width: auto;
height: auto;
object-fit: contain;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
cursor: default;
transition: transform 0.3s ease;
}

/* Add orientation-specific styles for expanded images */
.expanded-image[data-orientation="landscape"] {
max-width: 95vw; /* Wider for landscape */
max-height: 80vh;
width: auto;
}

.expanded-image[data-orientation="portrait"] {
max-height: 85vh;
max-width: 65vw;
height: auto;
}

/* Update responsive styles */
@media (max-width: 768px) {
.expanded-image[data-orientation="landscape"],
.expanded-image[data-orientation="portrait"] {
max-width: 92vw;
max-height: 80vh;
}

.expanded-image-container {
padding: 1rem;
}
}

@media (max-width: 480px) {
.images-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
padding: 0.5rem;
}

/* Ensure landscape images maintain aspect ratio on smaller screens */
.image-item[data-orientation="landscape"] {
aspect-ratio: 3/2;
}
}

.browse-suggestion {
margin-top: 1.5rem;
text-align: center;
color: #6c757d;
font-size: 0.95rem;
}

.browse-suggestion a {
color: #2d3436;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
}

.browse-suggestion a:hover {
color: #000;
text-decoration: underline;
}

@media (max-width: 768px) {
.browse-suggestion {
margin-top: 1rem;
font-size: 0.9rem;
}
}

.affiliate-info {
margin: 1.5rem 0;
padding: 1.25rem;
background: #f8f9fa;
border-radius: 12px;
border: 1px solid #e9ecef;
}

.affiliate-info h3 {
margin: 0 0 0.75rem 0;
font-size: 1rem;
color: #2d3436;
display: flex;
align-items: center;
gap: 0.5rem;
}

.affiliate-info p {
margin: 0;
font-size: 0.9rem;
line-height: 1.5;
color: #495057;
}

@media (max-width: 768px) {
.affiliate-info {
padding: 1rem;
margin: 1rem 0;
}

.affiliate-info p {
font-size: 0.85rem;
}
}

.home-affiliate-info {
max-width: 600px;
margin: 2rem auto;
padding: 1.5rem;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
text-align: center;
transition: transform 0.2s ease;
}

.home-affiliate-info:hover {
transform: translateY(-2px);
}

.home-affiliate-info h3 {
margin: 0 0 0.75rem 0;
font-size: 1.1rem;
color: #2d3436;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}

.home-affiliate-info p {
margin: 0;
font-size: 0.95rem;
line-height: 1.6;
color: #495057;
}

@media (max-width: 768px) {
.home-affiliate-info {
margin: 1.5rem 1rem;
padding: 1.25rem;
}

.home-affiliate-info p {
font-size: 0.9rem;
}
}

.cart-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 20px;
color: #666;
}

.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid #f3f3f3;
border-top: 3px solid #2d3436;
border-radius: 50%;
margin: 0 auto 1rem;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: none;
align-items: center;
justify-content: center;
z-index: 2000;
backdrop-filter: blur(5px);
}

.loading-modal {
background: white;
padding: 2rem;
border-radius: 12px;
text-align: center;
min-width: 200px;
}

.loading-modal h3 {
margin: 0 0 1.5rem 0;
color: #2d3436;
}

.progress-container {
width: 100%;
height: 8px;
background: #f1f3f5;
border-radius: 4px;
overflow: hidden;
margin-bottom: 1rem;
}

.progress-bar {
width: 0%;
height: 100%;
background: #2d3436;
transition: width 0.3s ease;
}

.loading-text {
margin: 0;
color: #495057;
font-size: 0.9rem;
}
