/*
 Theme Name:   CheapPinz
 Theme URI:    https://a1webstiepro.com
 Description:  A child theme of Twenty Twenty-One WordPress theme.
 Author:       Maximus McCullough
 Author URI:   https://a1websitepro.com
 Template:     twentytwentyone
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url("../twentytwentyone/style.css");

/* Color Variables - Amazon Official Colors */
:root {
    --amazon-blue: #146EB0;
    --amazon-orange: #FF9500;
    --amazon-header-bg: #131921;
    --amazon-secondary-bg: #232f3e;
    --amazon-tertiary-bg: #f5f5f5;
    --amazon-text-primary: #0F1419;
    --amazon-text-secondary: #565A62;
    --amazon-text-light: #ffffff;
    --responsive--alignwide-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--amazon-tertiary-bg);
}

/* ============= HEADER STYLING ============= */
.site-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    background-color: var(--amazon-header-bg);
}

/* Top Header Bar */
.site-header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 15px;
    gap: 15px;
}

.site-branding {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.site-logo {
    width: auto;
    padding: 0;
    border-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

.site-logo .custom-logo {
    width: 100px;
    height: auto;
    max-width: 100%;
}

.site-title, .site-description {
    display: none;
}

/* Search Bar - Prominent Amazon Style */
.woocommerce-product-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    background-color: var(--amazon-tertiary-bg);
    border-radius: 4px;
    padding: 0;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    background-color: white;
    color: var(--amazon-text-primary);
}

.search-field::placeholder {
    color: var(--amazon-text-secondary);
}

#sglass {
    background-color: var(--amazon-orange);
    width: 45px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 0 4px 4px 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    background-image: url('images/search.png');
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: center;
}

#sglass:hover {
    background-color: #E89B19;
}

/* Account & Cart Section */
.header-right-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.account-section, .mycart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.account-section:hover, .mycart:hover {
    transform: scale(1.05);
}

.account-label {
    font-size: 12px;
    color: var(--amazon-text-light);
}

.cart-contents {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin: 0;
    flex-direction: row;
}

.cart-contents:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f07a";
    font-size: 28px;
    color: white;
}

.cart-contents:hover {
    text-decoration: none;
    opacity: 0.8;
}

.cart-contents-count {
    position: absolute;
    color: var(--amazon-orange);
    right: -8px;
    font-weight: bold;
    font-size: 14px;
    top: -8px;
    background-color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Primary Navigation - Category Menu */
.primary-navigation {
    margin: 0;
    width: 100%;
    background-color: var(--amazon-secondary-bg);
}

.primary-navigation > div > .menu-wrapper {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    max-width: none;
    padding: 0 15px;
    position: relative;
    gap: 5px;
    align-items: center;
}

.primary-navigation .primary-menu-container {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
}

.primary-navigation a:link, 
.primary-navigation a:visited, 
.primary-navigation a:hover {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.primary-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.primary-navigation > div > .menu-wrapper > li > .sub-menu li {
    background-color: var(--amazon-secondary-bg);
}

.catmenu {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: row;
    background-color: var(--amazon-secondary-bg);
    justify-content: flex-start;
    padding: 8px 15px;
    gap: 20px;
}

.catmenu a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 13px;
    transition: color 0.2s ease;
}

.catmenu a:hover {
    color: var(--amazon-orange);
}

.menu-item-description {
    display: none;
}

#menu-categories, #menu-main-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    gap: 10px;
}

#menu-categories li, #menu-main-menu li {
    list-style: none;
}

/* ============= BUTTONS & CTAs ============= */
.site .button:not(:hover):not(:active):not(.has-background):not(#primary-mobile-menu) {
    background-color: var(--amazon-orange);
    border: 1px solid #E89B19;
    color: white !important;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.site .button:hover,
.site .button:active,
button:hover,
button:active,
input[type=submit]:hover,
input[type=submit]:active,
input[type=reset]:hover,
input[type=reset]:active,
.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:active,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:active,
.wp-block-file a.wp-block-file__button:hover,
.wp-block-file a.wp-block-file__button:active {
    background-color: #E89B19;
    border-color: #D48914;
    color: white !important;
}

button.single_add_to_cart_button.button.alt:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f07a";
    font-size: 16px;
    margin-right: 8px;
}

.fbutton {
    background-color: var(--amazon-orange);
    border: 1px solid #E89B19;
    color: white;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fbutton:hover {
    background-color: #E89B19;
    color: white !important;
}

.fbutton a {
    color: white !important;
    text-decoration: none;
}

.add_to_cart_button, 
.single_add_to_cart_button, 
a.button.sa_wc_buy_now_button, 
.sa_wc_buy_now_button_container, 
span.sa_wc_buy_now_button_container {
    width: 100% !important;
    background-color: var(--amazon-orange);
    border: 1px solid #E89B19;
    color: white !important;
    border-radius: 4px;
    padding: 10px 16px !important;
    font-weight: 500;
    text-align: center;
    display: block;
    transition: all 0.2s ease;
}

.add_to_cart_button:hover, 
.single_add_to_cart_button:hover, 
a.button.sa_wc_buy_now_button:hover {
    background-color: #E89B19;
    border-color: #D48914;
}

a.button.sa_wc_buy_now_button:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f04b    ";
    font-size: 16px;
}

/* ============= WOOCOMMERCE PRODUCTS ============= */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    float: none !important;
    width: auto !important;
    min-width: 0;
    box-sizing: border-box;
}

.woocommerce ul.products.columns-2 li.product,
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-4 li.product,
.woocommerce ul.products.columns-5 li.product,
.woocommerce ul.products.columns-6 li.product,
.woocommerce-page ul.products.columns-2 li.product,
.woocommerce-page ul.products.columns-3 li.product,
.woocommerce-page ul.products.columns-4 li.product,
.woocommerce-page ul.products.columns-5 li.product,
.woocommerce-page ul.products.columns-6 li.product {
    width: auto !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

.woocommerce ul.products li.product a {
    text-decoration: none;
    color: var(--amazon-text-primary);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--amazon-text-primary);
    padding: 8px 10px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.woocommerce ul.products li.product .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--amazon-text-primary);
    padding: 8px 10px;
}

.woocommerce ul.products li.product .star-rating {
    padding: 4px 10px;
    font-size: 13px;
}

.woocommerce ul.products li.product .woocommerce-product-rating {
    padding: 4px 10px;
}

.woocommerce ul.products li.product .button {
    margin: 0;
    width: 100%;
    border-radius: 0;
    padding: 8px 10px !important;
    font-size: 13px;
    font-weight: 500;
}

.product-category {
    background-color: white;
    border: 1px solid #ddd;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.product-category:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-category h2 {
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    margin: 0;
}

/* ============= SINGLE PRODUCT PAGE ============= */
.woocommerce div.product {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 0;
}

.woocommerce div.product .product_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--amazon-text-primary);
    margin-bottom: 10px;
}

.woocommerce div.product .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--amazon-text-primary);
    margin: 15px 0;
}

.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 15px;
}

.woocommerce div.product .product_meta {
    font-size: 13px;
    color: var(--amazon-text-secondary);
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.woocommerce div.product form.cart {
    margin: 20px 0;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 15px;
}

.woocommerce div.product form.cart .quantity input {
    width: 60px;
    padding: 5px;
    text-align: center;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--amazon-text-primary);
    line-height: 1.5;
    margin: 15px 0;
}

/* ============= PRODUCT TABS ============= */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 30px;
}

.woocommerce div.product .woocommerce-tabs .nav-tabs {
    background-color: transparent;
    border-bottom: 2px solid #ddd;
    padding: 0;
    margin: 0;
}

.woocommerce div.product .woocommerce-tabs .nav-tabs li {
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs .nav-tabs li a {
    background-color: transparent;
    border: none;
    color: var(--amazon-text-primary);
    padding: 12px 20px;
    margin-right: 5px;
    font-weight: 500;
}

.woocommerce div.product .woocommerce-tabs .nav-tabs li.active a {
    background-color: transparent;
    border-bottom: 3px solid var(--amazon-blue);
    color: var(--amazon-blue);
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    background-color: transparent;
    border: none;
    padding: 20px 0;
}

/* ============= FOOTER STYLING ============= */
.site-footer {
    background-color: var(--amazon-header-bg);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.site-footer, .widget-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    width: 100%;
    background-color: var(--amazon-header-bg);
}

.site-footer a, .site-footer > .site-info, .menu-second-container a {
    color: var(--amazon-text-light) !important;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--amazon-orange) !important;
}

.widget-area .menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area .menu a {
    color: var(--amazon-text-light) !important;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.widget-area .menu a:hover {
    color: var(--amazon-orange) !important;
}

.widget_nav_menu .menu, #theother {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    gap: 30px;
}

.site-footer > .site-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--amazon-secondary-bg);
    font-size: 12px;
    width: 100%;
}

/* ============= RESPONSIVE DESIGN ============= */
@media only screen and (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .header-right-section {
        gap: 15px;
    }
    
    .woocommerce-product-search {
        max-width: 100%;
        margin: 10px 15px;
    }
    
    .search-field {
        font-size: 13px;
    }
    
    .widget_nav_menu .menu, #theother {
        flex-direction: column;
        gap: 15px;
    }
}

@media only screen and (max-width: 481px) {
    .catmenu {
        display: none;
        flex-flow: row wrap;
        justify-content: space-between;
    }
    
    .catmenu a {
        font-size: 12px;
    }
    
    .mycart {
        position: absolute;
        left: 15px;
        top: -15px;
    }
    
    .search-field {
        width: 100%;
        font-size: 13px;
    }
    
    .site-logo .custom-logo {
        width: 80px;
    }
    
    .menu-button-container #primary-mobile-menu .dropdown-icon {
        color: white;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .header-right-section {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .woocommerce-product-search {
        width: 100%;
        margin: 10px 0;
    }
    
    .primary-navigation {
        order: 3;
        width: 100%;
    }
}

/* ============= CART & CHECKOUT STYLING ============= */
.woocommerce-cart table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}

.woocommerce-cart table th, .woocommerce-cart table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.woocommerce-cart table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--amazon-text-primary);
}

.woocommerce .cart-totals {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 0;
}

.woocommerce .cart-totals table {
    width: 100%;
}

.woocommerce .cart-totals table tr td {
    padding: 10px 0;
    border: none;
}

.woocommerce .cart-totals .order-total {
    font-weight: 700;
    color: var(--amazon-text-primary);
    font-size: 16px;
}

/* ============= SIDEBAR & WIDGETS ============= */
.sidebar-primary {
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    margin-top: 30px;
}

.sidebar-primary .widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.sidebar-primary .widget:last-child {
    border-bottom: none;
}

.sidebar-primary .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--amazon-text-primary);
    margin-bottom: 12px;
}

.sidebar-primary ul {
    list-style: none;
    padding: 0;
}

.sidebar-primary ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-primary ul li:last-child {
    border-bottom: none;
}

.sidebar-primary ul a {
    color: var(--amazon-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-primary ul a:hover {
    color: var(--amazon-orange);
}

/* ============= NOTIFICATIONS & MESSAGES ============= */
.woocommerce-message,
.woocommerce-error,
.woocommerce-notice {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 0;
}

.woocommerce-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.woocommerce-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============= MISC STYLING ============= */
.review-edit-cart-link {
    padding: 0 15px 12px;
}

.review-edit-cart-button {
    background-color: var(--amazon-orange);
    border: 1px solid #E89B19;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-edit-cart-button:hover {
    background-color: #E89B19;
}

/* Comments section - hide for cleaner look */
.comments-area,
#reviews,
.woocommerce-tabs .reviews_tab,
.comment-respond,
.comment-list,
#comments,
#respond {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

aside.widget-area section {
    margin: 0;
}

footer#colophon:before {
    display: none;
}

section#block-3 {
    display: none !important;
}

/* ============= BREADCRUMB NAVIGATION ============= */
.breadcrumb-container {
    background-color: white;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--amazon-text-secondary);
}

.breadcrumbs a {
    color: var(--amazon-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--amazon-orange);
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: var(--amazon-text-secondary);
    margin: 0 6px;
}

/* ============= QUICK VIEW MODAL ============= */
.quick-view-btn {
    width: 100%;
    background-color: white;
    border: 1px solid var(--amazon-orange);
    color: var(--amazon-orange);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.quick-view-btn:hover {
    background-color: var(--amazon-orange);
    color: white;
}

.quick-view-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.quick-view-btn i {
    margin-right: 5px;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.quick-view-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quick-view-modal-content {
    background-color: white;
    padding: 0;
    border-radius: 0;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quick-view-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--amazon-text-primary);
    z-index: 10000;
    transition: color 0.2s ease;
}

.quick-view-close:hover {
    color: var(--amazon-orange);
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

.quick-view-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.quick-view-image img {
    max-width: 100%;
    height: auto;
}

.quick-view-details h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--amazon-text-primary);
    margin: 0 0 10px 0;
}

.quick-view-rating {
    margin: 10px 0;
    font-size: 13px;
}

.quick-view-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--amazon-text-primary);
    margin: 10px 0;
}

.quick-view-description {
    color: var(--amazon-text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 15px 0;
}

.quick-view-button button {
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    
    .quick-view-modal-content {
        width: 95%;
        max-width: 100%;
    }
    
    .quick-view-content {
        padding: 20px;
    }
}

/* ============= CART ANIMATIONS ============= */
.cart-contents-count.animated-pulse {
    animation: pulse 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: var(--amazon-orange);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        background-color: var(--amazon-orange);
    }
}

.cart-contents-count.cart-bounce {
    animation: cartBounce 0.6s ease-out;
}

@keyframes cartBounce {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-8px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification i {
    font-size: 18px;
}

@media only screen and (max-width: 481px) {
    .cart-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(200px);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
}

/* ============= PRODUCT FILTERS SIDEBAR ============= */
.woocommerce-sidebar-filters {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0;
}

.woocommerce-sidebar-filters h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--amazon-text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--amazon-orange);
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--amazon-text-primary);
    margin: 0 0 12px 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--amazon-text-primary);
    transition: color 0.2s ease;
}

.filter-checkbox:hover {
    color: var(--amazon-blue);
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--amazon-blue);
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    padding: 4px 0;
}

#price-slider-range {
    margin: 15px 0;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
}

.price-output {
    font-size: 13px;
    color: var(--amazon-text-secondary);
    margin-top: 10px;
}

.price-output span {
    font-weight: 600;
    color: var(--amazon-blue);
}

/* ============= TRUST BADGES ============= */
.trust-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.trust-badge {
    display: inline-block;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--amazon-text-primary);
    transition: all 0.2s ease;
}

.trust-badge:hover {
    background-color: var(--amazon-tertiary-bg);
    border-color: var(--amazon-blue);
    color: var(--amazon-blue);
}

/* ============= RESPONSIVE FILTERS ============= */
@media only screen and (max-width: 768px) {
    .woocommerce-sidebar-filters {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .filter-group {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

/* ============= MAIN WRAPPER (AMAZON BOXED LAYOUT) ============= */
#page {
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Ensure content inside doesn't touch the edges on smaller screens */
#content {
    padding: 0 20px;
}

/* ============= MOBILE LAYOUT FIXES ============= */
@media only screen and (max-width: 768px) {
    /* 1. Reduce the heavy 20px padding from the desktop layout */
    #content {
        padding: 0 10px; 
    }
    
    /* 2. Force the header to wrap its contents */
    .site-header-top {
        flex-wrap: wrap; 
        padding: 10px;
    }
    
    /* 3. Drop the search bar to its own row and make it full width */
    .woocommerce-product-search {
        order: 3; /* Pushes it below the logo and cart */
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    
    /* 4. Keep the cart and account pinned to the top right */
    .header-right-section {
        margin-left: auto; 
    }
}

@media only screen and (max-width: 481px) {
    /* 5. Fix the cart floating out of the header */
    .mycart {
        position: relative !important; 
        left: auto !important;
        top: auto !important;
    }
    
    /* 6. Hide the text labels on mobile so just the icons show (saves space) */
    .account-label {
        display: none; 
    }
    
    /* 7. Shrink the logo slightly more to ensure the cart fits next to it */
    .site-logo .custom-logo {
        width: 90px;
    }
}

/* ============= AMAZON-STYLE MOBILE MENU MODAL (UPDATED) ============= */
@media only screen and (max-width: 768px) {
    /* Hide the redundant floating search icon */
    .menu-modal .wp-block-search,
    .menu-modal .search-button,
    .menu-modal-search {
        display: none !important;
    }

    /* Pull the menu up closer to the close button */
    .menu-modal-inner {
        padding-top: 60px !important; 
        align-items: flex-start !important;
    }

    /* Force the navigation container to be 100% wide */
    .menu-modal-inner nav {
        width: 100% !important;
    }

    /* 1. Kill the massive default gaps and add app-style dividers */
    .primary-navigation > div > .menu-wrapper li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        display: block !important;
    }

    /* Remove the bottom border from the very last item */
    .primary-navigation > div > .menu-wrapper li:last-child {
        border-bottom: none !important;
    }

    /* 2. Make the text bigger, tighter, and remove active underlines */
    .primary-navigation > div > .menu-wrapper li a {
        font-size: 20px !important; /* Increased from default */
        padding: 16px 20px !important; /* Controlled top/bottom padding */
        line-height: 1.4 !important;
        text-decoration: none !important; /* Removes the underline on active pages like 'Glass Vials' */
        display: block !important;
        width: 100% !important;
        font-weight: 500 !important;
        color: #ffffff !important;
    }

    /* Add a subtle hover/tap effect */
    .primary-navigation > div > .menu-wrapper li a:active {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
}

/* ============= CART PAGE BUTTON FIXES ============= */

/* 1. Force Apply Coupon and Update Cart buttons to use Amazon Orange */
.woocommerce-cart .woocommerce table.cart td.actions .button {
    background-color: var(--amazon-orange) !important;
    color: #ffffff !important;
    border: 1px solid #E89B19 !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Hover state for active buttons */
.woocommerce-cart .woocommerce table.cart td.actions .button:hover {
    background-color: #E89B19 !important;
    border-color: #D48914 !important;
    color: #ffffff !important;
}

/* 2. Fix the "Disabled" Update Cart button so it is readable but clearly inactive */
.woocommerce-cart .woocommerce table.cart td.actions .button[disabled] {
    background-color: #e3e6e6 !important; /* Amazon's light grey for inactive elements */
    color: #565959 !important; /* Amazon's dark grey text */
    border: 1px solid #d5d9d9 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

/* 3. Clean up the Coupon input field so it matches the new buttons */
.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
    padding: 10px 15px !important;
    border: 1px solid #888C8C !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: var(--amazon-text-primary) !important;
    min-width: 150px;
}

/* Optional: If that pale green background behind the buttons is bothering you, this removes it */
.woocommerce-cart table.cart td.actions {
    background-color: transparent !important;
}

/* ============= DESKTOP UPDATE CART BUTTON FIX ============= */

/* 1. Styling for the active Update Cart button */
.woocommerce-cart .woocommerce table.cart td.actions button[name="update_cart"] {
    background-color: var(--amazon-orange) !important;
    color: #ffffff !important;
    border: 1px solid #E89B19 !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
}

/* 2. High-contrast styling for the disabled state (before a quantity is changed) */
.woocommerce-cart .woocommerce table.cart td.actions button[name="update_cart"][disabled] {
    background-color: #F0F2F2 !important; /* Amazon's light grey button color */
    color: #0F1111 !important; /* Solid dark text so it doesn't wash out */
    border: 1px solid #D5D9D9 !important;
    opacity: 1 !important; /* This stops it from fading into the blue background */
    cursor: not-allowed !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}