/* Force everything inside del to inherit the normal price styling */
.woocommerce ul.products li.product .price del * {
    font: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Remove sale badge */
.woocommerce ul.products li.product .onsale {
    display: none !important;
}

.rrx-shop-tab {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #315580;
    border: 1px solid #315580;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.rrx-shop-tab:hover,
.rrx-shop-tab.active {
    background: #315580;
    color: #fff;
    box-shadow: 0 0 18px rgba(49,85,128,.35);
}

@media (max-width: 767px) {
    .rrx-shop-tabs {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Search Bar */
.rrx-shop-search-wrap {
    width: 100%;
    max-width: 1225px;
    margin: 0 auto 20px;
}

#rrx-shop-search {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1px solid rgba(49,85,128,.25);
    border-radius: 14px;
    background: #ffffff;
    color: #000000;
    font-size: 16px !important;
    outline: none;
    transition: all .2s ease;
}

#rrx-shop-search::placeholder {
    color: #777;
}

#rrx-shop-search:focus {
    border-color: #315580;
    box-shadow: 0 0 0 3px rgba(49,85,128,.12);
}

/* Product card styling */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid rgba(49, 85, 128, 0.25) !important;
    border-radius: 18px !important;
    padding: 16px !important;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(49, 85, 128, 0.05) !important;
    transition: all 0.25s ease !important;
    overflow: hidden !important;
    padding-top: 12px !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(49, 85, 128, 0.45) !important;
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.12),
        0 0 20px rgba(49, 85, 128, 0.12) !important;
}

/* Product image */
.woocommerce ul.products li.product img {
    width: calc(100% + 24px) !important;
    max-width: calc(100% + 24px) !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    margin-top: 0 !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Research Use Only */
.rrx-research-only {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 6px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: #6f6f85;
    font-weight: 500;
}

.rrx-research-only span {
    width: 6px;
    height: 6px;
    background: #55d66b;
    border-radius: 50%;
}

/* SOLD OUT badge */
.out-of-stock-badge {
    background: #1f2937 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.out-of-stock-badge::before {
    content: "" !important;
    width: 7px !important;
    height: 7px !important;
    background: #ff3b3b !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* Buttons */
.woocommerce ul.products li.product .button {
    border-radius: 10px !important;
    background: #315580 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
}

/* Price/category spacing */
.woocommerce ul.products li.product .price {
    margin-bottom: 2px !important;
}

.woocommerce ul.products li.product .ct-product-categories,
.woocommerce ul.products li.product .product-categories {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
}

/* Announcement bar */
.rx-announcement-bar{
  width:100%;
  overflow:hidden;
  position:relative;
  z-index:99999;
  background:linear-gradient(270deg,#203247,#3A4D66,#1b2b40,#53749a,#203247);
  background-size:400% 400%;
  animation:rxGradient 12s ease infinite;
  color:#fff;
  padding:10px 0;
  white-space:nowrap;
}

.rx-announcement-wrapper{
  display:flex;
  width:max-content;
  animation:rxMarquee 75s linear infinite;
}

.rx-announcement-track{
  display:flex;
  align-items:center;
  gap:55px;
  padding-right:55px;
  flex-shrink:0;
}

.rx-announcement-track span{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.5px;
}

.rx-announcement-track strong{
  font-weight:800;
}

.rx-circle-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border:2px solid rgba(255,255,255,.95);
  border-radius:50%;
  font-size:11px;
  font-weight:700;
  flex-shrink:0;
}

.rx-announcement-bar:hover .rx-announcement-wrapper{
  animation-play-state:paused;
}

@keyframes rxMarquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@keyframes rxGradient{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

@media(max-width:768px){
  .rx-announcement-bar{ padding:8px 0; }
  .rx-announcement-wrapper{ animation-duration:45s; }
  .rx-announcement-track{ gap:35px; padding-right:35px; }
  .rx-announcement-track span{ font-size:12px; }
  .rx-circle-icon{ width:18px; height:18px; font-size:10px; }
}

/* Cart */
body:has(.wc-block-cart),
body:has(.wp-block-woocommerce-cart){
  background:#f5f6f8 !important;
}

body:has(.wc-block-cart) *,
body:has(.wp-block-woocommerce-cart) *{
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.wc-block-cart-items,
.wc-block-components-sidebar{
  background:#fff !important;
  border:2px solid #3A4D66 !important;
  border-radius:18px !important;
  box-shadow:0 12px 28px rgba(29,47,69,.08) !important;
  overflow:hidden !important;
}

.wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-order-summary{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description{
  display:none !important;
}

.wc-block-components-product-name{
  color:#17385f !important;
  font-weight:800 !important;
  text-decoration:none !important;
}

.rrx-bundle-notice{
  display:inline-block !important;
  margin:8px 0 !important;
  padding:8px 12px !important;
  background:#eef5fb !important;
  border:1px solid #3A4D66 !important;
  border-radius:8px !important;
  color:#17385f !important;
  font-size:13px !important;
  font-weight:700 !important;
}

.wc-block-components-sale-badge,
.wc-block-components-product-badge{
  background:linear-gradient(135deg,#1ca64d,#39d67b) !important;
  color:#fff !important;
  border:none !important;
  border-radius:999px !important;
  padding:5px 10px !important;
  font-weight:800 !important;
}

.wc-block-components-quantity-selector{
  border:1px solid #3A4D66 !important;
  border-radius:10px !important;
  overflow:hidden !important;
}

.wc-block-components-sidebar{
  padding:22px !important;
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block{
  margin:20px 0 !important;
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block .wc-block-components-panel{
  border:2px solid #3A4D66 !important;
  border-radius:14px !important;
  padding:18px !important;
  background:#fff !important;
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block .wc-block-components-panel__button{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
  padding:10px 6px !important;
}

.wc-block-components-totals-item{
  padding:8px 0 !important;
}

.wc-block-components-totals-footer-item{
  margin-top:12px !important;
  padding-top:18px !important;
  border-top:1px solid rgba(58,77,102,.15) !important;
}

.wc-block-cart__submit-button,
.wc-block-components-button{
  background:#1d2f45 !important;
  color:#fff !important;
  border:none !important;
  border-radius:12px !important;
  min-height:54px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
}

/* Mobile cart fix */
@media(max-width:768px){
  .wc-block-components-sidebar::before{
    display:none !important;
    content:none !important;
  }

  .wc-block-components-sidebar{
    padding:22px !important;
    border-radius:18px !important;
  }

  .wp-block-woocommerce-cart-order-summary-coupon-form-block{
    margin:0 0 18px 0 !important;
  }

  .wc-block-components-totals-item{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    padding:12px 0 !important;
  }

  .wc-block-components-totals-item__label,
  .wc-block-components-totals-item__value{
    font-size:16px !important;
    color:#111 !important;
  }
}

/* =========================================
   RUINEDRX SHOP HERO
========================================= */

.rrx-shop-hero{
    width:100%;
    max-width:1225px;
    margin:0 auto 35px;
    padding:0 20px;
    box-sizing:border-box;
}

.rrx-shop-hero h1{
    margin:0;
    font-family:Helvetica,Arial,sans-serif;
    font-size:54px;
    font-weight:900;
    line-height:1;
    color:#fff;
    letter-spacing:-1.5px;
}

.rrx-shop-hero p{
    margin-top:14px;
    max-width:720px;
    font-family:Helvetica,Arial,sans-serif;
    font-size:17px;
    line-height:1.65;
    color:rgba(255,255,255,.72);
}
.rrx-sale-badge{
    position:absolute !important;
    top:10px !important;
    left:10px !important;
    z-index:99999 !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:6px !important;
    padding:7px 10px !important;
    border-radius:4px !important;
    background:#315580 !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1 !important;
    letter-spacing:.3px !important;
    text-transform:uppercase !important;
    box-shadow:0 6px 16px rgba(49,85,128,.28) !important;
}

.rrx-sale-badge::before{
    content:"" !important;
    width:7px !important;
    height:7px !important;
    border-radius:50% !important;
    background:#55d66b !important;
    display:inline-block !important;
}
/* CART PAGE - NEW IN STORE MATCH SHOP GRID */

body.woocommerce-cart .wc-block-grid__product{
    background:#ffffff !important;
    border:1px solid rgba(49,85,128,.25) !important;
    border-radius:18px !important;
    padding:16px !important;
    padding-top:12px !important;
    overflow:hidden !important;

    box-shadow:
        0 10px 25px rgba(0,0,0,.08),
        0 0 0 1px rgba(49,85,128,.05) !important;

    transition:all .25s ease !important;
}

body.woocommerce-cart .wc-block-grid__product:hover{
    transform:translateY(-6px) !important;
    border-color:rgba(49,85,128,.45) !important;
    box-shadow:
        0 18px 35px rgba(0,0,0,.12),
        0 0 20px rgba(49,85,128,.12) !important;
}

body.woocommerce-cart .wc-block-grid__product-image img{
    width:calc(100% + 24px) !important;
    max-width:calc(100% + 24px) !important;
    margin-left:-12px !important;
    margin-right:-12px !important;
    margin-top:0 !important;
    border-radius:12px 12px 0 0 !important;
}

body.woocommerce-cart .wc-block-grid__product-title{
    margin:12px 0 6px !important;
    font-size:16px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    color:#111 !important;
    text-align:left !important;
}

body.woocommerce-cart .wc-block-grid__product-price{
    margin-bottom:8px !important;
    font-size:14px !important;
    font-weight:700 !important;
    text-align:left !important;
}

body.woocommerce-cart .wc-block-grid__product-add-to-cart a{
    width:100% !important;
    border-radius:10px !important;
    background:#315580 !important;
    color:#ffffff !important;
    font-weight:700 !important;
    padding:11px 22px !important;
    text-align:center !important;
}
body.woocommerce-cart .wc-block-grid__product .rrx-research-only{
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
    margin:4px 0 8px !important;
    font-size:11px !important;
    line-height:1 !important;
    color:#6f6f85 !important;
    font-weight:500 !important;
    text-align:left !important;
}

body.woocommerce-cart .wc-block-grid__product .rrx-research-only span{
    width:6px !important;
    height:6px !important;
    background:#55d66b !important;
    border-radius:50% !important;
    display:inline-block !important;
}

body.woocommerce-cart .wc-block-grid__product-image{
    position:relative !important;
}

body.woocommerce-cart .wc-block-grid__product .rrx-sale-badge{
    position:absolute !important;
    top:10px !important;
    left:10px !important;
    z-index:99999 !important;
}
.rrx-soldout-badge{
    position:absolute;
    top:10px;
    left:10px;
    z-index:99999;

    display:inline-flex;
    align-items:center;
    gap:6px;

    padding:7px 10px;

    background:#1f2937;
    color:#fff;

    border-radius:4px;

    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
}

.rrx-soldout-badge::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#ff3b3b;
}
/* Hide the default sad face */
.wc-block-cart__empty-cart__title::before{
    display:none !important;
    content:none !important;
}

/* Empty cart heading */
.wc-block-cart__empty-cart__title{
    font-size:34px !important;
    font-weight:900 !important;
    color:#111 !important;
    text-align:center !important;
    margin-bottom:14px !important;
}

/* Wrapper for subtitle + button */
.rrx-empty-cart-extra{
    max-width:540px !important;
    margin:0 auto 50px !important;
    text-align:center !important;
}

/* Subtitle */
.rrx-empty-cart-extra p{
    margin:0 0 28px !important;
    color:#6f6f85 !important;
    font-size:17px !important;
    line-height:1.7 !important;
}

/* Browse Products button */
.rrx-empty-cart-button{
    display:inline-block !important;
    padding:15px 38px !important;
    border-radius:12px !important;
    background:#315580 !important;
    color:#ffffff !important;
    text-decoration:none !important;
    font-weight:800 !important;
    transition:.25s ease !important;
}

.rrx-empty-cart-button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(49,85,128,.22);
}