* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #101060;
    background:
        linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
        url("/assets/images/garden_bg_tile.jpg");
    background-size: 520px auto;
}

.wrap {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: #000066;
    padding: 10px 14px;
    z-index: 9999;
}

.skip-link:focus {
    left: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #000066;
    outline-offset: 3px;
}

.site-header {
    padding: 24px 0 18px;
    background: rgba(255,255,255,.58);
    border-bottom: 1px solid rgba(80,80,130,.25);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.welcome {
    font-size: 28px;
    color: #0096ff;
    text-shadow: 1px 1px #003399;
    margin-left: 80px;
}

.logo-text {
    font-size: 54px;
    line-height: .95;
    color: #0066ff;
    text-shadow: 2px 2px #001b9b;
}

.tagline {
    margin-top: 10px;
    font-size: 17px;
    font-weight: bold;
}

nav a {
    color: #8a008a;
    font-weight: bold;
    margin-left: 18px;
    text-decoration: underline;
    font-size: 17px;
}

.hero {
    padding: 78px 0;
}

.hero-box {
    max-width: 760px;
    background: rgba(255,255,255,.68);
    padding: 44px;
    border: 1px solid rgba(80,80,130,.22);
}

.hero h1 {
    font-size: 48px;
    margin: 0 0 18px;
    color: #000066;
}

.hero p {
    font-size: 22px;
    line-height: 1.5;
    font-weight: bold;
}

.button,
.small-button {
    display: inline-block;
    background: #8a008a;
    color: white;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    border: 0;
    cursor: pointer;
}

.small-button {
    padding: 10px 18px;
    font-size: 14px;
}

.secondary {
    background: #555577;
}

.section {
    padding: 62px 0;
}

.soft {
    background: rgba(255,220,255,.55);
    border-top: 1px solid rgba(150,100,150,.25);
    border-bottom: 1px solid rgba(150,100,150,.25);
}

h1,
h2,
h3 {
    color: #000066;
}

.page-heading,
h2 {
    text-align: center;
    font-size: 38px;
    margin: 0 0 36px;
}

.section-intro {
    text-align: center;
    font-size: 20px;
    max-width: 760px;
    margin: -18px auto 36px;
    font-weight: bold;
}

.grid {
    display: grid;
    gap: 24px;
}

.categories {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.products {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(100,100,150,.35);
    padding: 24px;
    box-shadow: 0 8px 22px rgba(30,20,60,.10);
}

.category-card {
    color: #101060;
    text-decoration: none;
}

.card h3 {
    margin-top: 0;
    font-size: 24px;
}

.product-img {
    height: 170px;
    margin-bottom: 18px;
    background: rgba(255,190,255,.55);
    border: 1px solid rgba(100,100,150,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #663399;
    font-size: 25px;
    text-align: center;
    font-weight: bold;
}

.product-meta {
    color: #6b006b;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: bold;
}

.price {
    margin: 18px 0;
    font-size: 22px;
    font-weight: bold;
}

.story {
    padding: 70px 0;
}

.story-box {
    max-width: 820px;
    text-align: center;
    background: rgba(255,255,255,.70);
    padding: 42px;
    border: 1px solid rgba(80,80,130,.25);
}

.story p {
    font-size: 21px;
    line-height: 1.6;
    font-weight: bold;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 440px) 1fr;
    gap: 44px;
    align-items: start;
}

.product-detail-image {
    min-height: 440px;
    background: rgba(255,190,255,.55);
    border: 1px solid rgba(100,100,150,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #663399;
    font-size: 34px;
    text-align: center;
    font-weight: bold;
}

.product-detail-info h1 {
    font-size: 44px;
    margin: 10px 0 18px;
}

.product-description {
    font-size: 21px;
    line-height: 1.6;
    font-weight: bold;
}

.buy-box {
    margin-top: 28px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(100,100,150,.35);
    padding: 24px;
}

.buy-box label {
    display: block;
    margin-top: 14px;
    font-weight: bold;
}

.buy-box select,
.buy-box input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 17px;
}

.buy-box button {
    margin-top: 22px;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    border-bottom: 1px solid rgba(100,100,150,.25);
    padding: 14px;
    text-align: left;
}

.cart-table input {
    width: 70px;
    padding: 8px;
}

.sku {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.cart-summary {
    max-width: 420px;
    margin: 28px 0 0 auto;
}

.cart-empty {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.cart-help,
.form-help {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
}

.checkout-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.checkout-form fieldset {
    border: 1px solid rgba(100,100,150,.35);
    margin: 20px 0;
    padding: 18px;
}

.checkout-form legend {
    font-weight: bold;
    color: #000066;
    padding: 0 8px;
}

.checkout-form label {
    display: block;
    margin-top: 14px;
    font-weight: bold;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 16px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
    margin-top: 3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 100px 130px;
    gap: 14px;
}

.form-row.two {
    grid-template-columns: 1fr 1fr;
}

.checkout-form button {
    margin-top: 24px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 14px 0;
}

.summary-line.total {
    font-size: 20px;
}

footer {
    padding: 28px 0;
    background: rgba(255,255,255,.68);
    text-align: center;
    border-top: 1px solid rgba(80,80,130,.25);
    font-weight: bold;
}

@media (max-width: 850px) {
    .checkout-wrap,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        display: block;
        text-align: center;
    }

    .welcome {
        margin-left: 0;
    }

    .logo-text {
        font-size: 38px;
    }

    nav {
        margin-top: 18px;
    }

    nav a {
        display: inline-block;
        margin: 6px 8px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-box {
        padding: 28px;
    }

    .cart-table {
        overflow-x: auto;
    }
    .cart-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.remove-button {
    background: transparent;
    border: 0;
    color: #8a008a;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    padding: 6px 0;
}

.remove-button:hover,
.remove-button:focus {
    color: #000066;
}
    
    @media (max-width: 700px) {
    .cart-table table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
    }

    .cart-table thead {
        position: absolute;
        left: -9999px;
    }

    .cart-table tr {
        background: rgba(255,255,255,.75);
        border: 1px solid rgba(100,100,150,.35);
        margin-bottom: 18px;
        padding: 14px;
    }

    .cart-table td {
        border: 0;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        gap: 18px;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #000066;
    }

    .cart-table input {
        width: 90px;
    }
    .error-message {
    color: #8a0000;
    font-weight: bold;
}

.admin-logout {
    text-align: right;
    margin-bottom: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    text-align: center;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.admin-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.admin-table {
    overflow-x: auto;
    margin-bottom: 24px;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(100,100,150,.25);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.checkout-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 16px;
    font-family: inherit;
}

@media (max-width: 850px) {
    .customer-detail-grid {
        grid-template-columns: 1fr;
    }
}
}
    
    .admin-panel h2 {
    text-align: left;
    margin-bottom: 22px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.admin-table th {
    background: rgba(0, 0, 102, .10);
    color: #000066;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(0, 0, 102, .25);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(100,100,150,.25);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 220, 255, .35);
}

.mono {
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}

.money {
    font-weight: bold;
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    background: #eeeeff;
    color: #000066;
}

.status-pending {
    background: #fff3cd;
    color: #5f4500;
}

.status-paid {
    background: #d8f5dc;
    color: #0b5c20;
}

.status-shipped {
    background: #d9ecff;
    color: #003d73;
}
    
   .dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    text-align: center;
}

.stat-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-card p {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
}

.admin-panel h2 {
    text-align: left;
    margin-bottom: 22px;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-data-table th,
.admin-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(100,100,150,.25);
    text-align: left;
}

.admin-data-table th {
    background: rgba(0,0,102,.10);
}

@media (max-width: 850px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
} 
    
}