/* =====================================================
   CAL MITJÓ – ESTIL COMPLET (2025)
===================================================== */

:root {
    --primary: #3E4E50;      /* FOSC */
    --secondary: #EDEDED;    /* CREMA CLAR */
    --tertiary: #e6a955;     /* DAURAT */
    --light-small: rgba(237,237,237,0.1);
    --border-light-small: rgba(237,237,237,0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "condor", sans-serif;
    background-color: var(--primary);
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =====================================
   HEADER ESCRIPTORI
===================================== */
.main-header {
    background: var(--secondary);
    padding: 0 60px;
    margin: 30px 0;
    position: relative;
    z-index: 10;
    height: 100px;
    transition: all 0.3s ease;
}

.main-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    height: 90px;
    z-index: 1000;
}

.header-nav {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header.fixed-header .header-nav {
    height: 90px;
}

.nav-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.menu-left-absolute,
.menu-right-absolute {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.menu-left-absolute { left: 60px; }
.menu-right-absolute { right: 60px; }

.menu a {
    font-weight: 500;
    color: var(--primary);
    font-size: 15px;
    text-decoration: none;
    transition: font-weight .2s;
}

.menu a:hover {
    font-weight: 700;
}

.main-header.fixed-header .menu-left-absolute,
.main-header.fixed-header .menu-right-absolute {
    gap: 1.8rem;
}

.main-header.fixed-header .menu a {
    font-size: 14px;
}

.logo-center {
    pointer-events: auto;
    z-index: 3;
    cursor: pointer;
}

.logo-img {
    max-height: 146px;
    display: block;
}

.logo-img-scroll {
    max-height: 50px;
    display: none;
}

.main-header.fixed-header .logo-img {
    display: none;
}

.main-header.fixed-header .logo-img-scroll {
    display: block;
}

/* =====================================
   NAVBAR MÒBIL
===================================== */
.main-navbar-mobile {
    background: var(--secondary);
    padding: .5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.logo-mobile {
    height: 45px;
}

.icon-sm {
    width: 24px;
    height: 24px;
}

.offcanvas-header img {
    height: 50px;
}

.offcanvas-body .nav-link {
    font-size: 16px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    color: var(--primary);
}

.offcanvas-body .nav-link:hover {
    font-weight: 700;
}

/* =====================================
   IMATGES PRINCIPALS
===================================== */
.img-container {
    position: relative;
    width: 100%;
    height: 700px;
    margin-top: 10px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    padding: 0 60px;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* =====================================
   CERCA
===================================== */
.cercador-container {
    display: flex;
    align-items: center;
    padding: 20px 60px;
    background: var(--secondary);
    width: 100%;
}

.lupa-icon,
.arrow-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin: 0 10px;
}

.search-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid var(--primary);
    background: transparent;
    font-size: 20px;
    color: var(--primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--primary);
    opacity: 0.7;
}

/* =====================================
   LOGIN
===================================== */
.login-section {
    background: var(--primary);
    color: var(--secondary);
    padding: 40px 60px;
    text-align: center;
}

.login-section .container {
    max-width: 1280px;
    margin: 0 auto;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form input {
    padding: 10px;
    border: 2px solid var(--secondary);
    background: var(--primary);
    color: var(--secondary);
    border-radius: 6px;
    font-size: 14px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.login-links a {
    color: var(--secondary);
    font-size: 12px;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.btn-login {
    background: var(--tertiary);
    color: var(--primary);
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    transition: background .3s;
    cursor: pointer;
}

.btn-login:hover {
    background: #d89a45;
}

/* =====================================
   SECCIONS FOTOS
===================================== */
.photos-section {
    background: var(--secondary);
    padding: 0 60px 2.25rem;
}

.section-head {
    display: flex;
    padding: 20px;
    margin-bottom: 1rem;
}

.arrow-image {
    width: 30px;
}

.section-title {
    font-size: 28px;
    color: var(--primary);
    font-weight: 800;
    margin: 0 10px;
}

/* =====================================
   PRODUCT CARD
===================================== */
.product-card {
    position: relative;
    width: 100%;
    height: 570px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-bg-solid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--secondary);
    z-index: 1;
}

.product-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    pointer-events: none;
    transition: transform 0.4s ease;
    margin: 0 auto;
    display: block;
}

.product-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}

.product-card:hover .product-img {
    transform: translateY(-30px);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(62, 78, 80, 0.94);
    backdrop-filter: blur(14px);
    padding: 1.1rem 1.6rem;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-container {
    position: relative;
    width: 100%;
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-default {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-name {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.product-price {
    color: var(--tertiary);
    font-size: 18px;
    font-weight: 500;
}

.info-hover {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 1rem;
}

.sizes {
    display: flex;
    gap: 0.5rem;
}

.size-btn {
    width: 32px;
    height: 32px;
    border: 1.2px solid rgba(237,237,237,0.6);
    background: transparent;
    color: rgba(237,237,237,0.8);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.size-btn:hover,
.size-btn.active {
    background: rgba(237,237,237,0.15);
    color: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.05);
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--secondary);
    border: 1.2px solid rgba(237,237,237,0.6);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    transform: scale(1.1);
}

.product-card:hover .info-default {
    opacity: 0;
}

.product-card:hover .info-hover {
    opacity: 1;
}

/* =====================================
   COL·LECCIONS
===================================== */
.colleccions {
    font-size: 28px;
    color: var(--secondary);
    background: var(--primary);
    padding: 30px 0;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
    text-align: center;
    font-weight: 800;
}

.full-width-row {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--primary);
}

.collection-img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: transform .3s;
}

.collection-img:hover {
    transform: scale(1.05);
}

.modal-trigger {
    cursor: pointer;
    transition: transform .3s;
}

.modal-trigger:hover {
    transform: scale(1.02);
}

.btn-tertiary {
    background: var(--tertiary);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 6px;
    transition: background .3s;
}

.btn-tertiary:hover {
    background: #d89a45;
}

/* =====================================
   CAL MITJONET
===================================== */
.calmitjonet-section {
    background: var(--tertiary);
    padding: 0 60px 2.25rem;
}

.calmitjonet-section .section-head {
    justify-content: center;
    padding: 30px 0;
}

.logo-mitjonet {
    height: 40px;
    margin: 0 10px;
}

/* =====================================
   CISTELLA OFFCANVAS
===================================== */
#cistellaOffcanvas {
    background: var(--primary);
    width: 420px !important;
    border-left: 3px solid var(--tertiary);
}

#cistellaOffcanvas .offcanvas-header {
    background: var(--primary);
    color: var(--secondary);
    border-bottom: 1px solid var(--border-light-small);
}

#cistellaOffcanvas .offcanvas-title {
    font-size: 18px;
    font-weight: 700;
}

#cistellaOffcanvas .badge {
    background: var(--tertiary);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.cistella-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light-small);
    gap: 1rem;
}

.cistella-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}

.cistella-info {
    flex: 1;
}

.cistella-nom {
    font-size: 14px;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.cistella-preu {
    font-size: 14px;
    color: var(--tertiary);
    margin: 4px 0 0;
}

.cistella-quantitat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.btn-qty {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(237,237,237,0.3);
    background: transparent;
    color: var(--secondary);
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.btn-qty:hover {
    background: rgba(237,237,237,0.1);
    border-color: var(--secondary);
}

.qty {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
}

.btn-eliminar {
    background: transparent;
    border: none;
    color: rgba(237,237,237,0.5);
    padding: 4px;
    transition: color .2s;
}

.btn-eliminar:hover {
    color: var(--secondary);
}

.cistella-empty {
    color: rgba(237,237,237,0.6);
    text-align: center;
    padding: 2rem 1rem;
}

.cistella-empty svg {
    stroke: rgba(237,237,237,0.4);
    margin-bottom: 1rem;
}

#continueShopping {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s;
}

#continueShopping:hover {
    background: var(--secondary);
    color: var(--primary);
}

.cistella-footer {
    background: var(--primary);
    border-top: 1px solid var(--border-light-small);
}

.cistella-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 1rem;
}

.total-text {
    color: var(--secondary);
}

.total-preu {
    color: var(--tertiary);
}

.btn-finalitzar {
    background: var(--tertiary);
    color: var(--primary);
    border: none;
    padding: 12px;
    font-weight: 700;
    width: 100%;
    border-radius: 6px;
    transition: background .3s;
}

.btn-finalitzar:hover {
    background: #d89a45;
}

/* =====================================
   RESUM DE COMPRA 
===================================== */
#resumOffcanvas {
    width: 420px !important;
    background: var(--primary);
}

#resumOffcanvas .offcanvas-header {
    background: var(--secondary);      /* CREMA CLAR */
    color: var(--primary);             /* TEXT FOSC */
    border-bottom: 1px solid var(--border-light-small);
}

#resumOffcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 18px;
}

.resum-item {
    border-bottom: 1px solid var(--border-light-small);
    padding: 1rem;
}

.resum-img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
}

.resum-item h6 {
    color: var(--secondary);           
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.3;
}

.resum-item small {
    color: rgba(237,237,237,0.7);      
    font-size: 13px;
}

.resum-item strong {
    color: var(--tertiary);            
    font-weight: 600;
}

.resum-footer {
    background: var(--primary);
    padding: 1.5rem;
}

.resum-total {
    margin-bottom: 1.5rem;
    font-size: 15px;
    color: var(--secondary);
}

.resum-total .d-flex {
    justify-content: space-between;
    margin-bottom: 8px;
}

.resum-total span:last-child {
    color: var(--tertiary);
    font-weight: 700;
}

.resum-info {
    background: var(--light-small);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(237,237,237,0.8);
    padding: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-pagar {
    background: var(--tertiary);
    color: var(--primary);
    border: none;
    padding: 16px;
    font-weight: 700;
    width: 100%;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230,169,85,0.3);
}

.btn-pagar:hover {
    background: #d89a45;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230,169,85,0.4);
}

/* =====================================
   AJUDA
===================================== */
.help-section {
    background: var(--primary);
    color: var(--secondary);
    padding: 20px 60px;
    text-align: center;
}

.help-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.help-subtitle {
    font-size: 16px;
    color: rgba(237,237,237,0.7);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.help-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light-small);
    border-radius: 0 !important;
    margin-bottom: 0;
}

.accordion-button {
    background: transparent;
    color: var(--secondary);
    font-weight: 700;
    font-size: 17px;
    padding: 1.4rem 0;
    border: none;
    text-align: center;
    box-shadow: none !important;
    transition: color 0.3s ease;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.6;
    margin-left: auto;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.accordion-button:hover {
    color: var(--tertiary);
}

.accordion-button:not(.collapsed) {
    color: var(--tertiary);
    background: transparent;
    border-bottom: 1px solid var(--tertiary);
}

.accordion-body {
    color: rgba(237,237,237,0.8);
    font-size: 14.5px;
    line-height: 1.7;
    padding: 0 0 1.8rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

/* =====================================
   CONTACTE – FONS EN SECONDARY
===================================== */
.contact-section {
    background: var(--secondary);
    color: var(--primary);
    padding: 20px 0;
}

.contact-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
}

.contact-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    background: rgba(62,78,80,0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(62,78,80,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group input,
.form-group textarea {
    background: rgba(62,78,80,0.05);
    border: 1px solid rgba(62,78,80,0.2);
    color: var(--primary);
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tertiary);
    box-shadow: 0 0 0 2px rgba(230,169,85,0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.btn-contacte-luxe {
    background: var(--tertiary);
    color: var(--primary);
    border: none;
    padding: 16px;
    font-weight: 700;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-contacte-luxe:hover {
    background: #d89a45;
    transform: translateY(-2px);
}

/* =====================================
   FOOTER
===================================== */
.main-footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 3rem 60px 1.5rem;
    font-size: 13px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-col p,
.footer-col a span {
    color: rgba(237,237,237,0.7);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: color .2s;
}

.footer-col a:hover span {
    color: var(--secondary);
}

.footer-form input {
    background: rgba(237,237,237,0.1);
    border: 1px solid rgba(237,237,237,0.3);
    color: var(--secondary);
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    font-size: 13px;
}

.footer-policy-inline {
    font-size: 11px;
    color: rgba(237,237,237,0.6);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-policy-inline label {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.footer-policy-inline a {
    color: var(--secondary);
    text-decoration: underline;
}

.btn-subscribe {
    background: var(--tertiary);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .3s;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: #d89a45;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-links a img {
    width: 24px;
    height: 24px;
    filter: brightness(0.9) sepia(1) hue-rotate(20deg) saturate(0.8);
    transition: opacity .2s;
}

.social-links a:hover img {
    opacity: 0.8;
}

.footer-divider {
    height: 1px;
    background: rgba(237,237,237,0.15);
    margin: 2rem auto;
    width: 100%;
    max-width: 1000px;
}

.footer-brand {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 1rem;
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1200px) {
    .img-container,
    .cercador-container,
    .login-section,
    .photos-section,
    .main-footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .main-header {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .section-title { font-size: 24px; }
    .product-card { height: 480px; }
    .collection-img { height: 500px; }
}

@media (max-width: 768px) {
    .main-header { display: none; }
    .img-container { height: 500px; }
    .cercador-container { padding: 15px 20px; }
    .lupa-icon, .arrow-icon { width: 24px; height: 24px; }
    .search-input { font-size: 16px; }
    .product-card { height: 400px; }
    .collection-img { height: 400px; }
    .footer-container { flex-direction: column; gap: 2rem; text-align: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 576px) {
    .img-container { height: 400px; }
    .product-card { height: 350px; }
    .collection-img { height: 300px; }
    .cistella-item, .resum-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .cistella-img img { width: 50px; height: 50px; }

/* ========================================
   ANIMACIONS GSAP – CLASES BASE (NO TOCAR)
   ======================================== */
.gsap-reveal,
.gsap-scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
}

.gsap-info-swap {
  transform: translateY(0);
}

/* Hover lift per botons */
.gsap-hover-lift {
  transition: transform 0.3s ease;
}
.gsap-hover-lift:hover {
  transform: translateY(-4px);
}

/* Zoom suau per imatges col·leccions */
.gsap-hover-zoom {
  transition: transform 0.6s ease;
}
.gsap-hover-zoom:hover {
  transform: scale(1.03);
}

/* Header fixat (per evitar conflictes) */
.gsap-header-fixed.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}


}