<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:clickable="true"
    android:focusable="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="@dimen/horizontal_safe_area">

        <!-- Top Section: Image + Info + Menu -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/iv_product"
                android:layout_width="95dp"
                android:layout_height="70dp"
                android:scaleType="centerCrop"
                android:src="@drawable/placeholder_image"
                app:shapeAppearanceOverlay="@style/store_product_image"
                android:contentDescription="Product Image" />

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_marginStart="13dp"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/tv_product_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Jaket Pink Fuschia"
                    style="@style/label_medium_prominent" />

                <TextView
                    android:id="@+id/tv_product_price"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Rp150.000"
                    style="@style/label_medium" />

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:layout_marginTop="6dp">

                    <TextView
                        android:id="@+id/tv_product_stock"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Stok: 15"
                        style="@style/label_medium" />

                    <TextView
                        android:id="@+id/tv_product_status"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Aktif"
                        style="@style/label_small"
                        android:paddingHorizontal="4dp"
                        android:textColor="@color/darkblue_500"
                        android:background="@drawable/bg_product_active" />

                </LinearLayout>

            </LinearLayout>

            <ImageView
                android:id="@+id/iv_menu"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:src="@drawable/ic_more_vertical"
                android:contentDescription="Menu"
                android:layout_marginStart="8dp"
                android:clickable="true"
                android:focusable="true"/>

        </LinearLayout>

        <!-- Action Buttons -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:gravity="center"
            android:layout_marginTop="12dp">

            <Button
                style="@style/button.small.secondary.medium"
                android:id="@+id/btn_change_price"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:text="Ubah Harga" />

            <Space
                android:layout_width="10dp"
                android:layout_height="0dp" />

            <Button
                style="@style/button.small.secondary.medium"
                android:id="@+id/btn_change_stock"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:text="Ubah Stok" />

        </LinearLayout>

    </LinearLayout>

    <!-- Divider -->
    <View
        android:layout_width="match_parent"
        android:layout_height="8dp"
        android:background="@color/black_50"/>

</LinearLayout>