:root{
    --primary-color: #FAF9F6;;
    --secondary-color: #1C1C1C;
    --tertiary-color: #eb495f;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, label {
    font-family: "Bangers", system-ui;
    font-weight: 100;
    font-style: normal;
}

body, p, .button, legend,input,option {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    position: relative;
}

nav {
    position: relative;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-caret {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active .mobile-menu-caret {
    transform: rotate(180deg);
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}

nav a {
    padding: 10px;
    height: 30px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 30px;
}

nav a:hover{
    color: var(--secondary-color);
    background-color: var(--primary-color);
    cursor: pointer;
}

.home-logo:hover {
    color: var(--secondary-color);
    background-color: var(--secondary-color);
    cursor: pointer;
}

/* Cart Icon */
.cart-icon-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cart-icon-btn:hover {
    color: var(--tertiary-color);
}

.cart-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--tertiary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: "Poppins", sans-serif;
}

.cart-badge:empty {
    display: none;
}

header {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 0 20vw; */
    height: 300px;
    width: 100%;
    border-bottom: 10px solid var(--secondary-color);
}

header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

label {
    font-size: 2rem;
}

#samples-btn {
    font-weight: 700;
}

.choices-content-area{
    background-color: var(--primary-color);
    padding: 5rem 0;
}

.choices-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin: 0 20vw;
    padding: 1rem 0;
    color: var(--secondary-color);
}

.choices-content a {
    text-align: center;
    font-size: 2rem;
}

.front-page-btn {
    width: 30vw;
    max-width: 300px;
    display: flex;
    justify-content: center;
    /* align-items: end; */
    /* border: 1px solid black; */
}

.front-page-btn a:hover{
    cursor: pointer;
}

.front-page-btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.front-page-btn img {
    max-width: 180px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.front-page-btn img:hover{
    transform: rotate(-5deg) scale(1.05);
    
}

.etsy-panel {
    margin-top: 2rem;
}
.etsy-panel h1{
    color:var(--secondary-color);
    text-align: center;
}

.etsy-panel a:hover {
    cursor: pointer;
    
}

.order-section {
    background-color: var(--primary-color);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 50px);
}

.order-container {
    max-width: 600px;
    width: 100%;
    background-color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.order-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.form-hint {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: var(--tertiary-color);
    background-color: #fff5f6;
}

.file-upload-area.dragover {
    border-color: var(--tertiary-color);
    background-color: #ffeef0;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #999;
    transition: color 0.3s ease;
}

.file-upload-area:hover .upload-icon {
    color: var(--tertiary-color);
}

.upload-text {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
}

.upload-text-secondary {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.upload-link {
    color: var(--tertiary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* File Preview */
.file-preview {
    width: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-name {
    font-size: 0.9375rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}

.remove-file {
    background: none;
    border: none;
    color: var(--tertiary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: "Poppins", sans-serif;
    transition: opacity 0.2s ease;
}

.remove-file:hover {
    opacity: 0.7;
}

/* Select Dropdown */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: var(--secondary-color);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.select-wrapper select:hover {
    border-color: #ccc;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(235, 73, 95, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Quantity Presets */
.quantity-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quantity-preset-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    background-color: white;
    border-radius: 8px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quantity-preset-btn:hover {
    border-color: var(--tertiary-color);
    background-color: #fff5f6;
    color: var(--tertiary-color);
    transform: translateY(-2px);
}

.quantity-preset-btn.active {
    border-color: var(--tertiary-color);
    background-color: var(--tertiary-color);
    color: white;
}

.quantity-preset-btn:active {
    transform: translateY(0);
}

/* Custom Quantity Input */
.custom-quantity-section {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.custom-quantity-label {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.custom-quantity-section input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-quantity-section input:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(235, 73, 95, 0.1);
}

/* Price Summary */
.price-summary {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0 1.5rem 0;
    border: 1px solid #e0e0e0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row.per-sticker {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.price-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 2px solid #e0e0e0;
    margin-top: 0.75rem;
    color: var(--tertiary-color);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    background-color: var(--tertiary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    min-height: 52px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #d63e52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 73, 95, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cart Side Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.cart-panel.active {
    visibility: visible;
    pointer-events: all;
}

.cart-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-panel.active .cart-panel-overlay {
    opacity: 1;
}

.cart-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-panel.active .cart-panel-content {
    transform: translateX(0);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cart-panel-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-family: "Bangers", system-ui;
    letter-spacing: 0.5px;
}

.cart-panel-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    font-family: "Poppins", sans-serif;
}

.cart-panel-close:hover {
    color: var(--tertiary-color);
}

.cart-panel-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 200px;
}

.cart-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 3rem 1rem;
    margin: 0;
}

.cart-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-preview {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9375rem;
    word-break: break-word;
}

.cart-item-details {
    font-size: 0.875rem;
    color: #666;
}

.cart-item-price {
    font-weight: 600;
    color: var(--tertiary-color);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s ease;
    font-family: "Poppins", sans-serif;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--tertiary-color);
}

.cart-panel-footer {
    padding: 1.5rem;
    border-top: 2px solid #e0e0e0;
    background-color: #f8f8f8;
}

.cart-panel-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cart-panel-total span:last-child {
    color: var(--tertiary-color);
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    background-color: var(--tertiary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #d63e52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 73, 95, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    color: white;
}

/* Error Messages */
.error-message {
    color: var(--tertiary-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */

/* Mobile Navigation */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        width: 100%;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
    }

    .mobile-menu-caret {
        width: 24px;
        height: 24px;
        color: var(--primary-color);
    }

    /* Ensure logo link works on mobile */
    .mobile-menu-header .home-logo {
        display: flex;
        align-items: center;
        z-index: 1;
    }

    /* Navigation Links - Hidden by default on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--secondary-color);
        border-top: 1px solid rgba(250, 249, 246, 0.1);
        padding: 0.5rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 1.5rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        font-size: 1rem;
        height: auto;
        line-height: 1.5;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(250, 249, 246, 0.1);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

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

    .nav-links a:hover {
        background-color: rgba(250, 249, 246, 0.1);
        color: var(--primary-color);
    }

    .mobile-menu-header .home-logo {
        padding: 0;
    }

    .mobile-menu-header .home-logo img {
        height: 24px;
    }

    /* Cart Icon Wrapper on Mobile */
    .cart-icon-wrapper {
        position: absolute;
        right: 3.5rem;
        top: 0.75rem;
        margin-left: 0;
        z-index: 2;
    }

    /* Header */
    header {
        height: 200px;
    }

    /* Homepage Choices */
    .choices-content {
        margin: 0 5vw;
        gap: 1rem;
    }

    .front-page-btn {
        width: 45vw;
        max-width: 200px;
    }

    .front-page-btn img {
        max-width: 120px;
    }

    .choices-content a {
        font-size: 1.5rem;
    }

    label {
        font-size: 1.5rem;
    }

    /* Order Section */
    .order-section {
        padding: 2rem 1rem;
        min-height: calc(100vh - 100px);
    }

    .order-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .order-header {
        margin-bottom: 2rem;
    }

    .order-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.9375rem;
    }

    /* Form Labels */
    .form-label {
        font-size: 1.25rem;
    }

    .form-hint {
        font-size: 0.8125rem;
    }

    /* File Upload */
    .file-upload-area {
        min-height: 150px;
        padding: 1.5rem 1rem;
    }

    .upload-text {
        font-size: 1rem;
    }

    .upload-text-secondary {
        font-size: 0.8125rem;
    }

    .preview-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #preview-image {
        width: 60px;
        height: 60px;
    }

    /* Quantity Presets */
    .quantity-presets {
        gap: 0.5rem;
    }

    .quantity-preset-btn {
        min-width: 60px;
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
        flex: 1 1 calc(50% - 0.25rem);
    }

    /* Custom Quantity Input */
    .custom-quantity-section input {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    /* Price Summary */
    .price-summary {
        padding: 1.25rem;
        margin: 1.5rem 0 1.25rem 0;
    }

    .price-row {
        font-size: 0.9375rem;
    }

    .price-row.per-sticker {
        font-size: 1rem;
    }

    .price-row.total {
        font-size: 1.125rem;
    }

    /* Submit Button */
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Cart Panel */
    .cart-panel-content {
        max-width: 100%;
        width: 100%;
    }

    .cart-panel-header {
        padding: 1.25rem;
    }

    .cart-panel-header h2 {
        font-size: 1.25rem;
    }

    .cart-panel-items {
        padding: 0.875rem;
    }

    .cart-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .cart-item-preview {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.875rem;
    }

    .cart-item-details {
        font-size: 0.8125rem;
    }

    .cart-item-price {
        font-size: 0.9375rem;
    }

    .cart-panel-footer {
        padding: 1.25rem;
    }

    .cart-panel-total {
        font-size: 1.125rem;
    }

    .cart-panel-total span:last-child {
        font-size: 1.25rem;
    }

    .checkout-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Image Disclaimer */
    .image-disclaimer {
        padding: 10px 12px !important;
        margin-top: 8px !important;
    }

    .image-disclaimer p {
        font-size: 0.8125rem !important;
    }

    .image-disclaimer p strong {
        display: block;
        margin-bottom: 4px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Navigation */
    .mobile-menu-header {
        padding: 0.625rem 0.875rem;
    }

    .nav-links a {
        padding: 0.875rem 1.5rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        font-size: 0.9375rem;
    }

    .home-logo img {
        height: 20px;
    }

    .mobile-menu-caret {
        width: 20px;
        height: 20px;
    }

    .cart-icon-wrapper {
        right: 3rem;
        top: 0.625rem;
    }

    /* Header */
    header {
        height: 150px;
    }

    /* Homepage */
    .choices-content {
        margin: 0 3vw;
        gap: 0.75rem;
    }

    .front-page-btn {
        width: 48vw;
    }

    .front-page-btn img {
        max-width: 100px;
    }

    .choices-content a {
        font-size: 1.25rem;
    }

    /* Order Page */
    .order-section {
        padding: 1.5rem 0.75rem;
    }

    .order-container {
        padding: 1.25rem;
    }

    .order-header h1 {
        font-size: 1.5rem;
    }

    .form-label {
        font-size: 1.125rem;
    }

    .file-upload-area {
        min-height: 120px;
        padding: 1rem;
    }

    .upload-icon {
        width: 36px;
        height: 36px;
    }

    .upload-text {
        font-size: 0.9375rem;
    }

    .quantity-preset-btn {
        min-width: 50px;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        flex: 1 1 calc(50% - 0.25rem);
    }

    .price-summary {
        padding: 1rem;
    }

    .price-row {
        font-size: 0.875rem;
    }

    .price-row.total {
        font-size: 1rem;
    }

    /* Image Disclaimer */
    .image-disclaimer {
        padding: 8px 10px !important;
    }

    .image-disclaimer p {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    /* Cart Icon */
    .cart-icon {
        width: 20px;
        height: 20px;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 0.625rem;
        top: 3px;
        right: 3px;
    }
}

/* Order Status Page Mobile Styles */
@media (max-width: 768px) {
    .status-container {
        padding: 20px 15px;
    }

    .status-header {
        margin-bottom: 30px;
    }

    .status-header h1 {
        font-size: 1.75rem;
    }

    .status-header p {
        font-size: 0.9375rem;
    }

    .search-box {
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }

    .search-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .order-details {
        padding: 20px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .order-number {
        font-size: 1.25rem;
    }

    .status-timeline {
        margin: 25px 0;
    }

    .timeline-item {
        gap: 15px;
        margin-bottom: 25px;
    }

    .timeline-icon {
        width: 24px;
        height: 24px;
        font-size: 0.875rem;
    }

    .timeline-title {
        font-size: 0.9375rem;
    }

    .timeline-date,
    .timeline-note {
        font-size: 0.8125rem;
    }

    .order-items h3 {
        font-size: 1.125rem;
    }

    .order-item {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .item-price {
        align-self: flex-end;
        font-size: 1.125rem;
    }

    .order-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .total-amount {
        font-size: 1.5rem;
    }
}

/* Admin Orders Page Mobile Styles */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px 10px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-header h1 {
        font-size: 1.5rem;
    }

    .status-filter {
        width: 100%;
    }

    .status-filter-btn {
        flex: 1 1 calc(50% - 5px);
        font-size: 0.8125rem;
        padding: 8px 12px;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table thead,
    .orders-table tbody,
    .orders-table tr,
    .orders-table td,
    .orders-table th {
        display: block;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table tr {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: white;
    }

    .orders-table td {
        border: none;
        padding: 8px 0;
        text-align: left;
        position: relative;
        padding-left: 40%;
    }

    .orders-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 35%;
        font-weight: 600;
        color: var(--secondary-color);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    nav a,
    .cart-icon-btn,
    .quantity-preset-btn,
    .submit-btn,
    .checkout-btn,
    .search-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .remove-file,
    .cart-item-remove,
    .cart-panel-close {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects on touch devices */
    .front-page-btn img:hover {
        transform: none;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        height: 150px;
    }

    .order-section {
        padding: 1.5rem;
    }
}