/* =========================================================
   Make My Dresss – Men Customiser Styles
   ========================================================= */

/* ---- Layout ---- */
body { font-family: 'Source Sans Pro', sans-serif; font-size: 15px; }

.body-bg { background: #fff; padding-top: 0; }

.brtp { margin: 0; border-color: #e0dede; }

.fw_cover { padding-right: 0; padding-left: 0; }

.col-d { padding-left: 0; padding-right: 0; }

.margin-less { margin: 0; }

/* ---- Footer bar (fixed price + nav buttons) ---- */
#hmft {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 222;
    background: #fff;
    padding: 10px 15px;
    border-top: 1px solid #dadada;
}

.stickyft { box-shadow: 0 -2px 6px rgba(0,0,0,.1); }

.total { font-size: 22px; color: #686868; }

.bckbtn-div { text-align: right; }

/* ---- Buttons ---- */
.stbutton {
    border: 1px solid #c8c3c3;
    background: #ccc;
    padding: 6px 24px;
    border-radius: 5px;
    text-transform: uppercase;
    outline: none;
    color: #000;
    cursor: pointer;
}
.stbutton:hover {
    color: #fff;
    background: #996600;
    border-color: #996600;
}

.nd_button {
    padding: 6px 24px;
    border-radius: 5px;
    background: #ccc;
    border: 1px solid #c8c3c3;
    text-transform: uppercase;
    cursor: pointer;
    color: #000;
}
.nd_button:hover { background: #996600; color: #fff; border-color: #996600; }

/* ---- Left side tabs ---- */
.step-steps { margin: 0; padding: 0; display: block; }

.left-side-tabs li {
    list-style: none;
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background: #fafafa;
}
.left-side-tabs li a { color: #555; text-decoration: none; font-weight: 500; }

.styleactive a { color: #ad731f !important; font-weight: bold !important; }
.styleactive { background: #fff3e0 !important; }

.styledone a { color: #4caf50 !important; }
.styledone { background: #f1fff3 !important; }

.step-content { padding: 0; }

.navigation-first-window { overflow: visible; }

/* ---- Right side design area ---- */
.designer-d { padding: 0; }

.designsec {
    border-right: 1px solid #e0dede;
    min-height: 500px;
}

.title {
    padding: 20px 8px 10px 16px;
    height: auto;
}
.title a { font-size: 18px; font-weight: bold; color: #333; text-decoration: none; }

.hdmenunav { padding: 0 16px 10px; }

.hide-bullets { margin: 0; padding: 0; }
.hide-bullets li {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.thumbnail {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 3px;
    margin-right: 6px;
}
.thumbnail img { width: 70px; height: 70px; object-fit: cover; display: block; }

.thumbtle { font-size: 12px; color: #444; margin-top: 3px; }

.design_link { font-size: 13px; color: #333; text-decoration: none; cursor: pointer; }
.design_link:hover { color: #ad731f; }

.info_bt { color: #ad731f; margin-right: 6px; text-decoration: none; font-size: 16px; }

/* ---- Big image area ---- */
.bigimg { padding: 0; }

.bigheading {
    padding: 15px 20px;
    background: #f9f7f4;
    border-bottom: 1px solid #e8e4e0;
}
.bigheading h3 { margin: 0; font-size: 16px; color: #666; }

.container_design { position: relative; }

.dlarge { display: none; text-align: center; padding: 10px; }
.dlarge.dlarge_active { display: block; }

.dlarge img.responsive {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.brading-bottom { text-align: center; margin-top: 10px; padding-bottom: 80px; }

/* ---- Loader ---- */
.dp_loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ad731f;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin .8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Classic design (navigation menu right) ---- */
.navigation-menu-r { overflow-y: auto; max-height: calc(100vh - 220px); }

/* ── Summary step – scrollable on desktop when table is tall ── */
.navigation-first-window {
    overflow-y: auto;
    max-height: calc(100vh - 240px);
    padding-right: 4px;
}
/* Extra bottom room so nav buttons aren't hidden behind the summary */
.pro-details.pro-details1 { padding-bottom: 90px; }

.classic-bg { background: #fff; position: relative; }
.classic-img { border: 1px solid #959595; }
.classic-img img { width: 100%; display: block; }

/* ---- Pop-up overlay ---- */
.hover_bkgr_fricc {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    text-align: center;
}
.hover_bkgr_fricc .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.hover_bkgr_fricc > div {
    background: #fff;
    display: inline-block;
    vertical-align: middle;
    padding: 20px 30px;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    position: relative;
}
.popupCloseButton {
    position: absolute;
    top: 8px; right: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #666;
}
.popupCloseButton:hover { color: #333; }

/* ---- Addons ---- */
.addon_type_ch { display: none; }
.active_addon_type_ch { display: block; }

.noul { margin: 0; padding: 0; }
.noul li {
    list-style: none;
    display: inline-block;
    width: 28%;
    margin: 10px 2%;
    vertical-align: top;
    text-align: center;
}
.noul li .classic-img { width: 100%; height: 160px; overflow: hidden; }
.noul li .classic-img img { width: 100%; height: 100%; object-fit: cover; }

.linename { font-size: 13px; }

.pricerate { font-size: 12px; color: #ad731f; cursor: pointer; }

.container_rad { display: inline-block; cursor: pointer; }

/* ---- Lightbox ---- */
.lightbox-target {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.8);
    z-index: 9998;
    display: none;
    text-align: center;
}
.lightbox-target img {
    max-height: 85vh;
    max-width: 90vw;
    margin-top: 5vh;
}
.lightbox-target:target { display: block; }
.lightbox-close {
    position: absolute;
    top: 15px; right: 20px;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
}
.lightbox-close:after { content: "\00D7"; }

/* ---- Popup tooltip ---- */
.popup { position: relative; display: inline-block; }
.popuptext {
    visibility: hidden;
    background: #333;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    font-size: 12px;
}
.popuptext.show { visibility: visible; }
.popuptext.hide { visibility: hidden; }

/* ---- Sample table (design summary) ---- */
table.sample { border-collapse: collapse; }
table.sample td { padding: 8px; vertical-align: top; }
table.sample img { border: 1px solid #ddd; }

/* ---- Measurement buttons ---- */
.m-btn {
    padding: 14px 20px;
    background: #996600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    margin: 8px;
    min-width: 200px;
}
.m-btn:hover { background: #7a5200; }

/* ---- Modal addon summary ---- */
.modal_addon {
    display: none;
    position: fixed;
    z-index: 9997;
    padding-top: 80px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,.4);
}
.modal-content_addon {
    background: #fff;
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    width: 90%;
    max-width: 480px;
    border-radius: 4px;
}
.close_addon {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.close_addon:hover { color: #000; }

table.sample1 { width: 100%; border-collapse: collapse; }
table.sample1 th, table.sample1 td { padding: 8px; border: 1px solid #ddd; text-align: left; }
table.sample1 th { background: #f5f5f5; }

/* ---- Nav pills override ---- */
.nav-pills > li > a {
    border-radius: 0;
    font-size: 14px;
    color: #555;
    background: url('http://localhost/websites/MakeMyDresss/MMD/images/navmenbg.jpg') no-repeat center;
    background-size: 100%;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background: #996600;
    color: #fff;
}

/* ---- Helpers ---- */
#tempamt, #tempamtopen,
#tempamt1, #tempamtrs,
#tempamtopen1, #tempamtopenrs,
#bkbtn123, #bkbtn123same,
#someButton, #someButtonback { display: none; }

.kk { display: none; }

/* ---- Step dot states ---- */
.option-list li.done {
    opacity: 0.55;
    text-decoration: line-through;
}
.option-list li.done::after {
    content: ' ✓';
    font-size: 11px;
}

/* ---- Selected design card ---- */
.det-img2 {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color .15s, box-shadow .15s;
}

/* Ensure card image area has consistent height even when no image is present */
.det-img2 img {
    display: block;
    width: 100%;
    min-height: 120px;
    object-fit: contain;
}
.det-img2:hover {
    border-color: #c8a96e;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.det-img2.selected-design {
    border-color: #a06c1e;
    box-shadow: 0 0 0 3px rgba(160,108,30,.25);
}

/* ---- Design grid heading ---- */
.details-cont1 h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: #444;
}

/* ---- Addon page ---- */
.addon-nav {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.addon-nav-arrow {
    color: #a06c1e;
    font-size: 18px;
    padding: 4px 10px;
    text-decoration: none;
}
.addon-nav-arrow:hover { color: #6e4810; }

.addon-nav-count {
    font-size: 13px;
    color: #888;
}

.addon-price-tag {
    font-size: 12px;
    color: #a06c1e;
    font-weight: 600;
    text-align: center;
    padding: 2px 0 4px;
}

.addon-skip-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}
.addon-skip-link:hover { color: #555; text-decoration: underline; }

/* ── Base product preview card (non-selectable) ── */
.addon-base-card {
    cursor: default !important;
    pointer-events: none;
    opacity: 0.82;
    border: 2px dashed #c9a96e !important;
    box-shadow: none !important;
}
.addon-base-card img {
    object-fit: contain !important;
}
.addon-base-card h5 {
    color: #8a6020;
    font-size: 10px;
    text-align: center;
    padding: 3px 2px;
}

/* ── Horizontal swipe – design / addon card row ────────────
   Cards stay at their fixed size; the row scrolls horizontally
   so the user can swipe through all designs on any screen.   */
.det-img1 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.det-img1::-webkit-scrollbar { display: none; }
.det-img1 .det-img2 {
    flex-shrink: 0 !important;      /* prevent cards from squishing */
}

/* ---- Responsive ---- */

/* Standard laptop / tablet landscape (< 1400px) – 4 cards per row */
@media (max-width: 1399px) {
    .det-img1 .det-img2 { width: 23% !important; }
}

/* Small laptop / tablet (< 1100px) – 3 cards per row */
@media (max-width: 1099px) {
    .det-img1 .det-img2 { width: 30% !important; }
    .det-img1 { max-height: 350px !important; }
}

/* Tablet portrait / large phone landscape (< 768px) – 2 cards per row, full right column */
@media (max-width: 767px) {
    .det-img1 .det-img2 { width: 45% !important; }
    .det-img1 { max-height: none !important; }
    #hm1 .option-list { column-gap: 15px !important; }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
    .det-img1 .det-img2 { width: 44% !important; }
    #First_frame { display: none; }
    .noul li { width: 44%; }
    .dlarge img.responsive { max-height: 260px; }
}
