body{
    height: 100vh;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Arial, sans-serif
}
#navbar{
    min-height: 10%;
}
#content{
    min-height: 90%;

}
#footer{
    position: relative;
    bottom: 0%;
    min-height: 10%;
    padding-bottom: 50px;
    background-color: rgb(0, 19, 59);
}

#dropdown{
  display: inline-block;
  position: relative;
}
#cartContainer{
  display: none;
  position: absolute;
  z-index: 2;
  height: 60vh;
  width: 20vw;
  min-width: 300px;
  border-radius: 20px;
  padding-left: 5px;
  padding-right: 12px;
  background-color: white;
  box-shadow: 0 10px 50px 1px;
}

#cartDropdown{
  overflow-y: scroll;
  font-size: 50%;
  max-height: 90%;
  width: 95%;
  padding-right: 10%;
  margin-right: 5%;
}


.show{
    display: block !important;
}
.cartLineItem{
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid black;
}
.cartLineItemName{
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 1%;
}

.cartLineItemSize, .cartLineItemQuantity{
    width: 50%;
    font-size: 1.75em;
}
.cartLineItemId{
    font-size: 1em;
    color: grey;
}
#overflowText{
    font-size: 2.5em;
    color: white;
    background-color: #1976d2;
    cursor: pointer;
    padding: 10%;
    border-radius: 10px;
    text-align: center;
    align-self: center;
    display: block;
    margin-top: 10px;
}

#overflowText:hover{
    color: white;
    background-color: #1665b4;
}

.checkoutContainer{
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    min-height: 100%;
    gap: 1rem;
    padding: 1rem;
}

.checkoutSummary{
    grid-column: 1;
    width: 80%;
    border-radius: 10px;
    padding-top: 5%;
    padding-bottom: 5%;
    padding-left: 10%;
    padding-right: 10%;
    min-height: 80vh;
    background-color: rgb(226, 226, 226);
}

.submitArea{
    grid-column: 2;
    width: 60%;
    border-radius: 10px;
    padding-top: 5%;
    padding-bottom: 5%;
    padding-left: 10%;
    padding-right: 10%;
    min-height: 20%;
    max-height: fit-content;
    font-size: larger;
    background-color: rgb(226, 226, 226);    
}

.gridHeader{
    text-align: center;
    height: 5vh;
    font-weight: 700;
}
.shipArea{
    width: 100%;
    height: 10vh;
    margin-top: 5%;
}

.divider{
    display: block;
    border-top: 2px solid grey;
    width: 80%;
    height: 1%;
    margin: 10%;
}
.submitBtnCtnr{
    height:10%;
    margin: 5%;

}

#sendOrderBtn{
    padding: 10px 24px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    align-self: center;
    justify-self: center;
    margin: 0 20%;
    width: 60%;
    display: block;
    text-align: center;
}

#sendOrderBtn:hover{
    background: #125699;
}

.submitArea label{
    margin-left: 5%;
    margin-right: 5%;
}
#location{
    border-radius: 6px;
    padding: 5px;
    font-size: .75rem;
}

.totalCount{
    margin-left: 5%;
}

.sumItem{
    width: 90%;
    border-bottom: 1px solid gray;
    display: grid;
    margin-bottom: 10px;
}

.imageDiv{
    grid-column: 1;
}

.detailDiv{
    grid-column: 2;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.itemInfoDiv{
   display: flex; 
   flex-direction: row;
   width: 100%;
   font-size: small;
}

.itemName{
    font-size: large;
    padding-bottom: 10px;
}

.sizeDesc{
    width: 40%;
    padding-right: 10%;
}

.qField{
    width: 20%;
    display: inline-block;
    text-align: center;

}

.qLabel{
    display: inline-block;
    width: fit-content;
}

.delBtn{
    color: white;
    background-color: #dc3545;
    border-radius: 10px;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    grid-column: 3;
    align-self: center;
}

.delBtn:hover{
    cursor: pointer;
    background-color: #b02a37;
}

#accountCtnr{
    display: grid;
    grid-template-columns: 1fr 2fr;
}

#accntNavPane{
    grid-column: 1;
    justify-content: center;
    padding-top: 25px;
}

#accountMenu{
    border: 1px solid grey;
    border-radius: 10px;
    width: fit-content;
    align-self: center;
    justify-self: center;
}

#selList{
    list-style-type: none;
    padding: 0;
    width: fit-content;
    align-self: center;
    margin: 0;
}

#selList li{
    text-align: center;
    padding: 15px;
}

#selList li:hover{
    color: white;
    background-color: #104e8d;
    cursor: pointer;
    background-clip:padding-box;
}
#selHistory{
    border-bottom: 1px solid gray;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#selPrefs{
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;    
}

#dtlsTitle{
    text-align: center;
    font-size: x-large;
}

.activeSlct{
    background-color: #1976d2 !important;
    color: white !important;
}

.historyInfo{
    display: flex;
    flex-direction: column;    
}

.history-card{
    margin: 2rem 1rem;
}

.btn-disabled{
    background-color: gray !important;
    cursor: wait !important;
}
#brands {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;                 /* space between cards */
    justify-content: center;
    padding: 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Each card */
.vendorbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;              /* fixed size so it doesn’t jump */
    height: 80px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

/* Card hover (subtle lift) */
.vendorbox:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-color: #d0d0ff;
    background: #f9f9ff;
}

/* Vendor name styling */
.vendorName {
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.15s ease, color 0.15s ease;
}

/* Make the text “grow” without changing layout */
.vendorName:hover {
    transform: scale(1.07);
    color: #3f51b5;            /* accent color on hover */
}
#trustText{
    text-align: center;
}

#trustDesc{
    text-align: center;
}
#print-line{
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    align-items: center;
    gap: .5rem;
    
}

#hist-print-button{
    border: 2px solid black;
    border-radius: 10px;
    padding: 5px;
    width: fit-content;
}

#hist-print-button:hover{
    cursor: pointer;
    color: white;
    background-color: black;
}

#print-svg:hover{
    fill: white;
    background-color: black;
}

#filter-div{
    display: flex;
    width: fit-content;
    gap: .5rem;
    align-items: center;
}
#filtHist{
    padding: 8px;
    border-radius: 10px;
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
}

#filtHist:hover{
    cursor: pointer;
    background-color: #104e8d;
    color: white;
}

#feedback{
    position: fixed;
    top: 40%;
    z-index: 3;
    background-color: #b02a37;
    padding: 10px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#feedback>span{
    color: white;
    font-weight: 600;
    writing-mode: sideways-lr;
}

#feedback:hover{
    cursor: pointer;
    background-color: #791c25;
}

#feedbackModal{
    position: fixed;
    padding-top: 10px;
    top: 25%;
    width: 60%;
    max-width: 600px;
    height: 50%;
    justify-self: center;
    z-index: 3;
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    box-shadow: #47474798 10px 10px 15px;
    span{
        display: flex;
        flex-direction: column;
        height: 80%;
        width: 80%;
        align-items: center;
        text-align: left;
        justify-self: center;
        p{
            align-self: self-start;
            font-size: 1.5rem;
        }
        #feedback-button{
            background-color: #1462b1;
            color: white;
            border-radius: 10px;
            padding: 10px;
            padding-left: 1.5rem;
            padding-right: 1.5em;
            margin-top: 5%;
            display: inline;
            flex: 0;
            text-align: center;
            width: 60%;
            box-shadow: #47474798 10px 10px 15px;
        }
        #feedback-button:hover{
            box-shadow: none;
            cursor: pointer;
            background-color: #1e73ce;
        }
        #feedback-close{
            margin-top: 10px;
            font-size: 1rem;
            text-align: center;
            align-self: stretch;
        }

        #feedback-close:hover{
            cursor: pointer;
            color: rgb(27, 27, 27);
            text-decoration: underline;

        }
    }
    label{
        width: 80%;
        display: flex;
        flex-direction: column;
        height: 30%;
        p{
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 4px;
        }
        textarea{
            resize: none;
            width: 100%;
            border-radius: 5px;
            border-color: rgb(233, 233, 233);
        }
        #feedback-body{
            border-radius: 5px;
            flex-grow: 3;
        }
    }
}

#careCtnr{
    padding: 5%;
    min-height: 80%;
    width: 95%;
    place-items: center;
    gap: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    .care-card-div{
        flex: 2 1 40%;
        padding: 10px;
        border: 1px solid #155efb56;
        border-radius: 10px;
        max-width: 50%;
        display: grid;
        grid-template-columns: 2fr 1fr;
        .careTitle{
            font-weight: 700;
        }
        .cardSub{
            font-weight: 300;
        }
        .careBtn{
            justify-self: center;
            align-self: center;
            border:1.5px solid #182f5f56;
            padding: .25rem;
            border-radius: 5px;
            box-shadow: #47474727 2px 2px 15px;
        }
        .careBtn:hover{
            background-color: #104e8d;
            color: white;
            cursor: pointer;
            box-shadow: 0;
        }
    }
}
@media print{
    #historyCtnr{
        margin: .25vw;
    }
    #historyCtnr,.card.history-card{
        width: 95vw !important;
    }
    .card{
        margin-right: .25%;
    }
    .card-header, .card{
        border-radius: 0 !important;
    }
    #navbar,#footer,#print-line, #accntNavPane{
        display: none !important;
    }
}
@page {
    size: 8.5in 11in;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .navbar-logo {
        max-width: 100px !important;
        min-width: 60px !important;
    }

    .navbar-toggler {
        order: 1;
    }

    .navbar-brand {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .navbar-collapse {
        order: 4;
        width: 100%;
        flex-basis: 100%;
    }

    .nav-underline {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .nav-item {
        flex: 0 0 auto;
        width: 100%;
        text-align: left !important;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
        display: block;
    }

    /* Cart dropdown adjustments */
    #cartContainer {
        width: 85vw;
        max-width: 400px;
        right: 5vw;
        min-width: unset;
    }

    /* Checkout page - single column layout */
    .checkoutContainer {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .checkoutSummary,
    .submitArea {
        grid-column: 1;
        width: 95%;
        padding: 5%;
    }

    /* Account page - single column */
    #accountCtnr {
        grid-template-columns: 1fr;
    }

    #accntNavPane {
        grid-column: 1;
        padding-top: 10px;
    }

    #accountMenu {
        width: 90%;
        margin-bottom: 1rem;
    }

    /* Feedback modal adjustments */
    #feedbackModal {
        width: 90%;
        height: 60%;
        top: 20%;
    }

    /* Care cards responsive */
    #careCtnr {
        flex-direction: column;
        padding: 3%;
    }

    #careCtnr .care-card-div {
        max-width: 100%;
        flex: 1 1 100%;
        grid-template-columns: 1fr;
    }

    #careCtnr .care-card-div .careBtn {
        margin-top: 10px;
    }

    /* Vendor boxes */
    .vendorbox {
        width: 140px;
        height: 70px;
    }

    .vendorName {
        font-size: 0.95rem;
    }

    /* Order button adjustments */
    #sendOrderBtn {
        width: 80%;
        margin: 0 10%;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .navbar-logo {
        max-width: 80px !important;
        min-width: 50px !important;
    }

    .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem;
    }

    #cartContainer {
        width: 90vw;
        right: 2.5vw;
        height: 50vh;
    }

    .checkoutSummary,
    .submitArea {
        width: 98%;
        padding: 3%;
    }

    #feedbackModal {
        width: 95%;
        height: 70%;
        top: 15%;
    }

    .vendorbox {
        width: 120px;
        height: 60px;
    }

    .vendorName {
        font-size: 0.85rem;
    }

    #brands {
        gap: 0.75rem;
        padding: 1rem 0.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile devices */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .delBtn,
    #sendOrderBtn,
    .careBtn,
    #feedback-button,
    #hist-print-button,
    #filtHist {
        min-height: 44px;
        min-width: 44px;
    }

    .vendorbox {
        min-height: 60px;
    }

    #selList li {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}