/*
 Theme Name:   Storefront Child
 Theme URI:    http://example.com/storefront-child/
 Description:  Storefront Child Theme with Light Mode for Samtex
 Author:       Kamil Antoszewski
 Author URI:   http://example.com
 Template:     storefront
 Version:      1.0.0
 Text Domain:  storefront-child
*/

/* Custom Header and Navbar Styles for Samtex s.c. */

:root {
    --primary-color: #4db6ac;
    --secondary-color: #2c3e50;
    --accent-color: #ff9800;
    --light-bg: #ffffff;
    --light-card: #f8f9fa;
    --light-border: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* General Body Styles - apply carefully if theme already has them */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.top-bar {
    background-color: var(--light-card);
    color: var(--text-dark);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-border);
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.search-form {
    position: relative;
}

.search-form input {
    border-radius: 20px;
    padding-left: 20px;
    padding-right: 40px;
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    color: var(--text-dark);
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: transparent;
    border: none;
    color: var(--primary-color);
}

.main-menu {
    background-color: var(--light-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--light-border);
    margin-bottom: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 1rem 1.2rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(77, 182, 172, 0.1);
}

.dropdown-menu {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
}

.dropdown-item {
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Ensure these styles don't conflict with your theme's existing content styles */
.hero-slider {
    margin-top: 20px;
}

.hero-slider img {
    border-radius: 5px;
}

.carousel-caption {
    background-color: rgba(255, 255, 255, 0);
    padding: 20px;
    border-radius: 5px;
    color: var(--text-dark);
}

.category-card {
    border: 1px solid var(--light-border);
    border-radius: 5px;
    transition: all 0.3s;
    margin-bottom: 20px;
    background-color: var(--light-bg);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-card img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    height: 200px;
    object-fit: cover;
}

.category-card .card-body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.product-card {
    border: 1px solid var(--light-border);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 20px;
    background-color: var(--light-bg);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.id-product {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0px 0 5px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #38a89d;
    border-color: #38a89d;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

footer {
    background-color: #f8f9fa;
    color: var(--text-dark);
    padding: 50px 0 0px;
    margin-top: 50px;
    border-top: 1px solid var(--light-border);
}

footer h5,footer h3 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

footer h5::after,footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

footer a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(77, 182, 172, 0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    color: var(--text-dark);
}

.social-icon:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.payment-methods i {
    font-size: 2rem;
    margin-right: 10px;
    color: #6c757d;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid var(--light-border);
    color: var(--text-dark);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icon i {
    margin-right: 0px;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.form-control, .form-select {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.25rem rgba(77, 182, 172, 0.25);
}

.input-group-text {
    background-color: var(--light-card);
    border: 1px solid var(--light-border);
    color: var(--text-dark);
}

.carousel-control-next, .carousel-control-prev {
    filter: none;
}

.badge {
    color: #fff;
}

.size-woocommerce_thumbnail {
    height: 250px !important;
}

.storefront-product-pagination a img {
    /* This rule will override the previous fixed height */
    height: auto !important; 
    width: auto !important; 
}

.py-3 {
    background-color: var(--light-bg);
}

.carousel-control-next:hover {
    background-color: #ffffff1a;
}

.carousel-control-prev:hover {
    background-color: #ffffff1a;
}

.aws-search-form {
    margin-bottom: 0px;
}







#secondary {
    padding: 15px;
    background: #0000000a;
}

@media (max-width: 900px) {
    #secondary {
        padding: 0px;
    }
}

@media (max-width: 768px) {
    #secondary {
        padding: 15px;
    }
}





.wc-block-product-categories-list-item a {
    text-decoration: none!important;
    padding-left: 0px; /* Add initial padding */
    transition: all 0.3s ease; /* Move transition here */
    display: inline-block; /* Add this to ensure smooth transition */
}

.wc-block-product-categories-list-item a:hover {
    color: var(--primary-color)!important;
    padding-left: 5px;
}

.carousel-caption h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1400px) {
.nav-link {
    font-size: 13.5px;
}
.account-mini-menu a {
    font-size: 13.5px;
}
}
@media (max-width:1200px) {
    .nav-link {
    font-size: 13px;
}
    .account-mini-menu a {
    font-size: 13px;
}
}

.mobile-container .col-md-3 {
    display: none;
    width: 0%;
}

@media (max-width:990px) {
    .mobile-container {
        display: flex;
        justify-content: space-around!important;
        align-items: center!important;
        margin-bottom: 10px;
    }
    .mobile-container .col-md-3 {
        display: block;
        width: 200px;
    }
    .woocommerce-cashout-favorite-panel {
        display: none;
        width: 0%;
        height: 0;
    }
    .woocommerce-cashout-favorite-panel .btn {
        display: none;
    }
    .logo-panel {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
    }
}

.badge {
    border-radius: 0!important;
    margin-top: 5px;
}

/* Blog Sidebar Widget Styles */
.blog-widget {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-widget .widget-title {
    background-color: #333;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

.recent-posts-section,
.archive-section {
    padding: 0;
}

.recent-posts {
    padding: 1rem;
}

.post-preview {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview figure {
    float: left;
    margin: 0 1rem 0 0;
    max-width: 100px;
}

.post-preview figure img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.post-content {
    overflow: hidden;
}

.post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.post-excerpt {
    margin: 0.5rem 0 0 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    max-height: 4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

time {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Archive Styles */
.archive-nav {
    padding: 1rem;
}

.archive-details {
    margin: 0;
}

.archive-details summary {
    cursor: pointer;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.archive-details summary:hover {
    background-color: #e9e9e9;
}

.archive-details summary::-webkit-details-marker {
    display: none;
}

.archive-details[open] summary span {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.archive-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.archive-list li {
    margin-bottom: 0.25rem;
}

.archive-list a {
    color: #333;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
}

.archive-list a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-preview {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .post-preview figure {
        float: none;
        margin: 0 0 1rem 0;
        text-align: center;
        max-width: 100%;
    }

    .post-preview figure img {
        width: 100%;
        max-width: 150px;
        height: auto;
    }

    .blog-widget .widget-title {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .recent-posts,
    .archive-nav {
        padding: 0.75rem;
    }

    .archive-details summary {
        padding: 0.5rem;
    }

    .archive-list {
        padding: 0.25rem 0;
    }

    .archive-list a {
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-widget {
        margin-bottom: 1.5rem;
        border-radius: 5px;
    }
}

h3 {
    font-size: 1.25rem;
}