/*
	Theme Name: FHINIX
	Theme URI: https://fhinix-autoparts.com
	Description: Custom WP Theme for FHINIX
	Version: 1.07.2026
	Author: @harmonicnoise
	Author URI: http://www.deusain.com
	Tags: fhinix
*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}
body {
	font-family: 'Oxanium', -apple-system,BlinkMacSystemFont,segoe ui,helvetica neue,sans-serif;
	font-size: clamp(14px, 3vw, 16px);
	line-height: 1.5;
    background: #202225;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size:30px 30px;
	color: var(--light);
	width: 100%;
	position: relative;
}

:root {
	--main-color: #df0819;
	--grey: #45484c;
	--dark: #000;
	--light: #ddd;
	--white: #fff;
}
/* clear */
.clear:before,
.clear:after {
    content:'';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
blockquote {
	background-color: var(--grey);
    color:  var(--dark);
    padding: 20px 20px 2px 20px;
    margin: 0;
    font-size: 16px;
    display: block;
	font-style: italic;
	border-left: 4px solid #1b2e4f;
}
img {
	max-width:100%;
	height: auto;
}
a {
	color: var(--main-color);
	text-decoration:none;
	transition: all .3s ease-in-out;
	-moz-transition: all .3s ease-in-out;
	-webkit-transition: all .3s ease-in-out;
}
a:hover {
	color:  var(--dark);
	transition: all .3s ease-in-out;
	-moz-transition: all .3s ease-in-out;
	-webkit-transition: all .3s ease-in-out;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid  var(--dark);
}

strong {
	font-weight: 700;
}
h1 {font-weight: 700; color: var(--main-color); font-size: clamp(35px, 5vw, 50px); line-height: 1.2;}
h2 {font-weight: 700; color: var(--main-color); font-size: clamp(30px, 4vw, 40px); line-height: 1.2;}
h3 {font-weight: 700; color: var(--main-color); font-size: clamp(24px, 3vw, 30px); line-height: 1.2;}
h4 {font-weight: 600; color: var(--main-color); font-size: clamp(18px, 2vw, 21px); line-height: 1.2;}
h5 {font-weight: 600; color: var(--main-color); font-size: clamp(14px, 1.5vw, 18px); line-height: 1.2;}
h6 {font-weight: 600; color: var(--main-color); font-size: clamp(12px, 1vw, 14px); line-height: 1.2;}

p {font-size: clamp(14px, 3vw, 16px); line-height: 1.5 !important; margin: 0;}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	width:100%;
	margin: 0 auto;
	position:relative;
	z-index: 1;
}

#header {
	position: sticky;
	width: 100%;
	padding: 0;
	margin: 0 auto;
	top: 0;
	z-index: 999;
	height: 80px;
	text-align: center;
	background-color: var(--dark);

	.container {
		width: 100%;
		margin: 0 auto;
		max-width: 960px;
		padding: 0;
		height: 80px;
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;

		.logo {
			display: block;
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			width: 180px;
			top: 25px;
			margin: 0 auto;
			a {
				line-height: 0;
				img {
					height: auto;
					display: block;
				}
			}
		}
		.nav {
			position: relative;
			top: 5px;
			ul {
				margin: 0;
				padding: 0;
				list-style: none;
				li {
					display: inline-block;
					margin-right: 25px;
					position: relative;
					a {
						line-height: 0;
						svg {
							color: var(--white);
							transition: all .2s linear;
						}
						span {
							color: var(--white);
							position: relative;
							top: -6px;
							font-size: 14px;
							left: 5px;
							
							svg {
								position: relative;
								left: 5px;
								top: 6px;
								width: 16px;
							}
						}
						&:hover {
							svg {
								color: var(--main-color);
								transition: all .2s linear;
							}
							span {
								color: var(--main-color);
							}
						}
					}
					
					ul.sub-menu {
						position: absolute;
						visibility: hidden;
						opacity: 0;
					}

					&:hover {
						ul.sub-menu {
							visibility: visible;
							opacity: 1;
							top: 10px;
						}
					}
				}
			}
		}
		.user {
			position: relative;
			top: 5px;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			.search {
				margin-right: 25px;
				a {
					cursor: pointer;
					color: var(--white);
					svg {
						color: var(--white);
					}
				}
			}
			a {
				line-height: 0;
				color: var(--white);
				svg {
					color: var(--main-color);
					transition: all .2s linear;
				}
				&:hover {
					svg {
						color: var(--white);
						transition: all .2s linear;
					}
				}
			}
		}
	}
}

.search-dropdown {
    position:absolute;
    left:0;
    top:85px;
    width:100%;
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:.3s;
    z-index: 9;

    .container {
    	margin: 0 auto;
    	max-width: 960px;

    	form {
		    background-color: var(--white);
		    padding: 0;
		    overflow: hidden;
		    border-radius: 5px;
		    width: 100%;
		    position: relative;
		    float: right;
		    right: 0;
		    max-width: 400px;

		    input[type="search"] {
		    	width: 70%;
		    	font-size: 14px;
		    	color: var(--dark);
		    	height: 36px;
		    	line-height: 36px;
		    	padding-left: 15px;
		    	background-color: transparent;
		    	border: 0;
		    	outline: 0;
		    	float: left;
		    }

		    input::placeholder {
			    color: var(--grey);
			    opacity: 1; /* Supaya tidak transparan di Firefox */
			}

		    button[type="submit"] {
		    	width: 80px;
		    	height: 38px;
		    	line-height: 38px;
		    	text-align: center;
		    	background-color: var(--main-color);
		    	color: var(--white);
		    	text-transform: uppercase;
		    	font-weight: 600;
		    	font-size: 13px;
		    	border: 0;
		    	outline: 0;
		    	float: right;
		    }

		    .search-message {
		    	display: block;
		    	padding: 4px 15px;
		    	font-size: 12px;
		    	color:var(--main-color);
		    }
		}
    }

    &.active {
    	opacity:1;
    	visibility:visible;
    	transform:translateY(0);
    }
}

#home {
	position: relative;
	width: 100%;
	margin: 0 auto;

	.container {
		width: 100%;
		max-width: 980px;
		margin: 0 auto;
		padding: 40px 0;
		position: relative;

		.slider {
			position: relative;
			line-height: 0;
			overflow: hidden;
		}

		.catalog-btn {
			margin: 0 auto;
			display: flex;
            margin-top: 30px;
            justify-content: center;

			a {
				background-color: var(--main-color);
				color: var(--white);
				display: flex;
				align-items: center;
				font-size: 18px;
				line-height: 1;
				padding: 14px 30px;
				border-radius: 5px;

				svg {
					width: 24px;
					height: 24px;
				}

				span {
					margin-left: 10px;
					position: relative;
					text-transform: uppercase;
					font-weight: 700;
					top: 2px;
				}

				&:hover {
					opacity: .8;
				}
			}
		}
	}
}

#catalog {
	position: relative;
	width: 100%;
	margin: 0 auto;

	.container {
		width: 100%;
		max-width: 960px;
		margin: 0 auto;
		padding: 50px 0;
		position: relative;

		.brake {
			position: relative;
			margin-bottom: 40px;

			h3 {
				color: var(--white);
				margin: 0;
				font-size: 18px;
				background-color: var(--grey);
				border-radius: 10px 10px 0 0;
				padding: 12px 20px 35px 20px;
			}

			table {
				width: 100%;
				border-collapse: collapse;
				background-color: var(--white);
				border-radius: 10px;
				position: relative;
				z-index: 1;
				margin-top: -20px;

				tr {
					border-bottom: 1px solid var(--grey);

					td {
						padding: 15px 20px;
						line-height: 1.2;
						color: var(--dark);
						font-size: 14px;
						text-transform: uppercase;
						text-align: left;
						font-weight: 600;

						label {
							display: block;
							font-weight: 400;
							color: var(--grey);
							font-size: 12px;
							padding-bottom: 3px;
						}

						a {
							text-decoration: none;

							&:hover {
								text-decoration: underline;
							}
						}

						&:first-child {
							width: 15%;
						}
						&:nth-child(2) {
							width: 15%;
						}
						&:nth-child(3) {
							width: 15%;
						}
					}
				}
			}

			&.shoe {
				margin-bottom: 0;
			}
		}

		.heading-title {
			margin: 0 auto;
			background-color: var(--grey);
			padding: 20px 20px;
			border-radius: 10px 10px 0 0;
			text-align: center;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			justify-content: space-between;

			.back {
				display: inline-block;

				a {
					display: block;
					padding: 3px 8px 0 8px;
					background-color: rgba(255,255,255, .2);
					border-radius: 5px;
					height: 36px;

					svg {
						color: var(--white);
						position: relative;
						top: 4px;
					}

					&:hover {
						background-color: var(--main-color);
					}
				}
			}
			h1 {
				font-size: 24px;
				text-align: center;
				color: var(--white);
				margin: 0;
				text-transform: uppercase;
			}
			.home {
				display: inline-block;

				a {
					display: block;
					padding: 3px 11px 3px 11px;
					background-color: rgba(255,255,255, .2);
					border-radius: 5px;
					height: 36px;

					svg {
						color: var(--white);
						position: relative;
						top: 4px;
						width: 20px;
					}

					&:hover {
						background-color: var(--main-color);
					}
				}
			}
		}

		article {
			position: relative;
			display: flex;
			flex-wrap: wrap;
			overflow: hidden;
			background-color: var(--white);
			border-radius: 10px;
			padding: 20px;
			gap: 20px;
			margin-top: 5px;

			.icon {
				background-color: var(--main-color);
				padding: 15px;
				border-radius: 7px;
				display: flex;
				flex-wrap: wrap;
				align-items: center;

				svg {
					color: var(--white);
					transform:scale(1.2);
				}
			}

			.content {
				margin-right: auto;
				table {
					width: 100%;
					border-collapse: collapse;
					color: var(--dark);
					min-width: 100%;

					tr {
						position: relative;
						td {
							line-height: 1;
							padding: 3px 0;
							font-size: 15px;
							font-weight: 600;
							text-transform: uppercase;
							span {
								font-weight: 400;
							}

							&:first-child {
								width: 150px;
								color: var(--grey);
								font-size: 13px;
							}
						}
					}
				}
			}

			.price {
				font-size: 18px;
				font-weight: 600;
				color: var(--main-color);
			}
		}
	}
}

.copyright {
	width: 100%;
	margin: 0 auto;
	padding: 30px 0;
	color: var(--grey);
	font-weight: 400;
	position: relative;
	text-align: center;

	&:after {
		background: var(--grey);
		background: linear-gradient(90deg, rgba(113, 128, 141, 0), var(--grey) 50%, rgba(113, 128, 141, 0));
	    content: "";
	    width: 100%;
	    height: 1px;
	    inset: 0 0 auto 0;
	    position: absolute;
	    top: -1px;
	    z-index: 1;
	    left: 0;
	    right: 0;
	    bottom: unset;
	}

	.container {
		width: 100%;
		max-width: 700px;
		margin: 0 auto;
		overflow: hidden;
		position: relative;
		font-weight: 400;
		color: rgba(255,255,255, .7);
		z-index: 2;
		line-height: 1.4;
		font-size: 14px;

		h6 {
			margin: 0 0 20px 0;
			font-size: 12px;
			font-weight: 400;
			color: rgba(255,255,255, .9);
		}
	}
}

#not-found {
	width: 100%;
	height: 100vh;
	max-width: 480px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	color: var(--grey);
	font-weight: 400;
	position: relative;
	text-align: center;
	overflow: hidden;

	svg {
		color: var(--main-color);
	}

	h1 {
		font-size: 60px;
		color: var(--white);
		margin: 20px 0;
	}

	p {
		margin-bottom: 40px;
		color: var(--light);
	}

	a {
		background-color: var(--main-color);
        color: var(--white);
        display: flex;
        align-items: center;
        font-size: 15px;
        line-height: 1;
        padding: 12px 30px;
        border-radius: 5px;
        display: inline-block;

        &:hover {
        	opacity: .8;
        }
	}
}

body.error404 #header,
body.error404 .copyright {
	display: none;
}
body.login #header,
body.login .copyright {
	display: none;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/
@media only screen and (max-width:960px) {
	html {padding-top: 0 !important;}
	.wrapper {margin: 0;}
	#home .container {padding-left: 10px; padding-right: 10px;}
	#header,
	#catalog .container {padding-left: 20px; padding-right: 20px;}
	.footer .container {position: relative; padding-left: 20px; padding-right: 20px;}
}
@media only screen and (max-width:768px) {
	html {padding-top: 0 !important;}
	.search-dropdown .container {padding-left: 20px; padding-right: 20px;}
	#header .container .logo {width: 140px; top: 30px;}
	#header .container .nav ul li {margin-right: 20px;}
	#header .container .nav ul li a span {display: none;}

	#catalog .container .brake {overflow-x: scroll;}
	#catalog .container .brake::-webkit-scrollbar {height: 8px;}
	#catalog .container .brake::-webkit-scrollbar-track {background: var(--grey); border-radius: 10px;}
	#catalog .container .brake::-webkit-scrollbar-thumb {background: var(--main-color); border-radius: 10px;}
	#catalog .container .brake::-webkit-scrollbar-thumb:hover {background: var(--main-color);}
	#catalog .container .brake table {margin-bottom: 5px;}
            
	.copyright {line-height: 1.3; padding-left: 15px; padding-right: 15px;}
	.copyright .container {padding: 0;}
}
@media only screen and (max-width:640px) {
	#catalog .container .brake {margin-bottom: 20px;}
	#catalog .container .brake.shoe {margin-top: 25px; margin-bottom: 0;}
	#catalog .container .heading-title {padding: 10px;}
	#catalog .container .heading-title h1 {font-size: 18px;}
	#catalog .container article {gap: 10px; padding: 10px;}
	#catalog .container article .icon {padding: 6px;}
	#catalog .container article .icon svg {transform: scale(1);}
	#catalog .container article .content {margin-right: 0;}
	#catalog .container article .content table tr td:first-child {width: 130px;}
	#catalog .container article .price {font-size: 16px;}
}
@media only screen and (max-width:480px) {
}
/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background: var(--main-color);
	color:var(--white);
	text-shadow:none;
}
::-webkit-selection {
	background: var(--main-color);
	color:var(--white);
	text-shadow:none;
}
::-moz-selection {
	background: var(--main-color);
	color:var(--white);
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:var(--white);
	border: 0;
	max-width:100%;
	padding:0;
	font-size: 13px;
	font-style: italic;
}
.wp-block-image figcaption {
	position: relative;
	top: -10px;
	line-height: 1.3;
}
.wp-caption.alignnone {
	margin:0 0 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:100%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
p.wp-caption-text {
	font-size: 13px !important;
	line-height: 1.2 !important;
	font-style: italic;
	position: relative;
	padding: 10px 20px !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color: var(--dark) !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background-color: var(--dark);
}
::-webkit-scrollbar-thumb {
  background-color: var(--grey);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--main-color);
}