/* ==================================================
   SHOP GRID
   ================================================== */
   a:focus{
       outline-width:0 !important;
   }

.ppwix-shop-grid {
    position:relative;
    z-index:1;
    display: flex;
    flex-wrap:wrap;
    width:100%;
    max-width:100% !important;
    align-items:stretch;
}

.ppwix-shop-item {
    display:flex;
    flex-direction:column;
    height:100%;
    min-height:400px;
    max-height:400px;
    width: 240px;
    background: #fff;
    padding: 15px;
    margin-bottom:20px;
    margin-right:20px;
    box-sizing: border-box;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppwix-shop-item form,
.ppwix-shop-item > a:last-child {
    margin-top:auto;
}

.ppwix-shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.ppwix-shop-image img {
    display: block;
    width: 100%;
    height: auto;
    min-height:150px;
    max-height:150px;
}

.ppwix-shop-title {
    margin: 10px 0 5px;
    text-align:center;
    height:80px;
}

.ppwix-shop-title a{
    font-size:16px !important;
    font-weight:bold;
    color:Red;
    text-transform:uppercase;
    text-decoration:none;
    text-align:center;
}

.ppwix-shop-price {
    font-weight: 600;
    margin-top: 8px;
}

.ppwix-shop-excerpt {
    font-size: 14px;
    line-height: 1.5;
}

/* Add to cart button (grid) */
.ppwix-shop-item button {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform:uppercase !important;
}

.ppwix-shop-item button:hover {
    background: #000;
}

.ppwix-cart-banner {
    background: #1e8e3e;
    color: #fff;
    padding: 12px 18px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.ppwix-shop-layout {
    display: flex;
    gap: 24px;
}

.ppwix-shop-sidebar {
    width: auto;
    flex-shrink:1 !important;
   
}

.ppwix-shop-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppwix-shop-categories li {
    margin-bottom: 8px;
}

.ppwix-shop-categories a {
    text-decoration: none;
    color: #333;
}

.ppwix-shop-categories a.active {
    font-weight: 600;
    color:#1919FF;
}



/* ==================================================
   CART
   ================================================== */

.ppwix-cart {
    max-width: 900px;
    margin: 0 auto;
}

.ppwix-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.ppwix-cart-table thead {
    background: #f5f5f5;
}

.ppwix-cart-table th,
.ppwix-cart-table td {
    padding: 14px;
    text-align: left;
    vertical-align: middle;
}

.ppwix-cart-table td {
    border-top: 1px solid #eee;
}

.ppwix-cart-table input[type="number"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ppwix-cart-table a {
    color: #b00020;
    font-size: 13px;
    text-decoration: none;
}

.ppwix-cart-table a:hover {
    text-decoration: underline;
}

.ppwix-cart button[name="ppwix_update_cart"] {
    margin-top: 15px;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ppwix-cart button[name="ppwix_update_cart"]:hover {
    background: #000;
}

/* ==============================
   CHECKOUT LAYOUT
   ============================== */

.ppwix-checkout {
    max-width: 1100px;
    min-height:550px !important;
    margin: 40px auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ppwix-checkout-summary,
.ppwix-checkout-customer {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.ppwix-checkout-summary {
    flex: 1;
}

.ppwix-checkout-customer {
    flex: 1;
}

/* Ensure checkout form inputs stay inside container */
.ppwix-checkout-customer *,
.ppwix-checkout-customer *::before,
.ppwix-checkout-customer *::after {
    box-sizing: border-box;
}


/* ==============================
   ORDER SUMMARY
   ============================== */

.ppwix-checkout-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppwix-checkout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.ppwix-checkout-thumb img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.ppwix-checkout-details {
    flex: 1;
}

.ppwix-checkout-title {
    font-weight: 600;
    line-height: 1.2;
}

.ppwix-checkout-meta {
    font-size: 13px;
    color: #666;
}

.ppwix-checkout-line-total {
    font-weight: 600;
}

.ppwix-checkout-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
}

/* ==============================
   CUSTOMER FORM
   ============================== */

.ppwix-checkout-customer h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.ppwix-checkout-customer input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.ppwix-checkout-customer input:focus {
    outline: none;
    border-color: #222;
}

.ppwix-checkout-button {
    width: 100%;
    padding: 16px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.ppwix-checkout-button:hover {
    background: #000;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 768px) {
    .ppwix-checkout {
        flex-direction: column;
    }
}


/* ==================================================
   SINGLE PRODUCT PAGE
   ================================================== */

.ppwix-product-page {
    max-width: 1100px;
    margin: 50px auto;
    padding:20px;
}

/* Top layout: image + details */
.ppwix-product-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Image column */
.ppwix-product-image {
    flex: 0 0 45%;
}

.ppwix-product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Right column */
.ppwix-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Text styling */
.ppwix-product-title {
    margin: 0;
    font-size: 28px;
}

.ppwix-product-price {
    font-size: 22px;
    font-weight: 600;
}

.ppwix-product-excerpt {
    font-size: 15px;
    color: #555;
}

/* Full-width description under image */
.ppwix-product-description {
    margin-top: 40px;
    line-height: 1.6;
    width: 100%;
}

/* Add to cart */
.ppwix-product-add-to-cart button {
    margin-top: 20px;
    padding: 14px 26px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.ppwix-product-add-to-cart button:hover {
    background: #000;
}

/* Quantity */
.ppwix-qty-wrap {
    margin-bottom: 12px;
}

.ppwix-qty-wrap label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.ppwix-qty-wrap input[type="number"] {
    width: 80px;
    padding: 6px;
}

/* Mobile */
@media (max-width: 900px) {
    .ppwix-product-top {
        flex-direction: column;
    }

    .ppwix-product-image,
    .ppwix-product-details {
        width: 100%;
    }
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 768px) {
    .ppwix-product-page {
        flex-direction: column;
    }
}

/* ==================================================
   HIDE THEME META ON PRODUCT PAGES
   (Scoped & Minimal — no header/footer damage)
   ================================================== */

body.single-ppwix_product .wp-block-post-title,
body.single-ppwix_product .wp-block-post-date,
body.single-ppwix_product .wp-block-post-author,
body.single-ppwix_product .wp-block-post-author-name,
body.single-ppwix_product .wp-block-post-author-biography,
body.single-ppwix_product .wp-block-post-navigation-link {
    display: none !important;
}

/*=====================================================
    ADD TO CART NOTICE
=====================================================*/

.ppwix-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #4e8400;
    color: #fff;
    padding: 20px 28px;
    border-radius: 8px;

    font-size: 16px;
    font-weight: 600;
    text-align: center;

    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    z-index: 99999;

    animation: ppwixNoticeFade 2.5s ease forwards;
}
/* Ensure checkmark icon is white */
/* Force WordPress emoji SVGs to white inside notice */
.ppwix-notice img.emoji {
    filter: brightness(0) invert(1);
}
@keyframes ppwixNoticeFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }
}

/*=========================================================
    SHOPPING CART ICON IN WP NAVIGATION
=========================================================*/
/* Mini cart wrapper */
.ppwix-mini-cart-wrap {
    position: fixed;
    top: 80px;     /* move it down */
    right:0px;
    z-index: 99999999999;
}

/* Cart icon */
.ppwix-mini-cart-toggle {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ppwix-mini-cart-toggle img.emoji{
   height:2em !important;
   width: 2em !important;
}

.ppwix-cart-count{
    background-color:red;
    padding:0 3px;
    border-radius:100%;
}

/* Dropdown */
.ppwix-mini-cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 280px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    padding: 15px;
}

/* Mini cart dropdown (click-based) */
.ppwix-mini-cart-dropdown {
    display: none;
}

.ppwix-mini-cart-wrap.is-open .ppwix-mini-cart-dropdown {
    display: block;
}


.ppwix-mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.ppwix-mini-cart-items li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ppwix-mini-cart-actions {
    display: flex;
    gap: 10px;
}

.ppwix-mini-cart-actions a {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: #222;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

/* Mini cart items */
.ppwix-mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.ppwix-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ppwix-mini-cart-thumb img,
.ppwix-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background: #eee;
}

.ppwix-mini-cart-details {
    flex: 1;
    font-size: 13px;
}

.ppwix-mini-cart-title {
    font-weight: 600;
    line-height: 1.2;
}

.ppwix-mini-cart-meta {
    font-size: 12px;
    color: #666;
}

.ppwix-mini-cart-line-total {
    font-size: 13px;
    font-weight: 600;
}

/* Cart total */
.ppwix-mini-cart-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

/*=========================================================
    EMPTY CART CSS
=========================================================*/
.ppwix-checkout-empty {
    max-width: 500px;
    min-height:550px;
    margin: 60px auto;
    text-align: center;
}

/*=================================================
    ERROR STYLING
=================================================*/
.ppwix-checkout-errors {
    background: #ffecec;
    border: 1px solid #e0b4b4;
    color: #9f3a38;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.ppwix-checkout-errors ul {
    margin: 8px 0 0;
    padding-left: 18px;
}


/*==================================================
    MISC
==================================================*/
#ppwix-card-element {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 12px;
}

#ppwix-card-errors {
    color: #b00020;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Stripe card wrapper */
#ppwix-card-element {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 12px;
}

/* Label */
.ppwix-card-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Error message */
#ppwix-card-errors {
    color: #b00020;
    font-size: 14px;
    margin-bottom: 10px;
}
.ppwix-checkout-success {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 6px;
}

.ppwix-checkout-success h2 {
    margin-top: 0;
}
hr{
    height:2px;
    background-color:#000;
    opacity:0.7;
    width:100%;
}

.ppwix-badge {
    display:inline-block;
    padding:4px 10px;
    border-radius:12px;
    font-size:12px;
    font-weight:600;
}
.ppwix-badge-success {
    background:#d1fae5;
    color:#065f46;
}
.ppwix-badge-error {
    background:#fee2e2;
    color:#991b1b;
}

/* ==================================================
   MOBILE SHOP FIX – FORCE ASIDE TO STACK
   ================================================== */
@media (max-width: 768px) {

    /* Force layout to stack */
    .ppwix-shop-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Kill ALL theme behavior on aside */
    .ppwix-shop-layout > aside.ppwix-shop-sidebar {
        all: unset;
        display: block;
        width: 100% !important;
        margin-bottom: 24px;
    }

    /* Reapply needed styles after all:unset */
    .ppwix-shop-layout > aside.ppwix-shop-sidebar {
        box-sizing: border-box;
    }

    /* Grid below sidebar */
    .ppwix-shop-layout > .ppwix-shop-grid {
        width: 100% !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Full-width product cards */
    .ppwix-shop-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        min-height:420px !important;
        max-height: none;
    }

    /* Let images scale naturally */
    .ppwix-shop-image img {
        min-height: auto;
        max-height: none;
    }

    /* Prevent title clipping */
    .ppwix-shop-title {
        height: auto;
    }
}

/* ==================================================
   RESPONSIVE PRODUCT GRID TUNING
   ================================================== */

/* Phones – full width cards */
@media (max-width: 425px) {
    .ppwix-shop-item {
        width: 100% !important;
        max-width: 100% !important;
        min-height:400px !important;
        margin-right: 0 !important;
    }
}

/* Small tablets / large phones – 2-up (40%) */
@media (min-width: 480px) and (max-width: 768px) {
    .ppwix-shop-grid {
        justify-content: space-between;
    }

    .ppwix-shop-item {
        width: 40% !important;
        max-width: 40% !important;
        margin-right: 0 !important;
    }
}

/* Tablets / small laptops – 3-up grid */
@media (min-width: 769px) and (max-width: 1024px) {

    .ppwix-shop-grid {
        justify-content: space-between;
    }

    .ppwix-shop-item {
        width: 30% !important;
        max-width: 30% !important;
        margin-right: 0 !important;
    }
}
/* Tablets / small laptops – 3-up grid */
@media (min-width: 769px) and (max-width: 1024px) {

    .ppwix-shop-grid {
        justify-content: space-between;
    }

    .ppwix-shop-item {
        width: 30% !important;
        max-width: 30% !important;
        margin-right: 0 !important;
    }
    
    
}
@media (max-width:768px){
    .ppwix-product-image img{
        width:50% !important;
    }
}

@media (max-width:425px){
    .ppwix-product-image img{
        width:100% !important;
    }
}

