body {
    font-family: Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    color: #1f1f1f;
}

/* TOP BAR */
.topbar {
    position: sticky;
    top: 105px;
    z-index: 1000;
	
    background-color: #3A79AA;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-right: 14px;
    transition: 0.2s;
}

.topbar a:hover {
    color: #dcecff;
}

.topbar input {
    padding: 8px 10px;
    width: 240px;
    border: 1px solid #cfd9e2;
    outline: none;
    border-radius: 3px;
    font-family: Verdana, sans-serif;
}

/* CARD BASE */
.card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
}

.category-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #3A79AA;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.category-card:hover {
    background-color: #3A79AA;
    color: #fff;
    transform: translateY(-2px);
}

/* LAYOUT */
.layout {
    display: flex;
    align-items: flex-start; 
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #ddd;

    position: sticky;
    top: 160px; /* header (105) + topbar (~55) */

    height: calc(100vh - 160px);
    overflow-y: auto;

    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.sidebar a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.sidebar a:hover {
    background-color: #3A79AA;
    color: #fff;
}

.sidebar a.active {
    background-color: #3A79AA;
    color: #fff;
    font-weight: bold;
    border-left: 4px solid #1f4f7a;
}
.sidebar a:hover:not(.active) {
    background-color: #eef5fb;
    color: #3A79AA;
}


/* PRODUCT GRID */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    align-content: start;
}

/* PRODUCT CARD */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    transition: 0.15s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.product-card div {
    margin-top: 8px;
    font-size: 13px;
    color: #222;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* PRODUCT PAGE */
.product-container {
    max-width: 1300px;
    margin: 20px auto;
    display: flex;
    gap: 30px;
    padding: 25px;
    background: #fff;
    min-height: 500px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-image {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.product-hover-img {
    transition: opacity 0.2s ease;
}
.product-details {
    flex: 1;
    background: #fff;
}

.product-details h1 {
    background-color: #3A79AA;
    color: #fff;
    padding: 12px 14px;
    display: inline-block;
    font-size: 22px;
    margin-top: 0;
}

/* OPTIONS */
.option-buttons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.2s;
}

.option-button:hover {
    border-color: #3A79AA;
    background: #eef5fb;
}

.option-button.active {
    background-color: #3A79AA;
    color: #fff;
    border-color: #3A79AA;
}

/* PRODUCT IMAGE WRAPPER */
.product-image-wrap {
    position: relative;
    overflow: hidden;
}


/* CATEGORY TAGS */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.category-tag {
    background: #eef5fb;
    border: 1px solid #c9dcec;
    padding: 4px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3A79AA;
    font-weight: bold;
}

/* GLOBAL LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1100;

    background-color: #3A79AA;
    height: 105px;
    background-image: url("images/Vingcard.png");
    background-repeat: no-repeat;
    background-position: right;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* FOOTER */
footer {
    background-color: #3A79AA;
    color: #fff;
    margin: auto;
    padding: 12px;
    text-align: center;
}
.message {
    padding: 12px;
    margin: 10px 0;
    background: #f5f5f5;
    border-left: 4px solid #3A79AA;
    border-radius: 4px;
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
}

.message.error {
    background: #ffeaea;
    border-left-color: #cc0000;
    color: #900;
}
/* END OF LIFE RIBBON */
.product-eol-ribbon{
	position: absolute;
    top: 23px;
    right: -35px;
    background: #3A79AA;
    color: #ffffff;
    padding: 2px 25px;
    font-size: 3px;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}
.eol-ribbon {
    position: absolute;
    top: 14px;
    right: -50px;
    background: #3A79AA;
    color: #ffffff;
    padding: 15px 45px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* Coming Soon RIBBON */
.product-cs-ribbon{
	position: absolute;
    top: 25px;
    right: -35px;
    background: #3A79AA;
    color: #ffffff;
    padding: 2px 25px;
    font-size: 3px;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}
.cs-ribbon {
    position: absolute;
    top: 14px;
    right: -50px;
    background: #3A79AA;
    color: #ffffff;
    padding: 15px 45px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}
.header-container{
	
    display: flex;
    justify-content: left;
    align-items: left;
    width: 75%;
}
.search-container {
    display: flex;
    justify-content: right;
    align-items: right;
    width: 25%;
}
.cat-count {
    float: right;
    color: #888;
    font-size: 12px;
}
.sidebar a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.sidebar a.active .cat-count {
    background: #3A79AA;
    color: #fff;
}

.submenu a:hover .cat-count {
    color: inherit;
    background: transparent;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    background: #eee;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background: #3A79AA;
    color: white;
}

.section-title {
    grid-column: 1 / -1;
    width: 100%;
    margin: 20px 0 10px;
    font-weight: bold;
    font-size: 18px;
}

/* hide toggle button by default (desktop) */
.menu-toggle {
    display: none;
}
.report-container {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.report-btn {
    background:#d9534f;
    color:white;
    padding:8px 12px;
    border:none;
    border-radius:6px;
    cursor:pointer;    
	width: 100%;
    position: sticky;
    bottom: 0;
}

.report-btn:hover {
    background:#c9302c;
}

.menu-group {
    border-bottom: 1px solid #eee;
}

.submenu {
    background: #f8fbff;
    padding-left: 10px;
}

.submenu a {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: #3A79AA;
}

.submenu a:hover {
    background: #e6f0fa;
}

.submenu a.active-sub {
    background: #3A79AA;
    color: #fff;
    font-weight: bold;
}

.sidebar a.active {
    background-color: #3A79AA;
    color: #fff;
    font-weight: bold;
}

.submenu a.active-sub .cat-count {
    color: inherit;
    background: transparent;
}

@media (max-width: 768px) {

    .layout {
        flex-direction: column; 
    }

    .content {
        width: 90%;
    }

    .layout,
    .product-container {
        flex-direction: column;
    }
	header {
		height: 40px;
		background-size: contain;
		position: none;
		background-repeat: no-repeat;
		background-position: center;
	}
	.header-container{
        display: none;
		top:30px;
	}
	.search-container{
		width:80%;
		z-index: 1200;
	}
	.product-container {
		flex-direction: column;
		padding: 15px;
	}

	.product-image img {
		max-height: 260px;
	}

	.topbar {
		top: 30px;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 10px;
		position: sticky;
	}
    /*  SHOW toggle button on mobile */
    .menu-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: #3A79AA;
		position: sticky;
		top: 85px;
		z-index: 1200;
       color: #fff;
        border: none;
        font-weight: bold;
        cursor: pointer;
        text-align: left;
		font-size: 20px;
    }

    /*  FORCE sidebar hidden */
    .sidebar {
        display: none !important;
        width: 100%;
        height: auto;
        position: static;
        top: 0;
        border-right: none;
    }

    .sidebar.open {
        display: block !important;
		position: static;
		top:140px;
		z-index: 1200;
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
    .product-details h1 {
        font-size: 20px;
        padding: 10px;
    }

    .product-details h3 {
        font-size: 18px;
    }
	.product-card {
		padding: 10px;
		border-radius: 10px;
	}

	.product-card img {
		height: 120px;
	}

	.product-card div {
		font-size: 14px;
	}

	.option-buttons {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.option-button {
		padding: 12px;
		font-size: 14px;
	}

    .product-card {
        padding: 18px;
    }
	.topbar input {
		width: 100%;
		font-size: 16px;
		padding: 12px;
	}
	.category-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
		padding: 15px;
	}

	.category-card {
		padding: 15px;
		font-size: 13px;
	}
	button,
	.option-button,
	.report-btn {
		min-height: 44px;
	}
	
    #optionDropdown {
        width: 100%;
        padding: 14px;
        font-size: 16px;

        border: 1px solid #cfd9e2;
        border-radius: 8px;

        background-color: #fff;
        color: #1f1f1f;

        appearance: none;       
        -webkit-appearance: none;
        -moz-appearance: none;

        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

}
