@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
    --color-black: #0E0E0E;
    --color-white: #F0F0F3;
    --color-grey: #D9D9D9;
    --color-card-bg: #151515;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inria Sans', sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Navigation (Updated to match buy1.php sticky behavior) --- */
.nav_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;


    /* Fix container padding offset */
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;

    /* Increased height and side spacing */
    padding: 20px 25px;

    position: sticky;
    top: 0;
    background-color: var(--color-white);
    z-index: 100;

    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav_bar.scrolled {
    /* Detach from top */
    top: 10px;

    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;

    /* Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);

    /* Glossy Highlights */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav_logo {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-black);
}

.menu_btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu_line {
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 2px;
}

/* --- Product Image --- */
.product_image_wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    /* REMOVED MARGIN */
    background-color: #fff;

    /* Clay/Elevated Look */
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.1),
        -5px -5px 15px rgba(255, 255, 255, 0.8);
}

.product_main_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Product Info --- */
.product_title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 0;
    /* REMOVED MARGIN */
}

.product_price {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 5px;
    /* REDUCED MARGIN */
}

.price_note {
    font-size: 10px;
    font-weight: 400;
    color: #555;
    text-transform: uppercase;
}

/* --- Sizes --- */
.size_label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    /* REDUCED MARGIN */
    display: block;
}

.size_grid {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    /* REDUCED MARGIN */
}

.size_box {
    width: 45px;
    height: 45px;
    background-color: var(--color-grey);
    /* D9D9D9 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 16px;

    /* Clay effect for buttons */
    box-shadow:
        5px 5px 10px rgba(0, 0, 0, 0.15),
        inset 2px 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.size_box.selected {
    background-color: var(--color-black);
    color: var(--color-white);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2);
}

/* --- Actions --- */
.buy_btn {
    width: 100%;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 5px;
    /* REDUCED MARGIN */

    /* Clay/3D effect */
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
}

.go_back_link {
    display: block;
    text-align: center;
    color: var(--color-black);
    text-decoration: underline;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    /* REDUCED MARGIN */
    cursor: pointer;
}

/* --- Info Cards --- */
.info_card {
    background-color: var(--color-grey);
    /* D9D9D9 */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 5px;
    /* REDUCED MARGIN */

    /* Clay Look */
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.1),
        inset 3px 3px 6px rgba(255, 255, 255, 0.6);
}

.info_card.row_layout {
    flex-direction: row;
    text-align: left;
    gap: 15px;
    padding: 15px 20px;
}

.info_icon {
    width: 24px;
    height: 24px;
}

.info_text_primary {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-black);
}

.info_text_link {
    font-weight: 700;
    text-decoration: underline;
    color: #1a56db;
    /* A slightly blue link color or keep it black? Design shows blueish link */
}

/* --- Mobile Menu Overlay (Copied from style.css for consistency) --- */
.mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile_menu.active {
    opacity: 1;
    pointer-events: auto;
}

.menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 40px;
}

.close_btn {
    font-size: 43px;
    /* Updated per user previous edit */
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: var(--color-black);
}

.menu_links {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.menu_link {
    text-decoration: none;
    color: var(--color-black);
    font-size: 24px;
    font-weight: 700;
    text-transform: capitalize;
}