/*
Theme Name: epp-rnew-shop
Theme URI: https://example.com/
Author: yarec.k@gmail.com
Author URI: https://example.com/
Description: A simple and modern theme for WooCommerce shops.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, responsive-layout, custom-menu, featured-images, translation-ready
Text Domain: epp-rnew-shop
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
body {
	font-family: sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
	margin: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1em;
}

p {
	margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
a {
	color: #042e4c !important;
}

a:hover,
a:focus,
a:active {
	color: #224c6a;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 5px;
}

input[type="submit"] {
	background-color: #0073aa;
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 10px 20px;
	cursor: pointer;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
	background-color: #00a0d2;
}

/* Custom style for the login button to ensure white text on blue background */
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
    background-color: #042e4c; 
    color: #fff;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background: #f9fbfa;
}

.header-middle-bar .row .col h1 {
    color: #042e4c;
}

/* Adjustments for Bootstrap integration */
.header-search .woocommerce-product-search {
    display: flex;
}

.header-search .search-field {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.header-search .search-submit {
    background-color: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-search .search-submit:hover {
    background-color: #005a87;
}

.site-branding img {
    max-height: 50px; /* Adjust logo size as needed */
    width: auto;
}

/* WooCommerce cart icon adjustment */
.header-cart .cart-contents .count {
    font-size: 0.7em; /* Smaller badge for cart count */
}

/* Custom styles for logo and text alignment */
.header-title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allow content to define width */
    white-space: nowrap; /* Prevent text wrapping */
}

.header-title-centered {
    margin: 0; /* Remove default h1 margin */
}

/* Ensure WordPress menu items are styled correctly with Bootstrap */
.main-navigation .navbar-nav .nav-item .nav-link {
    color: #fff !important;
    padding: 0.5rem 1rem;
}

.main-navigation .navbar-nav .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.main-navigation .navbar-nav .nav-item.dropdown .dropdown-menu {
    background-color: #343a40; /* Darker dropdown background */
}

.main-navigation .navbar-nav .nav-item.dropdown .dropdown-item {
    color: #fff !important;
    padding: 0.5rem 1rem;
}

.main-navigation .navbar-nav .nav-item.dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
}

/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.site-main {
	padding: 20px;
    max-width: 1200px; /* Max width for larger screens */
    width: 100%; /* Make it fluid */
    display: block;
    margin: 0 auto;
	background-color: #FFFFFF;
}

.content-area {
	background: #f9fbfa;
}

.site-content {
	background: #f9fbfa;
}

.site-footer {
	padding: 20px;
	border-top: 1px solid #eee;
	text-align: center;
	background: #f9fbfa;
}

.site-title {
	font-size: 2em;
	margin: 0;
}

.site-description {
	margin: 0;
}

.searchform {
	margin-bottom: 20px;
}

/* Custom styles for product title */
.woocommerce-loop-product__title {
    font-weight: bold;
    color: #000000;
    font-size: 18px;
}

/* Custom styles for product description */
.product-description {
    color: #000000;
}

/* Custom styles for product price */
.woocommerce ul.products li.product .price {
    color: #000000;
    font-weight: bold;
    font-size: 18px;
}

/* Custom styles for product image fixed size */
.product-image-centered {
    width: 100%; /* Make it fluid */
    height: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Max width for larger screens */
    max-height: 200px; /* Max height for larger screens */
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Custom style for not displaying the description in Cart*/
.wc-block-cart .wc-block-components-product-metadata__description {
    display: none !important;
}

/* Only hide the description if it is inside the WooCommerce Checkout block */
.wc-block-checkout .wc-block-components-product-metadata__description {
    display: none !important;
}


/* Media Queries for Responsiveness */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .site-main {
        padding: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .site-main {
        padding: 20px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .site-main {
        padding: 25px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .site-main {
        padding: 30px;
    }
}

/* The space between logo and menu on mobile */
/* Mobile First */
.custom-logo-link {
    display: inline-block; /* Essential for vertical margins to work */
    margin-bottom: 15px;
}

/* Tablet */
@media (min-width: 768px) {
    .custom-logo-link {
        margin-bottom: 0px;
    }
}

/* Tpay BLIK mobile fix */
@media (max-width: 450px) {
    .tpay-blik0 .tpay_blik-payment-form.active {
        border: none !important;
    }
    .tpay-blik0 .tpay_blik-payment-form .top .spacer {
        width: 0px !important;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .custom-logo-link {
        margin-bottom: 15px;
    }
}