fix(product): set explicit grid-cols-1 and w-full for perfect mobile layout alignment
This commit is contained in:
1 parent
5005f0e68f
commit
e1da54f2f5
1 file changed
+5
-5
@@ -201,13 +201,13 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
</nav>
|
||||
|
||||
{/* Global Single Grid Layout - Aligns Sticky Buy Box at the Top */}
|
||||
<div className="grid lg:grid-cols-12 gap-12 items-start">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-12 gap-12 items-start w-full">
|
||||
|
||||
{/* Right/Main Content Column (lg:col-span-8) */}
|
||||
<div className="lg:col-span-8 space-y-12">
|
||||
<div className="w-full lg:col-span-8 space-y-12">
|
||||
|
||||
{/* Above the Fold Grid */}
|
||||
<div className="grid md:grid-cols-12 gap-8 md:gap-12 items-center md:items-start text-center md:text-right font-vazir" dir="rtl">
|
||||
<div className="grid grid-cols-1 md:grid-cols-12 gap-8 md:gap-12 items-center md:items-start text-center md:text-right font-vazir w-full" dir="rtl">
|
||||
{/* Right Column: Product Image Frame (md:col-span-5) */}
|
||||
<div className="md:col-span-5 w-full mx-auto max-w-sm md:max-w-none">
|
||||
<motion.div
|
||||
@@ -584,8 +584,8 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Sticky Sidebar (Clean Buy Box) - Sticky starts at the top, level with the title */}
|
||||
<div className="lg:col-span-4 lg:sticky lg:top-28 space-y-8">
|
||||
{/* Sticky Sidebar (Clean Buy Box) - Hidden on mobile as mobile floating buy bar is active */}
|
||||
<div className="hidden lg:block lg:col-span-4 lg:sticky lg:top-28 space-y-8">
|
||||
<div className="bg-white rounded-[2.5rem] border-2 border-medical-gray-100 p-8 shadow-2xl relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 w-24 h-24 bg-canina-blue/5 rounded-full -mr-12 -mt-12" />
|
||||
|
||||
|
||||
Reference in new issue
Block a user