/**
 * Flamenet Shop — Stylesheet
 * Flamenet 2001 portal aesthetic
 */

.shp-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000;
    max-width: 960px;
}

/* -------------------------------------------------------
   Top bar (search + cart link)
------------------------------------------------------- */
.shp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.shp-search-form {
    display: flex;
    gap: 4px;
    flex: 1;
    max-width: 400px;
}

.shp-search-input {
    flex: 1;
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #999;
}

.shp-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #003399;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #AABBD4;
    background: #EEF2FF;
    white-space: nowrap;
}

.shp-cart-link:hover {
    background: #D0DEFF;
    text-decoration: none;
    color: #003399;
}

.shp-cart-icon { font-size: 14px; }

.shp-cart-badge {
    display: inline-block;
    background: #CC0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
}

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

/* -------------------------------------------------------
   Category tabs
------------------------------------------------------- */
.shp-cat-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    border-bottom: 2px solid #003399;
    padding-bottom: 4px;
}

.shp-cat-tab {
    font-size: 12px;
    padding: 3px 10px;
    color: #003399;
    text-decoration: none;
    background: #EEF2FF;
    border: 1px solid #AABBD4;
}

.shp-cat-tab:hover {
    background: #003399;
    color: #fff;
    text-decoration: none;
}

.shp-tab-active,
.shp-tab-active:visited,
.shp-tab-active:hover,
.shp-tab-active:visited:hover {
    color: #fff;
    text-decoration: none;
}

.shp-tab-active {
    background: #003399;
}

/* -------------------------------------------------------
   Section header
------------------------------------------------------- */
.shp-section-header {
    background: #003399;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    margin-bottom: 10px;
}

/* -------------------------------------------------------
   Product grid
------------------------------------------------------- */
.shp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

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

.shp-product-card {
    border: 1px solid #7F9DB9;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.shp-card-img-link { display: block; overflow: hidden; }

.shp-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.shp-card-img-placeholder {
    height: 160px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.shp-card-body {
    padding: 8px;
    flex-grow: 1;
}

.shp-card-title {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #003399;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}

.shp-card-title:hover { text-decoration: underline; }

.shp-card-price {
    font-size: 14px;
    font-weight: bold;
    color: #CC0000;
}

.shp-card-footer {
    padding: 8px;
    border-top: 1px solid #C8D8E8;
    background: #EEF2FF;
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.shp-btn {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    text-align: center;
}

.shp-btn:disabled { opacity: .55; cursor: default; }

.shp-btn-add {
    background: #CC0000;
    color: #fff;
    border-color: #990000;
    width: 100%;
    box-sizing: border-box;
}
.shp-btn-add:hover:not(:disabled) { background: #990000; color: #fff; text-decoration: none; }

.shp-btn-lg { padding: 8px 20px; font-size: 13px; width: auto; }

.shp-btn-primary  { background: #003399; color: #fff; border-color: #002277; }
.shp-btn-primary:hover  { background: #002277; color: #fff; text-decoration: none; }

.shp-btn-secondary { background: #fff; color: #003399; border-color: #003399; }
.shp-btn-secondary:hover { background: #EEF2FF; text-decoration: none; }

.shp-btn-search { background: #003399; color: #fff; border-color: #002277; }
.shp-btn-search:hover { background: #002277; }

.shp-btn-checkout {
    background: #003399;
    color: #fff;
    border-color: #002277;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 13px;
    margin-top: 10px;
}
.shp-btn-checkout:hover:not(:disabled) { background: #002277; }

/* -------------------------------------------------------
   Product detail
------------------------------------------------------- */
.shp-breadcrumb { font-size: 12px; color: #555; }
.shp-breadcrumb a { color: #003399; text-decoration: none; }
.shp-breadcrumb a:hover { text-decoration: underline; }
.shp-bc-sep { margin: 0 4px; color: #999; }

.shp-product-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.shp-detail-image { flex: 0 0 340px; max-width: 340px; }

.shp-main-img {
    width: 100%;
    border: 1px solid #7F9DB9;
    display: block;
}

.shp-detail-img-placeholder {
    width: 100%;
    height: 280px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 1px solid #7F9DB9;
}

.shp-detail-info { flex: 1; }

.shp-detail-title {
    font-size: 15px;
    font-weight: bold;
    color: #003399;
    margin: 0 0 8px;
}

.shp-detail-cats { font-size: 12px; color: #666; margin-bottom: 8px; }
.shp-detail-cats a { color: #003399; text-decoration: none; }
.shp-detail-cats a:hover { text-decoration: underline; }

.shp-detail-price {
    font-size: 18px;
    font-weight: bold;
    color: #CC0000;
    margin-bottom: 8px;
}

.shp-detail-sku { font-size: 12px; color: #777; margin-bottom: 6px; }

.shp-low-stock { font-size: 12px; color: #CC6600; font-weight: bold; margin-bottom: 8px; }

.shp-sold-out-notice {
    background: #FFEEEE;
    border: 1px solid #CC0000;
    color: #CC0000;
    font-weight: bold;
    padding: 6px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.shp-qty-add {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.shp-qty-label { font-size: 12px; font-weight: bold; }

.shp-view-cart-link {
    font-size: 12px;
    color: #003399;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

.shp-view-cart-link:hover { text-decoration: underline; }

.shp-description { margin-top: 20px; }
.shp-desc-body { border: 1px solid #7F9DB9; padding: 10px; background: #FAFAFA; font-size: 13px; line-height: 1.6; }

/* -------------------------------------------------------
   Quantity control (shared)
------------------------------------------------------- */
.shp-qty-ctrl {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #999;
}

.shp-qty-dec,
.shp-qty-inc {
    background: #EEF2FF;
    border: none;
    border-right: 1px solid #999;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 8px;
    line-height: 1;
}

.shp-qty-inc { border-right: none; border-left: 1px solid #999; }
.shp-qty-dec:hover, .shp-qty-inc:hover { background: #D0DEFF; }

.shp-qty-input {
    width: 44px;
    text-align: center;
    border: none;
    font-size: 12px;
    padding: 0;
    -moz-appearance: textfield;
}
.shp-qty-input::-webkit-inner-spin-button,
.shp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* -------------------------------------------------------
   Cart page
------------------------------------------------------- */
.shp-cart-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.shp-cart-items { flex: 1; min-width: 0; }

.shp-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.shp-cart-table th {
    background: #003399;
    color: #fff;
    font-weight: bold;
    padding: 4px 6px;
    border: 1px solid #002277;
    text-align: left;
    white-space: nowrap;
}

.shp-cart-table td {
    padding: 6px;
    border: 1px solid #C8D8E8;
    vertical-align: middle;
}

.shp-cart-table tr:nth-child(even) td { background: #EEF2FF; }

.shp-th-img    { width: 52px; }
.shp-th-qty    { width: 110px; }
.shp-th-price  { width: 80px; white-space: nowrap; }
.shp-th-sub    { width: 80px; white-space: nowrap; }
.shp-th-remove { width: 30px; }

.shp-cart-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: block;
    border: 1px solid #C8D8E8;
}

.shp-cart-thumb-ph {
    width: 44px;
    height: 44px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

.shp-td-name a { color: #0000CC; text-decoration: none; font-weight: bold; }
.shp-td-name a:hover { text-decoration: underline; color: #CC0000; }

.shp-remove-btn {
    background: none;
    border: none;
    color: #CC0000;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
}
.shp-remove-btn:hover { color: #990000; }

.shp-cart-actions { margin-top: 8px; }

/* Order summary panel */
.shp-order-summary {
    width: 220px;
    flex-shrink: 0;
    border: 1px solid #7F9DB9;
}

.shp-summary-body { padding: 10px; }

.shp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dotted #C8D8E8;
}

.shp-summary-shipping { color: #666; font-size: 11px; }

.shp-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 0 4px;
    color: #003399;
    border-top: 2px solid #003399;
    margin-top: 4px;
}

.shp-secure-note {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin: 6px 0 0;
}

.shp-checkout-error {
    background: #FFEEEE;
    border: 1px solid #CC0000;
    color: #CC0000;
    padding: 6px 8px;
    font-size: 12px;
    margin-top: 6px;
}

.shp-cart-empty { padding: 20px 0; }
.shp-empty { color: #666; font-size: 13px; }

/* -------------------------------------------------------
   Order success
------------------------------------------------------- */
.shp-success-wrap {
    text-align: center;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #7F9DB9;
}

.shp-success-icon {
    display: inline-block;
    background: #003399;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 6px 16px;
    margin-bottom: 10px;
}

.shp-success-title { font-size: 15px; color: #003399; margin-bottom: 6px; font-weight: bold; }
.shp-success-sub   { font-size: 12px; color: #555; margin-bottom: 16px; }

.shp-order-detail { text-align: left; margin-bottom: 16px; }

.shp-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.shp-order-table th {
    background: #003399;
    color: #fff;
    padding: 4px 8px;
    border: 1px solid #002277;
    text-align: left;
}

.shp-order-table td { padding: 4px 8px; border: 1px solid #C8D8E8; }

.shp-order-total-row td {
    background: #FFCC00;
    color: #003399;
    font-weight: bold;
    border-top: 2px solid #003399;
}

/* -------------------------------------------------------
   Toast notification
------------------------------------------------------- */
.shp-add-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #003399;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 18px;
    border: 2px solid #002277;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    z-index: 9999;
    max-width: 280px;
}

.shp-toast-show {
    opacity: 1;
    transform: translateY(0);
}

.shp-toast-error { background: #CC0000; border-color: #990000; }

/* -------------------------------------------------------
   Sold out
------------------------------------------------------- */
.shp-sold-out { font-size: 12px; color: #999; font-style: italic; }

/* -------------------------------------------------------
   Pagination
------------------------------------------------------- */
.shp-pagination {
    margin: 12px 0;
    font-size: 12px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.shp-page-link, .shp-page-cur {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #AABBD4;
    text-decoration: none;
}

.shp-page-link { background: #EEF2FF; color: #003399; }
.shp-page-link:hover { background: #D0DEFF; }
.shp-page-cur { background: #003399; color: #fff; }

/* -------------------------------------------------------
   Responsive cart
------------------------------------------------------- */
@media (max-width: 640px) {
    .shp-cart-layout {
        flex-direction: column;
    }
    .shp-order-summary {
        width: 100%;
    }
    .shp-product-detail {
        flex-direction: column;
    }
    .shp-detail-image {
        flex: none;
        max-width: 100%;
    }
}
