/*
Theme Name: Astra-child
Template: astra
Description: Astra-childs
Version: 1.0.0
Author: Your Name
*/
@import url("../astra/style.css");

body.product-style-default ul.products li.product,
body.product-style-default .related.products ul.products li.product,
body.product-style-default .up-sells.upsells.products ul.products li.product,
body.product-style-default .cross-sells ul.products li.product {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

body.product-style-shadow ul.products li.product,
body.product-style-shadow .related.products ul.products li.product,
body.product-style-shadow .up-sells.upsells.products ul.products li.product,
body.product-style-shadow .cross-sells ul.products li.product {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

body.product-style-border ul.products li.product,
body.product-style-border .related.products ul.products li.product,
body.product-style-border .up-sells.upsells.products ul.products li.product,
body.product-style-border .cross-sells ul.products li.product {
    border: 2px solid #e74c3c;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

body.product-style-minimal ul.products li.product,
body.product-style-minimal .related.products ul.products li.product,
body.product-style-minimal .up-sells.upsells.products ul.products li.product,
body.product-style-minimal .cross-sells ul.products li.product {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.product-style-colorful ul.products li.product,
body.product-style-colorful .related.products ul.products li.product,
body.product-style-colorful .up-sells.upsells.products ul.products li.product,
body.product-style-colorful .cross-sells ul.products li.product {
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.layout-card ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
body.layout-card ul.products li.product {
    width: calc(25% - 18px);
    min-width: 220px;
    max-width: 100%;
    margin: 0;
}

body.layout-list ul.products {
    display: block;
}
body.layout-list ul.products li.product {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
body.layout-list ul.products li.product .woocommerce-LoopProduct-link {
    flex: 0 0 120px;
    height: 120px;
    margin-right: 16px;
}
body.layout-list ul.products li.product img {
    max-height: 100px;
}
body.layout-list .woocommerce-loop-product__title {
    font-size: 1.1rem;
    min-height: 2.2em;
}

@media (max-width: 600px) {
    ul.products[class*="columns-"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    ul.products[class*="columns-"] li.product {
        width: 100% !important;
        margin: 0 !important;
    }
    body.layout-card ul.products,
    body.layout-card ul.products[class*="columns-"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        flex-wrap: unset !important;
    }
    body.layout-card ul.products li.product,
    body.layout-card ul.products[class*="columns-"] li.product {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        float: none !important;
        clear: none !important;
        display: block !important;
    }
    body.layout-card ul.products li.product a.woocommerce-LoopProduct-link {
        height: 120px !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding-bottom: 6px !important;
    }
    body.layout-card ul.products li.product img {
        max-height: 90px !important;
        margin-bottom: 0 !important;
    }
    .woocommerce-loop-product__title {
        font-size: 0.98rem !important;
        min-height: 2.1em !important;
    }
    body.layout-list ul.products li.product {
        flex-direction: column;
        gap: 8px;
    }
    body.layout-list ul.products li.product .woocommerce-LoopProduct-link {
        height: 90px !important;
        margin-right: 0;
    }
    body.layout-list ul.products li.product img {
        max-height: 70px !important;
    }
    .single-product .cart .button,
    .single-product .cart .buy-now-button {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        font-size: 1.1rem !important;
        margin: 0 !important;
        padding: 12px 0 !important;
        display: block !important;
    }
    .single-product .cart .button {
        margin-bottom: 16px !important;
    }
    .single-product .cart .buy-now-button {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .single-product .cart .button-group {
        flex-direction: column;
        gap: 0;
    }
    .single-product .cart .button-group .button {
        margin-bottom: 16px !important;
    }
    #ast-scroll-top {
        bottom: 140px !important;
        z-index: 1000 !important;
    }
}

.single-product .cart .button,
.single-product .cart .buy-now-button {
    min-width: 160px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: var(--ams-btn-radius, 4px);
    padding: 0 24px;
    margin: 0 8px 0 0;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    transition: background 0.2s;
}
.single-product .cart .buy-now-button {
    background: #27ae60;
    color: #fff;
    border: none;
    margin-right: 0;
    margin-left: 8px;
}
.single-product .cart .button:hover,
.single-product .cart .buy-now-button:hover {
    filter: brightness(0.95);
}

.single-product .cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.single-product .cart .quantity {
    margin-bottom: 20px;
}
.single-product .cart .button-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}
.single-product .cart .button-group .button,
.single-product .cart .button-group .buy-now-button {
    margin: 0 !important;
    min-width: 160px;
    flex: 1 1 0;
}

body.layout-card ul.products li.product a.woocommerce-LoopProduct-link {
    height: 240px !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 8px !important;
}
body.layout-card ul.products li.product img {
    margin-bottom: 0 !important;
    max-height: 200px !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    height: 240px !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 8px !important;
}
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
    max-height: 200px !important;
    margin-bottom: 0 !important;
}
@media (max-width: 600px) {
    .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
        height: 120px !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding-bottom: 6px !important;
    }
    .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
        max-height: 90px !important;
        margin-bottom: 0 !important;
    }
}

#mobile-filter-btn {
  display: none;
  position: fixed;
  top: 170px; 
  right: 20px;
  z-index: 9999;
  background: var(--skin-main, #27ae60) !important;
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
#mobile-filter-btn:hover {
  filter: brightness(0.95);
}

body.skin-green  { --skin-main: #27ae60; }
body.skin-red    { --skin-main: #e74c3c; }
body.skin-blue   { --skin-main: #3498db; }
body.skin-purple { --skin-main: #9b59b6; }
body.skin-dark   { --skin-main: #222; }

body.skin-green #mobile-filter-btn { background: #27ae60 !important; }
body.skin-red   #mobile-filter-btn { background: #e74c3c !important; }
body.skin-blue  #mobile-filter-btn { background: #3498db !important; }
body.skin-purple#mobile-filter-btn { background: #9b59b6 !important; }
body.skin-dark  #mobile-filter-btn { background: #222 !important; }

@media (max-width: 768px) {
  .sidebar-main {
    display: none !important;
  }
  #mobile-filter-btn {
    display: block !important;
  }
}
@media (min-width: 769px) {
  #mobile-filter-btn {
    display: none !important;
  }
  #mobile-filter-drawer {
    display: none !important;
  }
}

#mobile-filter-drawer {
  animation: filterDrawerFadeIn 0.2s;
}
@keyframes filterDrawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#mobile-filter-drawer > div {
  box-shadow: 2px 0 16px rgba(0,0,0,0.10);
  border-radius: 0 8px 8px 0;
}
#close-mobile-filter {
  color: #888;
  font-weight: bold;
}
#close-mobile-filter:hover {
  color: #e74c3c;
}

body.skin-green #ast-scroll-top { background: #27ae60 !important; }
body.skin-red   #ast-scroll-top { background: #e74c3c !important; }
body.skin-blue  #ast-scroll-top { background: #3498db !important; }
body.skin-purple#ast-scroll-top { background: #9b59b6 !important; }
body.skin-dark  #ast-scroll-top { background: #222 !important; }

body.skin-green .buy-now-button { background: #27ae60 !important; color: #fff !important; }
body.skin-red   .buy-now-button { background: #e74c3c !important; color: #fff !important; }
body.skin-blue  .buy-now-button { background: #3498db !important; color: #fff !important; }
body.skin-purple .buy-now-button { background: #9b59b6 !important; color: #fff !important; }
body.skin-dark  .buy-now-button { background: #222 !important; color: #fff !important; }

/* Product Card Style: Glass */
body.product-style-glass ul.products li.product {
    background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(230,245,255,0.75) 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
body.product-style-glass ul.products li.product:hover {
    box-shadow: 0 16px 40px 0 rgba(31,38,135,0.22);
    border-color: #b3e5fc;
}

/* Product Card Style: Outline */
body.product-style-outline ul.products li.product {
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 12px;
    box-shadow: none;
    padding: 18px 10px 14px 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.product-style-outline ul.products li.product:hover {
    border-color: #27ae60;
    box-shadow: 0 2px 12px rgba(39,174,96,0.08);
}

/* Product Card Style: Flat */
body.product-style-flat ul.products li.product {
    background: #fafbfc;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 10px 0;
    transition: background 0.2s;
}
body.product-style-flat ul.products li.product:hover {
    background: #f0f2f5;
}

/* Product Card Style: Raised */
body.product-style-raised ul.products li.product {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    border: 1.5px solid #e0e0e0;
    transition: box-shadow 0.2s, border-color 0.2s;
}
body.product-style-raised ul.products li.product:hover {
    box-shadow: 0 16px 48px 0 rgba(0,0,0,0.22);
    border-color: #27ae60;
}

/* Product Card Style: Classic */
body.product-style-classic ul.products li.product {
    background: #fff;
    border: 1.5px solid #bdbdbd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 12px 8px 10px 8px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
body.product-style-classic ul.products li.product:hover {
    border-color: #888;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.cart-container {
  pointer-events: auto !important;
  z-index: 1001 !important;
  position: relative;
}

@media (max-width: 768px) {
  .cart-container {
    min-width: 44px;
    min-height: 44px;
  }
} 