/* Medium */
@font-face {
    font-family: 'Sharp Grotesk';
    src: url('../fonts/sharp_grotesk/Medium25.woff2') format('woff2'),
         url('../fonts/sharp_grotesk/Medium25.woff') format('woff');
    font-weight: 500; 
    font-style: normal;
}

/* SemiBold */
@font-face {
    font-family: 'Sharp Grotesk';
    src: url('../fonts/sharp_grotesk/SemiBold25.woff2') format('woff2'),
         url('../fonts/sharp_grotesk/SemiBold25.woff') format('woff');
    font-weight: 600; 
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'Sharp Grotesk';
    src: url('../fonts/sharp_grotesk/Bold25.woff2') format('woff2'),
         url('../fonts/sharp_grotesk/Bold25.woff') format('woff');
    font-weight: 700; 
    font-style: normal;
}

/* Black Italic */
@font-face {
    font-family: 'Sharp Grotesk';
    src: url('../fonts/sharp_grotesk/BoldItalic15.woff2') format('woff2'),
         url('../fonts/sharp_grotesk/BoldItalic15.woff') format('woff');
    font-weight: 900; 
    font-style: italic;
}

/* SemiBold 20 */
@font-face {
    font-family: 'Sharp Grotesk Semi';
    src: url('../fonts/sharp_grotesk/SemiBold20.woff2') format('woff2'),
         url('../fonts/sharp_grotesk/SemiBold20.woff') format('woff');
    font-weight: 600; 
    font-style: normal;
}

/* GENERAL */


/* TYPOGRAPHY SETUP */

/* Default */
body, p, li, span, div, a {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
}

/* Bold */
b, strong {
    font-weight: 700;
}

/* Main Headings */
h1, h2, .homepage-group-title, .site-name {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 600; 
    text-transform: uppercase;
}

/* Product Page Heading */
div.p-detail-inner-header > h1 {
    font-size: 42px;
    font-style: italic !important;
}

/* Subheadings & Product Names */
h3, h4, h5, h6, .pageElement__heading span {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 600;
}

/* Product Titles in the grid */
.product .name span {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 600;
    font-size: 1.8rem;
    font-style: italic;
    text-transform: uppercase;
}

/* Product Prices */
.price-final strong {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 500;
    font-size: 1.25rem;
}

.price-final-holder {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 700;
}

/* Navigation Menu items */
#navigation .menu-level-1 a,
#navigation .menu-level-1 a b,
.navigation-in a,
.navigation-in a b {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 12px;
}

.menu-helper,
.menu-helper span,
.menu-helper a {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 12px;
}

.navigation-in>ul>li>a:hover,
.navigation-in a:hover,
.menu-helper span:hover,
.menu-helper a b:hover {
    color: var(--color-secondary);
}

.top-nav-button-login:hover,
a.toggle-window:hover::before {
    color: var(--color-secondary);
}

/* CTA Buttons */
.btn {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 50px !important;
    padding: 10px 24px;
}

/* Tag */
.rfp-tag {
    font-family: 'Sharp Grotesk', sans-serif;
    font-weight: 900;
    font-style: italic;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    padding: 4px 8px;
    display: inline-block;
}

/* Eye Catcher */
.rfp-eye-catcher {
    font-family: 'Sharp Grotesk', sans-serif;
    font-weight: 700;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    padding: 6px 12px;
    display: inline-block;
    transform: rotate(-3deg);
    border: 2px solid #fff;
}

/* Flags */
.flags .flag-tip,
.flag.flag-new {
    background-color: #B30F0E !important;
    color: #ffffff !important;
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 700 !important; /* Bold looks best for small badges */
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
}

.flags .flag {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* Back To Store */

.toggle-window-arr span,
.toggle-window span {
    display: none !important;
}



/* COLOR SETUP */

.btn.btn-cart, .btn.btn-conversion, a.btn.btn-cart, a.btn.btn-conversion {
    color: #000;
}

.btn.btn-cart:hover, .btn.btn-conversion:hover, a.btn.btn-cart:hover, a.btn.btn-conversion:hover {
    color: #fff;
}

/* CART BUTTONS */

/* 1. Turn the form into a Flexbox row */
.discount-coupon .input-group {
    display: flex !important;
    align-items: stretch !important; /* This is the magic word that forces equal heights */
    justify-content: flex-end; /* Aligns them nicely to the right */
    gap: 10px; /* The space between the input and the button */
}

/* 2. Strip away Shoptet's fixed heights so Flexbox can take control */
.discount-coupon .input-group .form-control.lg,
.discount-coupon .input-group .btn.btn-lg {
    height: auto !important; 
    min-height: 55px !important; /* Pick a nice, clickable height for both */
    margin: 0 !important; /* Removes any hidden margins pushing them out of whack */
    box-sizing: border-box !important;
}

/* 3. Center the text perfectly inside the button */
.discount-coupon .input-group .btn.btn-lg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; 
}

/* 1. Hide the original long text */
button[data-testid="buttonSubmitDiscountCoupon"] {
    font-size: 0 !important; 
}

/* 2. Inject the new short text */
button[data-testid="buttonSubmitDiscountCoupon"]::before {
    content: "P\0158IDAT" !important;
    font-size: 12px !important; 
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 600 !important; 
    letter-spacing: 0.05em; 
    margin-right: -0.05em !important; /* <--- THIS IS THE MAGIC FIX */
    color: #000 !important; 
}

.btn-conversion.add-to-cart-button {
    display: flex !important;
    align-items: center !important; /* Centers everything vertically */
    justify-content: center !important; /* Centers everything horizontally */
    gap: 8px !important; /* Adds a clean, precise space between the icon and text */
}

.btn-conversion.add-to-cart-button::before {
    margin: 0 !important;
    line-height: 1 !important; /* Stops the icon's invisible box from pushing it down */
    display: block !important; 
}

.cart-inner .btn {
    border-radius: 0 !important;
}

.cart-inner .btn.btn-cart, 
.cart-inner .btn.btn-conversion, 
.cart-inner a.btn.btn-cart, 
.cart-inner a.btn.btn-conversion,
.cart-inner .btn.btn-cart *, 
.cart-inner .btn.btn-conversion *, 
.cart-inner a.btn.btn-cart *, 
.cart-inner a.btn.btn-conversion * {
    border-radius: 50px !important;
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-size: 14px;
    padding: 14px 20px;
    line-height: inherit;
    text-align: center;
}


#formSearchForm > fieldset > button {
    border-radius: 0px !important;
}

/* LAYOUT */

.products-block>div .p .p-bottom>div .p-tools .btn.btn-primary {
    font-size: 12px;
    line-height: 24px;
}

.products-block>div .p .p-bottom>div .p-tools {
    padding: 12px 0 16px 0;
}

.products-block>div .p .p-bottom>div .p-tools .btn {
    width :fit-content;
}

.products-block>div .p .p-in {
    padding-top: 12px;
}

/* Forces product images in the grid into a 3:4 portrait ratio */
.product .p .image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 !important; 
    object-fit: cover !important; 
    object-position: center top !important; 
}

/* RESPONSIVE */

@media (min-width: 768px) {
    .products-block>div .p .name {
        height: fit-content;
    }
}

/* HIDE */

/* sorting filter */
#category-header > div {
    display: none;
}

.p-to-cart-block {
    border:none;
}

div.p-param-block {
    display: none;
    border: none;
}

.p-basic-info-block {
    border: none;
    display: none;
}

#cart-widget > div > button > span {
    display: none;
}




/* 1. Reset Shoptet's messy floats and fixed widths */
.p-detail-inner .p-to-cart-block,
.p-detail-inner .p-final-price-wrapper,
.p-detail-inner .p-add-to-cart-wrapper,
.p-detail-inner .add-to-cart {
    float: none !important;
    width: auto !important;
    display: flex !important;
}

/* 2. Main Container: Row layout by default */
.p-detail-inner .p-to-cart-block {
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important; /* Price on left, Cart on right */
    gap: 15px !important;
    margin: 16px 0 16px 0 !important; 
    border-bottom: 1px solid #e7e7e7 !important;
    border-top: 1px solid #e7e7e7 !important;
}

/* 3. Price Wrapper */
.p-detail-inner .p-final-price-wrapper {
    align-items: center !important;
    margin-bottom: 0 !important;
}

/* 4. Cart Wrapper (Quantity + Button) */
.p-detail-inner .add-to-cart {
    align-items: stretch !important;
    justify-content: flex-end !important;
    gap: 10px !important; /* Adds perfect spacing between amount and button */
    padding-top: 0 !important;
}

/* 5. Mobile Layout: Stack into a right-justified column when there's no room */
@media (max-width: 575px) {
    .p-detail-inner .p-to-cart-block {
        flex-direction: column !important;
        align-items: flex-end !important; /* Pushes both price and buttons to the right */
        gap: 20px !important; /* Slightly larger gap when stacked */
    }
    
    .p-detail-inner .p-final-price-wrapper {
        justify-content: flex-end !important;
    }
}

/* Fix for the 992px - 1200px breakpoint squeeze */
@media (min-width: 992px) and (max-width: 1199px) {
    .p-detail-inner .p-to-cart-block {
        flex-direction: column !important;
        align-items: flex-end !important; /* Pushes everything to the right */
        gap: 15px !important;
    }
    
    .p-detail-inner .p-final-price-wrapper {
        justify-content: flex-end !important; /* Ensures the text itself aligns right */
    }
}

/* Container for the new buttons */
.custom-variant-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* The individual size buttons styled to match your CTA pills */
.variant-btn {
    font-family: 'Sharp Grotesk', sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    border-radius: 50px; /* Pill shape from your guideline */
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.variant-btn:hover {
    background: #f5f5f5;
}

/* The active/selected state */
.variant-btn.active {
    background: #000;
    color: #fff;
}