/* =========================================
   ALLDATA STORE - COMPLETE STYLE
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #f0f4fa;
    color: #142743;
}

.wrap {
    width: min(1250px, 94%);
    margin: auto;
}

/* ===== HEADER ===== */

header {
    background: #ffffff;
    border-bottom: 1px solid #e5ebf3;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 15px;
}

.brand {
    direction: ltr;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #0c3c79;
}

.brand span {
    color: #f28b24;
}

.brand small {
    font-size: 13px;
    letter-spacing: 2px;
}

.navlink {
    color: #164d92;
    text-decoration: none;
    font-weight: bold;
}

/* ===== HERO ===== */

.hero {
    background: linear-gradient(120deg, #07346b, #075aab);
    color: white;
    padding: 85px 0 90px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin: 12px 0;
}

.hero p {
    line-height: 1.9;
}

.eyebrow {
    color: #f5a03b;
    font-weight: bold;
    font-size: 13px;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    background: #f38b24;
    color: white;
    padding: 13px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.hero .btn {
    margin-top: 20px;
}

.hero .btn:hover {
    background: #df7413;
    color: white;
}

/* ===== SECTION TITLE ===== */

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 45px 0 25px;
    gap: 15px;
}

.sectionhead h2 {
    margin: 6px 0;
    font-size: 27px;
}

.sectionhead span {
    color: #64748b;
}

/* ===== PRODUCTS GRID ===== */

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* ===== PRODUCT CARD ===== */

.product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfe7f2;
    box-shadow: 0 8px 24px rgba(10,45,90,.09);
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.product:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(10,45,90,.17);
}

/* ===== PRODUCT IMAGE ===== */

.photo {
    height: 260px;
    width: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow: hidden;
}

.photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.placeholder {
    font-size: 32px;
    font-weight: 900;
    color: #0d478a;
    direction: ltr;
    text-align: center;
}

.placeholder small {
    font-size: 13px;
    letter-spacing: 4px;
}

/* ===== PRODUCT DETAILS ===== */

.productbody {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    text-align: center;
}

.category {
    font-size: 13px;
    color: #1464ad;
    font-weight: bold;
}

.product h3 {
    font-size: 19px;
    line-height: 1.5;
    min-height: 58px;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.desc {
    color: #64748b;
    font-size: 14px;
    min-height: 50px;
    line-height: 1.8;
    flex: 1;
}

.price {
    font-size: 30px;
    font-weight: 900;
    color: #073c80;
    margin: 18px 0;
}

.price small {
    font-size: 13px;
}

/* ===== PURCHASE BUTTON ===== */

.buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    background: #0755a5;
    border-radius: 12px;
    color: #ffffff;
    font-weight: bold;
    transition: background .2s ease;
}

.buy:hover {
    background: #003a79;
    color: #ffffff;
}

.disabled {
    display: block;
    background: #a4b0be;
    color: #ffffff;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    color: #64748b;
    padding: 45px 10px;
    margin-top: 45px;
}

/* =========================================
   ADMIN PANEL - ORIGINAL STYLES
   ========================================= */

.panel {
    max-width: 900px;
    margin: 35px auto;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px #123e7210;
}

.formgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 13px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.field textarea {
    min-height: 80px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.danger {
    background: #b32632;
}

.muted {
    background: #64748b;
}

.notice {
    background: #edf7ef;
    padding: 12px;
    border-radius: 8px;
    color: #175d2e;
    margin: 15px 0;
}

.error {
    background: #fff0f0;
    color: #a02020;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.tablewrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    text-align: right;
}

a {
    color: #0b5ea9;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .grid,
    .formgrid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 55px 0;
    }

    .photo {
        height: 230px;
    }

    .product h3 {
        min-height: auto;
    }

    .navlink {
        font-size: 12px;
    }

    .productbody {
        padding: 20px;
    }

    .sectionhead h2 {
        font-size: 22px;
    }
}