/* ================== GLOBAL ================== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f3f7;
}

header {
    background: #2b7cff;
    color: white;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: bold;
}

.container {
    display: flex;
    gap: 12px;
    padding: 10px;
}

/* ================== NAV ================== */

.nav {
    background: white;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.nav a {
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    color: #333;
}

.nav a:hover {
    color: #2b7cff;
}

/* ================== LEFT PANEL ================== */

.products-panel {
    width: 60%;
    background: white;
    padding: 12px;
    border-radius: 6px;
}

/* Search */

#search {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Category Buttons */

.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cat-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
}

.cat-btn.active {
    background: #2b7cff;
    color: white;
}

/* Category Section */

.category-section {
    margin-bottom: 15px;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

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

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.product-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    padding: 14px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 110px;  /* 🔥 Equal height */
    transition: 0.2s ease;
}

.product-btn:hover {
    background: #f0f7ff;
    border-color: #2b7cff;
}

.product-btn b {
    font-size: 15px;
    margin-bottom: 5px;
}

/* ================== BILL PANEL ================== */

.bill {
    width: 50%;
    background: white;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 95vh;
}

.bill-items {
    flex: 1;
    overflow-y: auto;
    padding-left: 0;
    list-style: none;
}

.bill-items li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.bill-items button {
    margin-right: 5px;
    padding: 4px 8px;
    border: none;
    background: #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.bill-items button:hover {
    background: #bbb;
}

/* ================== TOTAL SECTION ================== */

.total-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ddd;
    font-size: 14px;
}

.total-box div {
    margin: 4px 0;
}

.grand {
    font-size: 18px;
    font-weight: bold;
    margin-top: 6px;
}

/* ================== DISCOUNT ================== */

#discountSelect {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

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

.print-btn,
button {
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.print-btn {
    background: #2b7cff;
    color: white;
    margin-top: 10px;
}

.print-btn:hover {
    background: #1e5fd1;
}

/* ================== TABLE PAGE ================== */

.qty-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
}

.qty-controls button {
    padding: 4px 8px;
    background: #ddd;
    border-radius: 4px;
}

/* ================== SCROLLBAR CLEAN ================== */

.bill-items::-webkit-scrollbar {
    width: 6px;
}

.bill-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ================== MOBILE FRIENDLY ================== */

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .products-panel,
    .bill {
        width: 100%;
    }

    .bill {
        height: auto;
    }
}

/* PortFactory POS installation card */
.hardware-install-card {
    margin-top: 18px;
    padding: 42px;
    border-radius: 22px;
    background: #f7faf5;
    border: 1px solid rgba(16, 38, 29, .10);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 45px;
    align-items: center;
    overflow: hidden;
}

.hardware-install-copy {
    padding-left: 8px;
    min-width: 0;
}

.hardware-install-eyebrow {
    margin: 0 0 16px;
    color: #438d8a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.hardware-install-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -.04em;
    word-break: break-word;
}

.hardware-install-copy > p:not(.hardware-install-eyebrow):not(.hardware-install-note) {
    max-width: 700px;
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.6;
}

.hardware-install-note {
    margin: 0;
    color: #68766f;
    font-size: 14px;
}

.hardware-install-panel {
    padding: 34px;
    border-radius: 22px;
    background: #10261d;
    color: white;
    box-shadow: 0 18px 40px rgba(16, 38, 29, .14);
    min-width: 0;
}

.hardware-install-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: white;
    color: #10261d;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 800;
}

.hardware-install-panel h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.hardware-install-panel p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.75);
    line-height: 1.55;
}

.hardware-install-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 12px;
    background: #ff725c;
    color: white !important;
    text-decoration: none !important;
    font-weight: 800;
    box-sizing: border-box;
}

.hardware-install-button:hover {
    transform: translateY(-1px);
}

@media(max-width:850px) {
    .hardware-install-card {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        gap: 24px;
    }

    .hardware-install-copy {
        padding-left: 0;
    }

    .hardware-install-copy h2 {
        font-size: 28px;
        line-height: 1.15;
    }

    .hardware-install-panel {
        padding: 22px 18px;
        border-radius: 18px;
    }
}

/* Mobile View Mode Support */
html[data-view-mode="mobile"] .hardware-install-card {
    grid-template-columns: 1fr !important;
    padding: 22px 16px !important;
    gap: 20px !important;
    border-radius: 16px !important;
}

html[data-view-mode="mobile"] .hardware-install-copy {
    padding-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

html[data-view-mode="mobile"] .hardware-install-copy h2 {
    font-size: 26px !important;
    line-height: 1.15 !important;
    margin: 0 0 12px !important;
    word-break: break-word !important;
}

html[data-view-mode="mobile"] .hardware-install-copy > p:not(.hardware-install-eyebrow):not(.hardware-install-note) {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 12px !important;
}

html[data-view-mode="mobile"] .hardware-install-panel {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html[data-view-mode="mobile"] .hardware-install-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 26px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
}

html[data-view-mode="mobile"] .hardware-install-panel h3 {
    font-size: 19px !important;
    margin-bottom: 8px !important;
}

html[data-view-mode="mobile"] .hardware-install-panel p {
    font-size: 13px !important;
    margin-bottom: 16px !important;
}

html[data-view-mode="mobile"] .hardware-install-button {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    justify-content: space-between !important;
}


/* Light PortFactory install card */
.hardware-install-card {
    background: #f8faf7;
    border: 1px solid rgba(16, 38, 29, .08);
    box-shadow: 0 18px 45px rgba(16, 38, 29, .07);
}

.hardware-install-panel {
    background: #ffffff;
    color: #18352a;
    border: 1px solid rgba(16, 38, 29, .08);
    box-shadow: 0 18px 45px rgba(16, 38, 29, .10);
}

.hardware-install-icon {
    background: #e3f1e8;
    color: #18352a;
    border: 1px solid rgba(16, 38, 29, .06);
}

.hardware-install-panel h3 {
    color: #18352a;
}

.hardware-install-panel p {
    color: #62736b;
}

.hardware-install-button {
    background: #ff725c;
    color: #ffffff !important;
    border: 0;
    box-shadow: 0 10px 22px rgba(255, 114, 92, .18);
}

.hardware-install-button,
.hardware-install-button span {
    color: #ffffff !important;
}

.hardware-install-button:hover {
    background: #f56650;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.hardware-install-button:hover span {
    color: #ffffff !important;
}

.hardware-install-copy h2 {
    color: #18352a;
}

.hardware-install-eyebrow {
    color: #438d8a;
}


/* PortFactory install button text */
.hardware-install-button,
.hardware-install-button:visited,
.hardware-install-button:hover,
.hardware-install-button:active,
.hardware-install-button span {
    color: #ffffff !important;
}

/* ==========================================================================
   Silent Google Translate: hide banner frame, popup tooltip, prevent jump
   ========================================================================== */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}
body {
    top: 0px !important;
    position: static !important;
}
html {
    top: 0px !important;
}
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0px !important;
}



/* Guarantee Google Translate elements & stray selects are completely hidden */
.pf-translate,
#pf_translate,
.pf-google-source,
.goog-te-gadget,
.goog-te-combo,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
body > .skiptranslate,
body > .goog-te-gadget,
body > #pf_translate,
body > .pf-translate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    pointer-events: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    z-index: -99999 !important;
}
body {
    top: 0 !important;
    position: static !important;
}
html {
    top: 0 !important;
}
