/* She Designs - product page styling (v1.0.4).
The theme's global CSS sets h1 colour, .btn-primary and .form-control with
!important, so the rules that have to win against it use !important too. */

body {
--sd-pp-accent: #4b1d5e;
--sd-pp-accent-soft: #fbeef1;
--sd-pp-line: #e4d6e7;
--sd-pp-ink: #3a2a3f;
}

[data-sd-pp][hidden],
.sd-pp-360[hidden] {
display: none !important;
}

/* ---- main photo + thumbnails ---- */

.sd-pp-thumb {
border: 2px solid transparent !important;
border-radius: 4px !important;
background: #fff;
box-shadow: 0 1px 4px rgba(75, 29, 94, .14);
transition: border-color .15s ease;
}

.active > .sd-pp-thumb,
.active .sd-pp-thumb,
.sd-pp-thumb.active,
[aria-current="true"] .sd-pp-thumb {
border-color: var(--sd-pp-accent) !important;
}

/* 360 / video tiles at the end of the thumbnail strip */

.sd-pp-tile {
display: block;
flex: none;
width: var(--sd-tile-w, 72px);
margin: 8px 0 0;
padding: 0;
list-style: none;
background: none;
border: 0;
height: auto;
text-indent: 0;
opacity: 1;
}

.sd-pp-tile button {
display: grid;
place-items: center;
align-content: center;
gap: 2px;
width: 100%;
aspect-ratio: 4 / 3;
padding: 0;
border: 2px solid transparent;
border-radius: 4px;
background: #fff;
color: #3a3a3a;
font-size: 15px;
font-weight: 600;
line-height: 1;
box-shadow: 0 1px 4px rgba(75, 29, 94, .14);
cursor: pointer;
transition: border-color .15s ease;
}

.sd-pp-tile[data-sd-pp="tile-video"] button {
background: linear-gradient(140deg, #5a4d49, #3a302d);
color: #fff;
}

.sd-pp-tile[data-sd-pp="tile-video"] svg circle {
fill: #fff;
stroke: #fff;
}

.sd-pp-tile[data-sd-pp="tile-video"] svg path {
fill: #3a302d;
stroke: #3a302d;
}

.sd-pp-tile button:hover,
.sd-pp-tile.is-active button {
border-color: var(--sd-pp-accent);
}

.sd-pp-tile button:focus-visible {
outline: 3px solid #8a3fa8;
outline-offset: 2px;
}

.sd-pp-tile svg {
width: 26px;
height: 26px;
}

/* ---- 360 viewer over the main photo ---- */

.sd-pp-host {
position: relative;
}

.sd-pp-360 {
position: absolute;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
background: #fff;
cursor: ew-resize;
touch-action: pan-y;
user-select: none;
-webkit-user-select: none;
}

.sd-pp-360 img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
pointer-events: none;
}

.sd-pp-360-hint {
position: absolute;
left: 50%;
bottom: 14px;
transform: translateX(-50%);
padding: 6px 14px;
border-radius: 999px;
background: rgba(40, 20, 50, .82);
color: #fff;
font-size: 14px;
white-space: nowrap;
pointer-events: none;
}

.sd-pp-360-close {
position: absolute;
top: 12px;
right: 12px;
display: grid;
place-items: center;
width: 38px;
height: 38px;
padding: 0;
border: 0;
border-radius: 50%;
background: #fff;
color: #1d1d1d;
box-shadow: 0 2px 10px rgba(40, 20, 50, .28);
cursor: pointer;
}

/* ---- title, price ---- */

#product_details h1,
#product_details [itemprop="name"] {
color: var(--sd-pp-accent) !important;
font-weight: 700;
letter-spacing: -.01em;
line-height: 1.05;
font-size: clamp(2.2rem, 4.2vw, 3.5rem);
}

#product_details .product_price,
#product_details .oe_price,
#product_details .oe_currency_value {
color: var(--sd-pp-accent) !important;
font-weight: 700;
font-variant-numeric: tabular-nums;
}

#product_details .product_price .oe_price,
#product_details .product_price .oe_currency_value {
font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* ---- quantity box ---- */

#product_details .css_quantity {
display: inline-flex;
flex-wrap: nowrap;
align-items: stretch;
border: 1px solid var(--sd-pp-line);
border-radius: 8px;
overflow: hidden;
background: #fff;
}

#product_details .css_quantity .btn,
#product_details .css_quantity .js_add_cart_json {
display: grid;
place-items: center;
width: 44px;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
color: var(--sd-pp-ink) !important;
box-shadow: none !important;
padding: 0 !important;
}

#product_details .css_quantity .btn:hover {
background: var(--sd-pp-accent-soft) !important;
}

#product_details .css_quantity input,
#product_details .css_quantity .form-control,
#product_details .css_quantity .quantity {
width: 56px !important;
min-width: 56px;
height: auto;
padding: 0 !important;
border: 0 !important;
border-inline: 1px solid var(--sd-pp-line) !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
color: var(--sd-pp-ink) !important;
font-size: 1.25rem;
font-weight: 600;
text-align: center;
font-variant-numeric: tabular-nums;
}

/* ---- buttons ---- */

#product_details #add_to_cart {
background: var(--sd-pp-accent) !important;
border: 0 !important;
color: #fff !important;
border-radius: 999px !important;
padding: .85rem 1.9rem !important;
font-weight: 700 !important;
letter-spacing: .05em;
text-transform: uppercase;
animation: none !important;
box-shadow: 0 4px 14px rgba(75, 29, 94, .3) !important;
}

#product_details #add_to_cart:hover {
filter: brightness(1.14);
transform: none !important;
}

#product_details #buy_now {
background: transparent !important;
border: 1.5px solid var(--sd-pp-accent) !important;
color: var(--sd-pp-accent) !important;
border-radius: 999px !important;
padding: .85rem 1.9rem !important;
font-weight: 700 !important;
letter-spacing: .05em;
text-transform: uppercase;
animation: none !important;
box-shadow: none !important;
}

#product_details #buy_now:hover {
background: var(--sd-pp-accent) !important;
color: #fff !important;
transform: none !important;
}

/* Wishlist heart */

#product_details .o_add_wishlist,
#product_details .o_add_wishlist_dyn {
border: 1.5px solid var(--sd-pp-accent) !important;
border-radius: 8px !important;
background: transparent !important;
color: var(--sd-pp-accent) !important;
}

#product_details .o_add_wishlist:hover,
#product_details .o_add_wishlist_dyn:hover,
#product_details .o_add_wishlist.disabled,
#product_details .o_add_wishlist_dyn.disabled {
background: var(--sd-pp-accent) !important;
color: #fff !important;
}

/* ---- pills + facts under the buy row ---- */

.sd-pp-extras {
margin-top: 1.5rem;
width: 100%;
}

.sd-pp-pills {
display: flex;
flex-wrap: wrap;
gap: 16px;
}

.sd-pp-pill {
flex: 1 1 150px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 52px;
padding: 0 20px;
border: 0;
border-radius: 999px;
background: var(--sd-pp-accent-soft);
color: var(--sd-pp-accent);
font-size: 1.1rem;
font-weight: 600;
box-shadow: 0 3px 12px rgba(75, 29, 94, .14);
cursor: pointer;
}

.sd-pp-pill:hover {
filter: brightness(.97);
}

.sd-pp-pill[aria-pressed="true"] {
background: var(--sd-pp-accent);
color: #fff;
}

.sd-pp-pill:focus-visible {
outline: 3px solid #8a3fa8;
outline-offset: 2px;
}

.sd-pp-facts {
list-style: none;
margin: 1.6rem 0 0;
padding: 0;
display: grid;
gap: 8px;
font-size: 1.1rem;
color: var(--sd-pp-ink);
}

.sd-pp-facts a {
color: inherit;
text-decoration: underline;
text-underline-offset: 3px;
}

/* ---- responsive styling ---- */

@media (max-width: 767px) {
.sd-pp-pill {
min-height: 48px;
font-size: 1rem;
}
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
.sd-pp-thumb,
.sd-pp-tile button {
transition: none;
}
}

/* ---- Shop Page - Display Complete Product Images ---- */

/* Keep compatibility with older shop grid markup. */
#products_grid .oe_product_image_link,
#products_grid .oe_product_image,
#products_grid .o_wsale_product_img_link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

#products_grid .oe_product_image_link img,
#products_grid .oe_product_image img,
#products_grid .o_wsale_product_img_link img,
#products_grid .card-img-top {
    width: 100% !important;
    height: 360px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

/* Odoo 19 shop grid: use the actual grid ID and preserve the source ratio. */
#o_wsale_products_grid {
    --o-wsale-card-thumb-fill-mode: contain !important;
    --o-wsale-card-thumb-position: center !important;
}

#o_wsale_products_grid .oe_product_image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
}

#o_wsale_products_grid .oe_product_image_img_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

#o_wsale_products_grid img.oe_product_image_img,
#o_wsale_products_grid img.oe_product_image_img_secondary {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: auto !important;
    transform: none !important;
    transition: none !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Do not enlarge product images on hover; enlargement can crop the image. */
#products_grid .oe_product:hover img,
#products_grid .o_wsale_product_grid_wrapper:hover img,
#o_wsale_products_grid .oe_product:hover img.oe_product_image_img,
#o_wsale_products_grid .oe_product:hover img.oe_product_image_img_secondary {
    transform: none !important;
}

/* ---- Product Detail Page - Display Complete Main Image ---- */

/* ---- Product Detail Page - Display Complete Main Image ---- */

#o-carousel-product .carousel-inner {
height: 650px !important;
}

#o-carousel-product .carousel-item {
height: 650px !important;
min-height: 650px !important;
}

#o-carousel-product .o_product_detail_img_wrapper {
height: 100% !important;
min-height: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
overflow: hidden !important;
}

#o-carousel-product .o_product_detail_img_wrapper img.product_detail_img {
width: auto !important;
height: auto !important;
max-width: 100% !important;
max-height: 100% !important;
object-fit: contain !important;
object-position: center center !important;
}

@media (max-width: 767px) {
#o-carousel-product .carousel-inner,
#o-carousel-product .carousel-item {
height: 480px !important;
min-height: 480px !important;
}
}


/* ==========================================================
   SHOP PAGE - TOP WHITE SPACE
   Adds breathing room below the website navigation.
   ========================================================== */

#o_wsale_container .o_wsale_products_main_row {
    padding-top: 28px !important;
}

@media (max-width: 767.98px) {
    #o_wsale_container .o_wsale_products_main_row {
        padding-top: 18px !important;
    }
}
