/**
 * IQ Mobile — product DETALJNO specs + Dodatna oprema sidebar.
 * Port of legacy degordian iq-mobile theme:
 *   _components.product-single-details.scss, _components.product-single.scss,
 *   _components.product-single-sidebar.scss — brand palette (#e7008b).
 */

.iqm-pd { align-items: flex-start; display: flex; flex-wrap: nowrap; font-family: aller, "Helvetica Neue", Arial, sans-serif; margin: 0 auto 60px; max-width: 1170px; padding: 0 15px; }
.iqm-pd *, .iqm-pd *::before, .iqm-pd *::after { box-sizing: border-box; }

/* ---- Dodatna oprema sidebar (legacy: 300px, order 1) ---- */
.iqm-pd__aside { max-width: 300px; order: 1; padding-right: 30px; width: 100%; }
.iqm-pd__aside-head { position: relative; }
.iqm-pd__aside-title { color: #27282c; font-size: 1.0625rem; font-weight: 700; letter-spacing: .02em; margin: 0; padding: 9px 60px 9px 0; text-transform: uppercase; }
.iqm-pd__nav { position: absolute; right: 0; top: 7px; }
.iqm-pd__arrow { background: none; border: 0; color: #27282c; cursor: pointer; height: 25px; padding: 0; text-align: center; width: 25px; }
.iqm-pd__arrow:hover { color: #e7008b; }
.iqm-pd__arrow:focus-visible { border-radius: 4px; outline: 2px solid #e7008b; outline-offset: 2px; }

.iqm-pd__slider { border: 1px solid #e6e6e6; border-top-color: #e7008b; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.iqm-pd__slider::-webkit-scrollbar { display: none; }
.iqm-pd__slide { flex: 0 0 100%; list-style: none; margin: 0; padding: 0; scroll-snap-align: start; }
.iqm-pd__item { border-bottom: 1px solid #e6e6e6; margin: 0; }
.iqm-pd__slide .iqm-pd__item:last-of-type { border-bottom: none; }

.iqm-pd__card { color: inherit; display: flex; gap: 12px; padding: 15px; text-decoration: none; }
.iqm-pd__card-img { flex: 0 0 72px; }
.iqm-pd__card-img img { display: block; height: auto; width: 72px; }
.iqm-pd__card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.iqm-pd__card-title { color: #27282c; font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.iqm-pd__card:hover .iqm-pd__card-title { color: #e7008b; }
.iqm-pd__card-price { color: #e7008b; font-size: .9375rem; font-weight: 700; }
.iqm-pd__card-price del { color: #919394; font-weight: 400; margin-right: 6px; }
.iqm-pd__card-price ins { text-decoration: none; }

/* ---- DETALJNO details (legacy: fills remaining width, order 2) ---- */
.iqm-pd__details { min-width: 0; order: 2; width: 100%; }
.iqm-pd--no-aside .iqm-pd__details { order: 1; }
.iqm-pd__tab { background: #e7008b; color: #fff; display: inline-block; font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; padding: 8px 15px; position: relative; text-transform: uppercase; z-index: 1; }
.iqm-pd__box { border: 1px solid #e6e6e6; margin-top: -1px; padding: 40px 15px 0; }

.iqm-pd__cols { align-content: flex-start; display: flex; }
.iqm-pd__col--wide { padding-right: 15px; width: 52.5%; }
.iqm-pd__col--narrow { padding-left: 15px; width: 47.5%; }

.iqm-pd__group { padding-bottom: 40px; }
.iqm-pd__group-title { color: #e7008b; font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; }
.iqm-pd__group table { border-collapse: collapse; margin: 0; width: 100%; }
.iqm-pd__group td { background: #f6f6f6; border: 0; line-height: 20px; min-width: 50%; padding: 10px; width: auto; }
.iqm-pd__group td:first-of-type { background: #efefef; width: 140px; }

/* ---- Responsive (legacy lg/md behavior: details first, aside below, stack) ---- */
@media (max-width: 1024px) {
	.iqm-pd { flex-wrap: wrap; }
	.iqm-pd__aside { max-width: 100%; order: 2; padding-right: 0; padding-top: 40px; }
	.iqm-pd__details { order: 1; }
	.iqm-pd__col--wide, .iqm-pd__col--narrow { padding: 0; width: 50%; }
	.iqm-pd__col--wide { padding-right: 8px; }
	.iqm-pd__col--narrow { padding-left: 8px; }
	.iqm-pd__group td:first-of-type { width: 120px; }
}
@media (max-width: 768px) {
	.iqm-pd__cols { display: block; }
	.iqm-pd__col--wide, .iqm-pd__col--narrow { padding: 0; width: 100%; }
	.iqm-pd__box { padding-bottom: 10px; }
	.iqm-pd__group { padding-bottom: 30px; }
	.iqm-pd__group td:first-of-type { width: 110px; }
}

.iqm-pd__arrow:disabled { color: #c9c9c9; cursor: default; }

/* ---- Usporedi selects (legacy compare-selects port) ---- */
.iqm-cmp-selects__select { background: #fff; border: 1px solid #e6e6e6; border-radius: 0; color: #27282c; display: block; font-family: inherit; font-size: .9375rem; margin-bottom: 12px; padding: 10px 12px; width: 100%; }
.iqm-cmp-selects__select:focus-visible { border-color: #e7008b; outline: 2px solid #e7008b; outline-offset: 1px; }
.iqm-cmp-selects__select:disabled { background: #f6f6f6; color: #919394; }
.iqm-cmp-selects__btn { background: #e7008b; border: 0; border-radius: 0; color: #fff; cursor: pointer; font-family: inherit; font-size: .9375rem; font-weight: 700; letter-spacing: .02em; padding: 12px 32px; text-transform: uppercase; transition: background 200ms cubic-bezier(.2,0,0,1); }
.iqm-cmp-selects__btn:hover:not(:disabled) { background: #b3006e; }
.iqm-cmp-selects__btn:disabled { background: #c9c9c9; cursor: default; }
.iqm-cmp-selects__btn:focus-visible { outline: 2px solid #e7008b; outline-offset: 2px; }

/* ---- Compare page (legacy yith-compare-table / --full mode port) ---- */
.iqm-cmp { font-family: aller, "Helvetica Neue", Arial, sans-serif; margin: 40px auto 80px; max-width: 1170px; padding: 0 15px; }
.iqm-cmp *, .iqm-cmp *::before, .iqm-cmp *::after { box-sizing: border-box; }
.iqm-cmp__title { color: #27282c; font-size: 2rem; font-weight: 700; margin: 0 0 32px; }

.iqm-cmp__products { display: grid; gap: 4px; grid-template-columns: 1fr 1fr; margin-bottom: 40px; margin-left: 140px; }
.iqm-cmp__product { background: #f6f6f6; display: flex; flex-direction: column; gap: 10px; padding: 24px 16px; text-align: center; }
.iqm-cmp__product a { color: inherit; display: block; text-decoration: none; }
.iqm-cmp__product-img img { display: block; height: auto; margin: 0 auto 12px; max-width: 220px; width: 100%; }
.iqm-cmp__product-title { color: #27282c; display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.iqm-cmp__product-title:hover { color: #e7008b; }
.iqm-cmp__product-price { color: #e7008b; font-size: 1.125rem; font-weight: 700; }
.iqm-cmp__product-price del { color: #919394; font-weight: 400; margin-right: 8px; }
.iqm-cmp__product-price ins { text-decoration: none; }
.iqm-cmp__product-btn { background: #e7008b; color: #fff !important; display: inline-block; font-size: .9375rem; font-weight: 700; margin: 4px auto 0; padding: 10px 24px; text-decoration: none; text-transform: uppercase; transition: background 200ms cubic-bezier(.2,0,0,1); }
.iqm-cmp__product-btn:hover { background: #b3006e; }

/* legacy --full table: label col 140px dark, value cols separated by 4px white rule */
.iqm-cmp__group td { padding-left: 60px; width: 41%; }
.iqm-cmp__group td:not(:first-of-type):not(:last-of-type) { border-right: 4px solid #fff; }
.iqm-cmp__group td:first-of-type { padding-left: 10px; width: 140px; }

@media (max-width: 1024px) {
	.iqm-cmp__group td { padding-left: 20px; }
	.iqm-cmp__group td:first-of-type { width: 120px; }
	.iqm-cmp__products { margin-left: 120px; }
}
@media (max-width: 768px) {
	.iqm-cmp__title { font-size: 1.5rem; }
	.iqm-cmp__products { margin-left: 0; }
	.iqm-cmp__group td { padding-left: 10px; }
	.iqm-cmp__group td:first-of-type { width: 90px; }
	.iqm-cmp__product-img img { max-width: 150px; }
}

/* ---- Rounded corners to match the theme (buttons 4px, fields 5px, cards 8px) ---- */
.iqm-pd__tab { border-radius: 4px 4px 0 0; }
.iqm-pd__box { border-radius: 0 8px 8px 8px; }
.iqm-pd__slider { border-radius: 8px; }
.iqm-pd__group table { border-collapse: separate; border-radius: 6px; border-spacing: 0; overflow: hidden; }
.iqm-pd__arrow { border-radius: 4px; }
.iqm-cmp-selects__select { border-radius: 5px; }
.iqm-cmp-selects__btn { border-radius: 4px; }
.iqm-cmp__product { border-radius: 8px; }
.iqm-cmp__product-img img { border-radius: 6px; }
.iqm-cmp__product-btn { border-radius: 4px; }
