/* =========================================
   STOCKSIMPLE COLOUR SYSTEM
   ========================================= */

:root {

    /* Main blues inspired by the logo */
    --blue-dark: #123f72;
    --blue-main: #1769aa;
    --blue-medium: #2186c4;
    --blue-light: #eaf5fb;
    --blue-soft: #f4f9fc;

    /* Greens inspired by the logo */
    --green-dark: #207a55;
    --green-main: #2f9e6f;
    --green-medium: #53b987;
    --green-light: #eaf8f1;

    /* Neutral colours */
    --text-dark: #172033;
    --text-medium: #475569;
    --text-light: #64748b;

    --background: #f5f8fb;
    --white: #ffffff;

    --border: #dfe7ee;
    --border-light: #edf1f5;

    --danger: #b42318;
    --danger-light: #fef3f2;

}


/* =========================================
   GENERAL RESET
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-dark);

    background-color: var(--background);

    line-height: 1.6;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}


/* =========================================
   MAIN NAVIGATION
   ========================================= */

.main-navigation {

    width: 100%;
    max-width: 1440px;

    min-height: 76px;

    margin: 0 auto;

    padding: 12px 4%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    background-color: var(--white);
}


/* Brand */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    flex-shrink: 0;
}

.brand img {

    width: 94px;

    height: auto;

    object-fit: contain;
}

.brand span {

    font-size: 21px;

    font-weight: 700;

    color: var(--blue-dark);
}


/* =========================================
   NAVIGATION LINKS
   ========================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-links a {

    position: relative;

    padding: 8px 0;

    font-size: 15px;

    font-weight: 600;

    color: var(--text-medium);

    text-decoration: none;
}

.nav-links a:not(.nav-button):hover {

    color: var(--blue-main);
}


/* Subtle underline */

.nav-links a:not(.nav-button)::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    background-color: var(--green-main);

    transition: width 0.2s ease;
}

.nav-links a:not(.nav-button):hover::after {

    width: 100%;
}


/* Login */

.nav-links .login-link {

    color: var(--blue-dark);
}


/* Get Started */

.nav-links .nav-button {

    padding: 10px 19px;

    color: var(--white);

    background-color: var(--green-main);

    border-radius: 7px;
}

.nav-links .nav-button:hover {

    color: var(--white);

    background-color: var(--green-dark);
}


/* =========================================
   HAMBURGER MENU
   ========================================= */

.menu-toggle {

    display: none;

    width: 44px;

    height: 44px;

    margin: 0;

    padding: 8px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 7px;
}

.menu-toggle span {

    display: block;

    width: 23px;

    height: 2px;

    margin: 5px auto;

    background-color: var(--blue-dark);
}


/* =========================================
   HERO
   ========================================= */

.hero {

    padding: 100px 5% 110px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            var(--blue-soft) 0%,
            var(--white) 100%
        );

    border-top: 1px solid var(--border-light);
}

.hero-content {

    width: 100%;

    max-width: 900px;

    margin: 0 auto;
}

.hero-label {

    margin: 0 0 16px;

    color: var(--green-dark);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.4px;
}

.hero h1 {

    max-width: 850px;

    margin: 0 auto 22px;

    font-size: 52px;

    line-height: 1.12;

    color: var(--blue-dark);
}

.hero h1 span {

    color: var(--green-main);
}

.hero-description {

    max-width: 680px;

    margin: 0 auto 32px;

    font-size: 18px;

    color: var(--text-light);
}


/* Hero Buttons */

.hero-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;
}

.primary-button,
.secondary-button,
.cta-button {

    display: inline-block;

    padding: 12px 24px;

    font-size: 15px;

    font-weight: 700;

    text-decoration: none;

    border-radius: 7px;
}

.primary-button {

    color: var(--white);

    background-color: var(--green-main);

    border: 1px solid var(--green-main);
}

.primary-button:hover {

    background-color: var(--green-dark);

    border-color: var(--green-dark);
}

.secondary-button {

    color: var(--blue-main);

    background-color: var(--white);

    border: 1px solid var(--blue-main);
}

.secondary-button:hover {

    background-color: var(--blue-light);
}


/* =========================================
   LANDING MAIN
   ========================================= */

.landing-main {

    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    padding: 35px 4% 70px;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.landing-main section {

    margin: 30px 0;

    padding: 70px 6%;

    background-color: var(--white);

    border: 1px solid var(--border-light);

    border-radius: 12px;
}


/* Section heading */

.section-heading,
.section-intro {

    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;
}

.section-label {

    margin: 0 0 9px;

    color: var(--green-dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.2px;
}

.section-heading h2,
.section-intro h2 {

    margin: 0 0 15px;

    font-size: 34px;

    line-height: 1.25;

    color: var(--blue-dark);
}

.section-heading > p:last-child,
.section-intro > p {

    color: var(--text-light);

    font-size: 16px;
}


/* =========================================
   PROBLEM SECTION
   ========================================= */

.problem-section {

    background:
        linear-gradient(
            135deg,
            var(--white),
            var(--blue-soft)
        ) !important;
}

.problem-section .section-intro {

    margin-bottom: 0;
}

.problem-section .section-intro p {

    max-width: 720px;

    margin: 12px auto;

    text-align: center;
}


/* =========================================
   FEATURES
   ========================================= */

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.feature-card {

    min-height: 230px;

    padding: 28px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.feature-card:hover {

    border-color: #b9dceb;

    background-color: var(--blue-soft);
}

.feature-number {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    margin-bottom: 22px;

    color: var(--blue-main);

    background-color: var(--blue-light);

    font-size: 13px;

    font-weight: 700;

    border-radius: 8px;
}

.feature-card h3 {

    margin: 0 0 10px;

    color: var(--blue-dark);

    font-size: 20px;
}

.feature-card p {

    margin: 0;

    color: var(--text-light);
}


/* =========================================
   HOW IT WORKS
   ========================================= */

.how-it-works-section {

    background-color: var(--blue-soft) !important;
}

.steps-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.step-card {

    padding: 30px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.step-number {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    margin-bottom: 20px;

    color: var(--white);

    background-color: var(--green-main);

    font-size: 16px;

    font-weight: 700;

    border-radius: 50%;
}

.step-card h3 {

    margin: 0 0 10px;

    color: var(--blue-dark);

    font-size: 20px;
}

.step-card p {

    margin: 0;

    color: var(--text-light);
}


/* =========================================
   DASHBOARD PREVIEW
   ========================================= */

.dashboard-preview-section {

    background-color: var(--white);
}

.preview-summary-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 32px;
}

.preview-card {

    padding: 25px;

    background-color: var(--blue-soft);

    border: 1px solid #d5e8f3;

    border-radius: 10px;
}

.preview-card.low-stock-card {

    background-color: var(--green-light);

    border-color: #ccead9;
}

.preview-card-label {

    margin: 0 0 8px;

    color: var(--text-medium);

    font-size: 14px;

    font-weight: 600;
}

.preview-value {

    margin: 0 0 4px;

    color: var(--blue-dark);

    font-size: 34px;

    font-weight: 700;
}

.low-stock-card .preview-value {

    color: var(--green-dark);
}

.preview-note {

    margin: 0;

    color: var(--text-light);

    font-size: 13px;
}


/* =========================================
   DASHBOARD PREVIEW TABLE
   ========================================= */

.preview-table-area {

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;
}

.preview-table-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 24px;

    background-color: var(--white);

    border-bottom: 1px solid var(--border);
}

.preview-table-heading h3 {

    margin: 0 0 3px;

    color: var(--blue-dark);

    font-size: 18px;
}

.preview-table-heading p {

    margin: 0;

    color: var(--text-light);

    font-size: 13px;
}

.table-container {

    width: 100%;

    overflow-x: auto;
}

.dashboard-preview-section table {

    width: 100%;

    border-collapse: collapse;
}

.dashboard-preview-section th,
.dashboard-preview-section td {

    padding: 15px 20px;

    text-align: left;

    border-bottom: 1px solid var(--border-light);
}

.dashboard-preview-section th {

    color: var(--blue-dark);

    background-color: var(--blue-soft);

    font-size: 13px;

    font-weight: 700;
}

.dashboard-preview-section td {

    color: var(--text-medium);

    font-size: 14px;
}

.dashboard-preview-section tbody tr:last-child td {

    border-bottom: none;
}


/* Status badges */

.status {

    display: inline-block;

    padding: 4px 9px;

    font-size: 12px;

    font-weight: 600;

    border-radius: 20px;
}

.status.in-stock {

    color: var(--green-dark);

    background-color: var(--green-light);
}

.status.low-stock {

    color: #8a5b00;

    background-color: #fff8dc;
}

.status.out-of-stock {

    color: var(--danger);

    background-color: var(--danger-light);
}


/* =========================================
   CALL TO ACTION
   ========================================= */

.cta-section {

    padding: 75px 6% !important;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue-main)
        ) !important;
}

.cta-content {

    max-width: 760px;

    margin: 0 auto;
}

.cta-label {

    margin: 0 0 10px;

    color: #bcebd2;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.2px;
}

.cta-content h2 {

    margin: 0 0 15px;

    color: var(--white);

    font-size: 34px;
}

.cta-content p {

    max-width: 620px;

    margin: 0 auto 28px;

    color: #dcebf6;
}

.cta-button {

    color: var(--white);

    background-color: var(--green-main);

    border: 1px solid var(--green-main);
}

.cta-button:hover {

    background-color: var(--green-dark);

    border-color: var(--green-dark);
}


/* =========================================
   FOOTER
   ========================================= */

footer {

    padding: 40px 5%;

    background-color: #102f50;

    color: #d8e5ee;
}

.footer-content {

    max-width: 1180px;

    margin: 0 auto;

    text-align: center;
}

.footer-brand {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 10px;
}

.footer-brand img {

    width: 75px;

    height: auto;
}

.footer-brand span {

    color: var(--white);

    font-size: 19px;

    font-weight: 700;
}

.footer-content > p {

    margin: 5px auto;

    color: #bdceda;

    font-size: 14px;
}

.footer-content .copyright {

    margin-top: 18px;

    color: #91a9ba;

    font-size: 13px;
}


/* =========================================================
   AUTHENTICATION PAGES
   ========================================================= */

.auth-page {

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            var(--blue-soft),
            var(--background)
        );
}

.auth-container {

    width: 100%;

    max-width: 500px;

    margin: 0 auto;

    padding: 50px 20px;
}

.auth-brand {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin-bottom: 25px;

    text-decoration: none;
}

.auth-brand img {

    width: 90px;

    height: auto;
}

.auth-brand span {

    font-size: 22px;

    font-weight: 700;

    color: var(--blue-dark);
}

.auth-card {

    margin: 0;

    padding: 40px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.auth-card h1 {

    margin: 0 0 10px;

    text-align: center;

    color: var(--blue-dark);

    font-size: 30px;
}

.auth-card > p {

    margin-bottom: 30px;

    text-align: center;

    color: var(--text-light);
}


/* =========================================
   FORM CONTROLS
   ========================================= */

.form-group {

    margin: 0;

    padding: 0;

    background: none;

    border: none;
}

.form-group label {

    display: block;

    margin-bottom: 7px;

    color: var(--text-medium);

    font-size: 14px;

    font-weight: 600;
}

.form-group input {

    width: 100%;

    height: 48px;

    padding: 10px 14px;

    color: var(--text-dark);

    background-color: var(--white);

    font-size: 15px;

    border: 1px solid #ccd6df;

    border-radius: 7px;
}

.form-group input:hover {

    border-color: #9fb2c1;
}

.form-group input:focus {

    outline: 3px solid var(--blue-light);

    border-color: var(--blue-main);
}

.form-group input::placeholder {

    color: #94a3b8;
}

.auth-card .form-group {

    margin-bottom: 20px;
}

.auth-button {

    width: 100%;

    margin: 5px 0 0;

    padding: 13px 20px;

    color: var(--white);

    background-color: var(--green-main);

    font-size: 15px;

    font-weight: 700;

    border: none;

    border-radius: 7px;
}

.auth-button:hover {

    background-color: var(--green-dark);
}

.form-message {

    min-height: 22px;

    margin: 12px 0;

    font-size: 14px;
}

.success-message {

    color: var(--green-dark);
}

.error-message {

    color: var(--danger);
}

.auth-link {

    margin-top: 25px !important;

    margin-bottom: 0 !important;

    text-align: center;
}

.auth-link a {

    color: var(--blue-main);

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   PROTECTED DASHBOARD
   ========================================================= */

.dashboard-page {

    min-height: 100vh;

    background-color: var(--background);
}

.hidden {

    display: none !important;
}

.dashboard-content {

    min-height: 100vh;
}


/* =========================================
   DASHBOARD NAVIGATION
   ========================================= */

.dashboard-nav {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 12px 3%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background-color: var(--white);

    border-bottom: 1px solid var(--border);
}

.dashboard-nav .brand img {

    width: 85px;
}

.dashboard-nav .brand span {

    color: var(--blue-dark);

    font-size: 20px;
}

.logout-button {

    margin: 0;

    padding: 9px 17px;

    color: var(--blue-main);

    background-color: var(--white);

    font-size: 14px;

    font-weight: 700;

    border: 1px solid var(--blue-main);

    border-radius: 7px;
}

.logout-button:hover {

    color: var(--white);

    background-color: var(--blue-main);
}


/* =========================================
   DASHBOARD MAIN
   ========================================= */

.dashboard-main {

    width: 96%;

    max-width: 1750px;

    margin: 0 auto;

    padding: 32px 0 60px;
}


/* =========================================
   DASHBOARD WELCOME
   ========================================= */

.dashboard-welcome,
.welcome-card {

    width: 100%;

    max-width: none;

    margin: 0 0 22px;

    padding: 28px 32px;

    text-align: left;

    background:
        linear-gradient(
            100deg,
            var(--blue-dark),
            var(--blue-main)
        );

    border: none;

    border-radius: 11px;
}

.dashboard-welcome > div {

    margin: 0;

    padding: 0;

    background: none;

    border: none;
}

.dashboard-welcome h1,
.welcome-card h1 {

    margin: 3px 0 8px;

    color: var(--white);

    font-size: 29px;
}

.dashboard-welcome p,
.welcome-card p {

    max-width: none;

    margin: 0;

    text-align: left;

    color: #dcebf6;
}

.dashboard-label {

    margin-bottom: 4px !important;

    color: #bcebd2 !important;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================
   DASHBOARD HEADINGS
   ========================================= */

.section-heading,
.products-header {

    margin: 0 0 25px;

    padding: 0;

    background: none;

    border: none;
}

.section-heading > div,
.products-header > div {

    margin: 0;

    padding: 0;

    background: none;

    border: none;
}

.section-heading h2,
.products-header h2,
.product-form-section > h2,
.products-section > h2 {

    margin: 0 0 5px;

    text-align: left;

    color: var(--blue-dark);

    font-size: 23px;
}

.section-heading p,
.products-header p,
.product-form-section > p,
.products-section > p {

    max-width: none;

    margin: 0;

    text-align: left;

    color: var(--text-light);

    font-size: 14px;
}


/* =========================================
   ADD PRODUCT
   ========================================= */

.product-form-section {

    width: 100%;

    max-width: none;

    margin: 0 0 22px;

    padding: 30px 32px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 11px;
}

.product-form-grid {

    display: grid;

    grid-template-columns:
        minmax(250px, 2.2fr)
        minmax(120px, 0.8fr)
        minmax(170px, 1.1fr)
        minmax(200px, 1.4fr);

    gap: 20px;

    width: 100%;

    margin: 0;

    padding: 0;

    background: none;

    border: none;
}

.product-form-grid .form-group {

    min-width: 0;
}


/* Product form buttons */

.product-form-buttons {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 10px 0 0;

    padding: 0;

    background: none;

    border: none;
}

.save-product-button {

    min-width: 155px;

    margin: 0;

    padding: 11px 20px;

    color: var(--white);

    background-color: var(--green-main);

    font-size: 14px;

    font-weight: 700;

    border: none;

    border-radius: 7px;
}

.save-product-button:hover {

    background-color: var(--green-dark);
}

.cancel-edit-button {

    min-width: 125px;

    margin: 0;

    padding: 10px 18px;

    color: var(--text-medium);

    background-color: var(--white);

    font-size: 14px;

    font-weight: 600;

    border: 1px solid var(--border);

    border-radius: 7px;
}

.cancel-edit-button:hover {

    background-color: #f1f5f9;
}


/* =========================================
   PRODUCTS SECTION
   ========================================= */

.products-section {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 30px 32px 34px;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 11px;
}


/* Messages */

.products-message {

    margin: 12px 0 20px;

    text-align: left;

    color: var(--text-light);

    font-size: 14px;
}

.products-message.success-message {

    padding: 10px 12px;

    color: var(--green-dark);

    background-color: var(--green-light);

    border-radius: 6px;
}

.products-message.error-message {

    padding: 10px 12px;

    color: var(--danger);

    background-color: var(--danger-light);

    border-radius: 6px;
}

.products-message.empty-message {

    padding: 30px;

    text-align: center;

    color: var(--text-light);

    background-color: #f8fafc;

    border: 1px dashed var(--border);

    border-radius: 8px;
}


/* =========================================
   PRODUCTS TABLE
   ========================================= */

.products-table-container {

    width: 100%;

    margin: 0;

    padding: 0;

    overflow: visible;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 9px;
}

.products-table {

    width: 100%;

    table-layout: auto;

    border-collapse: collapse;
}

.products-table th,
.products-table td {

    padding: 15px 19px;

    text-align: left;

    vertical-align: middle;

    border-bottom: 1px solid var(--border-light);
}

.products-table th {

    color: var(--blue-dark);

    background-color: var(--blue-soft);

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}

.products-table td {

    color: var(--text-medium);

    font-size: 14px;

    white-space: nowrap;
}

.products-table tbody tr:last-child td {

    border-bottom: none;
}

.products-table tbody tr:hover {

    background-color: #f9fcfd;
}


/* Column widths */

.products-table th:nth-child(1),
.products-table td:nth-child(1) {

    width: 30%;
}

.products-table th:nth-child(2),
.products-table td:nth-child(2) {

    width: 12%;
}

.products-table th:nth-child(3),
.products-table td:nth-child(3) {

    width: 18%;
}

.products-table th:nth-child(4),
.products-table td:nth-child(4) {

    width: 21%;
}

.products-table th:nth-child(5),
.products-table td:nth-child(5) {

    width: 19%;

    text-align: right;
}


/* =========================================
   EDIT / DELETE
   ========================================= */

.product-actions {

    white-space: nowrap;
}

.edit-product-button,
.delete-product-button {

    margin: 2px 0 2px 7px;

    padding: 7px 13px;

    font-size: 13px;

    font-weight: 700;

    border-radius: 6px;
}

.edit-product-button {

    color: var(--blue-main);

    background-color: var(--blue-light);

    border: 1px solid #c8e3f2;
}

.edit-product-button:hover {

    background-color: #dceff8;
}

.delete-product-button {

    color: var(--danger);

    background-color: var(--danger-light);

    border: 1px solid #f3c8c5;
}

.delete-product-button:hover {

    background-color: #fee4e2;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .main-navigation {

        position: relative;

        flex-wrap: wrap;
    }


    /* Hamburger appears */

    .menu-toggle {

        display: block;
    }


    /* Navigation hidden until opened */

    .nav-links {

        display: none;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        margin-top: 12px;

        padding: 14px 0 4px;

        border-top: 1px solid var(--border);
    }

    .nav-links.active {

        display: flex;
    }

    .nav-links a {

        width: 100%;

        padding: 11px 10px;

        border-radius: 6px;
    }

    .nav-links a:not(.nav-button):hover {

        background-color: var(--blue-soft);
    }

    .nav-links a::after {

        display: none;
    }

    .nav-links .nav-button {

        margin-top: 5px;

        text-align: center;
    }


    /* Landing cards */

    .feature-grid,
    .steps-grid {

        grid-template-columns: 1fr 1fr;
    }


    .preview-summary-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    /* Dashboard */

    .dashboard-main {

        width: 97%;

        padding-top: 22px;
    }


    /* Product form */

    .product-form-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 17px;
    }


    /* Product table */

    .products-table {

        table-layout: fixed;
    }

    .products-table th,
    .products-table td {

        padding: 11px 7px;

        font-size: 12px;

        white-space: normal;

        overflow-wrap: break-word;
    }

    .edit-product-button,
    .delete-product-button {

        margin: 2px;

        padding: 6px 8px;

        font-size: 11px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    /* Logo */

    .brand img {

        width: 75px;
    }

    .brand span {

        font-size: 18px;
    }


    /* Hero */

    .hero {

        padding: 70px 18px 75px;
    }

    .hero-label {

        font-size: 11px;
    }

    .hero h1 {

        font-size: 36px;
    }

    .hero-description {

        font-size: 16px;
    }

    .hero-buttons {

        flex-direction: column;

        width: 100%;
    }

    .primary-button,
    .secondary-button {

        width: 100%;

        max-width: 300px;
    }


    /* Main */

    .landing-main {

        padding:
            20px 10px
            45px;
    }

    .landing-main section {

        margin: 18px 0;

        padding: 45px 20px;
    }

    .section-heading,
    .section-intro {

        margin-bottom: 30px;
    }

    .section-heading h2,
    .section-intro h2 {

        font-size: 27px;
    }


    /* Features */

    .feature-grid,
    .steps-grid {

        grid-template-columns: 1fr;
    }

    .feature-card,
    .step-card {

        min-height: auto;
    }


    /* Dashboard Preview */

    .preview-summary-grid {

        grid-template-columns: 1fr;
    }

    .dashboard-preview-section th,
    .dashboard-preview-section td {

        padding: 11px 9px;

        font-size: 12px;
    }


    /* CTA */

    .cta-content h2 {

        font-size: 28px;
    }


    /* Dashboard Navigation */

    .dashboard-nav {

        padding: 10px 12px;
    }

    .dashboard-nav .brand img {

        width: 65px;
    }

    .dashboard-nav .brand span {

        font-size: 17px;
    }

    .logout-button {

        padding: 8px 12px;

        font-size: 13px;
    }


    /* Dashboard */

    .dashboard-main {

        width: 98%;

        padding:
            14px 0
            35px;
    }

    .dashboard-welcome,
    .welcome-card {

        margin-bottom: 14px;

        padding: 24px 18px;
    }

    .dashboard-welcome h1,
    .welcome-card h1 {

        font-size: 24px;
    }

    .product-form-section,
    .products-section {

        padding: 24px 12px;
    }

    .product-form-section {

        margin-bottom: 14px;
    }


    /* Form */

    .product-form-grid {

        grid-template-columns: 1fr;

        gap: 15px;
    }

    .product-form-buttons {

        flex-direction: column;

        align-items: stretch;
    }

    .save-product-button,
    .cancel-edit-button {

        width: 100%;

        min-width: 0;
    }


    /* Products table stays visible without scrolling */

    .products-table-container {

        overflow: visible;
    }

    .products-table {

        width: 100%;

        table-layout: fixed;
    }

    .products-table th,
    .products-table td {

        padding: 8px 3px;

        font-size: 10px;

        white-space: normal;

        overflow-wrap: anywhere;
    }


    .products-table th:nth-child(1),
    .products-table td:nth-child(1) {

        width: 27%;
    }

    .products-table th:nth-child(2),
    .products-table td:nth-child(2) {

        width: 11%;
    }

    .products-table th:nth-child(3),
    .products-table td:nth-child(3) {

        width: 18%;
    }

    .products-table th:nth-child(4),
    .products-table td:nth-child(4) {

        width: 18%;
    }

    .products-table th:nth-child(5),
    .products-table td:nth-child(5) {

        width: 26%;
    }


    /* Action buttons */

    .product-actions {

        white-space: normal;
    }

    .edit-product-button,
    .delete-product-button {

        display: block;

        width: 100%;

        margin: 3px 0;

        padding: 5px 2px;

        font-size: 10px;
    }


    /* Authentication */

    .auth-container {

        padding: 30px 15px;
    }

    .auth-card {

        padding: 30px 20px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {

        font-size: 31px;
    }

    .landing-main {

        padding-left: 6px;

        padding-right: 6px;
    }

    .dashboard-main {

        width: 100%;

        padding-left: 3px;

        padding-right: 3px;
    }

    .product-form-section,
    .products-section {

        padding-left: 7px;

        padding-right: 7px;
    }

    .products-table th,
    .products-table td {

        padding: 7px 2px;

        font-size: 9px;
    }

    .edit-product-button,
    .delete-product-button {

        padding: 5px 1px;

        font-size: 9px;
    }

}