/* ====== Global Reset & Base Setup ====== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    color: black;
    font-size: clamp(10px, 2.5vw, 14px);
    font-family: 'Inter', sans-serif;
}


/* ====== Wrapper and Content ====== */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 20px;
}

/* ====== Container for Centered Content ====== */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 0 20px;
}
/* ====== Header ====== */
header {
    width: 100%;
    background-color: whitesmoke;
    color: deepskyblue;
    padding: 0;
    box-sizing: border-box;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.header-icons a,
.header-icons form {
    display: inline-flex;
    align-items: center;
}

.header-icons img {
    width: 32px;
    height: auto;
}

.home-user-header-row {
    flex-wrap: nowrap;
    gap: clamp(8px, 1.5vw, 24px);
    margin: 0 auto;
}

.home-user-header-row > * {
    flex: 0 0 auto;
}

.home-user-header-row p,
.home-user-header-row h1 {
    margin: 0;
    white-space: nowrap;
}

.home-user-header-row h1 {
    font-size: clamp(14px, 1.6vw, 24px);
}

.home-user-header .header-icons {
    flex-wrap: nowrap;
    margin-top: 0;
}

.home-user-header .header-icons form,
.home-user-header .header-icons button {
    width: auto;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

/* ====== Navigation ====== */
nav a {
    color: black;
    text-decoration: none;
    margin: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

/* ====== Footer ====== */
footer {
    background-color: #f2f2f2;
    color: black;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

/* ====== Forms ====== */
form {
    margin: 2rem auto;
    max-width: 400px;
    padding: 1rem;
}

/* Shared input styling */
form input,
form select,
form button {
    padding: 0.5rem;
    margin: 0.5rem 0;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Prevent global 100% width from affecting specific forms */
form:not(.search-form) input,
form:not(.search-form) select,
form:not(.search-form) button {
    width: 100%;
}

/* Specific Forms */
.register-form, .login-form, .all-form {
    width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* ====== Utility Classes ====== */
.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

.center-image {
    display: block;
    margin: 0 auto;
}

a {
    margin-right: 15px;
}

/* ====== Icon Buttons ====== */
.icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.icon-btn img {
    width: 24px;
    height: 24px;
}

/* ====== Image Ribbon ====== */
.ribbon-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto;
}

.image-ribbon {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
    padding: 1rem 0;
    flex-grow: 1;
    scrollbar-width: none;
}

.image-ribbon::-webkit-scrollbar {
    display: none;
}

.image-ribbon img {
    flex: 0 0 auto;
    height: 400px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-ribbon img:hover {
    transform: scale(1.05);
}

.scroll-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: black;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

/* ====== Main Page Upwork CTA ====== */
.upwork-cta {
    display: flex;
    justify-content: center;
    margin: 26px auto 6px;
}

.upwork-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #119a32;
    border-radius: 8px;
    background: linear-gradient(135deg, #14a800 0%, #108a00 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(20, 168, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upwork-button:hover,
.upwork-button:focus {
    background: linear-gradient(135deg, #18b703 0%, #0f7f00 100%);
    box-shadow: 0 14px 28px rgba(20, 168, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.upwork-button:focus-visible {
    outline: 3px solid rgba(20, 168, 0, 0.35);
    outline-offset: 3px;
}

.upwork-button__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #14a800;
    font-size: 0.85rem;
    font-weight: 800;
}

.upwork-button__text {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .upwork-button {
        width: 100%;
        padding: 12px 16px;
    }

    .upwork-button__text {
        white-space: normal;
    }
}

/* ====== Lightbox ====== */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    transition: transform 0.3s ease;
}

/* ====== Product Table ====== */
table {
    width: 90%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
}

th {
    background-color: #f9f9f9;
}

/* Headings */
h2 {
    font-family: Arial, sans-serif;
}

/* Form override for inline display */
form.inline {
    display: inline;
}

/* Actions section (like cart) */
.actions {
    margin-top: 20px;
}

.form-row-right {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

td:last-child form {
    display: flex;
    justify-content: flex-end;
}

/* ====== Fixed Search Form Styling ====== */
/* === Oval (Pill-Shaped) Search Form === */
.search-form {
    border: 1px solid #ccc;
    border-radius: 999px; /* Make the form oval */
    padding: 4px 8px;
    background-color: white;
}

.search-form input {
    border: none;
    outline: none;
    border-radius: 999px; /* Smooth input edge */
    padding: 8px 12px;
    font-size: 14px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #f0f0f0;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}
.oval-form {
    padding: 20px;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.oval-form input {
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #f9f9f9;
}
.oval-form button {
    border: none;
    border-radius: 999px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}
.oval-form button:hover {
    background-color: #0056b3;
}
/* Style the label to align its contents vertically */
.oval-label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 5px;
}

/* Style the select box to look like a pill */
.oval-label select {
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #f9f9f9;
}

